1import{Q as e}from"./lib-CHSP31B9.js";import{t}from"./_baseIsEqual-DEYOnVwQ.js";var n=class{_duration=null;_unit=`s`;_dayLengthInSeconds=3600*24;constructor(e){e!=null&&(this._duration=this._toNumericDuration(e))}withUnit(e){return this._unit=e,this}withDayLength(e){return e===void 0||(this._dayLengthInSeconds=e),this}format(){if(this._duration==null||Number.isNaN(this._duration))return``;let e=this._toSeconds(),t=Math.floor(Math.max(e,0)/60),n=Math.floor(e%this._dayLengthInSeconds/3600),r=t%60,i=Math.floor(e/this._dayLengthInSeconds),a=[];return i>0&&a.push(`${i}d`),n>0&&a.push(`${n}h`),r>0&&a.push(`${r}m`),a.length>0?a.join(` `):`0m`}_toNumericDuration(e){return typeof e==`number`?e:Number(e.replace(/,/g,``).trim())}_toSeconds(){if(!this._duration)return 0;switch(this._unit){case`s`:return this._duration;case`m`:return this._duration*60;case`h`:return this._duration*60*60;case`d`:return this._duration*60*60*24}}},r=e=>new n(e),i=e(((e,n)=>{var r=t();function i(e,t){return r(e,t)}n.exports=i}));export{r as n,i as t}; 2//# sourceMappingURL=isEqual-DSHf2_yp.js.map
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.