signetai 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dashboard/_app/immutable/chunks/{CHIvcyg0.js → 0ZUsUnLT.js} +1 -1
  2. package/dashboard/_app/immutable/chunks/{hU_EZqoW.js → B-fm3Qw0.js} +1 -1
  3. package/dashboard/_app/immutable/chunks/{B2yyDc27.js → B1eBpYGo.js} +1 -1
  4. package/dashboard/_app/immutable/chunks/{iYa7KpPJ.js → B7tPOVhf.js} +1 -1
  5. package/dashboard/_app/immutable/chunks/{Ds2zS6rl.js → B9pKk-f6.js} +1 -1
  6. package/dashboard/_app/immutable/chunks/{CuZPA37G.js → BVPzIkTN.js} +1 -1
  7. package/dashboard/_app/immutable/chunks/{BNPtVf8V.js → BfwSK66w.js} +1 -1
  8. package/dashboard/_app/immutable/chunks/{DFpamDfX.js → Bxr-ZfmV.js} +1 -1
  9. package/dashboard/_app/immutable/chunks/{CpjidY3m.js → CEdKNK1O.js} +1 -1
  10. package/dashboard/_app/immutable/chunks/CHignyMN.js +55 -0
  11. package/dashboard/_app/immutable/chunks/{DDveReDH.js → CM2YBPvW.js} +1 -1
  12. package/dashboard/_app/immutable/chunks/{BEnIE-oE.js → CQCnxjnX.js} +1 -1
  13. package/dashboard/_app/immutable/chunks/{DMkjjyIF.js → CbySFIYu.js} +1 -1
  14. package/dashboard/_app/immutable/chunks/{_LhdlYTu.js → Cofp7_bI.js} +1 -1
  15. package/dashboard/_app/immutable/chunks/{D48BGNEG.js → D7vsdCS2.js} +1 -1
  16. package/dashboard/_app/immutable/chunks/{5e4XdLh_.js → D8scen26.js} +1 -1
  17. package/dashboard/_app/immutable/chunks/{CchxhNtk.js → DEx_gp59.js} +1 -1
  18. package/dashboard/_app/immutable/chunks/{DOja0NID.js → DI5vdiXE.js} +1 -1
  19. package/dashboard/_app/immutable/chunks/{zrM5iXwv.js → DU7V7sOa.js} +1 -1
  20. package/dashboard/_app/immutable/chunks/{CpKr3iYA.js → Dhorujc8.js} +2 -2
  21. package/dashboard/_app/immutable/chunks/DyFwJA3P.js +1 -0
  22. package/dashboard/_app/immutable/chunks/{o6LkHJqj.js → DzsgwHxS.js} +1 -1
  23. package/dashboard/_app/immutable/chunks/{ChHmQizB.js → kxY7uz19.js} +1 -1
  24. package/dashboard/_app/immutable/chunks/{CG8cISlg.js → nPL8ayH9.js} +1 -1
  25. package/dashboard/_app/immutable/chunks/{DcRAH52K.js → pIvFk3qK.js} +1 -1
  26. package/dashboard/_app/immutable/entry/{app.C5F3ZAN1.js → app.BKbhz_XM.js} +2 -2
  27. package/dashboard/_app/immutable/entry/start.BHBVb6Et.js +1 -0
  28. package/dashboard/_app/immutable/nodes/{1.RDy-cHCX.js → 1.C9WoAOsa.js} +1 -1
  29. package/dashboard/_app/immutable/nodes/2.C_8_dlYD.js +1 -0
  30. package/dashboard/_app/version.json +1 -1
  31. package/dashboard/index.html +6 -6
  32. package/package.json +1 -1
  33. package/dashboard/_app/immutable/chunks/CZZuR5m-.js +0 -55
  34. package/dashboard/_app/immutable/chunks/o9qYedkI.js +0 -1
  35. package/dashboard/_app/immutable/entry/start.BFD7daF-.js +0 -1
  36. package/dashboard/_app/immutable/nodes/2.BA8opTsY.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c as w,a as h,f as I,p as Pe,t as Ce}from"./Bh4-TELa.js";import{av as Sr,aW as Ca,h as Pr,A as F,V as Sa,L as Pa,u as Ft,k as At,C as v,w as c,v as P,q as Hr,n as ka,G as Ia,o as T,D as b,B as V,t as A,F as ae,z as H,x as B,y as Qe}from"./B8ZX7RRG.js";import{s as Z,d as Ke,a as Fa}from"./BWl8aDS_.js";import{p as g,i as W,r as N,c as Y,s as fe,b as ar}from"./VPfMKV-Y.js";import{b4 as nr,G as bt,D as pt,b5 as Aa,l as Oa,J as kr,aD as Zr,aA as zr,aC as jr,aB as qr,E as Ea,S as Ya,q as Ba,u as q,C as Gr,aS as Jr,o as De,K as Ta,w as ot,z as Ir,n as M,b6 as Va,a as ne,m as we,r as ke,e as Se,b7 as Yt,c as me,b8 as sr,I as ir,b9 as yt,s as it,ai as Nt,b1 as E,i as St,ba as La,bb as Na,f as Ut,A as Fr,bc as Ua,bd as Rt,be as Ra}from"./CpKr3iYA.js";import{B as ht}from"./CchxhNtk.js";import{i as Wt,d as Wa,S as Ha,a as Za,b as Ar,c as za}from"./hU_EZqoW.js";import{P as ja,a as qa,b as Ga}from"./DFpamDfX.js";import{s as L}from"./DJzRqvC6.js";import{o as Ja}from"./ZyuAFP8p.js";import{s as Ka}from"./D48BGNEG.js";import{C as Kr}from"./BNPtVf8V.js";let Ht=null;function Qa(){if(Ht===null){var t=Pa("select");t.innerHTML="<option><span>t</span></option>",Ht=t.firstChild?.firstChild?.nodeType===1}return Ht}function Qr(t,e){var r=Pr;Qa()||(Sr(!1),t.textContent="",t.append(Ca("")));try{e()}finally{r&&(Pr?F(t):(Sr(!0),Sa(t)))}}function Zt(t,e){return t-e*Math.floor(t/e)}const Xr=1721426;function Pt(t,e,r,a){e=or(t,e);let n=e-1,s=-2;return r<=2?s=0:It(e)&&(s=-1),Xr-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+s+a)}function It(t){return t%4===0&&(t%100!==0||t%400===0)}function or(t,e){return t==="BC"?1-e:e}function Xa(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const en={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]};class ft{fromJulianDay(e){let r=e,a=r-Xr,n=Math.floor(a/146097),s=Zt(a,146097),i=Math.floor(s/36524),l=Zt(s,36524),d=Math.floor(l/1461),m=Zt(l,1461),y=Math.floor(m/365),_=n*400+i*100+d*4+y+(i!==4&&y!==4?1:0),[u,o]=Xa(_),f=r-Pt(u,o,1,1),p=2;r<Pt(u,o,3,1)?p=0:It(o)&&(p=1);let $=Math.floor(((f+p)*12+373)/367),x=r-Pt(u,o,$,1)+1;return new ze(u,o,$,x)}toJulianDay(e){return Pt(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return en[It(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return It(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"}}const tn={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Xe(t,e){return e=_e(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Bt(t,e){return e=_e(e,t.calendar),t=Xt(t),e=Xt(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function rn(t,e){return ea(t.calendar,e.calendar)&&Bt(t,e)}function ea(t,e){var r,a,n,s;return(s=(n=(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&n!==void 0?n:(a=e.isEqual)===null||a===void 0?void 0:a.call(e,t))!==null&&s!==void 0?s:t.identifier===e.identifier}function an(t,e){return Xe(t,sn(e))}function ta(t,e,r){let a=t.calendar.toJulianDay(t),n=dn(e),s=Math.ceil(a+1-n)%7;return s<0&&(s+=7),s}function nn(t){return Ve(Date.now(),t)}function sn(t){return fn(nn(t))}function ra(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function on(t,e){return Or(t)-Or(e)}function Or(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let zt=null;function Ee(){return zt==null&&(zt=new Intl.DateTimeFormat().resolvedOptions().timeZone),zt}function Xt(t){return t.subtract({days:t.day-1})}function ln(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}const Er=new Map,jt=new Map;function cn(t){if(Intl.Locale){let r=Er.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&Er.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function dn(t){let e=jt.get(t);if(!e){if(Intl.Locale){let a=new Intl.Locale(t);if("getWeekInfo"in a&&(e=a.getWeekInfo(),e))return jt.set(t,e),e.firstDay}let r=cn(t);if(t.includes("-fw-")){let a=t.split("-fw-")[1].split("-")[0];a==="mon"?e={firstDay:1}:a==="tue"?e={firstDay:2}:a==="wed"?e={firstDay:3}:a==="thu"?e={firstDay:4}:a==="fri"?e={firstDay:5}:a==="sat"?e={firstDay:6}:e={firstDay:0}}else t.includes("-ca-iso8601")?e={firstDay:1}:e={firstDay:r&&tn[r]||0};jt.set(t,e)}return e.firstDay}function et(t){t=_e(t,new ft);let e=or(t.era,t.year);return aa(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function aa(t,e,r,a,n,s,i){let l=new Date;return l.setUTCHours(a,n,s,i),l.setUTCFullYear(t,e-1,r),l.getTime()}function xt(t,e){if(e==="UTC")return 0;if(t>0&&e===Ee())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:a,day:n,hour:s,minute:i,second:l}=na(t,e);return aa(r,a,n,s,i,l,0)-Math.floor(t/1e3)*1e3}const Yr=new Map;function na(t,e){let r=Yr.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Yr.set(e,r));let a=r.formatToParts(new Date(t)),n={};for(let s of a)s.type!=="literal"&&(n[s.type]=s.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}const Ot=864e5;function un(t,e){let r=et(t),a=r-xt(r-Ot,e),n=r-xt(r+Ot,e);return sa(t,e,a,n)}function sa(t,e,r,a){return(r===a?[r]:[r,a]).filter(s=>hn(t,e,s))}function hn(t,e,r){let a=na(r,e);return t.year===a.year&&t.month===a.month&&t.day===a.day&&t.hour===a.hour&&t.minute===a.minute&&t.second===a.second}function Te(t,e,r="compatible"){let a=tt(t);if(e==="UTC")return et(a);if(e===Ee()&&r==="compatible"){a=_e(a,new ft);let d=new Date,m=or(a.era,a.year);return d.setFullYear(m,a.month-1,a.day),d.setHours(a.hour,a.minute,a.second,a.millisecond),d.getTime()}let n=et(a),s=xt(n-Ot,e),i=xt(n+Ot,e),l=sa(a,e,n-s,n-i);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(n-s,n-i);case"compatible":case"later":return Math.max(n-s,n-i);case"reject":throw new RangeError("No such absolute time found")}}function ia(t,e,r="compatible"){return new Date(Te(t,e,r))}function Ve(t,e){let r=xt(t,e),a=new Date(t+r),n=a.getUTCFullYear(),s=a.getUTCMonth()+1,i=a.getUTCDate(),l=a.getUTCHours(),d=a.getUTCMinutes(),m=a.getUTCSeconds(),y=a.getUTCMilliseconds();return new Le(n<1?"BC":"AD",n<1?-n+1:n,s,i,e,r,l,d,m,y)}function fn(t){return new ze(t.calendar,t.era,t.year,t.month,t.day)}function tt(t,e){let r=0,a=0,n=0,s=0;if("timeZone"in t)({hour:r,minute:a,second:n,millisecond:s}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:a,second:n,millisecond:s}=e),new je(t.calendar,t.era,t.year,t.month,t.day,r,a,n,s)}function _e(t,e){if(ea(t.calendar,e))return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),a=t.copy();return a.calendar=e,a.era=r.era,a.year=r.year,a.month=r.month,a.day=r.day,lt(a),a}function mn(t,e,r){if(t instanceof Le)return t.timeZone===e?t:gn(t,e);let a=Te(t,e,r);return Ve(a,e)}function vn(t){let e=et(t)-t.offset;return new Date(e)}function gn(t,e){let r=et(t)-t.offset;return _e(Ve(r,e),t.calendar)}const gt=36e5;function Tt(t,e){let r=t.copy(),a="hour"in r?xn(r,e):0;er(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,tr(r),oa(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=a,bn(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let n=r.calendar.getYearsInEra(r);if(r.year>n){var s,i;let d=(s=(i=r.calendar).isInverseEra)===null||s===void 0?void 0:s.call(i,r);r.year=n,r.month=d?1:r.calendar.getMonthsInYear(r),r.day=d?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function er(t,e){var r,a;!((r=(a=t.calendar).isInverseEra)===null||r===void 0)&&r.call(a,t)&&(e=-e),t.year+=e}function tr(t){for(;t.month<1;)er(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,er(t,1)}function bn(t){for(;t.day<1;)t.month--,tr(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,tr(t)}function oa(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function lt(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),oa(t)}function la(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function ca(t,e){return Tt(t,la(e))}function lr(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),lt(r),r}function Et(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),pn(r),r}function yn(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=kt(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=kt(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=kt(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=kt(t.hour,24),e}function pn(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function kt(t,e){let r=t%e;return r<0&&(r+=e),r}function xn(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,yn(t)}function cr(t,e,r,a){let n=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),d=l.indexOf(t.era);if(d<0)throw new Error("Invalid era: "+t.era);d=Ze(d,r,0,l.length-1,a?.round),n.era=l[d],lt(n);break}case"year":var s,i;!((s=(i=n.calendar).isInverseEra)===null||s===void 0)&&s.call(i,n)&&(r=-r),n.year=Ze(t.year,r,-1/0,9999,a?.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=Ze(t.month,r,1,t.calendar.getMonthsInYear(t),a?.round);break;case"day":n.day=Ze(t.day,r,1,t.calendar.getDaysInMonth(t),a?.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),lt(n),n}function da(t,e,r,a){let n=t.copy();switch(e){case"hour":{let s=t.hour,i=0,l=23;if(a?.hourCycle===12){let d=s>=12;i=d?12:0,l=d?23:11}n.hour=Ze(s,r,i,l,a?.round);break}case"minute":n.minute=Ze(t.minute,r,0,59,a?.round);break;case"second":n.second=Ze(t.second,r,0,59,a?.round);break;case"millisecond":n.millisecond=Ze(t.millisecond,r,0,999,a?.round);break;default:throw new Error("Unsupported field "+e)}return n}function Ze(t,e,r,a,n=!1){if(n){t+=Math.sign(e),t<r&&(t=a);let s=Math.abs(e);e>0?t=Math.ceil(t/s)*s:t=Math.floor(t/s)*s,t>a&&(t=r)}else t+=e,t<r?t=a-(r-t-1):t>a&&(t=r+(t-a-1));return t}function ua(t,e){let r;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let n=Tt(tt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});r=Te(n,t.timeZone)}else r=et(t)-t.offset;r+=e.milliseconds||0,r+=(e.seconds||0)*1e3,r+=(e.minutes||0)*6e4,r+=(e.hours||0)*36e5;let a=Ve(r,t.timeZone);return _e(a,t.calendar)}function _n(t,e){return ua(t,la(e))}function Dn(t,e,r,a){switch(e){case"hour":{let n=0,s=23;if(a?.hourCycle===12){let f=t.hour>=12;n=f?12:0,s=f?23:11}let i=tt(t),l=_e(Et(i,{hour:n}),new ft),d=[Te(l,t.timeZone,"earlier"),Te(l,t.timeZone,"later")].filter(f=>Ve(f,t.timeZone).day===l.day)[0],m=_e(Et(i,{hour:s}),new ft),y=[Te(m,t.timeZone,"earlier"),Te(m,t.timeZone,"later")].filter(f=>Ve(f,t.timeZone).day===m.day).pop(),_=et(t)-t.offset,u=Math.floor(_/gt),o=_%gt;return _=Ze(u,r,Math.floor(d/gt),Math.floor(y/gt),a?.round)*gt+o,_e(Ve(_,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return da(t,e,r,a);case"era":case"year":case"month":case"day":{let n=cr(tt(t),e,r,a),s=Te(n,t.timeZone);return _e(Ve(s,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function wn(t,e,r){let a=tt(t),n=Et(lr(a,e),e);if(n.compare(a)===0)return t;let s=Te(n,t.timeZone,r);return _e(Ve(s,t.timeZone),t.calendar)}const Mn=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,$n=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Cn=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?(?::?(\d{2}))?)?\[(.*?)\]$/,ha=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function fa(t){let e=t.match(Mn);if(!e)throw ha.test(t)?new Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+t);let r=new ze(te(e[1],0,9999),te(e[2],1,12),1);return r.day=te(e[3],1,r.calendar.getDaysInMonth(r)),r}function ma(t){let e=t.match($n);if(!e)throw ha.test(t)?new Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+t);let r=te(e[1],-9999,9999),a=r<1?"BC":"AD",n=new je(a,r<1?-r+1:r,te(e[2],1,12),1,e[4]?te(e[4],0,23):0,e[5]?te(e[5],0,59):0,e[6]?te(e[6],0,59):0,e[7]?te(e[7],0,1/0)*1e3:0);return n.day=te(e[3],0,n.calendar.getDaysInMonth(n)),n}function va(t,e){let r=t.match(Cn);if(!r)throw new Error("Invalid ISO 8601 date time string: "+t);let a=te(r[1],-9999,9999),n=a<1?"BC":"AD",s=new Le(n,a<1?-a+1:a,te(r[2],1,12),1,r[11],0,r[4]?te(r[4],0,23):0,r[5]?te(r[5],0,59):0,r[6]?te(r[6],0,59):0,r[7]?te(r[7],0,1/0)*1e3:0);s.day=te(r[3],0,s.calendar.getDaysInMonth(s));let i=tt(s),l;if(r[8]){let y=te(r[8],-23,23);var d,m;if(s.offset=Math.sign(y)*(Math.abs(y)*36e5+te((d=r[9])!==null&&d!==void 0?d:"0",0,59)*6e4+te((m=r[10])!==null&&m!==void 0?m:"0",0,59)*1e3),l=et(s)-s.offset,!un(i,s.timeZone).includes(l))throw new Error(`Offset ${ba(s.offset)} is invalid for ${dr(s)} in ${s.timeZone}`)}else l=Te(tt(i),s.timeZone,e);return Ve(l,s.timeZone)}function te(t,e,r){let a=Number(t);if(a<e||a>r)throw new RangeError(`Value out of range: ${e} <= ${a} <= ${r}`);return a}function Sn(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function ga(t){let e=_e(t,new ft),r;return e.era==="BC"?r=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):r=String(e.year).padStart(4,"0"),`${r}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function dr(t){return`${ga(t)}T${Sn(t)}`}function ba(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let r=Math.floor(t/36e5),a=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),s=`${e}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`;return n!==0&&(s+=`:${String(n).padStart(2,"0")}`),s}function Pn(t){return`${dr(t)}${ba(t.offset)}[${t.timeZone}]`}function kn(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ur(t,e,r){kn(t,e),e.set(t,r)}function hr(t){let e=typeof t[0]=="object"?t.shift():new ft,r;if(typeof t[0]=="string")r=t.shift();else{let i=e.getEras();r=i[i.length-1]}let a=t.shift(),n=t.shift(),s=t.shift();return[e,r,a,n,s]}var In=new WeakMap;class ze{copy(){return this.era?new ze(this.calendar,this.era,this.year,this.month,this.day):new ze(this.calendar,this.year,this.month,this.day)}add(e){return Tt(this,e)}subtract(e){return ca(this,e)}set(e){return lr(this,e)}cycle(e,r,a){return cr(this,e,r,a)}toDate(e){return ia(this,e)}toString(){return ga(this)}compare(e){return ra(this,e)}constructor(...e){ur(this,In,{writable:!0,value:void 0});let[r,a,n,s,i]=hr(e);this.calendar=r,this.era=a,this.year=n,this.month=s,this.day=i,lt(this)}}var Fn=new WeakMap;class je{copy(){return this.era?new je(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new je(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Tt(this,e)}subtract(e){return ca(this,e)}set(e){return lr(Et(this,e),e)}cycle(e,r,a){switch(e){case"era":case"year":case"month":case"day":return cr(this,e,r,a);default:return da(this,e,r,a)}}toDate(e,r){return ia(this,e,r)}toString(){return dr(this)}compare(e){let r=ra(this,e);return r===0?on(this,tt(e)):r}constructor(...e){ur(this,Fn,{writable:!0,value:void 0});let[r,a,n,s,i]=hr(e);this.calendar=r,this.era=a,this.year=n,this.month=s,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,lt(this)}}var An=new WeakMap;class Le{copy(){return this.era?new Le(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Le(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return ua(this,e)}subtract(e){return _n(this,e)}set(e,r){return wn(this,e,r)}cycle(e,r,a){return Dn(this,e,r,a)}toDate(){return vn(this)}toString(){return Pn(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-mn(e,this.timeZone).toDate().getTime()}constructor(...e){ur(this,An,{writable:!0,value:void 0});let[r,a,n,s,i]=hr(e),l=e.shift(),d=e.shift();this.calendar=r,this.era=a,this.year=n,this.month=s,this.day=i,this.timeZone=l,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,lt(this)}}let qt=new Map;class $e{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(r)}`}formatRangeToParts(e,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let a=this.formatter.formatToParts(e),n=this.formatter.formatToParts(r);return[...a.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return Yn()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Bn(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}constructor(e,r={}){this.formatter=ya(e,r),this.options=r}}const On={true:{ja:"h11"},false:{}};function ya(t,e={}){if(typeof e.hour12=="boolean"&&En()){e={...e};let n=On[String(e.hour12)][t.split("-")[0]],s=e.hour12?"h12":"h23";e.hourCycle=n??s,delete e.hour12}let r=t+(e?Object.entries(e).sort((n,s)=>n[0]<s[0]?-1:1).join():"");if(qt.has(r))return qt.get(r);let a=new Intl.DateTimeFormat(t,e);return qt.set(r,a),a}let Gt=null;function En(){return Gt==null&&(Gt=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Gt}let Jt=null;function Yn(){return Jt==null&&(Jt=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Jt}function Bn(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),t+=(t.includes("-u-")?"":"-u")+"-nu-latn";let r=ya(t,{...e,timeZone:void 0}),a=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),n=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(a===0&&n===23)return"h23";if(a===24&&n===23)return"h24";if(a===0&&n===11)return"h11";if(a===12&&n===11)return"h12";throw new Error("Unexpected hour cycle result")}function Tn(t){if(!nr||!t)return null;let e=t.querySelector("[data-bits-announcer]");const r=n=>{const s=t.createElement("div");return s.role="log",s.ariaLive=n,s.setAttribute("aria-relevant","additions"),s};if(!bt(e)){const n=t.createElement("div");n.style.cssText=Ka,n.setAttribute("data-bits-announcer",""),n.appendChild(r("assertive")),n.appendChild(r("polite")),e=n,t.body.insertBefore(e,t.body.firstChild)}return{getLog:n=>{if(!bt(e))return null;const s=e.querySelector(`[aria-live="${n}"]`);return bt(s)?s:null}}}function Br(t){const e=Tn(t);function r(a,n="assertive",s=7500){if(!e||!nr||!t)return;const i=e.getLog(n),l=t.createElement("div");return typeof a=="number"?a=a.toString():a===null?a="Empty":a=a.trim(),l.innerText=a,n==="assertive"?i?.replaceChildren(l):i?.appendChild(l),setTimeout(()=>{l.remove()},s)}return{announce:r}}const Vn={defaultValue:void 0,granularity:"day"};function Ln(t){const e={...Vn,...t},{defaultValue:r,granularity:a,minValue:n,maxValue:s}=e;if(Array.isArray(r)&&r.length)return r[r.length-1];if(r&&!Array.isArray(r))return r;{let i=new Date;n&&i<n.toDate(Ee())?i=n.toDate(Ee()):s&&i>s.toDate(Ee())&&(i=s.toDate(Ee()));const l=i.getFullYear(),d=i.getMonth()+1,m=i.getDate();return["hour","minute","second"].includes(a??"day")?new je(l,d,m,0,0,0):new ze(l,d,m)}}function pa(t,e){let r;return e instanceof Le?r=va(t):e instanceof je?r=ma(t):r=fa(t),r.calendar!==e.calendar?_e(r,e.calendar):r}function Ye(t,e=Ee()){return t instanceof Le?t.toDate():t.toDate(e)}function Nn(t){if(t instanceof ze)return"date";if(t instanceof je)return"datetime";if(t instanceof Le)return"zoneddatetime";throw new Error("Unknown date type")}function Un(t,e){switch(e){case"date":return fa(t);case"datetime":return ma(t);case"zoneddatetime":return va(t);default:throw new Error(`Unknown date type: ${e}`)}}function Rn(t){return t instanceof je}function xa(t){return t instanceof Le}function rr(t){return Rn(t)||xa(t)}function Wn(t){if(t instanceof Date){const e=t.getFullYear(),r=t.getMonth()+1;return new Date(e,r,0).getDate()}else return t.set({day:100}).day}function _t(t,e){return t.compare(e)<0}function Hn(t,e){return t.compare(e)>0}function Tr(t,e,r){const a=ta(t,r);return e>a?t.subtract({days:a+7-e}):e===a?t:t.subtract({days:a-e})}function Vr(t,e,r){const a=ta(t,r),n=e===0?6:e-1;return a===n?t:a>n?t.add({days:7-a+n}):t.add({days:n-a})}const Zn={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function zn(t){let e=t.initialLocale;function r(o){e=o}function a(){return e}function n(o,f){return new $e(e,f).format(o)}function s(o,f=!0){return rr(o)&&f?n(Ye(o),{dateStyle:"long",timeStyle:"long"}):n(Ye(o),{dateStyle:"long"})}function i(o){if(typeof t.monthFormat.current!="function"&&typeof t.yearFormat.current!="function")return new $e(e,{month:t.monthFormat.current,year:t.yearFormat.current}).format(o);const f=typeof t.monthFormat.current=="function"?t.monthFormat.current(o.getMonth()+1):new $e(e,{month:t.monthFormat.current}).format(o),p=typeof t.yearFormat.current=="function"?t.yearFormat.current(o.getFullYear()):new $e(e,{year:t.yearFormat.current}).format(o);return`${f} ${p}`}function l(o){return new $e(e,{month:"long"}).format(o)}function d(o){return new $e(e,{year:"numeric"}).format(o)}function m(o,f){return xa(o)?new $e(e,{...f,timeZone:o.timeZone}).formatToParts(Ye(o)):new $e(e,f).formatToParts(Ye(o))}function y(o,f="narrow"){return new $e(e,{weekday:f}).format(o)}function _(o,f=void 0){return new $e(e,{hour:"numeric",minute:"numeric",hourCycle:f===24?"h23":void 0}).formatToParts(o).find(x=>x.type==="dayPeriod")?.value==="PM"?"PM":"AM"}function u(o,f,p={}){const $={...Zn,...p},k=m(o,$).find(C=>C.type===f);return k?k.value:""}return{setLocale:r,getLocale:a,fullMonth:l,fullYear:d,fullMonthAndYear:i,toParts:m,custom:n,part:u,dayPeriod:_,selectedDate:s,dayOfWeek:y}}function jn(t){return!(!bt(t)||!t.hasAttribute("data-bits-day"))}function Lr(t,e){const r=[];let a=t.add({days:1});const n=e;for(;a.compare(n)<0;)r.push(a),a=a.add({days:1});return r}function Kt(t){const{dateObj:e,weekStartsOn:r,fixedWeeks:a,locale:n}=t,s=Wn(e),i=Array.from({length:s},($,x)=>e.set({day:x+1})),l=Xt(e),d=ln(e),m=r!==void 0?Tr(l,r,"en-US"):Tr(l,0,n),y=r!==void 0?Vr(d,r,"en-US"):Vr(d,0,n),_=Lr(m.subtract({days:1}),l),u=Lr(d,y.add({days:1})),o=_.length+i.length+u.length;if(a&&o<42){const $=42-o;let x=u[u.length-1];x||(x=e.add({months:1}).set({day:1}));let k=$;u.length===0&&(k=$-1,u.push(x));const C=Array.from({length:k},(K,z)=>{const ce=z+1;return x.add({days:ce})});u.push(...C)}const f=_.concat(i,u),p=Wa(f,7);return{value:e,dates:f,weeks:p}}function Dt(t){const{numberOfMonths:e,dateObj:r,...a}=t,n=[];if(!e||e===1)return n.push(Kt({...a,dateObj:r})),n;n.push(Kt({...a,dateObj:r}));for(let s=1;s<e;s++){const i=r.add({months:s});n.push(Kt({...a,dateObj:i}))}return n}function Qt(t){return t?Array.from(t.querySelectorAll("[data-bits-day]:not([data-disabled]):not([data-outside-visible-months])")).filter(r=>bt(r)):[]}function Nr(t,e){const r=t.getAttribute("data-value");r&&(e.current=pa(r,e.current))}function qn({node:t,add:e,placeholder:r,calendarNode:a,isPrevButtonDisabled:n,isNextButtonDisabled:s,months:i,numberOfMonths:l}){const d=Qt(a);if(!d.length)return;const y=d.indexOf(t)+e;if(Wt(y,d)){const _=d[y];return Nr(_,r),_.focus()}if(y<0){if(n)return;const _=i[0]?.value;if(!_)return;r.current=_.subtract({months:l}),kr(()=>{const u=Qt(a);if(!u.length)return;const o=u.length-Math.abs(y);if(Wt(o,u)){const f=u[o];return Nr(f,r),f.focus()}})}if(y>=d.length){if(s)return;const _=i[0]?.value;if(!_)return;r.current=_.add({months:l}),kr(()=>{const u=Qt(a);if(!u.length)return;const o=y-d.length;if(Wt(o,u))return u[o].focus()})}}const Ur=[Zr,zr,jr,qr],Rr=[Ea,Ya];function Gn({event:t,handleCellClick:e,shiftFocus:r,placeholderValue:a}){const n=t.target;if(!jn(n)||!Ur.includes(t.key)&&!Rr.includes(t.key))return;t.preventDefault();const s={[Zr]:7,[zr]:-7,[jr]:-1,[qr]:1};if(Ur.includes(t.key)){const i=s[t.key];i!==void 0&&r(n,i)}if(Rr.includes(t.key)){const i=n.getAttribute("data-value");if(!i)return;e(t,pa(i,a))}}function Jn({months:t,setMonths:e,numberOfMonths:r,pagedNavigation:a,weekStartsOn:n,locale:s,fixedWeeks:i,setPlaceholder:l}){const d=t[0]?.value;if(d)if(a)l(d.add({months:r}));else{const m=d.add({months:1}),y=Dt({dateObj:m,weekStartsOn:n,locale:s,fixedWeeks:i,numberOfMonths:r});l(m),e(y)}}function Kn({months:t,setMonths:e,numberOfMonths:r,pagedNavigation:a,weekStartsOn:n,locale:s,fixedWeeks:i,setPlaceholder:l}){const d=t[0]?.value;if(d)if(a)l(d.subtract({months:r}));else{const m=d.subtract({months:1}),y=Dt({dateObj:m,weekStartsOn:n,locale:s,fixedWeeks:i,numberOfMonths:r});l(m),e(y)}}function Qn({months:t,formatter:e,weekdayFormat:r}){if(!t.length)return[];const n=t[0].weeks[0];return n?n.map(s=>e.dayOfWeek(Ye(s),r)):[]}function Xn(t){Ft(()=>{const e=t.weekStartsOn.current,r=t.locale.current,a=t.fixedWeeks.current,n=t.numberOfMonths.current;At(()=>{const s=t.placeholder.current;if(!s)return;const i={weekStartsOn:e,locale:r,fixedWeeks:a,numberOfMonths:n};t.setMonths(Dt({...i,dateObj:s}))})})}function es({calendarNode:t,label:e,accessibleHeadingId:r}){const a=Aa(t),n=a.createElement("div");n.style.cssText=Oa({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"});const s=a.createElement("div");return s.textContent=e,s.id=r,s.role="heading",s.ariaLevel="2",t.insertBefore(n,t.firstChild),n.appendChild(s),()=>{const i=a.getElementById(r);i&&(n.parentElement?.removeChild(n),i.remove())}}function ts({placeholder:t,getVisibleMonths:e,weekStartsOn:r,locale:a,fixedWeeks:n,numberOfMonths:s,setMonths:i}){Ft(()=>{t.current,At(()=>{if(e().some(d=>Bt(d,t.current)))return;const l={weekStartsOn:r.current,locale:a.current,fixedWeeks:n.current,numberOfMonths:s.current};i(Dt({...l,dateObj:t.current}))})})}function rs({maxValue:t,months:e,disabled:r}){if(!t||!e.length)return!1;if(r)return!0;const a=e[e.length-1]?.value;if(!a)return!1;const n=a.add({months:1}).set({day:1});return Hn(n,t)}function as({minValue:t,months:e,disabled:r}){if(!t||!e.length)return!1;if(r)return!0;const a=e[0]?.value;if(!a)return!1;const n=a.subtract({months:1}).set({day:35});return _t(n,t)}function ns({months:t,locale:e,formatter:r}){if(!t.length)return"";if(e!==r.getLocale()&&r.setLocale(e),t.length===1){const y=Ye(t[0].value);return`${r.fullMonthAndYear(y)}`}const a=Ye(t[0].value),n=Ye(t[t.length-1].value),s=r.fullMonth(a),i=r.fullMonth(n),l=r.fullYear(a),d=r.fullYear(n);return l===d?`${s} - ${i} ${d}`:`${s} ${l} - ${i} ${d}`}function ss({fullCalendarLabel:t,id:e,isInvalid:r,disabled:a,readonly:n}){return{id:e,role:"application","aria-label":t,"data-invalid":q(r),"data-disabled":q(a),"data-readonly":q(n)}}function is(t){if(!nr)return;const e=Array.from(t.querySelectorAll("[data-bits-day]:not([aria-disabled=true])"));if(e.length===0)return;const r=e[0],a=r?.getAttribute("data-value"),n=r?.getAttribute("data-type");if(!(!a||!n))return Un(a,n)}function os({ref:t,placeholder:e,defaultPlaceholder:r,minValue:a,maxValue:n,isDateDisabled:s}){function i(l){return!!(s.current(l)||a.current&&_t(l,a.current)||n.current&&_t(n.current,l))}pt(()=>t.current,()=>{t.current&&e.current&&Xe(e.current,r)&&i(r)&&(e.current=is(t.current)??r)})}function ls(t,e){return!t||!e?t:rr(t)&&rr(e)?t.set({hour:e.hour,minute:e.minute,millisecond:e.millisecond,second:e.second}):t}const cs=Ba({component:"calendar",parts:["root","grid","cell","next-button","prev-button","day","grid-body","grid-head","grid-row","head-cell","header","heading","month-select","year-select"]});function ds(t){const e=new Date().getFullYear(),r=Math.max(t.placeholderYear,e);let a,n;if(t.minValue)a=t.minValue.year;else{const i=r-100;a=t.placeholderYear<i?t.placeholderYear-10:i}t.maxValue?n=t.maxValue.year:n=r+10,a>n&&(a=n);const s=n-a+1;return Array.from({length:s},(i,l)=>a+l)}const Ie=new Gr("Calendar.Root | RangeCalender.Root");class fr{static create(e){return Ie.set(new fr(e))}opts;#e=v(()=>this.months.map(e=>e.value));get visibleMonths(){return c(this.#e)}set visibleMonths(e){P(this.#e,e)}formatter;accessibleHeadingId=Jr();domContext;attachment;#t=Hr(ka([]));get months(){return c(this.#t)}set months(e){P(this.#t,e,!0)}announcer;constructor(e){this.opts=e,this.attachment=De(this.opts.ref),this.domContext=new Ta(e.ref),this.announcer=Br(null),this.formatter=zn({initialLocale:this.opts.locale.current,monthFormat:this.opts.monthFormat,yearFormat:this.opts.yearFormat}),this.setMonths=this.setMonths.bind(this),this.nextPage=this.nextPage.bind(this),this.prevPage=this.prevPage.bind(this),this.prevYear=this.prevYear.bind(this),this.nextYear=this.nextYear.bind(this),this.setYear=this.setYear.bind(this),this.setMonth=this.setMonth.bind(this),this.isOutsideVisibleMonths=this.isOutsideVisibleMonths.bind(this),this.isDateDisabled=this.isDateDisabled.bind(this),this.isDateSelected=this.isDateSelected.bind(this),this.shiftFocus=this.shiftFocus.bind(this),this.handleCellClick=this.handleCellClick.bind(this),this.handleMultipleUpdate=this.handleMultipleUpdate.bind(this),this.handleSingleUpdate=this.handleSingleUpdate.bind(this),this.onkeydown=this.onkeydown.bind(this),this.getBitsAttr=this.getBitsAttr.bind(this),Ja(()=>{this.announcer=Br(this.domContext.getDocument())}),this.months=Dt({dateObj:this.opts.placeholder.current,weekStartsOn:this.opts.weekStartsOn.current,locale:this.opts.locale.current,fixedWeeks:this.opts.fixedWeeks.current,numberOfMonths:this.opts.numberOfMonths.current}),this.#s(),this.#u(),this.#h(),ts({placeholder:this.opts.placeholder,getVisibleMonths:()=>this.visibleMonths,weekStartsOn:this.opts.weekStartsOn,locale:this.opts.locale,fixedWeeks:this.opts.fixedWeeks,numberOfMonths:this.opts.numberOfMonths,setMonths:r=>this.months=r}),Xn({fixedWeeks:this.opts.fixedWeeks,locale:this.opts.locale,numberOfMonths:this.opts.numberOfMonths,placeholder:this.opts.placeholder,setMonths:this.setMonths,weekStartsOn:this.opts.weekStartsOn}),pt(()=>this.fullCalendarLabel,r=>{const a=this.domContext.getElementById(this.accessibleHeadingId);a&&(a.textContent=r)}),pt(()=>this.opts.value.current,()=>{const r=this.opts.value.current;if(Array.isArray(r)&&r.length){const a=r[r.length-1];a&&this.opts.placeholder.current!==a&&(this.opts.placeholder.current=a)}else!Array.isArray(r)&&r&&this.opts.placeholder.current!==r&&(this.opts.placeholder.current=r)}),os({placeholder:e.placeholder,defaultPlaceholder:e.defaultPlaceholder,isDateDisabled:e.isDateDisabled,maxValue:e.maxValue,minValue:e.minValue,ref:e.ref})}setMonths(e){this.months=e}#r=v(()=>Qn({months:this.months,formatter:this.formatter,weekdayFormat:this.opts.weekdayFormat.current}));get weekdays(){return c(this.#r)}set weekdays(e){P(this.#r,e)}#a=v(()=>At(()=>this.opts.placeholder.current.year));get initialPlaceholderYear(){return c(this.#a)}set initialPlaceholderYear(e){P(this.#a,e)}#n=v(()=>ds({minValue:this.opts.minValue.current,maxValue:this.opts.maxValue.current,placeholderYear:this.initialPlaceholderYear}));get defaultYears(){return c(this.#n)}set defaultYears(e){P(this.#n,e)}#s(){Ft(()=>{if(At(()=>this.opts.initialFocus.current)){const r=this.opts.ref.current?.querySelector("[data-focused]");r&&r.focus()}})}#u(){Ft(()=>this.opts.ref.current?es({calendarNode:this.opts.ref.current,label:this.fullCalendarLabel,accessibleHeadingId:this.accessibleHeadingId}):void 0)}#h(){Ia(()=>{this.formatter.getLocale()!==this.opts.locale.current&&this.formatter.setLocale(this.opts.locale.current)})}nextPage(){Jn({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:e=>this.opts.placeholder.current=e,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}prevPage(){Kn({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:e=>this.opts.placeholder.current=e,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}nextYear(){this.opts.placeholder.current=this.opts.placeholder.current.add({years:1})}prevYear(){this.opts.placeholder.current=this.opts.placeholder.current.subtract({years:1})}setYear(e){this.opts.placeholder.current=this.opts.placeholder.current.set({year:e})}setMonth(e){this.opts.placeholder.current=this.opts.placeholder.current.set({month:e})}#i=v(()=>rs({maxValue:this.opts.maxValue.current,months:this.months,disabled:this.opts.disabled.current}));get isNextButtonDisabled(){return c(this.#i)}set isNextButtonDisabled(e){P(this.#i,e)}#o=v(()=>as({minValue:this.opts.minValue.current,months:this.months,disabled:this.opts.disabled.current}));get isPrevButtonDisabled(){return c(this.#o)}set isPrevButtonDisabled(e){P(this.#o,e)}#l=v(()=>{const e=this.opts.value.current,r=this.opts.isDateDisabled.current,a=this.opts.isDateUnavailable.current;if(Array.isArray(e)){if(!e.length)return!1;for(const n of e)if(r(n)||a(n))return!0}else{if(!e)return!1;if(r(e)||a(e))return!0}return!1});get isInvalid(){return c(this.#l)}set isInvalid(e){P(this.#l,e)}#c=v(()=>(this.opts.monthFormat.current,this.opts.yearFormat.current,ns({months:this.months,formatter:this.formatter,locale:this.opts.locale.current})));get headingValue(){return c(this.#c)}set headingValue(e){P(this.#c,e)}#d=v(()=>`${this.opts.calendarLabel.current} ${this.headingValue}`);get fullCalendarLabel(){return c(this.#d)}set fullCalendarLabel(e){P(this.#d,e)}isOutsideVisibleMonths(e){return!this.visibleMonths.some(r=>Bt(e,r))}isDateDisabled(e){if(this.opts.isDateDisabled.current(e)||this.opts.disabled.current)return!0;const r=this.opts.minValue.current,a=this.opts.maxValue.current;return!!(r&&_t(e,r)||a&&_t(a,e))}isDateSelected(e){const r=this.opts.value.current;return Array.isArray(r)?r.some(a=>Xe(a,e)):r?Xe(r,e):!1}shiftFocus(e,r){return qn({node:e,add:r,placeholder:this.opts.placeholder,calendarNode:this.opts.ref.current,isPrevButtonDisabled:this.isPrevButtonDisabled,isNextButtonDisabled:this.isNextButtonDisabled,months:this.months,numberOfMonths:this.opts.numberOfMonths.current})}#f(e){if(this.opts.type.current!=="multiple"||!this.opts.maxDays.current)return!0;const r=e.length;return!(this.opts.maxDays.current&&r>this.opts.maxDays.current)}handleCellClick(e,r){if(this.opts.readonly.current||this.opts.isDateDisabled.current?.(r)||this.opts.isDateUnavailable.current?.(r))return;const a=this.opts.value.current;if(this.opts.type.current==="multiple")(Array.isArray(a)||a===void 0)&&(this.opts.value.current=this.handleMultipleUpdate(a,r));else if(!Array.isArray(a)){const s=this.handleSingleUpdate(a,r);s?this.announcer.announce(`Selected Date: ${this.formatter.selectedDate(s,!1)}`,"polite"):this.announcer.announce("Selected date is now empty.","polite",5e3),this.opts.value.current=ls(s,a),s!==void 0&&this.opts.onDateSelect?.current?.()}}handleMultipleUpdate(e,r){if(!e){const s=[r];return this.#f(s)?s:[r]}if(!Array.isArray(e))return;const a=e.findIndex(s=>Xe(s,r)),n=this.opts.preventDeselect.current;if(a===-1){const s=[...e,r];return this.#f(s)?s:[r]}else{if(n)return e;{const s=e.filter(i=>!Xe(i,r));if(!s.length){this.opts.placeholder.current=r;return}return s}}}handleSingleUpdate(e,r){if(!e)return r;if(!this.opts.preventDeselect.current&&Xe(e,r)){this.opts.placeholder.current=r;return}return r}onkeydown(e){Gn({event:e,handleCellClick:this.handleCellClick,shiftFocus:this.shiftFocus,placeholderValue:this.opts.placeholder.current})}#m=v(()=>({months:this.months,weekdays:this.weekdays}));get snippetProps(){return c(this.#m)}set snippetProps(e){P(this.#m,e)}getBitsAttr=e=>cs.getAttr(e);#v=v(()=>({...ss({fullCalendarLabel:this.fullCalendarLabel,id:this.opts.id.current,isInvalid:this.isInvalid,disabled:this.opts.disabled.current,readonly:this.opts.readonly.current}),[this.getBitsAttr("root")]:"",onkeydown:this.onkeydown,...this.attachment}));get props(){return c(this.#v)}set props(e){P(this.#v,e)}}const _a=new Gr("Calendar.Cell | RangeCalendar.Cell");class mr{static create(e){return _a.set(new mr(e,Ie.get()))}opts;root;#e=v(()=>Ye(this.opts.date.current));get cellDate(){return c(this.#e)}set cellDate(e){P(this.#e,e)}#t=v(()=>this.root.opts.isDateUnavailable.current(this.opts.date.current));get isUnavailable(){return c(this.#t)}set isUnavailable(e){P(this.#t,e)}#r=v(()=>an(this.opts.date.current,Ee()));get isDateToday(){return c(this.#r)}set isDateToday(e){P(this.#r,e)}#a=v(()=>!Bt(this.opts.date.current,this.opts.month.current));get isOutsideMonth(){return c(this.#a)}set isOutsideMonth(e){P(this.#a,e)}#n=v(()=>this.root.isOutsideVisibleMonths(this.opts.date.current));get isOutsideVisibleMonths(){return c(this.#n)}set isOutsideVisibleMonths(e){P(this.#n,e)}#s=v(()=>this.root.isDateDisabled(this.opts.date.current)||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current);get isDisabled(){return c(this.#s)}set isDisabled(e){P(this.#s,e)}#u=v(()=>Xe(this.opts.date.current,this.root.opts.placeholder.current));get isFocusedDate(){return c(this.#u)}set isFocusedDate(e){P(this.#u,e)}#h=v(()=>this.root.isDateSelected(this.opts.date.current));get isSelectedDate(){return c(this.#h)}set isSelectedDate(e){P(this.#h,e)}#i=v(()=>this.root.formatter.custom(this.cellDate,{weekday:"long",month:"long",day:"numeric",year:"numeric"}));get labelText(){return c(this.#i)}set labelText(e){P(this.#i,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#o=v(()=>({disabled:this.isDisabled,unavailable:this.isUnavailable,selected:this.isSelectedDate,day:`${this.opts.date.current.day}`}));get snippetProps(){return c(this.#o)}set snippetProps(e){P(this.#o,e)}#l=v(()=>this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current||this.isUnavailable);get ariaDisabled(){return c(this.#l)}set ariaDisabled(e){P(this.#l,e)}#c=v(()=>({"data-unavailable":q(this.isUnavailable),"data-today":this.isDateToday?"":void 0,"data-outside-month":this.isOutsideMonth?"":void 0,"data-outside-visible-months":this.isOutsideVisibleMonths?"":void 0,"data-focused":this.isFocusedDate?"":void 0,"data-selected":q(this.isSelectedDate),"data-value":this.opts.date.current.toString(),"data-type":Nn(this.opts.date.current),"data-disabled":q(this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current)}));get sharedDataAttrs(){return c(this.#c)}set sharedDataAttrs(e){P(this.#c,e)}#d=v(()=>({id:this.opts.id.current,role:"gridcell","aria-selected":ot(this.isSelectedDate),"aria-disabled":ot(this.ariaDisabled),...this.sharedDataAttrs,[this.root.getBitsAttr("cell")]:"",...this.attachment}));get props(){return c(this.#d)}set props(e){P(this.#d,e)}}class vr{static create(e){return new vr(e,_a.get())}opts;cell;attachment;constructor(e,r){this.opts=e,this.cell=r,this.onclick=this.onclick.bind(this),this.attachment=De(this.opts.ref)}#e=v(()=>this.cell.isOutsideMonth&&this.cell.root.opts.disableDaysOutsideMonth.current||this.cell.isDisabled?void 0:this.cell.isFocusedDate?0:-1);onclick(e){this.cell.isDisabled||this.cell.root.handleCellClick(e,this.cell.opts.date.current)}#t=v(()=>({disabled:this.cell.isDisabled,unavailable:this.cell.isUnavailable,selected:this.cell.isSelectedDate,day:`${this.cell.opts.date.current.day}`}));get snippetProps(){return c(this.#t)}set snippetProps(e){P(this.#t,e)}#r=v(()=>({id:this.opts.id.current,role:"button","aria-label":this.cell.labelText,"aria-disabled":ot(this.cell.ariaDisabled),...this.cell.sharedDataAttrs,tabindex:c(this.#e),[this.cell.root.getBitsAttr("day")]:"","data-bits-day":"",onclick:this.onclick,...this.attachment}));get props(){return c(this.#r)}set props(e){P(this.#r,e)}}class gr{static create(e){return new gr(e,Ie.get())}opts;root;#e=v(()=>this.root.isNextButtonDisabled);get isDisabled(){return c(this.#e)}set isDisabled(e){P(this.#e,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=De(this.opts.ref)}onclick(e){this.isDisabled||this.root.nextPage()}#t=v(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Next","aria-disabled":ot(this.isDisabled),"data-disabled":q(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("next-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return c(this.#t)}set props(e){P(this.#t,e)}}class br{static create(e){return new br(e,Ie.get())}opts;root;#e=v(()=>this.root.isPrevButtonDisabled);get isDisabled(){return c(this.#e)}set isDisabled(e){P(this.#e,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=De(this.opts.ref)}onclick(e){this.isDisabled||this.root.prevPage()}#t=v(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Previous","aria-disabled":ot(this.isDisabled),"data-disabled":q(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("prev-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return c(this.#t)}set props(e){P(this.#t,e)}}class yr{static create(e){return new yr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,tabindex:-1,role:"grid","aria-readonly":ot(this.root.opts.readonly.current),"aria-disabled":ot(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),"data-disabled":q(this.root.opts.disabled.current),[this.root.getBitsAttr("grid")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class pr{static create(e){return new pr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-body")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class xr{static create(e){return new xr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-head")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class _r{static create(e){return new _r(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-row")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class Dr{static create(e){return new Dr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("head-cell")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class wr{static create(e){return new wr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("header")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class Mr{static create(e){return new Mr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=De(this.opts.ref)}#e=v(()=>{this.root.opts.locale.current;const e=this.opts.months.current,r=this.opts.monthFormat.current,a=[];for(const n of e){const s=this.root.opts.placeholder.current.set({month:n});let i;typeof r=="function"?i=r(n):i=this.root.formatter.custom(Ye(s),{month:r}),a.push({value:n,label:i})}return a});get monthItems(){return c(this.#e)}set monthItems(e){P(this.#e,e)}#t=v(()=>this.root.opts.placeholder.current.month);get currentMonth(){return c(this.#t)}set currentMonth(e){P(this.#t,e)}#r=v(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return c(this.#r)}set isDisabled(e){P(this.#r,e)}#a=v(()=>({monthItems:this.monthItems,selectedMonthItem:this.monthItems.find(e=>e.value===this.currentMonth)}));get snippetProps(){return c(this.#a)}set snippetProps(e){P(this.#a,e)}onchange(e){if(this.isDisabled)return;const r=e.target,a=parseInt(r.value,10);isNaN(a)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({month:a}))}#n=v(()=>({id:this.opts.id.current,value:this.currentMonth,disabled:this.isDisabled,"data-disabled":q(this.isDisabled),[this.root.getBitsAttr("month-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return c(this.#n)}set props(e){P(this.#n,e)}}class $r{static create(e){return new $r(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=De(this.opts.ref)}#e=v(()=>this.opts.years.current&&this.opts.years.current.length?this.opts.years.current:this.root.defaultYears);get years(){return c(this.#e)}set years(e){P(this.#e,e)}#t=v(()=>{this.root.opts.locale.current;const e=this.opts.yearFormat.current,r=[];for(const a of this.years){const n=this.root.opts.placeholder.current.set({year:a});let s;typeof e=="function"?s=e(a):s=this.root.formatter.custom(Ye(n),{year:e}),r.push({value:a,label:s})}return r});get yearItems(){return c(this.#t)}set yearItems(e){P(this.#t,e)}#r=v(()=>this.root.opts.placeholder.current.year);get currentYear(){return c(this.#r)}set currentYear(e){P(this.#r,e)}#a=v(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return c(this.#a)}set isDisabled(e){P(this.#a,e)}#n=v(()=>({yearItems:this.yearItems,selectedYearItem:this.yearItems.find(e=>e.value===this.currentYear)}));get snippetProps(){return c(this.#n)}set snippetProps(e){P(this.#n,e)}onchange(e){if(this.isDisabled)return;const r=e.target,a=parseInt(r.value,10);isNaN(a)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({year:a}))}#s=v(()=>({id:this.opts.id.current,value:this.currentYear,disabled:this.isDisabled,"data-disabled":q(this.isDisabled),[this.root.getBitsAttr("year-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return c(this.#s)}set props(e){P(this.#s,e)}}var us=I("<div><!></div>");function hs(t,e){T(e,!0);let r=g(e,"id",19,Jr),a=g(e,"ref",15,null),n=g(e,"value",15),s=g(e,"onValueChange",3,Ir),i=g(e,"placeholder",15),l=g(e,"onPlaceholderChange",3,Ir),d=g(e,"weekdayFormat",3,"narrow"),m=g(e,"pagedNavigation",3,!1),y=g(e,"isDateDisabled",3,()=>!1),_=g(e,"isDateUnavailable",3,()=>!1),u=g(e,"fixedWeeks",3,!1),o=g(e,"numberOfMonths",3,1),f=g(e,"calendarLabel",3,"Event"),p=g(e,"disabled",3,!1),$=g(e,"readonly",3,!1),x=g(e,"minValue",3,void 0),k=g(e,"maxValue",3,void 0),C=g(e,"preventDeselect",3,!1),K=g(e,"disableDaysOutsideMonth",3,!0),z=g(e,"initialFocus",3,!1),ce=g(e,"monthFormat",3,"long"),Q=g(e,"yearFormat",3,"numeric"),de=N(e,["$$slots","$$events","$$legacy","child","children","id","ref","value","onValueChange","placeholder","onPlaceholderChange","weekdayFormat","weekStartsOn","pagedNavigation","isDateDisabled","isDateUnavailable","fixedWeeks","numberOfMonths","locale","calendarLabel","disabled","readonly","minValue","maxValue","preventDeselect","type","disableDaysOutsideMonth","initialFocus","maxDays","monthFormat","yearFormat"]);const oe=Ln({defaultValue:n(),minValue:x(),maxValue:k()});function le(){i()===void 0&&i(oe)}le(),pt.pre(()=>i(),()=>{le()});function X(){n()===void 0&&n(e.type==="single"?void 0:[])}X(),pt.pre(()=>n(),()=>{X()});const se=fr.create({id:M(()=>r()),ref:M(()=>a(),j=>a(j)),weekdayFormat:M(()=>d()),weekStartsOn:M(()=>e.weekStartsOn),pagedNavigation:M(()=>m()),isDateDisabled:M(()=>y()),isDateUnavailable:M(()=>_()),fixedWeeks:M(()=>u()),numberOfMonths:M(()=>o()),locale:Va(()=>e.locale),calendarLabel:M(()=>f()),readonly:M(()=>$()),disabled:M(()=>p()),minValue:M(()=>x()),maxValue:M(()=>k()),disableDaysOutsideMonth:M(()=>K()),initialFocus:M(()=>z()),maxDays:M(()=>e.maxDays),placeholder:M(()=>i(),j=>{i(j),l()(j)}),preventDeselect:M(()=>C()),value:M(()=>n(),j=>{n(j),s()(j)}),type:M(()=>e.type),monthFormat:M(()=>ce()),yearFormat:M(()=>Q()),defaultPlaceholder:oe}),Fe=v(()=>we(de,se.props));var ve=w(),Be=b(ve);{var qe=j=>{var ye=w(),Ne=b(ye);{let Ue=v(()=>({props:c(Fe),...se.snippetProps}));L(Ne,()=>e.child,()=>c(Ue))}h(j,ye)},rt=j=>{var ye=us();ne(ye,()=>({...c(Fe)}));var Ne=A(ye);L(Ne,()=>e.children??ae,()=>se.snippetProps),F(ye),h(j,ye)};W(Be,j=>{e.child?j(qe):j(rt,!1)})}h(t,ve),V()}var fs=I("<div><!></div>");function ms(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=vr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);{let p=v(()=>({props:c(l),...i.snippetProps}));L(f,()=>e.child,()=>c(p))}h(u,o)},_=u=>{var o=fs();ne(o,()=>({...c(l)}));var f=A(o);{var p=x=>{var k=w(),C=b(k);L(C,()=>e.children??ae,()=>i.snippetProps),h(x,k)},$=x=>{var k=Ce();H(()=>Z(k,i.cell.opts.date.current.day)),h(x,k)};W(f,x=>{e.children?x(p):x($,!1)})}F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var vs=I("<table><!></table>");function gs(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=yr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=vs();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var bs=I("<tbody><!></tbody>");function ys(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=pr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=bs();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var ps=I("<td><!></td>");function xs(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id","date","month"]);const i=mr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u)),date:M(()=>e.date),month:M(()=>e.month)}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);{let p=v(()=>({props:c(l),...i.snippetProps}));L(f,()=>e.child,()=>c(p))}h(u,o)},_=u=>{var o=ps();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae,()=>i.snippetProps),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var _s=I("<thead><!></thead>");function Ds(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=xr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=_s();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var ws=I("<th><!></th>");function Ms(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Dr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=ws();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var $s=I("<tr><!></tr>");function Cs(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=_r.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=$s();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var Ss=I("<header><!></header>");function Ps(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=wr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=Ss();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var ks=I("<option> </option>"),Is=I("<!>",1),Fs=I("<select><!></select>");function As(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=g(e,"months",19,()=>[1,2,3,4,5,6,7,8,9,10,11,12]),i=g(e,"monthFormat",3,"long"),l=g(e,"disabled",3,!1),d=g(e,"aria-label",3,"Select a month"),m=N(e,["$$slots","$$events","$$legacy","children","child","ref","id","months","monthFormat","disabled","aria-label"]);const y=Mr.create({id:M(()=>n()),ref:M(()=>a(),$=>a($)),months:M(()=>s()),monthFormat:M(()=>i()),disabled:M(()=>!!l())}),_=v(()=>we(m,y.props,{"aria-label":d()}));var u=w(),o=b(u);{var f=$=>{var x=w(),k=b(x);{let C=v(()=>({props:c(_),...y.snippetProps}));L(k,()=>e.child,()=>c(C))}h($,x)},p=$=>{var x=Fs();ne(x,()=>({...c(_)})),Qr(x,()=>{var k=A(x),C=Is(),K=b(C);{var z=Q=>{var de=w(),oe=b(de);L(oe,()=>e.children??ae,()=>y.snippetProps),h(Q,de)},ce=Q=>{var de=w(),oe=b(de);Se(oe,17,()=>y.monthItems,le=>le.value,(le,X)=>{var se=ks(),Fe=A(se,!0);F(se);var ve={};H(()=>{Yt(se,c(X).value===y.currentMonth),Z(Fe,c(X).label),ve!==(ve=c(X).value)&&(se.value=(se.__value=c(X).value)??"")}),h(le,se)}),h(Q,de)};W(K,Q=>{e.children?Q(z):Q(ce,!1)})}h(k,C)}),h($,x)};W(o,$=>{e.child?$(f):$(p,!1)})}h(t,u),V()}var Os=I("<button><!></button>");function Es(t,e){const r=Pe();T(e,!0);let a=g(e,"id",19,()=>ke(r)),n=g(e,"ref",15,null),s=g(e,"tabindex",3,0),i=N(e,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const l=gr.create({id:M(()=>a()),ref:M(()=>n(),o=>n(o))}),d=v(()=>we(i,l.props,{tabindex:s()}));var m=w(),y=b(m);{var _=o=>{var f=w(),p=b(f);L(p,()=>e.child,()=>({props:c(d)})),h(o,f)},u=o=>{var f=Os();ne(f,()=>({...c(d)}));var p=A(f);L(p,()=>e.children??ae),F(f),h(o,f)};W(y,o=>{e.child?o(_):o(u,!1)})}h(t,m),V()}var Ys=I("<button><!></button>");function Bs(t,e){const r=Pe();T(e,!0);let a=g(e,"id",19,()=>ke(r)),n=g(e,"ref",15,null),s=g(e,"tabindex",3,0),i=N(e,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const l=br.create({id:M(()=>a()),ref:M(()=>n(),o=>n(o))}),d=v(()=>we(i,l.props,{tabindex:s()}));var m=w(),y=b(m);{var _=o=>{var f=w(),p=b(f);L(p,()=>e.child,()=>({props:c(d)})),h(o,f)},u=o=>{var f=Ys();ne(f,()=>({...c(d)}));var p=A(f);L(p,()=>e.children??ae),F(f),h(o,f)};W(y,o=>{e.child?o(_):o(u,!1)})}h(t,m),V()}var Ts=I("<option> </option>"),Vs=I("<!>",1),Ls=I("<select><!></select>");function Ns(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=g(e,"yearFormat",3,"numeric"),i=g(e,"disabled",3,!1),l=g(e,"aria-label",3,"Select a year"),d=N(e,["$$slots","$$events","$$legacy","children","child","ref","id","years","yearFormat","disabled","aria-label"]);const m=$r.create({id:M(()=>n()),ref:M(()=>a(),p=>a(p)),years:M(()=>e.years),yearFormat:M(()=>s()),disabled:M(()=>!!i())}),y=v(()=>we(d,m.props,{"aria-label":l()}));var _=w(),u=b(_);{var o=p=>{var $=w(),x=b($);{let k=v(()=>({props:c(y),...m.snippetProps}));L(x,()=>e.child,()=>c(k))}h(p,$)},f=p=>{var $=Ls();ne($,()=>({...c(y)})),Qr($,()=>{var x=A($),k=Vs(),C=b(k);{var K=ce=>{var Q=w(),de=b(Q);L(de,()=>e.children??ae,()=>m.snippetProps),h(ce,Q)},z=ce=>{var Q=w(),de=b(Q);Se(de,17,()=>m.yearItems,oe=>oe.value,(oe,le)=>{var X=Ts(),se=A(X,!0);F(X);var Fe={};H(()=>{Yt(X,c(le).value===m.currentYear),Z(se,c(le).label),Fe!==(Fe=c(le).value)&&(X.value=(X.__value=c(le).value)??"")}),h(oe,X)}),h(ce,Q)};W(C,ce=>{e.children?ce(K):ce(z,!1)})}h(x,k)}),h(p,$)};W(u,p=>{e.child?p(o):p(f,!1)})}h(t,_),V()}var Us=I("<!> <!>",1),Rs=I("<!> <!>",1),Ws=I("<!> <!>",1),Hs=I("<!> <!>",1);function Zs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=g(e,"value",15),n=g(e,"placeholder",15),s=g(e,"weekdayFormat",3,"short"),i=g(e,"buttonVariant",3,"ghost"),l=g(e,"captionLayout",3,"label"),d=g(e,"locale",3,"en-US"),m=g(e,"yearFormat",3,"numeric"),y=g(e,"disableDaysOutsideMonth",3,!1),_=N(e,["$$slots","$$events","$$legacy","ref","value","placeholder","class","weekdayFormat","buttonVariant","captionLayout","locale","months","years","monthFormat","yearFormat","day","disableDaysOutsideMonth"]);const u=v(()=>e.monthFormat?e.monthFormat:l().startsWith("dropdown")?"short":"long");var o=w(),f=b(o);{const p=(x,k)=>{let C=()=>k?.().months,K=()=>k?.().weekdays;var z=w(),ce=b(z);Y(ce,()=>Ks,(Q,de)=>{de(Q,{children:(oe,le)=>{var X=Hs(),se=b(X);Y(se,()=>yi,(ve,Be)=>{Be(ve,{children:(qe,rt)=>{var j=Us(),ye=b(j);Y(ye,()=>ii,(Ue,D)=>{D(Ue,{get variant(){return i()}})});var Ne=B(ye,2);Y(Ne,()=>ai,(Ue,D)=>{D(Ue,{get variant(){return i()}})}),h(qe,j)},$$slots:{default:!0}})});var Fe=B(se,2);Se(Fe,18,C,ve=>ve,(ve,Be,qe)=>{var rt=w(),j=b(rt);Y(j,()=>gi,(ye,Ne)=>{Ne(ye,{children:(Ue,D)=>{var S=Ws(),O=b(S);Y(O,()=>Gs,(U,ue)=>{ue(U,{children:(Me,xe)=>{var re=w(),ie=b(re);Y(ie,()=>Di,(Ae,J)=>{J(Ae,{get captionLayout(){return l()},get months(){return e.months},get monthFormat(){return c(u)},get years(){return e.years},get yearFormat(){return m()},get month(){return Be.value},get locale(){return d()},get monthIndex(){return c(qe)},get placeholder(){return n()},set placeholder(he){n(he)}})}),h(Me,re)},$$slots:{default:!0}})});var G=B(O,2);Y(G,()=>qs,(U,ue)=>{ue(U,{children:(Me,xe)=>{var re=Rs(),ie=b(re);Y(ie,()=>Xs,(J,he)=>{he(J,{children:(Re,We)=>{var ge=w(),Ge=b(ge);Y(Ge,()=>Wr,(Oe,at)=>{at(Oe,{class:"select-none",children:(He,wt)=>{var nt=w(),ct=b(nt);Se(ct,16,K,Je=>Je,(Je,Mt)=>{var st=w(),mt=b(st);Y(mt,()=>ei,(R,ee)=>{ee(R,{children:(be,pe)=>{Qe();var dt=Ce();H($t=>Z(dt,$t),[()=>Mt.slice(0,2)]),h(be,dt)},$$slots:{default:!0}})}),h(Je,st)}),h(He,nt)},$$slots:{default:!0}})}),h(Re,ge)},$$slots:{default:!0}})});var Ae=B(ie,2);Y(Ae,()=>Qs,(J,he)=>{he(J,{children:(Re,We)=>{var ge=w(),Ge=b(ge);Se(Ge,16,()=>Be.weeks,Oe=>Oe,(Oe,at)=>{var He=w(),wt=b(He);Y(wt,()=>Wr,(nt,ct)=>{ct(nt,{class:"mt-2 w-full",children:(Je,Mt)=>{var st=w(),mt=b(st);Se(mt,16,()=>at,R=>R,(R,ee)=>{var be=w(),pe=b(be);Y(pe,()=>zs,(dt,$t)=>{$t(dt,{get date(){return ee},get month(){return Be.value},children:(Ct,Vi)=>{var Cr=w(),Da=b(Cr);{var wa=ut=>{var vt=w(),Vt=b(vt);{let Lt=v(()=>({day:ee,outsideMonth:!rn(ee,Be.value)}));L(Vt,()=>e.day,()=>c(Lt))}h(ut,vt)},Ma=ut=>{var vt=w(),Vt=b(vt);Y(Vt,()=>js,(Lt,$a)=>{$a(Lt,{})}),h(ut,vt)};W(Da,ut=>{e.day?ut(wa):ut(Ma,!1)})}h(Ct,Cr)},$$slots:{default:!0}})}),h(R,be)}),h(Je,st)},$$slots:{default:!0}})}),h(Oe,He)}),h(Re,ge)},$$slots:{default:!0}})}),h(Me,re)},$$slots:{default:!0}})}),h(Ue,S)},$$slots:{default:!0}})}),h(ve,rt)}),h(oe,X)},$$slots:{default:!0}})}),h(x,z)};let $=v(()=>me("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",e.class));Y(f,()=>hs,(x,k)=>{k(x,fe({get weekdayFormat(){return s()},get disableDaysOutsideMonth(){return y()},get class(){return c($)},get locale(){return d()},get monthFormat(){return c(u)},get yearFormat(){return m()}},()=>_,{get value(){return a()},set value(C){a(C)},get ref(){return r()},set ref(C){r(C)},get placeholder(){return n()},set placeholder(C){n(C)},children:p,$$slots:{default:!0}}))})}h(t,o),V()}function zs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md",e.class));Y(s,()=>xs,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function js(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me(sr({variant:"ghost"}),"flex size-(--cell-size) flex-col items-center justify-center gap-1 p-0 leading-none font-normal whitespace-nowrap select-none","[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground","data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground","[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground","data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[unavailable]:text-muted-foreground data-[unavailable]:line-through","dark:hover:text-accent-foreground","focus:border-ring focus:ring-ring/50 focus:relative","[&>span]:text-xs [&>span]:opacity-70",e.class));Y(s,()=>ms,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function qs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("mt-4 flex w-full border-collapse flex-col gap-1",e.class));Y(s,()=>gs,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function Gs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",e.class));Y(s,()=>Ps,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}var Js=I("<div><!></div>");function Ks(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","children"]);var n=Js();ne(n,i=>({class:i,...a}),[()=>me("relative flex flex-col gap-4 md:flex-row",e.class)]);var s=A(n);L(s,()=>e.children??ae),F(n),ar(n,i=>r(i),()=>r()),h(t,n),V()}function Wr(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("flex",e.class));Y(s,()=>Cs,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function Qs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me(e.class));Y(s,()=>ys,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function Xs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me(e.class));Y(s,()=>Ds,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function ei(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal",e.class));Y(s,()=>Ms,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function ti(t,e){T(e,!0);let r=N(e,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"m9 18 6-6-6-6"}]];ir(t,fe({name:"chevron-right"},()=>r,{get iconNode(){return a},children:(n,s)=>{var i=w(),l=b(i);L(l,()=>e.children??ae),h(n,i)},$$slots:{default:!0}})),V()}const ri=t=>{ti(t,{class:"size-4"})};function ai(t,e){T(e,!0);let r=g(e,"ref",15,null),a=g(e,"variant",3,"ghost"),n=N(e,["$$slots","$$events","$$legacy","ref","class","children","variant"]);var s=w(),i=b(s);{let l=v(()=>me(sr({variant:a()}),"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",e.class)),d=v(()=>e.children||ri);Y(i,()=>Es,(m,y)=>{y(m,fe({get class(){return c(l)},get children(){return c(d)}},()=>n,{get ref(){return r()},set ref(_){r(_)}}))})}h(t,s),V()}function ni(t,e){T(e,!0);let r=N(e,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"m15 18-6-6 6-6"}]];ir(t,fe({name:"chevron-left"},()=>r,{get iconNode(){return a},children:(n,s)=>{var i=w(),l=b(i);L(l,()=>e.children??ae),h(n,i)},$$slots:{default:!0}})),V()}const si=t=>{ni(t,{class:"size-4"})};function ii(t,e){T(e,!0);let r=g(e,"ref",15,null),a=g(e,"variant",3,"ghost"),n=N(e,["$$slots","$$events","$$legacy","ref","class","children","variant"]);var s=w(),i=b(s);{let l=v(()=>me(sr({variant:a()}),"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",e.class)),d=v(()=>e.children||si);Y(i,()=>Bs,(m,y)=>{y(m,fe({get class(){return c(l)},get children(){return c(d)}},()=>n,{get ref(){return r()},set ref(_){r(_)}}))})}h(t,s),V()}var oi=I("<option> </option>"),li=I('<select></select> <span class="[&amp;>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>svg]:size-3.5" aria-hidden="true"> <!></span>',1),ci=I("<span><!></span>");function di(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","value","onchange"]);var n=ci(),s=A(n);{const i=(l,d)=>{let m=()=>d?.().props,y=()=>d?.().monthItems,_=()=>d?.().selectedMonthItem;var u=li(),o=b(u);ne(o,()=>({...m(),value:e.value,onchange:e.onchange})),Se(o,21,y,x=>x.value,(x,k)=>{var C=oi(),K=A(C,!0);F(C);var z={};H(()=>{Yt(C,e.value!==void 0?c(k).value===e.value:c(k).value===_().value),Z(K,c(k).label),z!==(z=c(k).value)&&(C.value=(C.__value=c(k).value)??"")}),h(x,C)}),F(o);var f=B(o,2),p=A(f),$=B(p);Kr($,{class:"size-4"}),F(f),H(x=>Z(p,`${x??""} `),[()=>y().find(x=>x.value===e.value)?.label||_().label]),h(l,u)};Y(s,()=>As,(l,d)=>{d(l,fe({class:"dark:bg-popover dark:text-popover-foreground absolute inset-0 opacity-0"},()=>a,{get ref(){return r()},set ref(m){r(m)},child:i,$$slots:{child:!0}}))})}F(n),H(i=>it(n,1,i),[()=>yt(me("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]",e.class))]),h(t,n),V()}var ui=I("<option> </option>"),hi=I('<select></select> <span class="[&amp;>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>svg]:size-3.5" aria-hidden="true"> <!></span>',1),fi=I("<span><!></span>");function mi(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","value"]);var n=fi(),s=A(n);{const i=(l,d)=>{let m=()=>d?.().props,y=()=>d?.().yearItems,_=()=>d?.().selectedYearItem;var u=hi(),o=b(u);ne(o,()=>({...m(),value:e.value})),Se(o,21,y,x=>x.value,(x,k)=>{var C=ui(),K=A(C,!0);F(C);var z={};H(()=>{Yt(C,e.value!==void 0?c(k).value===e.value:c(k).value===_().value),Z(K,c(k).label),z!==(z=c(k).value)&&(C.value=(C.__value=c(k).value)??"")}),h(x,C)}),F(o);var f=B(o,2),p=A(f),$=B(p);Kr($,{class:"size-4"}),F(f),H(x=>Z(p,`${x??""} `),[()=>y().find(x=>x.value===e.value)?.label||_().label]),h(l,u)};Y(s,()=>Ns,(l,d)=>{d(l,fe({class:"dark:bg-popover dark:text-popover-foreground absolute inset-0 opacity-0"},()=>a,{get ref(){return r()},set ref(m){r(m)},child:i,$$slots:{child:!0}}))})}F(n),H(i=>it(n,1,i),[()=>yt(me("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]",e.class))]),h(t,n),V()}var vi=I("<div><!></div>");function gi(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","children"]);var n=vi();ne(n,i=>({...a,class:i}),[()=>me("flex flex-col",e.class)]);var s=A(n);L(s,()=>e.children??ae),F(n),ar(n,i=>r(i),()=>r()),h(t,n),V()}var bi=I("<nav><!></nav>");function yi(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","children"]);var n=bi();ne(n,i=>({...a,class:i}),[()=>me("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",e.class)]);var s=A(n);L(s,()=>e.children??ae),F(n),ar(n,i=>r(i),()=>r()),h(t,n),V()}var pi=I("<!> <!>",1),xi=I("<!> <!>",1),_i=I("<!> <!>",1);function Di(t,e){T(e,!0);const r=f=>{di(f,{get months(){return e.months},get monthFormat(){return e.monthFormat},get value(){return e.month.month},onchange:p=>{if(!n())return;const $=Number.parseInt(p.currentTarget.value),x=n().set({month:$});n(x.subtract({months:s()}))}})},a=f=>{mi(f,{get years(){return e.years},get yearFormat(){return e.yearFormat},get value(){return e.month.year}})};let n=g(e,"placeholder",15),s=g(e,"monthIndex",3,0);function i(f){const p=f.toDate(Ee());return typeof e.yearFormat=="function"?e.yearFormat(p.getFullYear()):new $e(e.locale,{year:e.yearFormat}).format(p)}function l(f){const p=f.toDate(Ee());return typeof e.monthFormat=="function"?e.monthFormat(p.getMonth()+1):new $e(e.locale,{month:e.monthFormat}).format(p)}var d=w(),m=b(d);{var y=f=>{var p=pi(),$=b(p);r($);var x=B($,2);a(x),h(f,p)},_=f=>{var p=xi(),$=b(p);r($);var x=B($,2);{var k=C=>{var K=Ce();H(z=>Z(K,z),[()=>i(n())]),h(C,K)};W(x,C=>{n()&&C(k)})}h(f,p)},u=f=>{var p=_i(),$=b(p);{var x=C=>{var K=Ce();H(z=>Z(K,z),[()=>l(n())]),h(C,K)};W($,C=>{n()&&C(x)})}var k=B($,2);a(k),h(f,p)},o=f=>{var p=Ce();H(($,x)=>Z(p,`${$??""} ${x??""}`),[()=>l(e.month),()=>i(e.month)]),h(f,p)};W(m,f=>{e.captionLayout==="dropdown"?f(y):e.captionLayout==="dropdown-months"?f(_,1):e.captionLayout==="dropdown-years"?f(u,2):f(o,!1)})}h(t,d),V()}function wi(t,e){T(e,!0);let r=N(e,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}]];ir(t,fe({name:"calendar"},()=>r,{get iconNode(){return a},children:(n,s)=>{var i=w(),l=b(i);L(l,()=>e.children??ae),h(n,i)},$$slots:{default:!0}})),V()}var Mi=I(`<button class="text-[10px] text-[var(--sig-accent)]
1
+ import{c as w,a as h,f as I,p as Pe,t as Ce}from"./Bh4-TELa.js";import{av as Sr,aW as Ca,h as Pr,A as F,V as Sa,L as Pa,u as Ft,k as At,C as v,w as c,v as P,q as Hr,n as ka,G as Ia,o as T,D as b,B as V,t as A,F as ae,z as H,x as B,y as Qe}from"./B8ZX7RRG.js";import{s as Z,d as Ke,a as Fa}from"./BWl8aDS_.js";import{p as g,i as W,r as N,c as Y,s as fe,b as ar}from"./VPfMKV-Y.js";import{b4 as nr,G as bt,D as pt,b5 as Aa,l as Oa,J as kr,aD as Zr,aA as zr,aC as jr,aB as qr,E as Ea,S as Ya,q as Ba,u as q,C as Gr,aS as Jr,o as De,K as Ta,w as ot,z as Ir,n as M,b6 as Va,a as ne,m as we,r as ke,e as Se,b7 as Yt,c as me,b8 as sr,I as ir,b9 as yt,s as it,ai as Nt,b1 as E,i as St,ba as La,bb as Na,f as Ut,A as Fr,bc as Ua,bd as Rt,be as Ra}from"./Dhorujc8.js";import{B as ht}from"./DEx_gp59.js";import{i as Wt,d as Wa,S as Ha,a as Za,b as Ar,c as za}from"./B-fm3Qw0.js";import{P as ja,a as qa,b as Ga}from"./Bxr-ZfmV.js";import{s as L}from"./DJzRqvC6.js";import{o as Ja}from"./ZyuAFP8p.js";import{s as Ka}from"./D7vsdCS2.js";import{C as Kr}from"./BfwSK66w.js";let Ht=null;function Qa(){if(Ht===null){var t=Pa("select");t.innerHTML="<option><span>t</span></option>",Ht=t.firstChild?.firstChild?.nodeType===1}return Ht}function Qr(t,e){var r=Pr;Qa()||(Sr(!1),t.textContent="",t.append(Ca("")));try{e()}finally{r&&(Pr?F(t):(Sr(!0),Sa(t)))}}function Zt(t,e){return t-e*Math.floor(t/e)}const Xr=1721426;function Pt(t,e,r,a){e=or(t,e);let n=e-1,s=-2;return r<=2?s=0:It(e)&&(s=-1),Xr-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+s+a)}function It(t){return t%4===0&&(t%100!==0||t%400===0)}function or(t,e){return t==="BC"?1-e:e}function Xa(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const en={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]};class ft{fromJulianDay(e){let r=e,a=r-Xr,n=Math.floor(a/146097),s=Zt(a,146097),i=Math.floor(s/36524),l=Zt(s,36524),d=Math.floor(l/1461),m=Zt(l,1461),y=Math.floor(m/365),_=n*400+i*100+d*4+y+(i!==4&&y!==4?1:0),[u,o]=Xa(_),f=r-Pt(u,o,1,1),p=2;r<Pt(u,o,3,1)?p=0:It(o)&&(p=1);let $=Math.floor(((f+p)*12+373)/367),x=r-Pt(u,o,$,1)+1;return new ze(u,o,$,x)}toJulianDay(e){return Pt(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return en[It(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return It(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"}}const tn={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Xe(t,e){return e=_e(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Bt(t,e){return e=_e(e,t.calendar),t=Xt(t),e=Xt(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function rn(t,e){return ea(t.calendar,e.calendar)&&Bt(t,e)}function ea(t,e){var r,a,n,s;return(s=(n=(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&n!==void 0?n:(a=e.isEqual)===null||a===void 0?void 0:a.call(e,t))!==null&&s!==void 0?s:t.identifier===e.identifier}function an(t,e){return Xe(t,sn(e))}function ta(t,e,r){let a=t.calendar.toJulianDay(t),n=dn(e),s=Math.ceil(a+1-n)%7;return s<0&&(s+=7),s}function nn(t){return Ve(Date.now(),t)}function sn(t){return fn(nn(t))}function ra(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function on(t,e){return Or(t)-Or(e)}function Or(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let zt=null;function Ee(){return zt==null&&(zt=new Intl.DateTimeFormat().resolvedOptions().timeZone),zt}function Xt(t){return t.subtract({days:t.day-1})}function ln(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}const Er=new Map,jt=new Map;function cn(t){if(Intl.Locale){let r=Er.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&Er.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function dn(t){let e=jt.get(t);if(!e){if(Intl.Locale){let a=new Intl.Locale(t);if("getWeekInfo"in a&&(e=a.getWeekInfo(),e))return jt.set(t,e),e.firstDay}let r=cn(t);if(t.includes("-fw-")){let a=t.split("-fw-")[1].split("-")[0];a==="mon"?e={firstDay:1}:a==="tue"?e={firstDay:2}:a==="wed"?e={firstDay:3}:a==="thu"?e={firstDay:4}:a==="fri"?e={firstDay:5}:a==="sat"?e={firstDay:6}:e={firstDay:0}}else t.includes("-ca-iso8601")?e={firstDay:1}:e={firstDay:r&&tn[r]||0};jt.set(t,e)}return e.firstDay}function et(t){t=_e(t,new ft);let e=or(t.era,t.year);return aa(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function aa(t,e,r,a,n,s,i){let l=new Date;return l.setUTCHours(a,n,s,i),l.setUTCFullYear(t,e-1,r),l.getTime()}function xt(t,e){if(e==="UTC")return 0;if(t>0&&e===Ee())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:a,day:n,hour:s,minute:i,second:l}=na(t,e);return aa(r,a,n,s,i,l,0)-Math.floor(t/1e3)*1e3}const Yr=new Map;function na(t,e){let r=Yr.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Yr.set(e,r));let a=r.formatToParts(new Date(t)),n={};for(let s of a)s.type!=="literal"&&(n[s.type]=s.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}const Ot=864e5;function un(t,e){let r=et(t),a=r-xt(r-Ot,e),n=r-xt(r+Ot,e);return sa(t,e,a,n)}function sa(t,e,r,a){return(r===a?[r]:[r,a]).filter(s=>hn(t,e,s))}function hn(t,e,r){let a=na(r,e);return t.year===a.year&&t.month===a.month&&t.day===a.day&&t.hour===a.hour&&t.minute===a.minute&&t.second===a.second}function Te(t,e,r="compatible"){let a=tt(t);if(e==="UTC")return et(a);if(e===Ee()&&r==="compatible"){a=_e(a,new ft);let d=new Date,m=or(a.era,a.year);return d.setFullYear(m,a.month-1,a.day),d.setHours(a.hour,a.minute,a.second,a.millisecond),d.getTime()}let n=et(a),s=xt(n-Ot,e),i=xt(n+Ot,e),l=sa(a,e,n-s,n-i);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(n-s,n-i);case"compatible":case"later":return Math.max(n-s,n-i);case"reject":throw new RangeError("No such absolute time found")}}function ia(t,e,r="compatible"){return new Date(Te(t,e,r))}function Ve(t,e){let r=xt(t,e),a=new Date(t+r),n=a.getUTCFullYear(),s=a.getUTCMonth()+1,i=a.getUTCDate(),l=a.getUTCHours(),d=a.getUTCMinutes(),m=a.getUTCSeconds(),y=a.getUTCMilliseconds();return new Le(n<1?"BC":"AD",n<1?-n+1:n,s,i,e,r,l,d,m,y)}function fn(t){return new ze(t.calendar,t.era,t.year,t.month,t.day)}function tt(t,e){let r=0,a=0,n=0,s=0;if("timeZone"in t)({hour:r,minute:a,second:n,millisecond:s}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:a,second:n,millisecond:s}=e),new je(t.calendar,t.era,t.year,t.month,t.day,r,a,n,s)}function _e(t,e){if(ea(t.calendar,e))return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),a=t.copy();return a.calendar=e,a.era=r.era,a.year=r.year,a.month=r.month,a.day=r.day,lt(a),a}function mn(t,e,r){if(t instanceof Le)return t.timeZone===e?t:gn(t,e);let a=Te(t,e,r);return Ve(a,e)}function vn(t){let e=et(t)-t.offset;return new Date(e)}function gn(t,e){let r=et(t)-t.offset;return _e(Ve(r,e),t.calendar)}const gt=36e5;function Tt(t,e){let r=t.copy(),a="hour"in r?xn(r,e):0;er(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,tr(r),oa(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=a,bn(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let n=r.calendar.getYearsInEra(r);if(r.year>n){var s,i;let d=(s=(i=r.calendar).isInverseEra)===null||s===void 0?void 0:s.call(i,r);r.year=n,r.month=d?1:r.calendar.getMonthsInYear(r),r.day=d?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function er(t,e){var r,a;!((r=(a=t.calendar).isInverseEra)===null||r===void 0)&&r.call(a,t)&&(e=-e),t.year+=e}function tr(t){for(;t.month<1;)er(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,er(t,1)}function bn(t){for(;t.day<1;)t.month--,tr(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,tr(t)}function oa(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function lt(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),oa(t)}function la(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function ca(t,e){return Tt(t,la(e))}function lr(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),lt(r),r}function Et(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),pn(r),r}function yn(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=kt(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=kt(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=kt(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=kt(t.hour,24),e}function pn(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function kt(t,e){let r=t%e;return r<0&&(r+=e),r}function xn(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,yn(t)}function cr(t,e,r,a){let n=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),d=l.indexOf(t.era);if(d<0)throw new Error("Invalid era: "+t.era);d=Ze(d,r,0,l.length-1,a?.round),n.era=l[d],lt(n);break}case"year":var s,i;!((s=(i=n.calendar).isInverseEra)===null||s===void 0)&&s.call(i,n)&&(r=-r),n.year=Ze(t.year,r,-1/0,9999,a?.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=Ze(t.month,r,1,t.calendar.getMonthsInYear(t),a?.round);break;case"day":n.day=Ze(t.day,r,1,t.calendar.getDaysInMonth(t),a?.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),lt(n),n}function da(t,e,r,a){let n=t.copy();switch(e){case"hour":{let s=t.hour,i=0,l=23;if(a?.hourCycle===12){let d=s>=12;i=d?12:0,l=d?23:11}n.hour=Ze(s,r,i,l,a?.round);break}case"minute":n.minute=Ze(t.minute,r,0,59,a?.round);break;case"second":n.second=Ze(t.second,r,0,59,a?.round);break;case"millisecond":n.millisecond=Ze(t.millisecond,r,0,999,a?.round);break;default:throw new Error("Unsupported field "+e)}return n}function Ze(t,e,r,a,n=!1){if(n){t+=Math.sign(e),t<r&&(t=a);let s=Math.abs(e);e>0?t=Math.ceil(t/s)*s:t=Math.floor(t/s)*s,t>a&&(t=r)}else t+=e,t<r?t=a-(r-t-1):t>a&&(t=r+(t-a-1));return t}function ua(t,e){let r;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let n=Tt(tt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});r=Te(n,t.timeZone)}else r=et(t)-t.offset;r+=e.milliseconds||0,r+=(e.seconds||0)*1e3,r+=(e.minutes||0)*6e4,r+=(e.hours||0)*36e5;let a=Ve(r,t.timeZone);return _e(a,t.calendar)}function _n(t,e){return ua(t,la(e))}function Dn(t,e,r,a){switch(e){case"hour":{let n=0,s=23;if(a?.hourCycle===12){let f=t.hour>=12;n=f?12:0,s=f?23:11}let i=tt(t),l=_e(Et(i,{hour:n}),new ft),d=[Te(l,t.timeZone,"earlier"),Te(l,t.timeZone,"later")].filter(f=>Ve(f,t.timeZone).day===l.day)[0],m=_e(Et(i,{hour:s}),new ft),y=[Te(m,t.timeZone,"earlier"),Te(m,t.timeZone,"later")].filter(f=>Ve(f,t.timeZone).day===m.day).pop(),_=et(t)-t.offset,u=Math.floor(_/gt),o=_%gt;return _=Ze(u,r,Math.floor(d/gt),Math.floor(y/gt),a?.round)*gt+o,_e(Ve(_,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return da(t,e,r,a);case"era":case"year":case"month":case"day":{let n=cr(tt(t),e,r,a),s=Te(n,t.timeZone);return _e(Ve(s,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function wn(t,e,r){let a=tt(t),n=Et(lr(a,e),e);if(n.compare(a)===0)return t;let s=Te(n,t.timeZone,r);return _e(Ve(s,t.timeZone),t.calendar)}const Mn=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,$n=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Cn=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?(?::?(\d{2}))?)?\[(.*?)\]$/,ha=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function fa(t){let e=t.match(Mn);if(!e)throw ha.test(t)?new Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+t);let r=new ze(te(e[1],0,9999),te(e[2],1,12),1);return r.day=te(e[3],1,r.calendar.getDaysInMonth(r)),r}function ma(t){let e=t.match($n);if(!e)throw ha.test(t)?new Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+t);let r=te(e[1],-9999,9999),a=r<1?"BC":"AD",n=new je(a,r<1?-r+1:r,te(e[2],1,12),1,e[4]?te(e[4],0,23):0,e[5]?te(e[5],0,59):0,e[6]?te(e[6],0,59):0,e[7]?te(e[7],0,1/0)*1e3:0);return n.day=te(e[3],0,n.calendar.getDaysInMonth(n)),n}function va(t,e){let r=t.match(Cn);if(!r)throw new Error("Invalid ISO 8601 date time string: "+t);let a=te(r[1],-9999,9999),n=a<1?"BC":"AD",s=new Le(n,a<1?-a+1:a,te(r[2],1,12),1,r[11],0,r[4]?te(r[4],0,23):0,r[5]?te(r[5],0,59):0,r[6]?te(r[6],0,59):0,r[7]?te(r[7],0,1/0)*1e3:0);s.day=te(r[3],0,s.calendar.getDaysInMonth(s));let i=tt(s),l;if(r[8]){let y=te(r[8],-23,23);var d,m;if(s.offset=Math.sign(y)*(Math.abs(y)*36e5+te((d=r[9])!==null&&d!==void 0?d:"0",0,59)*6e4+te((m=r[10])!==null&&m!==void 0?m:"0",0,59)*1e3),l=et(s)-s.offset,!un(i,s.timeZone).includes(l))throw new Error(`Offset ${ba(s.offset)} is invalid for ${dr(s)} in ${s.timeZone}`)}else l=Te(tt(i),s.timeZone,e);return Ve(l,s.timeZone)}function te(t,e,r){let a=Number(t);if(a<e||a>r)throw new RangeError(`Value out of range: ${e} <= ${a} <= ${r}`);return a}function Sn(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function ga(t){let e=_e(t,new ft),r;return e.era==="BC"?r=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):r=String(e.year).padStart(4,"0"),`${r}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function dr(t){return`${ga(t)}T${Sn(t)}`}function ba(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let r=Math.floor(t/36e5),a=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),s=`${e}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`;return n!==0&&(s+=`:${String(n).padStart(2,"0")}`),s}function Pn(t){return`${dr(t)}${ba(t.offset)}[${t.timeZone}]`}function kn(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ur(t,e,r){kn(t,e),e.set(t,r)}function hr(t){let e=typeof t[0]=="object"?t.shift():new ft,r;if(typeof t[0]=="string")r=t.shift();else{let i=e.getEras();r=i[i.length-1]}let a=t.shift(),n=t.shift(),s=t.shift();return[e,r,a,n,s]}var In=new WeakMap;class ze{copy(){return this.era?new ze(this.calendar,this.era,this.year,this.month,this.day):new ze(this.calendar,this.year,this.month,this.day)}add(e){return Tt(this,e)}subtract(e){return ca(this,e)}set(e){return lr(this,e)}cycle(e,r,a){return cr(this,e,r,a)}toDate(e){return ia(this,e)}toString(){return ga(this)}compare(e){return ra(this,e)}constructor(...e){ur(this,In,{writable:!0,value:void 0});let[r,a,n,s,i]=hr(e);this.calendar=r,this.era=a,this.year=n,this.month=s,this.day=i,lt(this)}}var Fn=new WeakMap;class je{copy(){return this.era?new je(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new je(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Tt(this,e)}subtract(e){return ca(this,e)}set(e){return lr(Et(this,e),e)}cycle(e,r,a){switch(e){case"era":case"year":case"month":case"day":return cr(this,e,r,a);default:return da(this,e,r,a)}}toDate(e,r){return ia(this,e,r)}toString(){return dr(this)}compare(e){let r=ra(this,e);return r===0?on(this,tt(e)):r}constructor(...e){ur(this,Fn,{writable:!0,value:void 0});let[r,a,n,s,i]=hr(e);this.calendar=r,this.era=a,this.year=n,this.month=s,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,lt(this)}}var An=new WeakMap;class Le{copy(){return this.era?new Le(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Le(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return ua(this,e)}subtract(e){return _n(this,e)}set(e,r){return wn(this,e,r)}cycle(e,r,a){return Dn(this,e,r,a)}toDate(){return vn(this)}toString(){return Pn(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-mn(e,this.timeZone).toDate().getTime()}constructor(...e){ur(this,An,{writable:!0,value:void 0});let[r,a,n,s,i]=hr(e),l=e.shift(),d=e.shift();this.calendar=r,this.era=a,this.year=n,this.month=s,this.day=i,this.timeZone=l,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,lt(this)}}let qt=new Map;class $e{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(r)}`}formatRangeToParts(e,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let a=this.formatter.formatToParts(e),n=this.formatter.formatToParts(r);return[...a.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return Yn()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Bn(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}constructor(e,r={}){this.formatter=ya(e,r),this.options=r}}const On={true:{ja:"h11"},false:{}};function ya(t,e={}){if(typeof e.hour12=="boolean"&&En()){e={...e};let n=On[String(e.hour12)][t.split("-")[0]],s=e.hour12?"h12":"h23";e.hourCycle=n??s,delete e.hour12}let r=t+(e?Object.entries(e).sort((n,s)=>n[0]<s[0]?-1:1).join():"");if(qt.has(r))return qt.get(r);let a=new Intl.DateTimeFormat(t,e);return qt.set(r,a),a}let Gt=null;function En(){return Gt==null&&(Gt=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Gt}let Jt=null;function Yn(){return Jt==null&&(Jt=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Jt}function Bn(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),t+=(t.includes("-u-")?"":"-u")+"-nu-latn";let r=ya(t,{...e,timeZone:void 0}),a=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),n=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(a===0&&n===23)return"h23";if(a===24&&n===23)return"h24";if(a===0&&n===11)return"h11";if(a===12&&n===11)return"h12";throw new Error("Unexpected hour cycle result")}function Tn(t){if(!nr||!t)return null;let e=t.querySelector("[data-bits-announcer]");const r=n=>{const s=t.createElement("div");return s.role="log",s.ariaLive=n,s.setAttribute("aria-relevant","additions"),s};if(!bt(e)){const n=t.createElement("div");n.style.cssText=Ka,n.setAttribute("data-bits-announcer",""),n.appendChild(r("assertive")),n.appendChild(r("polite")),e=n,t.body.insertBefore(e,t.body.firstChild)}return{getLog:n=>{if(!bt(e))return null;const s=e.querySelector(`[aria-live="${n}"]`);return bt(s)?s:null}}}function Br(t){const e=Tn(t);function r(a,n="assertive",s=7500){if(!e||!nr||!t)return;const i=e.getLog(n),l=t.createElement("div");return typeof a=="number"?a=a.toString():a===null?a="Empty":a=a.trim(),l.innerText=a,n==="assertive"?i?.replaceChildren(l):i?.appendChild(l),setTimeout(()=>{l.remove()},s)}return{announce:r}}const Vn={defaultValue:void 0,granularity:"day"};function Ln(t){const e={...Vn,...t},{defaultValue:r,granularity:a,minValue:n,maxValue:s}=e;if(Array.isArray(r)&&r.length)return r[r.length-1];if(r&&!Array.isArray(r))return r;{let i=new Date;n&&i<n.toDate(Ee())?i=n.toDate(Ee()):s&&i>s.toDate(Ee())&&(i=s.toDate(Ee()));const l=i.getFullYear(),d=i.getMonth()+1,m=i.getDate();return["hour","minute","second"].includes(a??"day")?new je(l,d,m,0,0,0):new ze(l,d,m)}}function pa(t,e){let r;return e instanceof Le?r=va(t):e instanceof je?r=ma(t):r=fa(t),r.calendar!==e.calendar?_e(r,e.calendar):r}function Ye(t,e=Ee()){return t instanceof Le?t.toDate():t.toDate(e)}function Nn(t){if(t instanceof ze)return"date";if(t instanceof je)return"datetime";if(t instanceof Le)return"zoneddatetime";throw new Error("Unknown date type")}function Un(t,e){switch(e){case"date":return fa(t);case"datetime":return ma(t);case"zoneddatetime":return va(t);default:throw new Error(`Unknown date type: ${e}`)}}function Rn(t){return t instanceof je}function xa(t){return t instanceof Le}function rr(t){return Rn(t)||xa(t)}function Wn(t){if(t instanceof Date){const e=t.getFullYear(),r=t.getMonth()+1;return new Date(e,r,0).getDate()}else return t.set({day:100}).day}function _t(t,e){return t.compare(e)<0}function Hn(t,e){return t.compare(e)>0}function Tr(t,e,r){const a=ta(t,r);return e>a?t.subtract({days:a+7-e}):e===a?t:t.subtract({days:a-e})}function Vr(t,e,r){const a=ta(t,r),n=e===0?6:e-1;return a===n?t:a>n?t.add({days:7-a+n}):t.add({days:n-a})}const Zn={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function zn(t){let e=t.initialLocale;function r(o){e=o}function a(){return e}function n(o,f){return new $e(e,f).format(o)}function s(o,f=!0){return rr(o)&&f?n(Ye(o),{dateStyle:"long",timeStyle:"long"}):n(Ye(o),{dateStyle:"long"})}function i(o){if(typeof t.monthFormat.current!="function"&&typeof t.yearFormat.current!="function")return new $e(e,{month:t.monthFormat.current,year:t.yearFormat.current}).format(o);const f=typeof t.monthFormat.current=="function"?t.monthFormat.current(o.getMonth()+1):new $e(e,{month:t.monthFormat.current}).format(o),p=typeof t.yearFormat.current=="function"?t.yearFormat.current(o.getFullYear()):new $e(e,{year:t.yearFormat.current}).format(o);return`${f} ${p}`}function l(o){return new $e(e,{month:"long"}).format(o)}function d(o){return new $e(e,{year:"numeric"}).format(o)}function m(o,f){return xa(o)?new $e(e,{...f,timeZone:o.timeZone}).formatToParts(Ye(o)):new $e(e,f).formatToParts(Ye(o))}function y(o,f="narrow"){return new $e(e,{weekday:f}).format(o)}function _(o,f=void 0){return new $e(e,{hour:"numeric",minute:"numeric",hourCycle:f===24?"h23":void 0}).formatToParts(o).find(x=>x.type==="dayPeriod")?.value==="PM"?"PM":"AM"}function u(o,f,p={}){const $={...Zn,...p},k=m(o,$).find(C=>C.type===f);return k?k.value:""}return{setLocale:r,getLocale:a,fullMonth:l,fullYear:d,fullMonthAndYear:i,toParts:m,custom:n,part:u,dayPeriod:_,selectedDate:s,dayOfWeek:y}}function jn(t){return!(!bt(t)||!t.hasAttribute("data-bits-day"))}function Lr(t,e){const r=[];let a=t.add({days:1});const n=e;for(;a.compare(n)<0;)r.push(a),a=a.add({days:1});return r}function Kt(t){const{dateObj:e,weekStartsOn:r,fixedWeeks:a,locale:n}=t,s=Wn(e),i=Array.from({length:s},($,x)=>e.set({day:x+1})),l=Xt(e),d=ln(e),m=r!==void 0?Tr(l,r,"en-US"):Tr(l,0,n),y=r!==void 0?Vr(d,r,"en-US"):Vr(d,0,n),_=Lr(m.subtract({days:1}),l),u=Lr(d,y.add({days:1})),o=_.length+i.length+u.length;if(a&&o<42){const $=42-o;let x=u[u.length-1];x||(x=e.add({months:1}).set({day:1}));let k=$;u.length===0&&(k=$-1,u.push(x));const C=Array.from({length:k},(K,z)=>{const ce=z+1;return x.add({days:ce})});u.push(...C)}const f=_.concat(i,u),p=Wa(f,7);return{value:e,dates:f,weeks:p}}function Dt(t){const{numberOfMonths:e,dateObj:r,...a}=t,n=[];if(!e||e===1)return n.push(Kt({...a,dateObj:r})),n;n.push(Kt({...a,dateObj:r}));for(let s=1;s<e;s++){const i=r.add({months:s});n.push(Kt({...a,dateObj:i}))}return n}function Qt(t){return t?Array.from(t.querySelectorAll("[data-bits-day]:not([data-disabled]):not([data-outside-visible-months])")).filter(r=>bt(r)):[]}function Nr(t,e){const r=t.getAttribute("data-value");r&&(e.current=pa(r,e.current))}function qn({node:t,add:e,placeholder:r,calendarNode:a,isPrevButtonDisabled:n,isNextButtonDisabled:s,months:i,numberOfMonths:l}){const d=Qt(a);if(!d.length)return;const y=d.indexOf(t)+e;if(Wt(y,d)){const _=d[y];return Nr(_,r),_.focus()}if(y<0){if(n)return;const _=i[0]?.value;if(!_)return;r.current=_.subtract({months:l}),kr(()=>{const u=Qt(a);if(!u.length)return;const o=u.length-Math.abs(y);if(Wt(o,u)){const f=u[o];return Nr(f,r),f.focus()}})}if(y>=d.length){if(s)return;const _=i[0]?.value;if(!_)return;r.current=_.add({months:l}),kr(()=>{const u=Qt(a);if(!u.length)return;const o=y-d.length;if(Wt(o,u))return u[o].focus()})}}const Ur=[Zr,zr,jr,qr],Rr=[Ea,Ya];function Gn({event:t,handleCellClick:e,shiftFocus:r,placeholderValue:a}){const n=t.target;if(!jn(n)||!Ur.includes(t.key)&&!Rr.includes(t.key))return;t.preventDefault();const s={[Zr]:7,[zr]:-7,[jr]:-1,[qr]:1};if(Ur.includes(t.key)){const i=s[t.key];i!==void 0&&r(n,i)}if(Rr.includes(t.key)){const i=n.getAttribute("data-value");if(!i)return;e(t,pa(i,a))}}function Jn({months:t,setMonths:e,numberOfMonths:r,pagedNavigation:a,weekStartsOn:n,locale:s,fixedWeeks:i,setPlaceholder:l}){const d=t[0]?.value;if(d)if(a)l(d.add({months:r}));else{const m=d.add({months:1}),y=Dt({dateObj:m,weekStartsOn:n,locale:s,fixedWeeks:i,numberOfMonths:r});l(m),e(y)}}function Kn({months:t,setMonths:e,numberOfMonths:r,pagedNavigation:a,weekStartsOn:n,locale:s,fixedWeeks:i,setPlaceholder:l}){const d=t[0]?.value;if(d)if(a)l(d.subtract({months:r}));else{const m=d.subtract({months:1}),y=Dt({dateObj:m,weekStartsOn:n,locale:s,fixedWeeks:i,numberOfMonths:r});l(m),e(y)}}function Qn({months:t,formatter:e,weekdayFormat:r}){if(!t.length)return[];const n=t[0].weeks[0];return n?n.map(s=>e.dayOfWeek(Ye(s),r)):[]}function Xn(t){Ft(()=>{const e=t.weekStartsOn.current,r=t.locale.current,a=t.fixedWeeks.current,n=t.numberOfMonths.current;At(()=>{const s=t.placeholder.current;if(!s)return;const i={weekStartsOn:e,locale:r,fixedWeeks:a,numberOfMonths:n};t.setMonths(Dt({...i,dateObj:s}))})})}function es({calendarNode:t,label:e,accessibleHeadingId:r}){const a=Aa(t),n=a.createElement("div");n.style.cssText=Oa({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"});const s=a.createElement("div");return s.textContent=e,s.id=r,s.role="heading",s.ariaLevel="2",t.insertBefore(n,t.firstChild),n.appendChild(s),()=>{const i=a.getElementById(r);i&&(n.parentElement?.removeChild(n),i.remove())}}function ts({placeholder:t,getVisibleMonths:e,weekStartsOn:r,locale:a,fixedWeeks:n,numberOfMonths:s,setMonths:i}){Ft(()=>{t.current,At(()=>{if(e().some(d=>Bt(d,t.current)))return;const l={weekStartsOn:r.current,locale:a.current,fixedWeeks:n.current,numberOfMonths:s.current};i(Dt({...l,dateObj:t.current}))})})}function rs({maxValue:t,months:e,disabled:r}){if(!t||!e.length)return!1;if(r)return!0;const a=e[e.length-1]?.value;if(!a)return!1;const n=a.add({months:1}).set({day:1});return Hn(n,t)}function as({minValue:t,months:e,disabled:r}){if(!t||!e.length)return!1;if(r)return!0;const a=e[0]?.value;if(!a)return!1;const n=a.subtract({months:1}).set({day:35});return _t(n,t)}function ns({months:t,locale:e,formatter:r}){if(!t.length)return"";if(e!==r.getLocale()&&r.setLocale(e),t.length===1){const y=Ye(t[0].value);return`${r.fullMonthAndYear(y)}`}const a=Ye(t[0].value),n=Ye(t[t.length-1].value),s=r.fullMonth(a),i=r.fullMonth(n),l=r.fullYear(a),d=r.fullYear(n);return l===d?`${s} - ${i} ${d}`:`${s} ${l} - ${i} ${d}`}function ss({fullCalendarLabel:t,id:e,isInvalid:r,disabled:a,readonly:n}){return{id:e,role:"application","aria-label":t,"data-invalid":q(r),"data-disabled":q(a),"data-readonly":q(n)}}function is(t){if(!nr)return;const e=Array.from(t.querySelectorAll("[data-bits-day]:not([aria-disabled=true])"));if(e.length===0)return;const r=e[0],a=r?.getAttribute("data-value"),n=r?.getAttribute("data-type");if(!(!a||!n))return Un(a,n)}function os({ref:t,placeholder:e,defaultPlaceholder:r,minValue:a,maxValue:n,isDateDisabled:s}){function i(l){return!!(s.current(l)||a.current&&_t(l,a.current)||n.current&&_t(n.current,l))}pt(()=>t.current,()=>{t.current&&e.current&&Xe(e.current,r)&&i(r)&&(e.current=is(t.current)??r)})}function ls(t,e){return!t||!e?t:rr(t)&&rr(e)?t.set({hour:e.hour,minute:e.minute,millisecond:e.millisecond,second:e.second}):t}const cs=Ba({component:"calendar",parts:["root","grid","cell","next-button","prev-button","day","grid-body","grid-head","grid-row","head-cell","header","heading","month-select","year-select"]});function ds(t){const e=new Date().getFullYear(),r=Math.max(t.placeholderYear,e);let a,n;if(t.minValue)a=t.minValue.year;else{const i=r-100;a=t.placeholderYear<i?t.placeholderYear-10:i}t.maxValue?n=t.maxValue.year:n=r+10,a>n&&(a=n);const s=n-a+1;return Array.from({length:s},(i,l)=>a+l)}const Ie=new Gr("Calendar.Root | RangeCalender.Root");class fr{static create(e){return Ie.set(new fr(e))}opts;#e=v(()=>this.months.map(e=>e.value));get visibleMonths(){return c(this.#e)}set visibleMonths(e){P(this.#e,e)}formatter;accessibleHeadingId=Jr();domContext;attachment;#t=Hr(ka([]));get months(){return c(this.#t)}set months(e){P(this.#t,e,!0)}announcer;constructor(e){this.opts=e,this.attachment=De(this.opts.ref),this.domContext=new Ta(e.ref),this.announcer=Br(null),this.formatter=zn({initialLocale:this.opts.locale.current,monthFormat:this.opts.monthFormat,yearFormat:this.opts.yearFormat}),this.setMonths=this.setMonths.bind(this),this.nextPage=this.nextPage.bind(this),this.prevPage=this.prevPage.bind(this),this.prevYear=this.prevYear.bind(this),this.nextYear=this.nextYear.bind(this),this.setYear=this.setYear.bind(this),this.setMonth=this.setMonth.bind(this),this.isOutsideVisibleMonths=this.isOutsideVisibleMonths.bind(this),this.isDateDisabled=this.isDateDisabled.bind(this),this.isDateSelected=this.isDateSelected.bind(this),this.shiftFocus=this.shiftFocus.bind(this),this.handleCellClick=this.handleCellClick.bind(this),this.handleMultipleUpdate=this.handleMultipleUpdate.bind(this),this.handleSingleUpdate=this.handleSingleUpdate.bind(this),this.onkeydown=this.onkeydown.bind(this),this.getBitsAttr=this.getBitsAttr.bind(this),Ja(()=>{this.announcer=Br(this.domContext.getDocument())}),this.months=Dt({dateObj:this.opts.placeholder.current,weekStartsOn:this.opts.weekStartsOn.current,locale:this.opts.locale.current,fixedWeeks:this.opts.fixedWeeks.current,numberOfMonths:this.opts.numberOfMonths.current}),this.#s(),this.#u(),this.#h(),ts({placeholder:this.opts.placeholder,getVisibleMonths:()=>this.visibleMonths,weekStartsOn:this.opts.weekStartsOn,locale:this.opts.locale,fixedWeeks:this.opts.fixedWeeks,numberOfMonths:this.opts.numberOfMonths,setMonths:r=>this.months=r}),Xn({fixedWeeks:this.opts.fixedWeeks,locale:this.opts.locale,numberOfMonths:this.opts.numberOfMonths,placeholder:this.opts.placeholder,setMonths:this.setMonths,weekStartsOn:this.opts.weekStartsOn}),pt(()=>this.fullCalendarLabel,r=>{const a=this.domContext.getElementById(this.accessibleHeadingId);a&&(a.textContent=r)}),pt(()=>this.opts.value.current,()=>{const r=this.opts.value.current;if(Array.isArray(r)&&r.length){const a=r[r.length-1];a&&this.opts.placeholder.current!==a&&(this.opts.placeholder.current=a)}else!Array.isArray(r)&&r&&this.opts.placeholder.current!==r&&(this.opts.placeholder.current=r)}),os({placeholder:e.placeholder,defaultPlaceholder:e.defaultPlaceholder,isDateDisabled:e.isDateDisabled,maxValue:e.maxValue,minValue:e.minValue,ref:e.ref})}setMonths(e){this.months=e}#r=v(()=>Qn({months:this.months,formatter:this.formatter,weekdayFormat:this.opts.weekdayFormat.current}));get weekdays(){return c(this.#r)}set weekdays(e){P(this.#r,e)}#a=v(()=>At(()=>this.opts.placeholder.current.year));get initialPlaceholderYear(){return c(this.#a)}set initialPlaceholderYear(e){P(this.#a,e)}#n=v(()=>ds({minValue:this.opts.minValue.current,maxValue:this.opts.maxValue.current,placeholderYear:this.initialPlaceholderYear}));get defaultYears(){return c(this.#n)}set defaultYears(e){P(this.#n,e)}#s(){Ft(()=>{if(At(()=>this.opts.initialFocus.current)){const r=this.opts.ref.current?.querySelector("[data-focused]");r&&r.focus()}})}#u(){Ft(()=>this.opts.ref.current?es({calendarNode:this.opts.ref.current,label:this.fullCalendarLabel,accessibleHeadingId:this.accessibleHeadingId}):void 0)}#h(){Ia(()=>{this.formatter.getLocale()!==this.opts.locale.current&&this.formatter.setLocale(this.opts.locale.current)})}nextPage(){Jn({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:e=>this.opts.placeholder.current=e,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}prevPage(){Kn({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:e=>this.opts.placeholder.current=e,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}nextYear(){this.opts.placeholder.current=this.opts.placeholder.current.add({years:1})}prevYear(){this.opts.placeholder.current=this.opts.placeholder.current.subtract({years:1})}setYear(e){this.opts.placeholder.current=this.opts.placeholder.current.set({year:e})}setMonth(e){this.opts.placeholder.current=this.opts.placeholder.current.set({month:e})}#i=v(()=>rs({maxValue:this.opts.maxValue.current,months:this.months,disabled:this.opts.disabled.current}));get isNextButtonDisabled(){return c(this.#i)}set isNextButtonDisabled(e){P(this.#i,e)}#o=v(()=>as({minValue:this.opts.minValue.current,months:this.months,disabled:this.opts.disabled.current}));get isPrevButtonDisabled(){return c(this.#o)}set isPrevButtonDisabled(e){P(this.#o,e)}#l=v(()=>{const e=this.opts.value.current,r=this.opts.isDateDisabled.current,a=this.opts.isDateUnavailable.current;if(Array.isArray(e)){if(!e.length)return!1;for(const n of e)if(r(n)||a(n))return!0}else{if(!e)return!1;if(r(e)||a(e))return!0}return!1});get isInvalid(){return c(this.#l)}set isInvalid(e){P(this.#l,e)}#c=v(()=>(this.opts.monthFormat.current,this.opts.yearFormat.current,ns({months:this.months,formatter:this.formatter,locale:this.opts.locale.current})));get headingValue(){return c(this.#c)}set headingValue(e){P(this.#c,e)}#d=v(()=>`${this.opts.calendarLabel.current} ${this.headingValue}`);get fullCalendarLabel(){return c(this.#d)}set fullCalendarLabel(e){P(this.#d,e)}isOutsideVisibleMonths(e){return!this.visibleMonths.some(r=>Bt(e,r))}isDateDisabled(e){if(this.opts.isDateDisabled.current(e)||this.opts.disabled.current)return!0;const r=this.opts.minValue.current,a=this.opts.maxValue.current;return!!(r&&_t(e,r)||a&&_t(a,e))}isDateSelected(e){const r=this.opts.value.current;return Array.isArray(r)?r.some(a=>Xe(a,e)):r?Xe(r,e):!1}shiftFocus(e,r){return qn({node:e,add:r,placeholder:this.opts.placeholder,calendarNode:this.opts.ref.current,isPrevButtonDisabled:this.isPrevButtonDisabled,isNextButtonDisabled:this.isNextButtonDisabled,months:this.months,numberOfMonths:this.opts.numberOfMonths.current})}#f(e){if(this.opts.type.current!=="multiple"||!this.opts.maxDays.current)return!0;const r=e.length;return!(this.opts.maxDays.current&&r>this.opts.maxDays.current)}handleCellClick(e,r){if(this.opts.readonly.current||this.opts.isDateDisabled.current?.(r)||this.opts.isDateUnavailable.current?.(r))return;const a=this.opts.value.current;if(this.opts.type.current==="multiple")(Array.isArray(a)||a===void 0)&&(this.opts.value.current=this.handleMultipleUpdate(a,r));else if(!Array.isArray(a)){const s=this.handleSingleUpdate(a,r);s?this.announcer.announce(`Selected Date: ${this.formatter.selectedDate(s,!1)}`,"polite"):this.announcer.announce("Selected date is now empty.","polite",5e3),this.opts.value.current=ls(s,a),s!==void 0&&this.opts.onDateSelect?.current?.()}}handleMultipleUpdate(e,r){if(!e){const s=[r];return this.#f(s)?s:[r]}if(!Array.isArray(e))return;const a=e.findIndex(s=>Xe(s,r)),n=this.opts.preventDeselect.current;if(a===-1){const s=[...e,r];return this.#f(s)?s:[r]}else{if(n)return e;{const s=e.filter(i=>!Xe(i,r));if(!s.length){this.opts.placeholder.current=r;return}return s}}}handleSingleUpdate(e,r){if(!e)return r;if(!this.opts.preventDeselect.current&&Xe(e,r)){this.opts.placeholder.current=r;return}return r}onkeydown(e){Gn({event:e,handleCellClick:this.handleCellClick,shiftFocus:this.shiftFocus,placeholderValue:this.opts.placeholder.current})}#m=v(()=>({months:this.months,weekdays:this.weekdays}));get snippetProps(){return c(this.#m)}set snippetProps(e){P(this.#m,e)}getBitsAttr=e=>cs.getAttr(e);#v=v(()=>({...ss({fullCalendarLabel:this.fullCalendarLabel,id:this.opts.id.current,isInvalid:this.isInvalid,disabled:this.opts.disabled.current,readonly:this.opts.readonly.current}),[this.getBitsAttr("root")]:"",onkeydown:this.onkeydown,...this.attachment}));get props(){return c(this.#v)}set props(e){P(this.#v,e)}}const _a=new Gr("Calendar.Cell | RangeCalendar.Cell");class mr{static create(e){return _a.set(new mr(e,Ie.get()))}opts;root;#e=v(()=>Ye(this.opts.date.current));get cellDate(){return c(this.#e)}set cellDate(e){P(this.#e,e)}#t=v(()=>this.root.opts.isDateUnavailable.current(this.opts.date.current));get isUnavailable(){return c(this.#t)}set isUnavailable(e){P(this.#t,e)}#r=v(()=>an(this.opts.date.current,Ee()));get isDateToday(){return c(this.#r)}set isDateToday(e){P(this.#r,e)}#a=v(()=>!Bt(this.opts.date.current,this.opts.month.current));get isOutsideMonth(){return c(this.#a)}set isOutsideMonth(e){P(this.#a,e)}#n=v(()=>this.root.isOutsideVisibleMonths(this.opts.date.current));get isOutsideVisibleMonths(){return c(this.#n)}set isOutsideVisibleMonths(e){P(this.#n,e)}#s=v(()=>this.root.isDateDisabled(this.opts.date.current)||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current);get isDisabled(){return c(this.#s)}set isDisabled(e){P(this.#s,e)}#u=v(()=>Xe(this.opts.date.current,this.root.opts.placeholder.current));get isFocusedDate(){return c(this.#u)}set isFocusedDate(e){P(this.#u,e)}#h=v(()=>this.root.isDateSelected(this.opts.date.current));get isSelectedDate(){return c(this.#h)}set isSelectedDate(e){P(this.#h,e)}#i=v(()=>this.root.formatter.custom(this.cellDate,{weekday:"long",month:"long",day:"numeric",year:"numeric"}));get labelText(){return c(this.#i)}set labelText(e){P(this.#i,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#o=v(()=>({disabled:this.isDisabled,unavailable:this.isUnavailable,selected:this.isSelectedDate,day:`${this.opts.date.current.day}`}));get snippetProps(){return c(this.#o)}set snippetProps(e){P(this.#o,e)}#l=v(()=>this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current||this.isUnavailable);get ariaDisabled(){return c(this.#l)}set ariaDisabled(e){P(this.#l,e)}#c=v(()=>({"data-unavailable":q(this.isUnavailable),"data-today":this.isDateToday?"":void 0,"data-outside-month":this.isOutsideMonth?"":void 0,"data-outside-visible-months":this.isOutsideVisibleMonths?"":void 0,"data-focused":this.isFocusedDate?"":void 0,"data-selected":q(this.isSelectedDate),"data-value":this.opts.date.current.toString(),"data-type":Nn(this.opts.date.current),"data-disabled":q(this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current)}));get sharedDataAttrs(){return c(this.#c)}set sharedDataAttrs(e){P(this.#c,e)}#d=v(()=>({id:this.opts.id.current,role:"gridcell","aria-selected":ot(this.isSelectedDate),"aria-disabled":ot(this.ariaDisabled),...this.sharedDataAttrs,[this.root.getBitsAttr("cell")]:"",...this.attachment}));get props(){return c(this.#d)}set props(e){P(this.#d,e)}}class vr{static create(e){return new vr(e,_a.get())}opts;cell;attachment;constructor(e,r){this.opts=e,this.cell=r,this.onclick=this.onclick.bind(this),this.attachment=De(this.opts.ref)}#e=v(()=>this.cell.isOutsideMonth&&this.cell.root.opts.disableDaysOutsideMonth.current||this.cell.isDisabled?void 0:this.cell.isFocusedDate?0:-1);onclick(e){this.cell.isDisabled||this.cell.root.handleCellClick(e,this.cell.opts.date.current)}#t=v(()=>({disabled:this.cell.isDisabled,unavailable:this.cell.isUnavailable,selected:this.cell.isSelectedDate,day:`${this.cell.opts.date.current.day}`}));get snippetProps(){return c(this.#t)}set snippetProps(e){P(this.#t,e)}#r=v(()=>({id:this.opts.id.current,role:"button","aria-label":this.cell.labelText,"aria-disabled":ot(this.cell.ariaDisabled),...this.cell.sharedDataAttrs,tabindex:c(this.#e),[this.cell.root.getBitsAttr("day")]:"","data-bits-day":"",onclick:this.onclick,...this.attachment}));get props(){return c(this.#r)}set props(e){P(this.#r,e)}}class gr{static create(e){return new gr(e,Ie.get())}opts;root;#e=v(()=>this.root.isNextButtonDisabled);get isDisabled(){return c(this.#e)}set isDisabled(e){P(this.#e,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=De(this.opts.ref)}onclick(e){this.isDisabled||this.root.nextPage()}#t=v(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Next","aria-disabled":ot(this.isDisabled),"data-disabled":q(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("next-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return c(this.#t)}set props(e){P(this.#t,e)}}class br{static create(e){return new br(e,Ie.get())}opts;root;#e=v(()=>this.root.isPrevButtonDisabled);get isDisabled(){return c(this.#e)}set isDisabled(e){P(this.#e,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=De(this.opts.ref)}onclick(e){this.isDisabled||this.root.prevPage()}#t=v(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Previous","aria-disabled":ot(this.isDisabled),"data-disabled":q(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("prev-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return c(this.#t)}set props(e){P(this.#t,e)}}class yr{static create(e){return new yr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,tabindex:-1,role:"grid","aria-readonly":ot(this.root.opts.readonly.current),"aria-disabled":ot(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),"data-disabled":q(this.root.opts.disabled.current),[this.root.getBitsAttr("grid")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class pr{static create(e){return new pr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-body")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class xr{static create(e){return new xr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-head")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class _r{static create(e){return new _r(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-row")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class Dr{static create(e){return new Dr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("head-cell")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class wr{static create(e){return new wr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=De(this.opts.ref)}#e=v(()=>({id:this.opts.id.current,"data-disabled":q(this.root.opts.disabled.current),"data-readonly":q(this.root.opts.readonly.current),[this.root.getBitsAttr("header")]:"",...this.attachment}));get props(){return c(this.#e)}set props(e){P(this.#e,e)}}class Mr{static create(e){return new Mr(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=De(this.opts.ref)}#e=v(()=>{this.root.opts.locale.current;const e=this.opts.months.current,r=this.opts.monthFormat.current,a=[];for(const n of e){const s=this.root.opts.placeholder.current.set({month:n});let i;typeof r=="function"?i=r(n):i=this.root.formatter.custom(Ye(s),{month:r}),a.push({value:n,label:i})}return a});get monthItems(){return c(this.#e)}set monthItems(e){P(this.#e,e)}#t=v(()=>this.root.opts.placeholder.current.month);get currentMonth(){return c(this.#t)}set currentMonth(e){P(this.#t,e)}#r=v(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return c(this.#r)}set isDisabled(e){P(this.#r,e)}#a=v(()=>({monthItems:this.monthItems,selectedMonthItem:this.monthItems.find(e=>e.value===this.currentMonth)}));get snippetProps(){return c(this.#a)}set snippetProps(e){P(this.#a,e)}onchange(e){if(this.isDisabled)return;const r=e.target,a=parseInt(r.value,10);isNaN(a)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({month:a}))}#n=v(()=>({id:this.opts.id.current,value:this.currentMonth,disabled:this.isDisabled,"data-disabled":q(this.isDisabled),[this.root.getBitsAttr("month-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return c(this.#n)}set props(e){P(this.#n,e)}}class $r{static create(e){return new $r(e,Ie.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=De(this.opts.ref)}#e=v(()=>this.opts.years.current&&this.opts.years.current.length?this.opts.years.current:this.root.defaultYears);get years(){return c(this.#e)}set years(e){P(this.#e,e)}#t=v(()=>{this.root.opts.locale.current;const e=this.opts.yearFormat.current,r=[];for(const a of this.years){const n=this.root.opts.placeholder.current.set({year:a});let s;typeof e=="function"?s=e(a):s=this.root.formatter.custom(Ye(n),{year:e}),r.push({value:a,label:s})}return r});get yearItems(){return c(this.#t)}set yearItems(e){P(this.#t,e)}#r=v(()=>this.root.opts.placeholder.current.year);get currentYear(){return c(this.#r)}set currentYear(e){P(this.#r,e)}#a=v(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return c(this.#a)}set isDisabled(e){P(this.#a,e)}#n=v(()=>({yearItems:this.yearItems,selectedYearItem:this.yearItems.find(e=>e.value===this.currentYear)}));get snippetProps(){return c(this.#n)}set snippetProps(e){P(this.#n,e)}onchange(e){if(this.isDisabled)return;const r=e.target,a=parseInt(r.value,10);isNaN(a)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({year:a}))}#s=v(()=>({id:this.opts.id.current,value:this.currentYear,disabled:this.isDisabled,"data-disabled":q(this.isDisabled),[this.root.getBitsAttr("year-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return c(this.#s)}set props(e){P(this.#s,e)}}var us=I("<div><!></div>");function hs(t,e){T(e,!0);let r=g(e,"id",19,Jr),a=g(e,"ref",15,null),n=g(e,"value",15),s=g(e,"onValueChange",3,Ir),i=g(e,"placeholder",15),l=g(e,"onPlaceholderChange",3,Ir),d=g(e,"weekdayFormat",3,"narrow"),m=g(e,"pagedNavigation",3,!1),y=g(e,"isDateDisabled",3,()=>!1),_=g(e,"isDateUnavailable",3,()=>!1),u=g(e,"fixedWeeks",3,!1),o=g(e,"numberOfMonths",3,1),f=g(e,"calendarLabel",3,"Event"),p=g(e,"disabled",3,!1),$=g(e,"readonly",3,!1),x=g(e,"minValue",3,void 0),k=g(e,"maxValue",3,void 0),C=g(e,"preventDeselect",3,!1),K=g(e,"disableDaysOutsideMonth",3,!0),z=g(e,"initialFocus",3,!1),ce=g(e,"monthFormat",3,"long"),Q=g(e,"yearFormat",3,"numeric"),de=N(e,["$$slots","$$events","$$legacy","child","children","id","ref","value","onValueChange","placeholder","onPlaceholderChange","weekdayFormat","weekStartsOn","pagedNavigation","isDateDisabled","isDateUnavailable","fixedWeeks","numberOfMonths","locale","calendarLabel","disabled","readonly","minValue","maxValue","preventDeselect","type","disableDaysOutsideMonth","initialFocus","maxDays","monthFormat","yearFormat"]);const oe=Ln({defaultValue:n(),minValue:x(),maxValue:k()});function le(){i()===void 0&&i(oe)}le(),pt.pre(()=>i(),()=>{le()});function X(){n()===void 0&&n(e.type==="single"?void 0:[])}X(),pt.pre(()=>n(),()=>{X()});const se=fr.create({id:M(()=>r()),ref:M(()=>a(),j=>a(j)),weekdayFormat:M(()=>d()),weekStartsOn:M(()=>e.weekStartsOn),pagedNavigation:M(()=>m()),isDateDisabled:M(()=>y()),isDateUnavailable:M(()=>_()),fixedWeeks:M(()=>u()),numberOfMonths:M(()=>o()),locale:Va(()=>e.locale),calendarLabel:M(()=>f()),readonly:M(()=>$()),disabled:M(()=>p()),minValue:M(()=>x()),maxValue:M(()=>k()),disableDaysOutsideMonth:M(()=>K()),initialFocus:M(()=>z()),maxDays:M(()=>e.maxDays),placeholder:M(()=>i(),j=>{i(j),l()(j)}),preventDeselect:M(()=>C()),value:M(()=>n(),j=>{n(j),s()(j)}),type:M(()=>e.type),monthFormat:M(()=>ce()),yearFormat:M(()=>Q()),defaultPlaceholder:oe}),Fe=v(()=>we(de,se.props));var ve=w(),Be=b(ve);{var qe=j=>{var ye=w(),Ne=b(ye);{let Ue=v(()=>({props:c(Fe),...se.snippetProps}));L(Ne,()=>e.child,()=>c(Ue))}h(j,ye)},rt=j=>{var ye=us();ne(ye,()=>({...c(Fe)}));var Ne=A(ye);L(Ne,()=>e.children??ae,()=>se.snippetProps),F(ye),h(j,ye)};W(Be,j=>{e.child?j(qe):j(rt,!1)})}h(t,ve),V()}var fs=I("<div><!></div>");function ms(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=vr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);{let p=v(()=>({props:c(l),...i.snippetProps}));L(f,()=>e.child,()=>c(p))}h(u,o)},_=u=>{var o=fs();ne(o,()=>({...c(l)}));var f=A(o);{var p=x=>{var k=w(),C=b(k);L(C,()=>e.children??ae,()=>i.snippetProps),h(x,k)},$=x=>{var k=Ce();H(()=>Z(k,i.cell.opts.date.current.day)),h(x,k)};W(f,x=>{e.children?x(p):x($,!1)})}F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var vs=I("<table><!></table>");function gs(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=yr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=vs();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var bs=I("<tbody><!></tbody>");function ys(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=pr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=bs();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var ps=I("<td><!></td>");function xs(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id","date","month"]);const i=mr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u)),date:M(()=>e.date),month:M(()=>e.month)}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);{let p=v(()=>({props:c(l),...i.snippetProps}));L(f,()=>e.child,()=>c(p))}h(u,o)},_=u=>{var o=ps();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae,()=>i.snippetProps),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var _s=I("<thead><!></thead>");function Ds(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=xr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=_s();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var ws=I("<th><!></th>");function Ms(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Dr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=ws();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var $s=I("<tr><!></tr>");function Cs(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=_r.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=$s();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var Ss=I("<header><!></header>");function Ps(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=N(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=wr.create({id:M(()=>n()),ref:M(()=>a(),u=>a(u))}),l=v(()=>we(s,i.props));var d=w(),m=b(d);{var y=u=>{var o=w(),f=b(o);L(f,()=>e.child,()=>({props:c(l)})),h(u,o)},_=u=>{var o=Ss();ne(o,()=>({...c(l)}));var f=A(o);L(f,()=>e.children??ae),F(o),h(u,o)};W(m,u=>{e.child?u(y):u(_,!1)})}h(t,d),V()}var ks=I("<option> </option>"),Is=I("<!>",1),Fs=I("<select><!></select>");function As(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=g(e,"months",19,()=>[1,2,3,4,5,6,7,8,9,10,11,12]),i=g(e,"monthFormat",3,"long"),l=g(e,"disabled",3,!1),d=g(e,"aria-label",3,"Select a month"),m=N(e,["$$slots","$$events","$$legacy","children","child","ref","id","months","monthFormat","disabled","aria-label"]);const y=Mr.create({id:M(()=>n()),ref:M(()=>a(),$=>a($)),months:M(()=>s()),monthFormat:M(()=>i()),disabled:M(()=>!!l())}),_=v(()=>we(m,y.props,{"aria-label":d()}));var u=w(),o=b(u);{var f=$=>{var x=w(),k=b(x);{let C=v(()=>({props:c(_),...y.snippetProps}));L(k,()=>e.child,()=>c(C))}h($,x)},p=$=>{var x=Fs();ne(x,()=>({...c(_)})),Qr(x,()=>{var k=A(x),C=Is(),K=b(C);{var z=Q=>{var de=w(),oe=b(de);L(oe,()=>e.children??ae,()=>y.snippetProps),h(Q,de)},ce=Q=>{var de=w(),oe=b(de);Se(oe,17,()=>y.monthItems,le=>le.value,(le,X)=>{var se=ks(),Fe=A(se,!0);F(se);var ve={};H(()=>{Yt(se,c(X).value===y.currentMonth),Z(Fe,c(X).label),ve!==(ve=c(X).value)&&(se.value=(se.__value=c(X).value)??"")}),h(le,se)}),h(Q,de)};W(K,Q=>{e.children?Q(z):Q(ce,!1)})}h(k,C)}),h($,x)};W(o,$=>{e.child?$(f):$(p,!1)})}h(t,u),V()}var Os=I("<button><!></button>");function Es(t,e){const r=Pe();T(e,!0);let a=g(e,"id",19,()=>ke(r)),n=g(e,"ref",15,null),s=g(e,"tabindex",3,0),i=N(e,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const l=gr.create({id:M(()=>a()),ref:M(()=>n(),o=>n(o))}),d=v(()=>we(i,l.props,{tabindex:s()}));var m=w(),y=b(m);{var _=o=>{var f=w(),p=b(f);L(p,()=>e.child,()=>({props:c(d)})),h(o,f)},u=o=>{var f=Os();ne(f,()=>({...c(d)}));var p=A(f);L(p,()=>e.children??ae),F(f),h(o,f)};W(y,o=>{e.child?o(_):o(u,!1)})}h(t,m),V()}var Ys=I("<button><!></button>");function Bs(t,e){const r=Pe();T(e,!0);let a=g(e,"id",19,()=>ke(r)),n=g(e,"ref",15,null),s=g(e,"tabindex",3,0),i=N(e,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const l=br.create({id:M(()=>a()),ref:M(()=>n(),o=>n(o))}),d=v(()=>we(i,l.props,{tabindex:s()}));var m=w(),y=b(m);{var _=o=>{var f=w(),p=b(f);L(p,()=>e.child,()=>({props:c(d)})),h(o,f)},u=o=>{var f=Ys();ne(f,()=>({...c(d)}));var p=A(f);L(p,()=>e.children??ae),F(f),h(o,f)};W(y,o=>{e.child?o(_):o(u,!1)})}h(t,m),V()}var Ts=I("<option> </option>"),Vs=I("<!>",1),Ls=I("<select><!></select>");function Ns(t,e){const r=Pe();T(e,!0);let a=g(e,"ref",15,null),n=g(e,"id",19,()=>ke(r)),s=g(e,"yearFormat",3,"numeric"),i=g(e,"disabled",3,!1),l=g(e,"aria-label",3,"Select a year"),d=N(e,["$$slots","$$events","$$legacy","children","child","ref","id","years","yearFormat","disabled","aria-label"]);const m=$r.create({id:M(()=>n()),ref:M(()=>a(),p=>a(p)),years:M(()=>e.years),yearFormat:M(()=>s()),disabled:M(()=>!!i())}),y=v(()=>we(d,m.props,{"aria-label":l()}));var _=w(),u=b(_);{var o=p=>{var $=w(),x=b($);{let k=v(()=>({props:c(y),...m.snippetProps}));L(x,()=>e.child,()=>c(k))}h(p,$)},f=p=>{var $=Ls();ne($,()=>({...c(y)})),Qr($,()=>{var x=A($),k=Vs(),C=b(k);{var K=ce=>{var Q=w(),de=b(Q);L(de,()=>e.children??ae,()=>m.snippetProps),h(ce,Q)},z=ce=>{var Q=w(),de=b(Q);Se(de,17,()=>m.yearItems,oe=>oe.value,(oe,le)=>{var X=Ts(),se=A(X,!0);F(X);var Fe={};H(()=>{Yt(X,c(le).value===m.currentYear),Z(se,c(le).label),Fe!==(Fe=c(le).value)&&(X.value=(X.__value=c(le).value)??"")}),h(oe,X)}),h(ce,Q)};W(C,ce=>{e.children?ce(K):ce(z,!1)})}h(x,k)}),h(p,$)};W(u,p=>{e.child?p(o):p(f,!1)})}h(t,_),V()}var Us=I("<!> <!>",1),Rs=I("<!> <!>",1),Ws=I("<!> <!>",1),Hs=I("<!> <!>",1);function Zs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=g(e,"value",15),n=g(e,"placeholder",15),s=g(e,"weekdayFormat",3,"short"),i=g(e,"buttonVariant",3,"ghost"),l=g(e,"captionLayout",3,"label"),d=g(e,"locale",3,"en-US"),m=g(e,"yearFormat",3,"numeric"),y=g(e,"disableDaysOutsideMonth",3,!1),_=N(e,["$$slots","$$events","$$legacy","ref","value","placeholder","class","weekdayFormat","buttonVariant","captionLayout","locale","months","years","monthFormat","yearFormat","day","disableDaysOutsideMonth"]);const u=v(()=>e.monthFormat?e.monthFormat:l().startsWith("dropdown")?"short":"long");var o=w(),f=b(o);{const p=(x,k)=>{let C=()=>k?.().months,K=()=>k?.().weekdays;var z=w(),ce=b(z);Y(ce,()=>Ks,(Q,de)=>{de(Q,{children:(oe,le)=>{var X=Hs(),se=b(X);Y(se,()=>yi,(ve,Be)=>{Be(ve,{children:(qe,rt)=>{var j=Us(),ye=b(j);Y(ye,()=>ii,(Ue,D)=>{D(Ue,{get variant(){return i()}})});var Ne=B(ye,2);Y(Ne,()=>ai,(Ue,D)=>{D(Ue,{get variant(){return i()}})}),h(qe,j)},$$slots:{default:!0}})});var Fe=B(se,2);Se(Fe,18,C,ve=>ve,(ve,Be,qe)=>{var rt=w(),j=b(rt);Y(j,()=>gi,(ye,Ne)=>{Ne(ye,{children:(Ue,D)=>{var S=Ws(),O=b(S);Y(O,()=>Gs,(U,ue)=>{ue(U,{children:(Me,xe)=>{var re=w(),ie=b(re);Y(ie,()=>Di,(Ae,J)=>{J(Ae,{get captionLayout(){return l()},get months(){return e.months},get monthFormat(){return c(u)},get years(){return e.years},get yearFormat(){return m()},get month(){return Be.value},get locale(){return d()},get monthIndex(){return c(qe)},get placeholder(){return n()},set placeholder(he){n(he)}})}),h(Me,re)},$$slots:{default:!0}})});var G=B(O,2);Y(G,()=>qs,(U,ue)=>{ue(U,{children:(Me,xe)=>{var re=Rs(),ie=b(re);Y(ie,()=>Xs,(J,he)=>{he(J,{children:(Re,We)=>{var ge=w(),Ge=b(ge);Y(Ge,()=>Wr,(Oe,at)=>{at(Oe,{class:"select-none",children:(He,wt)=>{var nt=w(),ct=b(nt);Se(ct,16,K,Je=>Je,(Je,Mt)=>{var st=w(),mt=b(st);Y(mt,()=>ei,(R,ee)=>{ee(R,{children:(be,pe)=>{Qe();var dt=Ce();H($t=>Z(dt,$t),[()=>Mt.slice(0,2)]),h(be,dt)},$$slots:{default:!0}})}),h(Je,st)}),h(He,nt)},$$slots:{default:!0}})}),h(Re,ge)},$$slots:{default:!0}})});var Ae=B(ie,2);Y(Ae,()=>Qs,(J,he)=>{he(J,{children:(Re,We)=>{var ge=w(),Ge=b(ge);Se(Ge,16,()=>Be.weeks,Oe=>Oe,(Oe,at)=>{var He=w(),wt=b(He);Y(wt,()=>Wr,(nt,ct)=>{ct(nt,{class:"mt-2 w-full",children:(Je,Mt)=>{var st=w(),mt=b(st);Se(mt,16,()=>at,R=>R,(R,ee)=>{var be=w(),pe=b(be);Y(pe,()=>zs,(dt,$t)=>{$t(dt,{get date(){return ee},get month(){return Be.value},children:(Ct,Vi)=>{var Cr=w(),Da=b(Cr);{var wa=ut=>{var vt=w(),Vt=b(vt);{let Lt=v(()=>({day:ee,outsideMonth:!rn(ee,Be.value)}));L(Vt,()=>e.day,()=>c(Lt))}h(ut,vt)},Ma=ut=>{var vt=w(),Vt=b(vt);Y(Vt,()=>js,(Lt,$a)=>{$a(Lt,{})}),h(ut,vt)};W(Da,ut=>{e.day?ut(wa):ut(Ma,!1)})}h(Ct,Cr)},$$slots:{default:!0}})}),h(R,be)}),h(Je,st)},$$slots:{default:!0}})}),h(Oe,He)}),h(Re,ge)},$$slots:{default:!0}})}),h(Me,re)},$$slots:{default:!0}})}),h(Ue,S)},$$slots:{default:!0}})}),h(ve,rt)}),h(oe,X)},$$slots:{default:!0}})}),h(x,z)};let $=v(()=>me("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",e.class));Y(f,()=>hs,(x,k)=>{k(x,fe({get weekdayFormat(){return s()},get disableDaysOutsideMonth(){return y()},get class(){return c($)},get locale(){return d()},get monthFormat(){return c(u)},get yearFormat(){return m()}},()=>_,{get value(){return a()},set value(C){a(C)},get ref(){return r()},set ref(C){r(C)},get placeholder(){return n()},set placeholder(C){n(C)},children:p,$$slots:{default:!0}}))})}h(t,o),V()}function zs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md",e.class));Y(s,()=>xs,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function js(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me(sr({variant:"ghost"}),"flex size-(--cell-size) flex-col items-center justify-center gap-1 p-0 leading-none font-normal whitespace-nowrap select-none","[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground","data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground","[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground","data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[unavailable]:text-muted-foreground data-[unavailable]:line-through","dark:hover:text-accent-foreground","focus:border-ring focus:ring-ring/50 focus:relative","[&>span]:text-xs [&>span]:opacity-70",e.class));Y(s,()=>ms,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function qs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("mt-4 flex w-full border-collapse flex-col gap-1",e.class));Y(s,()=>gs,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function Gs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",e.class));Y(s,()=>Ps,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}var Js=I("<div><!></div>");function Ks(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","children"]);var n=Js();ne(n,i=>({class:i,...a}),[()=>me("relative flex flex-col gap-4 md:flex-row",e.class)]);var s=A(n);L(s,()=>e.children??ae),F(n),ar(n,i=>r(i),()=>r()),h(t,n),V()}function Wr(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("flex",e.class));Y(s,()=>Cs,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function Qs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me(e.class));Y(s,()=>ys,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function Xs(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me(e.class));Y(s,()=>Ds,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function ei(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class"]);var n=w(),s=b(n);{let i=v(()=>me("text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal",e.class));Y(s,()=>Ms,(l,d)=>{d(l,fe({get class(){return c(i)}},()=>a,{get ref(){return r()},set ref(m){r(m)}}))})}h(t,n),V()}function ti(t,e){T(e,!0);let r=N(e,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"m9 18 6-6-6-6"}]];ir(t,fe({name:"chevron-right"},()=>r,{get iconNode(){return a},children:(n,s)=>{var i=w(),l=b(i);L(l,()=>e.children??ae),h(n,i)},$$slots:{default:!0}})),V()}const ri=t=>{ti(t,{class:"size-4"})};function ai(t,e){T(e,!0);let r=g(e,"ref",15,null),a=g(e,"variant",3,"ghost"),n=N(e,["$$slots","$$events","$$legacy","ref","class","children","variant"]);var s=w(),i=b(s);{let l=v(()=>me(sr({variant:a()}),"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",e.class)),d=v(()=>e.children||ri);Y(i,()=>Es,(m,y)=>{y(m,fe({get class(){return c(l)},get children(){return c(d)}},()=>n,{get ref(){return r()},set ref(_){r(_)}}))})}h(t,s),V()}function ni(t,e){T(e,!0);let r=N(e,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"m15 18-6-6 6-6"}]];ir(t,fe({name:"chevron-left"},()=>r,{get iconNode(){return a},children:(n,s)=>{var i=w(),l=b(i);L(l,()=>e.children??ae),h(n,i)},$$slots:{default:!0}})),V()}const si=t=>{ni(t,{class:"size-4"})};function ii(t,e){T(e,!0);let r=g(e,"ref",15,null),a=g(e,"variant",3,"ghost"),n=N(e,["$$slots","$$events","$$legacy","ref","class","children","variant"]);var s=w(),i=b(s);{let l=v(()=>me(sr({variant:a()}),"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",e.class)),d=v(()=>e.children||si);Y(i,()=>Bs,(m,y)=>{y(m,fe({get class(){return c(l)},get children(){return c(d)}},()=>n,{get ref(){return r()},set ref(_){r(_)}}))})}h(t,s),V()}var oi=I("<option> </option>"),li=I('<select></select> <span class="[&amp;>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>svg]:size-3.5" aria-hidden="true"> <!></span>',1),ci=I("<span><!></span>");function di(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","value","onchange"]);var n=ci(),s=A(n);{const i=(l,d)=>{let m=()=>d?.().props,y=()=>d?.().monthItems,_=()=>d?.().selectedMonthItem;var u=li(),o=b(u);ne(o,()=>({...m(),value:e.value,onchange:e.onchange})),Se(o,21,y,x=>x.value,(x,k)=>{var C=oi(),K=A(C,!0);F(C);var z={};H(()=>{Yt(C,e.value!==void 0?c(k).value===e.value:c(k).value===_().value),Z(K,c(k).label),z!==(z=c(k).value)&&(C.value=(C.__value=c(k).value)??"")}),h(x,C)}),F(o);var f=B(o,2),p=A(f),$=B(p);Kr($,{class:"size-4"}),F(f),H(x=>Z(p,`${x??""} `),[()=>y().find(x=>x.value===e.value)?.label||_().label]),h(l,u)};Y(s,()=>As,(l,d)=>{d(l,fe({class:"dark:bg-popover dark:text-popover-foreground absolute inset-0 opacity-0"},()=>a,{get ref(){return r()},set ref(m){r(m)},child:i,$$slots:{child:!0}}))})}F(n),H(i=>it(n,1,i),[()=>yt(me("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]",e.class))]),h(t,n),V()}var ui=I("<option> </option>"),hi=I('<select></select> <span class="[&amp;>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>svg]:size-3.5" aria-hidden="true"> <!></span>',1),fi=I("<span><!></span>");function mi(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","value"]);var n=fi(),s=A(n);{const i=(l,d)=>{let m=()=>d?.().props,y=()=>d?.().yearItems,_=()=>d?.().selectedYearItem;var u=hi(),o=b(u);ne(o,()=>({...m(),value:e.value})),Se(o,21,y,x=>x.value,(x,k)=>{var C=ui(),K=A(C,!0);F(C);var z={};H(()=>{Yt(C,e.value!==void 0?c(k).value===e.value:c(k).value===_().value),Z(K,c(k).label),z!==(z=c(k).value)&&(C.value=(C.__value=c(k).value)??"")}),h(x,C)}),F(o);var f=B(o,2),p=A(f),$=B(p);Kr($,{class:"size-4"}),F(f),H(x=>Z(p,`${x??""} `),[()=>y().find(x=>x.value===e.value)?.label||_().label]),h(l,u)};Y(s,()=>Ns,(l,d)=>{d(l,fe({class:"dark:bg-popover dark:text-popover-foreground absolute inset-0 opacity-0"},()=>a,{get ref(){return r()},set ref(m){r(m)},child:i,$$slots:{child:!0}}))})}F(n),H(i=>it(n,1,i),[()=>yt(me("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]",e.class))]),h(t,n),V()}var vi=I("<div><!></div>");function gi(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","children"]);var n=vi();ne(n,i=>({...a,class:i}),[()=>me("flex flex-col",e.class)]);var s=A(n);L(s,()=>e.children??ae),F(n),ar(n,i=>r(i),()=>r()),h(t,n),V()}var bi=I("<nav><!></nav>");function yi(t,e){T(e,!0);let r=g(e,"ref",15,null),a=N(e,["$$slots","$$events","$$legacy","ref","class","children"]);var n=bi();ne(n,i=>({...a,class:i}),[()=>me("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",e.class)]);var s=A(n);L(s,()=>e.children??ae),F(n),ar(n,i=>r(i),()=>r()),h(t,n),V()}var pi=I("<!> <!>",1),xi=I("<!> <!>",1),_i=I("<!> <!>",1);function Di(t,e){T(e,!0);const r=f=>{di(f,{get months(){return e.months},get monthFormat(){return e.monthFormat},get value(){return e.month.month},onchange:p=>{if(!n())return;const $=Number.parseInt(p.currentTarget.value),x=n().set({month:$});n(x.subtract({months:s()}))}})},a=f=>{mi(f,{get years(){return e.years},get yearFormat(){return e.yearFormat},get value(){return e.month.year}})};let n=g(e,"placeholder",15),s=g(e,"monthIndex",3,0);function i(f){const p=f.toDate(Ee());return typeof e.yearFormat=="function"?e.yearFormat(p.getFullYear()):new $e(e.locale,{year:e.yearFormat}).format(p)}function l(f){const p=f.toDate(Ee());return typeof e.monthFormat=="function"?e.monthFormat(p.getMonth()+1):new $e(e.locale,{month:e.monthFormat}).format(p)}var d=w(),m=b(d);{var y=f=>{var p=pi(),$=b(p);r($);var x=B($,2);a(x),h(f,p)},_=f=>{var p=xi(),$=b(p);r($);var x=B($,2);{var k=C=>{var K=Ce();H(z=>Z(K,z),[()=>i(n())]),h(C,K)};W(x,C=>{n()&&C(k)})}h(f,p)},u=f=>{var p=_i(),$=b(p);{var x=C=>{var K=Ce();H(z=>Z(K,z),[()=>l(n())]),h(C,K)};W($,C=>{n()&&C(x)})}var k=B($,2);a(k),h(f,p)},o=f=>{var p=Ce();H(($,x)=>Z(p,`${$??""} ${x??""}`),[()=>l(e.month),()=>i(e.month)]),h(f,p)};W(m,f=>{e.captionLayout==="dropdown"?f(y):e.captionLayout==="dropdown-months"?f(_,1):e.captionLayout==="dropdown-years"?f(u,2):f(o,!1)})}h(t,d),V()}function wi(t,e){T(e,!0);let r=N(e,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}]];ir(t,fe({name:"calendar"},()=>r,{get iconNode(){return a},children:(n,s)=>{var i=w(),l=b(i);L(l,()=>e.children??ae),h(n,i)},$$slots:{default:!0}})),V()}var Mi=I(`<button class="text-[10px] text-[var(--sig-accent)]
2
2
  bg-transparent border-none cursor-pointer
3
3
  hover:underline whitespace-nowrap"> </button>`),$i=I("<!> <!>",1),Ci=I("<!> <!>",1),Si=I('<button><span class="truncate"> </span> <!></button>'),Pi=I("<!> <!>",1),ki=I("<button> </button>"),Ii=I("<button> </button>"),Fi=I(`<div class="flex items-center justify-between gap-3
4
4
  px-3 py-1.5 border border-dashed
@@ -1 +1 @@
1
- import{c as x,a as g,p as st,f as U,t as Wt}from"./Bh4-TELa.js";import{C as f,w as i,q as V,n as Ft,u as dt,v as w,G as qt,o as O,D as y,B as D,t as G,F as W,A as Y,x as tt,z as jt}from"./B8ZX7RRG.js";import{p as d,i as R,s as z,r as B,c as Z}from"./VPfMKV-Y.js";import{s as H}from"./DJzRqvC6.js";import{n as _,z as J,C as At,o as at,K as pt,aA as ot,aD as lt,E as xt,S as ct,aH as Pt,aI as Mt,aF as Ht,aJ as kt,aE as Ot,u as Dt,H as Vt,w as Gt,aK as Yt,D as q,T as Jt,aL as Qt,aM as Xt,aN as Zt,y as Tt,J as Rt,P as $t,q as te,r as nt,Q as ee,R as oe,m as $,a as X,aO as re,U as se,e as ne,I as Bt,c as rt,V as ie}from"./CpKr3iYA.js";import{H as le,F as ae}from"./D48BGNEG.js";import{o as ft,s as he}from"./BWl8aDS_.js";import{C as Et}from"./BNPtVf8V.js";class de{#t=()=>{};#e=f(()=>this.#t());constructor(t,e){let o;e!==void 0&&(o=e),this.#t=()=>{try{return o}finally{o=t()}}}get current(){return i(this.#e)}}function no(r,t){const e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function io(r,t){return r>=0&&r<t.length}function ue(r,t,e=!0){if(!(r.length===0||t<0||t>=r.length))return r.length===1&&t===0?r[0]:t===r.length-1?e?r[0]:void 0:r[t+1]}function ce(r,t,e=!0){if(!(r.length===0||t<0||t>=r.length))return r.length===1&&t===0?r[0]:t===0?e?r[r.length-1]:void 0:r[t-1]}function ge(r,t,e,o=!0){if(r.length===0||t<0||t>=r.length)return;let s=t+e;return o?s=(s%r.length+r.length)%r.length:s=Math.max(0,Math.min(s,r.length-1)),r[s]}function pe(r,t,e,o=!0){if(r.length===0||t<0||t>=r.length)return;let s=t-e;return o?s=(s%r.length+r.length)%r.length:s=Math.max(0,Math.min(s,r.length-1)),r[s]}function vt(r,t,e){const o=t.toLowerCase();if(o.endsWith(" ")){const u=o.slice(0,-1);if(r.filter(T=>T.toLowerCase().startsWith(u)).length<=1)return vt(r,u,e);const b=e?.toLowerCase();if(b&&b.startsWith(u)&&b.charAt(u.length)===" "&&t.trim()===u)return e;const P=r.filter(T=>T.toLowerCase().startsWith(o));if(P.length>0){const T=e?r.indexOf(e):-1;return It(P,Math.max(T,0)).find(S=>S!==e)||e}}const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a.toLowerCase(),l=e?r.indexOf(e):-1;let h=It(r,Math.max(l,0));a.length===1&&(h=h.filter(u=>u!==e));const v=h.find(u=>u?.toLowerCase().startsWith(n));return v!==e?v:void 0}function It(r,t){return r.map((e,o)=>r[(t+o)%r.length])}const fe={afterMs:1e4,onChange:J};function Ut(r,t){const{afterMs:e,onChange:o,getWindow:s}={...fe,...t};let a=null,n=V(Ft(r));function l(){return s().setTimeout(()=>{w(n,r,!0),o?.(r)},e)}return dt(()=>()=>{a&&s().clearTimeout(a)}),_(()=>i(n),h=>{w(n,h,!0),o?.(h),a&&s().clearTimeout(a),a=l()})}class ve{#t;#e;#o=f(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=f(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Ut("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,e){if(!e.length)return;this.#e.current=this.#e.current+t;const o=i(this.#r)(),s=e.find(h=>h===o)?.textContent?.trim()??"",a=e.map(h=>h.textContent?.trim()??""),n=vt(a,this.#e.current,s),l=e.find(h=>h.textContent?.trim()===n);return l&&i(this.#o)(l),l}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class me{#t;#e=f(()=>this.#t.candidateValues());#o;constructor(t){this.#t=t,this.#o=Ut("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!i(this.#e).length)return;this.#o.current=this.#o.current+t;const e=this.#t.getCurrentItem(),o=i(this.#e).find(l=>l===e)??"",s=i(this.#e).map(l=>l??""),a=vt(s,this.#o.current,o),n=i(this.#e).find(l=>l===a);return n&&this.#t.onMatch(n),n}resetTypeahead(){this.#o.current=""}}const be=[lt,Mt,Ht],Se=[ot,kt,Ot],we=[...be,...Se],ye=te({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),ht=new At("Select.Root | Combobox.Root"),ut=new At("Select.Content | Combobox.Content");class Kt{opts;#t=V(!1);get touchedInput(){return i(this.#t)}set touchedInput(t){w(this.#t,t,!0)}#e=V(null);get inputNode(){return i(this.#e)}set inputNode(t){w(this.#e,t,!0)}#o=V(null);get contentNode(){return i(this.#o)}set contentNode(t){w(this.#o,t,!0)}contentPresence;#r=V(null);get viewportNode(){return i(this.#r)}set viewportNode(t){w(this.#r,t,!0)}#s=V(null);get triggerNode(){return i(this.#s)}set triggerNode(t){w(this.#s,t,!0)}#n=V("");get valueId(){return i(this.#n)}set valueId(t){w(this.#n,t,!0)}#i=V(null);get highlightedNode(){return i(this.#i)}set highlightedNode(t){w(this.#i,t,!0)}#l=f(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return i(this.#l)}set highlightedValue(t){w(this.#l,t)}#a=f(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return i(this.#a)}set highlightedId(t){w(this.#a,t)}#h=f(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return i(this.#h)}set highlightedLabel(t){w(this.#h,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new pt(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new $t({ref:_(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),qt(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(s=>{if(!this.viewportNode)return!1;const a=s.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>ye.getAttr(t,this.isCombobox?"combobox":void 0)}class _e extends Kt{opts;isMulti=!1;#t=f(()=>this.opts.value.current!=="");get hasValue(){return i(this.#t)}set hasValue(t){w(this.#t,t)}#e=f(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return i(this.#e)}set currentLabel(t){w(this.#e,t)}#o=f(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return i(this.#o)}set candidateLabels(t){w(this.#o,t)}#r=f(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return i(this.#r)}set dataTypeaheadEnabled(t){w(this.#r,t)}constructor(t){super(t),this.opts=t,dt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Rt(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Ne extends Kt{opts;isMulti=!0;#t=f(()=>this.opts.value.current.length>0);get hasValue(){return i(this.#t)}set hasValue(t){w(this.#t,t)}constructor(t){super(t),this.opts=t,dt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Rt(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Ce{static create(t){const{type:e,...o}=t,s=e==="single"?new _e(o):new Ne(o);return ht.set(s)}}class mt{static create(t){return new mt(t,ht.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=at(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new pt(t.ref),this.#t=new ve({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new me({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(a=>a.label===o);s&&(this.root.opts.value.current=s.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#o(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#r(t){this.#o()}#s(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===ot||t.key===lt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===xt||t.key===ct||t.key===lt||t.key===ot)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const n=this.root.getCandidateNodes();if(!n.length)return;if(t.key===lt){const l=n[0];this.root.setHighlightedNode(l)}else if(t.key===ot){const l=n[n.length-1];this.root.setHighlightedNode(l)}return}if(t.key===Pt){this.root.handleClose();return}if((t.key===xt||t.key===ct&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#s()))return;if(t.key===ot&&t.altKey&&this.root.handleClose(),we.includes(t.key)){t.preventDefault();const n=this.root.getCandidateNodes(),l=this.root.highlightedNode,h=l?n.indexOf(l):-1,p=this.root.opts.loop.current;let v;if(t.key===lt?v=ue(n,h,p):t.key===ot?v=ce(n,h,p):t.key===kt?v=ge(n,h,10,p):t.key===Mt?v=pe(n,h,10,p):t.key===Ht?v=n[0]:t.key===Ot&&(v=n[n.length-1]),!v)return;this.root.setHighlightedNode(v);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,s=t.key===ct,a=this.root.getCandidateNodes();if(t.key!==Pt){if(!e&&(o||s)){!this.#t.handleTypeaheadSearch(t.key,a)&&s&&(t.preventDefault(),this.#s());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose()))}#n=f(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Gt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Vt(this.root.opts.open.current),"data-disabled":Dt(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return i(this.#n)}set props(t){w(this.#n,t)}}class bt{static create(t){return ut.set(new bt(t,ht.get()))}opts;root;attachment;#t=V(!1);get isPositioned(){return i(this.#t)}set isPositioned(t){w(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=at(t.ref,o=>this.root.contentNode=o),this.domContext=new pt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Yt(()=>{this.root.contentNode=null,this.isPositioned=!1}),q(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=f(()=>Jt(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#o=f(()=>({open:this.root.opts.open.current}));get snippetProps(){return i(this.#o)}set snippetProps(t){w(this.#o,t)}#r=f(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Vt(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return i(this.#r)}set props(t){w(this.#r,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class St{static create(t){return new St(t,ht.get())}opts;root;attachment;#t=f(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return i(this.#t)}set isSelected(t){w(this.#t,t)}#e=f(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return i(this.#e)}set isHighlighted(t){w(this.#e,t)}prevHighlighted=new de(()=>this.isHighlighted);#o=V(!1);get mounted(){return i(this.#o)}set mounted(t){w(this.#o,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=at(t.ref),q([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),q(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#r=f(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return i(this.#r)}set snippetProps(t){w(this.#r,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!Xt){ft(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#s=f(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Dt(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return i(this.#s)}set props(t){w(this.#s,t)}}class wt{static create(t){return new wt(t,ht.get())}opts;root;#t=f(()=>this.root.opts.name.current!=="");get shouldRender(){return i(this.#t)}set shouldRender(t){w(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=f(()=>({disabled:Tt(this.root.opts.disabled.current),required:Tt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}class yt{static create(t){return new yt(t,ut.get())}opts;content;root;attachment;#t=V(0);get prevScrollTop(){return i(this.#t)}set prevScrollTop(t){w(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=at(t.ref,o=>{this.root.viewportNode=o})}#e=f(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}class Lt{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=J;#t=V(!1);get mounted(){return i(this.#t)}set mounted(t){w(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=at(t.ref),q([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),dt(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const e=o=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(o+1),this.opts.delay.current(o))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}#e=f(()=>({id:this.opts.id.current,"aria-hidden":Zt(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}class _t{static create(t){return new _t(new Lt(t,ut.get()))}scrollButtonState;content;root;#t=V(!1);get canScrollDown(){return i(this.#t)}set canScrollDown(t){w(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ft(this.root.viewportNode,"scroll",()=>this.handleScroll())}),q([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),q(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=Qt(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,o=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<e-o};handleAutoScroll=()=>{const t=this.root.viewportNode,e=this.root.highlightedNode;!t||!e||(t.scrollTop=t.scrollTop+e.offsetHeight)};#e=f(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}class Nt{static create(t){return new Nt(new Lt(t,ut.get()))}scrollButtonState;content;root;#t=V(!1);get canScrollUp(){return i(this.#t)}set canScrollUp(t){w(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ft(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-e>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#e=f(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}function gt(r,t){O(t,!0);let e=d(t,"value",15);const o=wt.create({value:_(()=>e())});var s=x(),a=y(s);{var n=l=>{le(l,z(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(h){e(h)}}))};R(a,l=>{o.shouldRender&&l(n)})}g(r,s),D()}var xe=U("<div><div><!></div></div>"),Pe=U("<div><div><!></div></div>");function Te(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"forceMount",3,!1),n=d(t,"side",3,"bottom"),l=d(t,"onInteractOutside",3,J),h=d(t,"onEscapeKeydown",3,J),p=d(t,"preventScroll",3,!1),v=B(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const u=bt.create({id:_(()=>o()),ref:_(()=>s(),N=>s(N)),onInteractOutside:_(()=>l()),onEscapeKeydown:_(()=>h())}),m=f(()=>$(v,u.props));var b=x(),P=y(b);{var T=N=>{ee(N,z(()=>i(m),()=>u.popperProps,{get ref(){return u.opts.ref},get side(){return n()},get enabled(){return u.root.opts.open.current},get id(){return o()},get preventScroll(){return p()},forceMount:!0,get shouldRender(){return u.shouldRender},popper:(c,C)=>{let K=()=>C?.().props,Q=()=>C?.().wrapperProps;const I=f(()=>$(K(),{style:u.props.style},{style:t.style}));var E=x(),j=y(E);{var et=M=>{var k=x(),L=y(k);{let F=f(()=>({props:i(I),wrapperProps:Q(),...u.snippetProps}));H(L,()=>t.child,()=>i(F))}g(M,k)},it=M=>{var k=xe();X(k,()=>({...Q()}));var L=G(k);X(L,()=>({...i(I)}));var F=G(L);H(F,()=>t.children??W),Y(L),Y(k),g(M,k)};R(j,M=>{t.child?M(et):M(it,!1)})}g(c,E)},$$slots:{popper:!0}}))},A=N=>{oe(N,z(()=>i(m),()=>u.popperProps,{get ref(){return u.opts.ref},get side(){return n()},get open(){return u.root.opts.open.current},get id(){return o()},get preventScroll(){return p()},forceMount:!1,get shouldRender(){return u.shouldRender},popper:(c,C)=>{let K=()=>C?.().props,Q=()=>C?.().wrapperProps;const I=f(()=>$(K(),{style:u.props.style},{style:t.style}));var E=x(),j=y(E);{var et=M=>{var k=x(),L=y(k);{let F=f(()=>({props:i(I),wrapperProps:Q(),...u.snippetProps}));H(L,()=>t.child,()=>i(F))}g(M,k)},it=M=>{var k=Pe();X(k,()=>({...Q()}));var L=G(k);X(L,()=>({...i(I)}));var F=G(L);H(F,()=>t.children??W),Y(L),Y(k),g(M,k)};R(j,M=>{t.child?M(et):M(it,!1)})}g(c,E)},$$slots:{popper:!0}}))};R(P,N=>{a()?N(T):a()||N(A,1)})}g(r,b),D()}function Ct(r,t){O(t,!0);let e=d(t,"mounted",15,!1),o=d(t,"onMountedChange",3,J);re(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)})),D()}var Ie=U("<div><!></div>"),Ae=U("<!> <!>",1);function Me(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"label",19,()=>t.value),n=d(t,"disabled",3,!1),l=d(t,"onHighlight",3,J),h=d(t,"onUnhighlight",3,J),p=B(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const v=St.create({id:_(()=>o()),ref:_(()=>s(),N=>s(N)),value:_(()=>t.value),disabled:_(()=>n()),label:_(()=>a()),onHighlight:_(()=>l()),onUnhighlight:_(()=>h())}),u=f(()=>$(p,v.props));var m=Ae(),b=y(m);{var P=N=>{var S=x(),c=y(S);{let C=f(()=>({props:i(u),...v.snippetProps}));H(c,()=>t.child,()=>i(C))}g(N,S)},T=N=>{var S=Ie();X(S,()=>({...i(u)}));var c=G(S);H(c,()=>t.children??W,()=>v.snippetProps),Y(S),g(N,S)};R(b,N=>{t.child?N(P):N(T,!1)})}var A=tt(b,2);Ct(A,{get mounted(){return v.mounted},set mounted(N){v.mounted=N}}),g(r,m),D()}var He=U("<div><!></div>");function ke(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=B(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const n=yt.create({id:_(()=>o()),ref:_(()=>s(),m=>s(m))}),l=f(()=>$(a,n.props));var h=x(),p=y(h);{var v=m=>{var b=x(),P=y(b);H(P,()=>t.child,()=>({props:i(l)})),g(m,b)},u=m=>{var b=He();X(b,()=>({...i(l)}));var P=G(b);H(P,()=>t.children??W),Y(b),g(m,b)};R(p,m=>{t.child?m(v):m(u,!1)})}g(r,h),D()}var Oe=U("<div><!></div>"),De=U("<!> <!>",1);function Ve(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"delay",3,()=>50),n=B(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=_t.create({id:_(()=>o()),ref:_(()=>s(),m=>s(m)),delay:_(()=>a())}),h=f(()=>$(n,l.props));var p=x(),v=y(p);{var u=m=>{var b=De(),P=y(b);Ct(P,{get mounted(){return l.scrollButtonState.mounted},set mounted(S){l.scrollButtonState.mounted=S}});var T=tt(P,2);{var A=S=>{var c=x(),C=y(c);H(C,()=>t.child,()=>({props:n})),g(S,c)},N=S=>{var c=Oe();X(c,()=>({...i(h)}));var C=G(c);H(C,()=>t.children??W),Y(c),g(S,c)};R(T,S=>{t.child?S(A):S(N,!1)})}g(m,b)};R(v,m=>{l.canScrollDown&&m(u)})}g(r,p),D()}var Re=U("<div><!></div>"),Be=U("<!> <!>",1);function Ee(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"delay",3,()=>50),n=B(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=Nt.create({id:_(()=>o()),ref:_(()=>s(),m=>s(m)),delay:_(()=>a())}),h=f(()=>$(n,l.props));var p=x(),v=y(p);{var u=m=>{var b=Be(),P=y(b);Ct(P,{get mounted(){return l.scrollButtonState.mounted},set mounted(S){l.scrollButtonState.mounted=S}});var T=tt(P,2);{var A=S=>{var c=x(),C=y(c);H(C,()=>t.child,()=>({props:n})),g(S,c)},N=S=>{var c=Re();X(c,()=>({...i(h)}));var C=G(c);H(C,()=>t.children??W),Y(c),g(S,c)};R(T,S=>{t.child?S(A):S(N,!1)})}g(m,b)};R(v,m=>{l.canScrollUp&&m(u)})}g(r,p),D()}var Ue=U("<!> <!>",1);function Ke(r,t){O(t,!0);let e=d(t,"value",15),o=d(t,"onValueChange",3,J),s=d(t,"name",3,""),a=d(t,"disabled",3,!1),n=d(t,"open",15,!1),l=d(t,"onOpenChange",3,J),h=d(t,"onOpenChangeComplete",3,J),p=d(t,"loop",3,!1),v=d(t,"scrollAlignment",3,"nearest"),u=d(t,"required",3,!1),m=d(t,"items",19,()=>[]),b=d(t,"allowDeselect",3,!1);function P(){e()===void 0&&e(t.type==="single"?"":[])}P(),q.pre(()=>e(),()=>{P()});let T=V("");const A=Ce.create({type:t.type,value:_(()=>e(),I=>{e(I),o()(I)}),disabled:_(()=>a()),required:_(()=>u()),open:_(()=>n(),I=>{n(I),l()(I)}),loop:_(()=>p()),scrollAlignment:_(()=>v()),name:_(()=>s()),isCombobox:!1,items:_(()=>m()),allowDeselect:_(()=>b()),inputValue:_(()=>i(T),I=>w(T,I,!0)),onOpenChangeComplete:_(()=>h())});var N=Ue(),S=y(N);se(S,{children:(I,E)=>{var j=x(),et=y(j);H(et,()=>t.children??W),g(I,j)},$$slots:{default:!0}});var c=tt(S,2);{var C=I=>{var E=x(),j=y(E);{var et=M=>{gt(M,{get autocomplete(){return t.autocomplete}})},it=M=>{var k=x(),L=y(k);ne(L,16,()=>A.opts.value.current,F=>F,(F,zt)=>{gt(F,{get value(){return zt},get autocomplete(){return t.autocomplete}})}),g(M,k)};R(j,M=>{A.opts.value.current.length===0?M(et):M(it,!1)})}g(I,E)},K=f(()=>Array.isArray(A.opts.value.current)),Q=I=>{gt(I,{get autocomplete(){return t.autocomplete},get value(){return A.opts.value.current},set value(E){A.opts.value.current=E}})};R(c,I=>{i(K)?I(C):I(Q,!1)})}g(r,N),D()}var Le=U("<button><!></button>");function ze(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"type",3,"button"),n=B(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=mt.create({id:_(()=>o()),ref:_(()=>s(),u=>s(u))}),h=f(()=>$(n,l.props,{type:a()}));var p=x(),v=y(p);Z(v,()=>ae,(u,m)=>{m(u,{get id(){return o()},get ref(){return l.opts.ref},children:(b,P)=>{var T=x(),A=y(T);{var N=c=>{var C=x(),K=y(C);H(K,()=>t.child,()=>({props:i(h)})),g(c,C)},S=c=>{var C=Le();X(C,()=>({...i(h)}));var K=G(C);H(K,()=>t.children??W),Y(C),g(c,C)};R(A,c=>{t.child?c(N):c(S,!1)})}g(b,T)},$$slots:{default:!0}})}),g(r,p),D()}function We(r,t){O(t,!0);let e=B(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"M20 6 9 17l-5-5"}]];Bt(r,z({name:"check"},()=>e,{get iconNode(){return o},children:(s,a)=>{var n=x(),l=y(n);H(l,()=>t.children??W),g(s,n)},$$slots:{default:!0}})),D()}function lo(r,t){O(t,!0);let e=d(t,"open",15,!1),o=d(t,"value",15),s=B(t,["$$slots","$$events","$$legacy","open","value"]);var a=x(),n=y(a);Z(n,()=>Ke,(l,h)=>{h(l,z(()=>s,{get open(){return e()},set open(p){e(p)},get value(){return o()},set value(p){o(p)}}))}),g(r,a),D()}var Fe=U('<span class="absolute end-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function ao(r,t){O(t,!0);let e=d(t,"ref",15,null),o=B(t,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var s=x(),a=y(s);{const n=(h,p)=>{let v=()=>p?.().selected,u=()=>p?.().highlighted;var m=Fe(),b=y(m),P=G(b);{var T=c=>{We(c,{class:"size-4"})};R(P,c=>{v()&&c(T)})}Y(b);var A=tt(b,2);{var N=c=>{var C=x(),K=y(C);H(K,()=>t.children,()=>({selected:v(),highlighted:u()})),g(c,C)},S=c=>{var C=Wt();jt(()=>he(C,t.label||t.value)),g(c,C)};R(A,c=>{t.children?c(N):c(S,!1)})}g(h,m)};let l=f(()=>rt("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t.class));Z(a,()=>Me,(h,p)=>{p(h,z({get value(){return t.value},"data-slot":"select-item",get class(){return i(l)}},()=>o,{get ref(){return e()},set ref(v){e(v)},children:n,$$slots:{default:!0}}))})}g(r,s),D()}function qe(r,t){let e=B(t,["$$slots","$$events","$$legacy"]);var o=x(),s=y(o);Z(s,()=>ie,(a,n)=>{n(a,z(()=>e))}),g(r,o)}function je(r,t){O(t,!0);let e=B(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];Bt(r,z({name:"chevron-up"},()=>e,{get iconNode(){return o},children:(s,a)=>{var n=x(),l=y(n);H(l,()=>t.children??W),g(s,n)},$$slots:{default:!0}})),D()}function Ge(r,t){O(t,!0);let e=d(t,"ref",15,null),o=B(t,["$$slots","$$events","$$legacy","ref","class"]);var s=x(),a=y(s);{let n=f(()=>rt("flex cursor-default items-center justify-center py-1",t.class));Z(a,()=>Ee,(l,h)=>{h(l,z({"data-slot":"select-scroll-up-button",get class(){return i(n)}},()=>o,{get ref(){return e()},set ref(p){e(p)},children:(p,v)=>{je(p,{class:"size-4"})},$$slots:{default:!0}}))})}g(r,s),D()}function Ye(r,t){O(t,!0);let e=d(t,"ref",15,null),o=B(t,["$$slots","$$events","$$legacy","ref","class"]);var s=x(),a=y(s);{let n=f(()=>rt("flex cursor-default items-center justify-center py-1",t.class));Z(a,()=>Ve,(l,h)=>{h(l,z({"data-slot":"select-scroll-down-button",get class(){return i(n)}},()=>o,{get ref(){return e()},set ref(p){e(p)},children:(p,v)=>{Et(p,{class:"size-4"})},$$slots:{default:!0}}))})}g(r,s),D()}var Je=U("<!> <!> <!>",1);function ho(r,t){O(t,!0);let e=d(t,"ref",15,null),o=d(t,"sideOffset",3,4),s=d(t,"preventScroll",3,!0),a=B(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children","preventScroll"]);qe(r,z(()=>t.portalProps,{children:(n,l)=>{var h=x(),p=y(h);{let v=f(()=>rt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t.class));Z(p,()=>Te,(u,m)=>{m(u,z({get sideOffset(){return o()},get preventScroll(){return s()},"data-slot":"select-content",get class(){return i(v)}},()=>a,{get ref(){return e()},set ref(b){e(b)},children:(b,P)=>{var T=Je(),A=y(T);Ge(A,{});var N=tt(A,2);{let c=f(()=>rt("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));Z(N,()=>ke,(C,K)=>{K(C,{get class(){return i(c)},children:(Q,I)=>{var E=x(),j=y(E);H(j,()=>t.children??W),g(Q,E)},$$slots:{default:!0}})})}var S=tt(N,2);Ye(S,{}),g(b,T)},$$slots:{default:!0}}))})}g(n,h)},$$slots:{default:!0}})),D()}var Qe=U("<!> <!>",1);function uo(r,t){O(t,!0);let e=d(t,"ref",15,null),o=d(t,"size",3,"default"),s=B(t,["$$slots","$$events","$$legacy","ref","class","children","size"]);var a=x(),n=y(a);{let l=f(()=>rt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class));Z(n,()=>ze,(h,p)=>{p(h,z({"data-slot":"select-trigger",get"data-size"(){return o()},get class(){return i(l)}},()=>s,{get ref(){return e()},set ref(v){e(v)},children:(v,u)=>{var m=Qe(),b=y(m);H(b,()=>t.children??W);var P=tt(b,2);Et(P,{class:"size-4 opacity-50"}),g(v,m)},$$slots:{default:!0}}))})}g(r,a),D()}export{We as C,de as P,uo as S,ho as a,ao as b,lo as c,no as d,io as i};
1
+ import{c as x,a as g,p as st,f as U,t as Wt}from"./Bh4-TELa.js";import{C as f,w as i,q as V,n as Ft,u as dt,v as w,G as qt,o as O,D as y,B as D,t as G,F as W,A as Y,x as tt,z as jt}from"./B8ZX7RRG.js";import{p as d,i as R,s as z,r as B,c as Z}from"./VPfMKV-Y.js";import{s as H}from"./DJzRqvC6.js";import{n as _,z as J,C as At,o as at,K as pt,aA as ot,aD as lt,E as xt,S as ct,aH as Pt,aI as Mt,aF as Ht,aJ as kt,aE as Ot,u as Dt,H as Vt,w as Gt,aK as Yt,D as q,T as Jt,aL as Qt,aM as Xt,aN as Zt,y as Tt,J as Rt,P as $t,q as te,r as nt,Q as ee,R as oe,m as $,a as X,aO as re,U as se,e as ne,I as Bt,c as rt,V as ie}from"./Dhorujc8.js";import{H as le,F as ae}from"./D7vsdCS2.js";import{o as ft,s as he}from"./BWl8aDS_.js";import{C as Et}from"./BfwSK66w.js";class de{#t=()=>{};#e=f(()=>this.#t());constructor(t,e){let o;e!==void 0&&(o=e),this.#t=()=>{try{return o}finally{o=t()}}}get current(){return i(this.#e)}}function no(r,t){const e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function io(r,t){return r>=0&&r<t.length}function ue(r,t,e=!0){if(!(r.length===0||t<0||t>=r.length))return r.length===1&&t===0?r[0]:t===r.length-1?e?r[0]:void 0:r[t+1]}function ce(r,t,e=!0){if(!(r.length===0||t<0||t>=r.length))return r.length===1&&t===0?r[0]:t===0?e?r[r.length-1]:void 0:r[t-1]}function ge(r,t,e,o=!0){if(r.length===0||t<0||t>=r.length)return;let s=t+e;return o?s=(s%r.length+r.length)%r.length:s=Math.max(0,Math.min(s,r.length-1)),r[s]}function pe(r,t,e,o=!0){if(r.length===0||t<0||t>=r.length)return;let s=t-e;return o?s=(s%r.length+r.length)%r.length:s=Math.max(0,Math.min(s,r.length-1)),r[s]}function vt(r,t,e){const o=t.toLowerCase();if(o.endsWith(" ")){const u=o.slice(0,-1);if(r.filter(T=>T.toLowerCase().startsWith(u)).length<=1)return vt(r,u,e);const b=e?.toLowerCase();if(b&&b.startsWith(u)&&b.charAt(u.length)===" "&&t.trim()===u)return e;const P=r.filter(T=>T.toLowerCase().startsWith(o));if(P.length>0){const T=e?r.indexOf(e):-1;return It(P,Math.max(T,0)).find(S=>S!==e)||e}}const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a.toLowerCase(),l=e?r.indexOf(e):-1;let h=It(r,Math.max(l,0));a.length===1&&(h=h.filter(u=>u!==e));const v=h.find(u=>u?.toLowerCase().startsWith(n));return v!==e?v:void 0}function It(r,t){return r.map((e,o)=>r[(t+o)%r.length])}const fe={afterMs:1e4,onChange:J};function Ut(r,t){const{afterMs:e,onChange:o,getWindow:s}={...fe,...t};let a=null,n=V(Ft(r));function l(){return s().setTimeout(()=>{w(n,r,!0),o?.(r)},e)}return dt(()=>()=>{a&&s().clearTimeout(a)}),_(()=>i(n),h=>{w(n,h,!0),o?.(h),a&&s().clearTimeout(a),a=l()})}class ve{#t;#e;#o=f(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=f(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Ut("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,e){if(!e.length)return;this.#e.current=this.#e.current+t;const o=i(this.#r)(),s=e.find(h=>h===o)?.textContent?.trim()??"",a=e.map(h=>h.textContent?.trim()??""),n=vt(a,this.#e.current,s),l=e.find(h=>h.textContent?.trim()===n);return l&&i(this.#o)(l),l}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class me{#t;#e=f(()=>this.#t.candidateValues());#o;constructor(t){this.#t=t,this.#o=Ut("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!i(this.#e).length)return;this.#o.current=this.#o.current+t;const e=this.#t.getCurrentItem(),o=i(this.#e).find(l=>l===e)??"",s=i(this.#e).map(l=>l??""),a=vt(s,this.#o.current,o),n=i(this.#e).find(l=>l===a);return n&&this.#t.onMatch(n),n}resetTypeahead(){this.#o.current=""}}const be=[lt,Mt,Ht],Se=[ot,kt,Ot],we=[...be,...Se],ye=te({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),ht=new At("Select.Root | Combobox.Root"),ut=new At("Select.Content | Combobox.Content");class Kt{opts;#t=V(!1);get touchedInput(){return i(this.#t)}set touchedInput(t){w(this.#t,t,!0)}#e=V(null);get inputNode(){return i(this.#e)}set inputNode(t){w(this.#e,t,!0)}#o=V(null);get contentNode(){return i(this.#o)}set contentNode(t){w(this.#o,t,!0)}contentPresence;#r=V(null);get viewportNode(){return i(this.#r)}set viewportNode(t){w(this.#r,t,!0)}#s=V(null);get triggerNode(){return i(this.#s)}set triggerNode(t){w(this.#s,t,!0)}#n=V("");get valueId(){return i(this.#n)}set valueId(t){w(this.#n,t,!0)}#i=V(null);get highlightedNode(){return i(this.#i)}set highlightedNode(t){w(this.#i,t,!0)}#l=f(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return i(this.#l)}set highlightedValue(t){w(this.#l,t)}#a=f(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return i(this.#a)}set highlightedId(t){w(this.#a,t)}#h=f(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return i(this.#h)}set highlightedLabel(t){w(this.#h,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new pt(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new $t({ref:_(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),qt(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(s=>{if(!this.viewportNode)return!1;const a=s.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>ye.getAttr(t,this.isCombobox?"combobox":void 0)}class _e extends Kt{opts;isMulti=!1;#t=f(()=>this.opts.value.current!=="");get hasValue(){return i(this.#t)}set hasValue(t){w(this.#t,t)}#e=f(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return i(this.#e)}set currentLabel(t){w(this.#e,t)}#o=f(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return i(this.#o)}set candidateLabels(t){w(this.#o,t)}#r=f(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return i(this.#r)}set dataTypeaheadEnabled(t){w(this.#r,t)}constructor(t){super(t),this.opts=t,dt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Rt(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Ne extends Kt{opts;isMulti=!0;#t=f(()=>this.opts.value.current.length>0);get hasValue(){return i(this.#t)}set hasValue(t){w(this.#t,t)}constructor(t){super(t),this.opts=t,dt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Rt(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Ce{static create(t){const{type:e,...o}=t,s=e==="single"?new _e(o):new Ne(o);return ht.set(s)}}class mt{static create(t){return new mt(t,ht.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=at(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new pt(t.ref),this.#t=new ve({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new me({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(a=>a.label===o);s&&(this.root.opts.value.current=s.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#o(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#r(t){this.#o()}#s(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===ot||t.key===lt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===xt||t.key===ct||t.key===lt||t.key===ot)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const n=this.root.getCandidateNodes();if(!n.length)return;if(t.key===lt){const l=n[0];this.root.setHighlightedNode(l)}else if(t.key===ot){const l=n[n.length-1];this.root.setHighlightedNode(l)}return}if(t.key===Pt){this.root.handleClose();return}if((t.key===xt||t.key===ct&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#s()))return;if(t.key===ot&&t.altKey&&this.root.handleClose(),we.includes(t.key)){t.preventDefault();const n=this.root.getCandidateNodes(),l=this.root.highlightedNode,h=l?n.indexOf(l):-1,p=this.root.opts.loop.current;let v;if(t.key===lt?v=ue(n,h,p):t.key===ot?v=ce(n,h,p):t.key===kt?v=ge(n,h,10,p):t.key===Mt?v=pe(n,h,10,p):t.key===Ht?v=n[0]:t.key===Ot&&(v=n[n.length-1]),!v)return;this.root.setHighlightedNode(v);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,s=t.key===ct,a=this.root.getCandidateNodes();if(t.key!==Pt){if(!e&&(o||s)){!this.#t.handleTypeaheadSearch(t.key,a)&&s&&(t.preventDefault(),this.#s());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose()))}#n=f(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Gt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Vt(this.root.opts.open.current),"data-disabled":Dt(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return i(this.#n)}set props(t){w(this.#n,t)}}class bt{static create(t){return ut.set(new bt(t,ht.get()))}opts;root;attachment;#t=V(!1);get isPositioned(){return i(this.#t)}set isPositioned(t){w(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=at(t.ref,o=>this.root.contentNode=o),this.domContext=new pt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Yt(()=>{this.root.contentNode=null,this.isPositioned=!1}),q(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=f(()=>Jt(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#o=f(()=>({open:this.root.opts.open.current}));get snippetProps(){return i(this.#o)}set snippetProps(t){w(this.#o,t)}#r=f(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Vt(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return i(this.#r)}set props(t){w(this.#r,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class St{static create(t){return new St(t,ht.get())}opts;root;attachment;#t=f(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return i(this.#t)}set isSelected(t){w(this.#t,t)}#e=f(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return i(this.#e)}set isHighlighted(t){w(this.#e,t)}prevHighlighted=new de(()=>this.isHighlighted);#o=V(!1);get mounted(){return i(this.#o)}set mounted(t){w(this.#o,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=at(t.ref),q([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),q(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#r=f(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return i(this.#r)}set snippetProps(t){w(this.#r,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!Xt){ft(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#s=f(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Dt(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return i(this.#s)}set props(t){w(this.#s,t)}}class wt{static create(t){return new wt(t,ht.get())}opts;root;#t=f(()=>this.root.opts.name.current!=="");get shouldRender(){return i(this.#t)}set shouldRender(t){w(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=f(()=>({disabled:Tt(this.root.opts.disabled.current),required:Tt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}class yt{static create(t){return new yt(t,ut.get())}opts;content;root;attachment;#t=V(0);get prevScrollTop(){return i(this.#t)}set prevScrollTop(t){w(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=at(t.ref,o=>{this.root.viewportNode=o})}#e=f(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}class Lt{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=J;#t=V(!1);get mounted(){return i(this.#t)}set mounted(t){w(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=at(t.ref),q([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),dt(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const e=o=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(o+1),this.opts.delay.current(o))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}#e=f(()=>({id:this.opts.id.current,"aria-hidden":Zt(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}class _t{static create(t){return new _t(new Lt(t,ut.get()))}scrollButtonState;content;root;#t=V(!1);get canScrollDown(){return i(this.#t)}set canScrollDown(t){w(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ft(this.root.viewportNode,"scroll",()=>this.handleScroll())}),q([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),q(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=Qt(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,o=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<e-o};handleAutoScroll=()=>{const t=this.root.viewportNode,e=this.root.highlightedNode;!t||!e||(t.scrollTop=t.scrollTop+e.offsetHeight)};#e=f(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}class Nt{static create(t){return new Nt(new Lt(t,ut.get()))}scrollButtonState;content;root;#t=V(!1);get canScrollUp(){return i(this.#t)}set canScrollUp(t){w(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ft(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-e>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#e=f(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return i(this.#e)}set props(t){w(this.#e,t)}}function gt(r,t){O(t,!0);let e=d(t,"value",15);const o=wt.create({value:_(()=>e())});var s=x(),a=y(s);{var n=l=>{le(l,z(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(h){e(h)}}))};R(a,l=>{o.shouldRender&&l(n)})}g(r,s),D()}var xe=U("<div><div><!></div></div>"),Pe=U("<div><div><!></div></div>");function Te(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"forceMount",3,!1),n=d(t,"side",3,"bottom"),l=d(t,"onInteractOutside",3,J),h=d(t,"onEscapeKeydown",3,J),p=d(t,"preventScroll",3,!1),v=B(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const u=bt.create({id:_(()=>o()),ref:_(()=>s(),N=>s(N)),onInteractOutside:_(()=>l()),onEscapeKeydown:_(()=>h())}),m=f(()=>$(v,u.props));var b=x(),P=y(b);{var T=N=>{ee(N,z(()=>i(m),()=>u.popperProps,{get ref(){return u.opts.ref},get side(){return n()},get enabled(){return u.root.opts.open.current},get id(){return o()},get preventScroll(){return p()},forceMount:!0,get shouldRender(){return u.shouldRender},popper:(c,C)=>{let K=()=>C?.().props,Q=()=>C?.().wrapperProps;const I=f(()=>$(K(),{style:u.props.style},{style:t.style}));var E=x(),j=y(E);{var et=M=>{var k=x(),L=y(k);{let F=f(()=>({props:i(I),wrapperProps:Q(),...u.snippetProps}));H(L,()=>t.child,()=>i(F))}g(M,k)},it=M=>{var k=xe();X(k,()=>({...Q()}));var L=G(k);X(L,()=>({...i(I)}));var F=G(L);H(F,()=>t.children??W),Y(L),Y(k),g(M,k)};R(j,M=>{t.child?M(et):M(it,!1)})}g(c,E)},$$slots:{popper:!0}}))},A=N=>{oe(N,z(()=>i(m),()=>u.popperProps,{get ref(){return u.opts.ref},get side(){return n()},get open(){return u.root.opts.open.current},get id(){return o()},get preventScroll(){return p()},forceMount:!1,get shouldRender(){return u.shouldRender},popper:(c,C)=>{let K=()=>C?.().props,Q=()=>C?.().wrapperProps;const I=f(()=>$(K(),{style:u.props.style},{style:t.style}));var E=x(),j=y(E);{var et=M=>{var k=x(),L=y(k);{let F=f(()=>({props:i(I),wrapperProps:Q(),...u.snippetProps}));H(L,()=>t.child,()=>i(F))}g(M,k)},it=M=>{var k=Pe();X(k,()=>({...Q()}));var L=G(k);X(L,()=>({...i(I)}));var F=G(L);H(F,()=>t.children??W),Y(L),Y(k),g(M,k)};R(j,M=>{t.child?M(et):M(it,!1)})}g(c,E)},$$slots:{popper:!0}}))};R(P,N=>{a()?N(T):a()||N(A,1)})}g(r,b),D()}function Ct(r,t){O(t,!0);let e=d(t,"mounted",15,!1),o=d(t,"onMountedChange",3,J);re(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)})),D()}var Ie=U("<div><!></div>"),Ae=U("<!> <!>",1);function Me(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"label",19,()=>t.value),n=d(t,"disabled",3,!1),l=d(t,"onHighlight",3,J),h=d(t,"onUnhighlight",3,J),p=B(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const v=St.create({id:_(()=>o()),ref:_(()=>s(),N=>s(N)),value:_(()=>t.value),disabled:_(()=>n()),label:_(()=>a()),onHighlight:_(()=>l()),onUnhighlight:_(()=>h())}),u=f(()=>$(p,v.props));var m=Ae(),b=y(m);{var P=N=>{var S=x(),c=y(S);{let C=f(()=>({props:i(u),...v.snippetProps}));H(c,()=>t.child,()=>i(C))}g(N,S)},T=N=>{var S=Ie();X(S,()=>({...i(u)}));var c=G(S);H(c,()=>t.children??W,()=>v.snippetProps),Y(S),g(N,S)};R(b,N=>{t.child?N(P):N(T,!1)})}var A=tt(b,2);Ct(A,{get mounted(){return v.mounted},set mounted(N){v.mounted=N}}),g(r,m),D()}var He=U("<div><!></div>");function ke(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=B(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const n=yt.create({id:_(()=>o()),ref:_(()=>s(),m=>s(m))}),l=f(()=>$(a,n.props));var h=x(),p=y(h);{var v=m=>{var b=x(),P=y(b);H(P,()=>t.child,()=>({props:i(l)})),g(m,b)},u=m=>{var b=He();X(b,()=>({...i(l)}));var P=G(b);H(P,()=>t.children??W),Y(b),g(m,b)};R(p,m=>{t.child?m(v):m(u,!1)})}g(r,h),D()}var Oe=U("<div><!></div>"),De=U("<!> <!>",1);function Ve(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"delay",3,()=>50),n=B(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=_t.create({id:_(()=>o()),ref:_(()=>s(),m=>s(m)),delay:_(()=>a())}),h=f(()=>$(n,l.props));var p=x(),v=y(p);{var u=m=>{var b=De(),P=y(b);Ct(P,{get mounted(){return l.scrollButtonState.mounted},set mounted(S){l.scrollButtonState.mounted=S}});var T=tt(P,2);{var A=S=>{var c=x(),C=y(c);H(C,()=>t.child,()=>({props:n})),g(S,c)},N=S=>{var c=Oe();X(c,()=>({...i(h)}));var C=G(c);H(C,()=>t.children??W),Y(c),g(S,c)};R(T,S=>{t.child?S(A):S(N,!1)})}g(m,b)};R(v,m=>{l.canScrollDown&&m(u)})}g(r,p),D()}var Re=U("<div><!></div>"),Be=U("<!> <!>",1);function Ee(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"delay",3,()=>50),n=B(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=Nt.create({id:_(()=>o()),ref:_(()=>s(),m=>s(m)),delay:_(()=>a())}),h=f(()=>$(n,l.props));var p=x(),v=y(p);{var u=m=>{var b=Be(),P=y(b);Ct(P,{get mounted(){return l.scrollButtonState.mounted},set mounted(S){l.scrollButtonState.mounted=S}});var T=tt(P,2);{var A=S=>{var c=x(),C=y(c);H(C,()=>t.child,()=>({props:n})),g(S,c)},N=S=>{var c=Re();X(c,()=>({...i(h)}));var C=G(c);H(C,()=>t.children??W),Y(c),g(S,c)};R(T,S=>{t.child?S(A):S(N,!1)})}g(m,b)};R(v,m=>{l.canScrollUp&&m(u)})}g(r,p),D()}var Ue=U("<!> <!>",1);function Ke(r,t){O(t,!0);let e=d(t,"value",15),o=d(t,"onValueChange",3,J),s=d(t,"name",3,""),a=d(t,"disabled",3,!1),n=d(t,"open",15,!1),l=d(t,"onOpenChange",3,J),h=d(t,"onOpenChangeComplete",3,J),p=d(t,"loop",3,!1),v=d(t,"scrollAlignment",3,"nearest"),u=d(t,"required",3,!1),m=d(t,"items",19,()=>[]),b=d(t,"allowDeselect",3,!1);function P(){e()===void 0&&e(t.type==="single"?"":[])}P(),q.pre(()=>e(),()=>{P()});let T=V("");const A=Ce.create({type:t.type,value:_(()=>e(),I=>{e(I),o()(I)}),disabled:_(()=>a()),required:_(()=>u()),open:_(()=>n(),I=>{n(I),l()(I)}),loop:_(()=>p()),scrollAlignment:_(()=>v()),name:_(()=>s()),isCombobox:!1,items:_(()=>m()),allowDeselect:_(()=>b()),inputValue:_(()=>i(T),I=>w(T,I,!0)),onOpenChangeComplete:_(()=>h())});var N=Ue(),S=y(N);se(S,{children:(I,E)=>{var j=x(),et=y(j);H(et,()=>t.children??W),g(I,j)},$$slots:{default:!0}});var c=tt(S,2);{var C=I=>{var E=x(),j=y(E);{var et=M=>{gt(M,{get autocomplete(){return t.autocomplete}})},it=M=>{var k=x(),L=y(k);ne(L,16,()=>A.opts.value.current,F=>F,(F,zt)=>{gt(F,{get value(){return zt},get autocomplete(){return t.autocomplete}})}),g(M,k)};R(j,M=>{A.opts.value.current.length===0?M(et):M(it,!1)})}g(I,E)},K=f(()=>Array.isArray(A.opts.value.current)),Q=I=>{gt(I,{get autocomplete(){return t.autocomplete},get value(){return A.opts.value.current},set value(E){A.opts.value.current=E}})};R(c,I=>{i(K)?I(C):I(Q,!1)})}g(r,N),D()}var Le=U("<button><!></button>");function ze(r,t){const e=st();O(t,!0);let o=d(t,"id",19,()=>nt(e)),s=d(t,"ref",15,null),a=d(t,"type",3,"button"),n=B(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=mt.create({id:_(()=>o()),ref:_(()=>s(),u=>s(u))}),h=f(()=>$(n,l.props,{type:a()}));var p=x(),v=y(p);Z(v,()=>ae,(u,m)=>{m(u,{get id(){return o()},get ref(){return l.opts.ref},children:(b,P)=>{var T=x(),A=y(T);{var N=c=>{var C=x(),K=y(C);H(K,()=>t.child,()=>({props:i(h)})),g(c,C)},S=c=>{var C=Le();X(C,()=>({...i(h)}));var K=G(C);H(K,()=>t.children??W),Y(C),g(c,C)};R(A,c=>{t.child?c(N):c(S,!1)})}g(b,T)},$$slots:{default:!0}})}),g(r,p),D()}function We(r,t){O(t,!0);let e=B(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"M20 6 9 17l-5-5"}]];Bt(r,z({name:"check"},()=>e,{get iconNode(){return o},children:(s,a)=>{var n=x(),l=y(n);H(l,()=>t.children??W),g(s,n)},$$slots:{default:!0}})),D()}function lo(r,t){O(t,!0);let e=d(t,"open",15,!1),o=d(t,"value",15),s=B(t,["$$slots","$$events","$$legacy","open","value"]);var a=x(),n=y(a);Z(n,()=>Ke,(l,h)=>{h(l,z(()=>s,{get open(){return e()},set open(p){e(p)},get value(){return o()},set value(p){o(p)}}))}),g(r,a),D()}var Fe=U('<span class="absolute end-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function ao(r,t){O(t,!0);let e=d(t,"ref",15,null),o=B(t,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var s=x(),a=y(s);{const n=(h,p)=>{let v=()=>p?.().selected,u=()=>p?.().highlighted;var m=Fe(),b=y(m),P=G(b);{var T=c=>{We(c,{class:"size-4"})};R(P,c=>{v()&&c(T)})}Y(b);var A=tt(b,2);{var N=c=>{var C=x(),K=y(C);H(K,()=>t.children,()=>({selected:v(),highlighted:u()})),g(c,C)},S=c=>{var C=Wt();jt(()=>he(C,t.label||t.value)),g(c,C)};R(A,c=>{t.children?c(N):c(S,!1)})}g(h,m)};let l=f(()=>rt("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t.class));Z(a,()=>Me,(h,p)=>{p(h,z({get value(){return t.value},"data-slot":"select-item",get class(){return i(l)}},()=>o,{get ref(){return e()},set ref(v){e(v)},children:n,$$slots:{default:!0}}))})}g(r,s),D()}function qe(r,t){let e=B(t,["$$slots","$$events","$$legacy"]);var o=x(),s=y(o);Z(s,()=>ie,(a,n)=>{n(a,z(()=>e))}),g(r,o)}function je(r,t){O(t,!0);let e=B(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];Bt(r,z({name:"chevron-up"},()=>e,{get iconNode(){return o},children:(s,a)=>{var n=x(),l=y(n);H(l,()=>t.children??W),g(s,n)},$$slots:{default:!0}})),D()}function Ge(r,t){O(t,!0);let e=d(t,"ref",15,null),o=B(t,["$$slots","$$events","$$legacy","ref","class"]);var s=x(),a=y(s);{let n=f(()=>rt("flex cursor-default items-center justify-center py-1",t.class));Z(a,()=>Ee,(l,h)=>{h(l,z({"data-slot":"select-scroll-up-button",get class(){return i(n)}},()=>o,{get ref(){return e()},set ref(p){e(p)},children:(p,v)=>{je(p,{class:"size-4"})},$$slots:{default:!0}}))})}g(r,s),D()}function Ye(r,t){O(t,!0);let e=d(t,"ref",15,null),o=B(t,["$$slots","$$events","$$legacy","ref","class"]);var s=x(),a=y(s);{let n=f(()=>rt("flex cursor-default items-center justify-center py-1",t.class));Z(a,()=>Ve,(l,h)=>{h(l,z({"data-slot":"select-scroll-down-button",get class(){return i(n)}},()=>o,{get ref(){return e()},set ref(p){e(p)},children:(p,v)=>{Et(p,{class:"size-4"})},$$slots:{default:!0}}))})}g(r,s),D()}var Je=U("<!> <!> <!>",1);function ho(r,t){O(t,!0);let e=d(t,"ref",15,null),o=d(t,"sideOffset",3,4),s=d(t,"preventScroll",3,!0),a=B(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children","preventScroll"]);qe(r,z(()=>t.portalProps,{children:(n,l)=>{var h=x(),p=y(h);{let v=f(()=>rt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t.class));Z(p,()=>Te,(u,m)=>{m(u,z({get sideOffset(){return o()},get preventScroll(){return s()},"data-slot":"select-content",get class(){return i(v)}},()=>a,{get ref(){return e()},set ref(b){e(b)},children:(b,P)=>{var T=Je(),A=y(T);Ge(A,{});var N=tt(A,2);{let c=f(()=>rt("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));Z(N,()=>ke,(C,K)=>{K(C,{get class(){return i(c)},children:(Q,I)=>{var E=x(),j=y(E);H(j,()=>t.children??W),g(Q,E)},$$slots:{default:!0}})})}var S=tt(N,2);Ye(S,{}),g(b,T)},$$slots:{default:!0}}))})}g(n,h)},$$slots:{default:!0}})),D()}var Qe=U("<!> <!>",1);function uo(r,t){O(t,!0);let e=d(t,"ref",15,null),o=d(t,"size",3,"default"),s=B(t,["$$slots","$$events","$$legacy","ref","class","children","size"]);var a=x(),n=y(a);{let l=f(()=>rt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class));Z(n,()=>ze,(h,p)=>{p(h,z({"data-slot":"select-trigger",get"data-size"(){return o()},get class(){return i(l)}},()=>s,{get ref(){return e()},set ref(v){e(v)},children:(v,u)=>{var m=Qe(),b=y(m);H(b,()=>t.children??W);var P=tt(b,2);Et(P,{class:"size-4 opacity-50"}),g(v,m)},$$slots:{default:!0}}))})}g(r,a),D()}export{We as C,de as P,uo as S,ho as a,ao as b,lo as c,no as d,io as i};