var u=(t=>(t.MONDAY="monday",t.TUESDAY="tuesday",t.WEDNESDAY="wednesday",t.THURSDAY="thursday",t.FRIDAY="friday",t))(u||{}),m=(t=>(t.SATURDAY="saturday",t.SUNDAY="sunday",t))(m||{}),D=(t=>(t.MONDAY="monday",t.TUESDAY="tuesday",t.WEDNESDAY="wednesday",t.THURSDAY="thursday",t.FRIDAY="friday",t.SATURDAY="saturday",t.SUNDAY="sunday",t))(D||{});const c=(t,e,n)=>{if(!t&&!e)return!0;const o=new Date().valueOf();if(t&&!e)return o>new Date(t).valueOf();if(!t&&e)return oa.valueOf()&&o{const n={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"};return t?new Intl.DateTimeFormat(e,n).format(Date.parse(t)):""},l=t=>t.map(({open:e,close:n})=>`${e}–${n}`).join(", "),w=t=>{const e=new Set;for(const n of Object.values(u))e.add(t[n]);return e.size===1},g=()=>{var o;const t="en-GB",e="long",n=new Intl.DateTimeFormat(t,{weekday:e}).format;return(o=n(Date.now()))==null?void 0:o.toLowerCase()},d=()=>{const t="en-GB",e="long",n=new Date,o=n.setDate(n.getDate()+1);return new Intl.DateTimeFormat(t,{weekday:e}).format(o).toLowerCase()},y=(t,e)=>{const n=e?new Date(e):new Date;return t.some(o=>{const a=o.from?new Date(o.from):null,r=o.to?new Date(o.to):null;return a?(r&&r.setHours(23,59,59,999),r?n>=a&&n<=r:n.toDateString()===a.toDateString()):!1})},S=(t,e)=>t?new Intl.DateTimeFormat(e).format(Date.parse(t)):"",T=(t,e)=>{const n={year:"numeric",month:"long",day:"numeric"};return t?new Intl.DateTimeFormat(e,n).format(Date.parse(t)):""},I=(t,e=new Date)=>(e.setDate(e.getDate()+t),e),i=t=>{const e=t.from;let n=t.to;if(!n){const o=new Date(e||"");o.setHours(23,59,59,999),n=o.toISOString()}return{fromDate:e,toDate:n}},Y=t=>{let e=null,n=0;for(let o=0;on&&(n=s,e=t[o])}}return e},h=(t,e=0)=>{const n=new Date(t||"");n.setDate(n.getDate()-e);const o=n.getDate(),a=n.getMonth()+1,r=n.getFullYear();return`${o}.${a}.${r}`},A=t=>{for(let e=0;e