System.register(["./p-0f755fae.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.m}],execute:function(){var r=e("C",{timeZone:"Europe/Istanbul",locale:"tr",timeFormat:"24-hour",setLocale:function(e){t.locale(e);r.locale=e},setTimeZone:function(e){if(e==="Europe/Istanbul"){r.timeZone="Europe/Moscow"}else{r.timeZone=e}},setTimeFormat:function(e){r.timeFormat=e},fixHourDifference:function(e){var n=(new Date).getTimezoneOffset();var o=t.tz.zone(r.timeZone).offset(new Date);var i=(n-o)/60;e.setHours(e.getHours()-i);return e},format:function(e,n){if(n==="HH:mm"&&r.timeFormat==="12-hour"){return t(e).tz(r.timeZone).format("hh:mm A")}return t(e).tz(r.timeZone).format(n)},getStartAndEndDateFromInputs:function(e,t,n){var o=new Date(e.getTime());o.setHours(t.getHours(),t.getMinutes(),0);var i=new Date(e.getTime());i.setHours(n.getHours(),n.getMinutes(),0);o=r.fixHourDifference(o);i=r.fixHourDifference(i);return{startDate:o.getTime()/1e3,endDate:i.getTime()/1e3}},elapsedTime:function(e){return t(e).tz(r.timeZone).fromNow()},elapsedTimeBetweenDates:function(e,r){return t(e).from(t(r))},getMonday:function(){return t().startOf("isoWeek").toDate()},getStartEndOfWeek:function(e){if(e===void 0){e=0}var t=e*(7*24*60*60*1e3);var n=new Date(new Date(r.getMonday()).getTime()+t);n.setHours(0,0,0,0);var o=new Date(n.getTime());o.setDate(n.getDate()+6);o.setHours(23,59,59,99);return{relativeWeekNumber:e,firstDayOfWeek:n,lastDayOfWeek:o}}})}}}));