import{a as p}from"./chunk-CP4WO7MM.mjs";import{a as n}from"./chunk-IHX4EDUF.mjs";var a=(r,o)=>{if(r.toString()==="Invalid Date")return"";let e=new Date(r),t=new Date;return new Date(r).toLocaleTimeString("en-US",{month:"short",day:"numeric",...e.getUTCFullYear()!==t.getUTCFullYear()?{year:"numeric"}:{hour:"numeric",minute:"numeric",hour12:!0},...o})};function C({domain:r,key:o,pretty:e,searchParams:t}){if(!r)return"";let m=`https://${n(r)}${o&&o!=="_root"?`/${n(o)}`:""}`;if(t){let f=new URLSearchParams;for(let[x,i]of Object.entries(t))f.set(x,i);m+=`?${f.toString()}`}return e?m.replace(/^https?:\/\//,""):m}function U({domain:r,key:o}){return`https://${r}${o==="_root"?"":`/${o}`}`}var ur=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,ur as b,C as c,U as d};
