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