1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ada6a744-70dd-59f7-be79-acfb05314ada")}catch(e){}}(); 3import"./rolldown-runtime-DvfoX5Ak.js";import{rp as e}from"./shared_core-CkNNowNI.js";var formatTimeRemaining=t=>{let n=e();if(t.isBefore(n)||t.isSame(n))return`0 days`;let r=e.duration(t.diff(n)),i=Math.floor(r.asDays());if(i>=1)return i===1?`1 day`:`${i} days`;let a=r.hours(),o=r.minutes(),s=r.seconds(),c=[];return a>0&&c.push(`${a}hr`),o>0&&c.push(`${String(o).padStart(2,`0`)}m`),(s>0||c.length===0)&&c.push(`${String(s).padStart(2,`0`)}s`),c.join(` `)},t=`hh:mma - MMMM DD, YYYY`,n=`hh:mma z - MMMM DD, YYYY`,r=`America/Los_Angeles`,formatDeadlineShort=t=>{let n=e(t).tz(r);return`${n.format(`MMM D`)}, ${n.format(`h:mma`)} ${n.format(`z`)}`},getChallengeTimeInfo=(i,a)=>{let o=e(),s=e(i),c=a?e(a):null;if(s.isBefore(o)||s.isSame(o)){let e=Math.floor(o.diff(s,`day`,!0)),n=s.format(t);return e===0?{label:`Ended`,status:`COMPLETED`,timeDisplay:`Today`,timeDisplayTitle:n}:e===1?{label:`Ended`,status:`COMPLETED`,timeDisplay:`1 day ago`,timeDisplayTitle:n}:{label:`Ended`,status:`COMPLETED`,timeDisplay:`${e} days ago`,timeDisplayTitle:n}}return c&&c.isAfter(o)?{label:`Until it starts`,status:`UPCOMING`,timeDisplay:formatTimeRemaining(c),timeDisplayTitle:c.format(t)}:{label:`Enter by ${formatDeadlineShort(i)}`,status:`ACTIVE`,timeDisplay:formatTimeRemaining(s),timeDisplayTitle:s.tz(r).format(n)}};export{getChallengeTimeInfo as n,formatDeadlineShort as t}; 4//# sourceMappingURL=getChallengeTimeInfo-kaLNAyIs.js.map 5//# debugId=ada6a744-70dd-59f7-be79-acfb05314ada
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.