import{m as e}from"./p-b3edc8b2.js";const t={timeZone:"Europe/Istanbul",locale:"tr",timeFormat:"24-hour",setLocale(a){e.locale(a),t.locale=a},setTimeZone(e){t.timeZone="Europe/Istanbul"===e?"Europe/Moscow":e},setTimeFormat(e){t.timeFormat=e},fixHourDifference(a){const r=((new Date).getTimezoneOffset()-e.tz.zone(t.timeZone).offset(new Date))/60;return a.setHours(a.getHours()-r),a},format:(a,r)=>"HH:mm"===r&&"12-hour"===t.timeFormat?e(a).tz(t.timeZone).format("hh:mm A"):e(a).tz(t.timeZone).format(r),getStartAndEndDateFromInputs(e,a,r){let n=new Date(e.getTime());n.setHours(a.getHours(),a.getMinutes(),0);let o=new Date(e.getTime());return o.setHours(r.getHours(),r.getMinutes(),0),n=t.fixHourDifference(n),o=t.fixHourDifference(o),{startDate:n.getTime()/1e3,endDate:o.getTime()/1e3}},elapsedTime:a=>e(a).tz(t.timeZone).fromNow(),elapsedTimeBetweenDates:(t,a)=>e(t).from(e(a)),getMonday:()=>e().startOf("isoWeek").toDate(),getStartEndOfWeek(e=0){const a=6048e5*e,r=new Date(new Date(t.getMonday()).getTime()+a);r.setHours(0,0,0,0);const n=new Date(r.getTime());return n.setDate(r.getDate()+6),n.setHours(23,59,59,99),{relativeWeekNumber:e,firstDayOfWeek:r,lastDayOfWeek:n}}};export{t as C}