import{a as m}from"./chunk-CP4WO7MM.mjs";import{a as f}from"./chunk-IHX4EDUF.mjs";var i=(r,o)=>{let e=new Date(r),t=new Date;return new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",...e.getUTCFullYear()!==t.getUTCFullYear()?{year:"numeric"}:{},...o})};function y({domain:r,key:o,pretty:e,searchParams:t}){if(!r)return"";let p=`https://${f(r)}${o&&o!=="_root"?`/${f(o)}`:""}`;if(t){let n=new URLSearchParams;for(let[x,a]of Object.entries(t))n.set(x,a);p+=`?${n.toString()}`}return e?p.replace(/^https?:\/\//,""):p}function F({domain:r,key:o}){return`https://${r}${o==="_root"?"":`/${o}`}`}var cr=r=>!r.periodStart||!r.periodEnd?"-":`${m(r.periodStart,{month:"short",year:new Date(r.periodStart).getUTCFullYear()===new Date(r.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${m(r.periodEnd,{month:"short",timeZone:"utc"})}`;export{i as a,cr as b,y as c,F as d};
