"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@aplus-frontend/utils"),i=require("dayjs"),n=(e,o,r=!0)=>{if(!e)return null;let t=e.clone();return t=t.millisecond(r?0:999),o.indexOf("ss")===-1&&(t=t.second(r?0:59)),o.indexOf("mm")===-1&&(t=t.minute(r?0:59)),o.indexOf("HH")===-1&&(t=t.hour(r?0:23)),o.indexOf("DD")===-1&&(t=t.date(r?1:t.daysInMonth())),o.indexOf("MM")===-1&&(t=t.month(r?0:12)),t.valueOf()};function f(e){return(o,r,t=!0)=>{const a=r?n(o,r,t):o.valueOf();return e?u.getUtcTimestamp(i(a),e):a}}const m=e=>e&&e.valueOf();exports.formatDay=n;exports.formatDayWithTimezone=f;exports.formatValue=m;
