System.register(["./p-7e44bde4.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",dayNamesOrdered:[],setLocale:function(e,n,o){if(o===void 0){o="monday"}t.locale(e);r.locale=e;if(n){a(e,n);var u=[n.sunday3,n.monday3,n.tuesday3,n.wednesday3,n.thursday3,n.friday3,n.saturday3];var s=[];for(var i=0;i<7;i++){s.push(u[(i+r.getWeekStartIndex(o))%7])}r.dayNamesOrdered=s}},getWeekStartIndex:function(e){switch(e){case"monday":return 1;case"saturday":return 6;case"sunday":default:return 0}},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 a=(new Date).getTimezoneOffset();var n=t.tz.zone(r.timeZone).offset(new Date);var o=(a-n)/60;e.setHours(e.getHours()-o);return e},format:function(e,a){if(a==="HH:mm"&&r.timeFormat==="12-hour"){return t(e).tz(r.timeZone).format("hh:mm A")}return t(e).tz(r.timeZone).format(a)},getStartAndEndDateFromInputs:function(e,t,a){var n=new Date(e.getTime());n.setHours(t.getHours(),t.getMinutes(),0);var o=new Date(e.getTime());o.setHours(a.getHours(),a.getMinutes(),0);n=r.fixHourDifference(n);o=r.fixHourDifference(o);return{startDate:n.getTime()/1e3,endDate:o.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 a=new Date(new Date(r.getMonday()).getTime()+t);a.setHours(0,0,0,0);var n=new Date(a.getTime());n.setDate(a.getDate()+6);n.setHours(23,59,59,99);return{relativeWeekNumber:e,firstDayOfWeek:a,lastDayOfWeek:n}}});function a(e,r){t.locale(e,{months:[r.january,r.february,r.march,r.april,r.may,r.june,r.july,r.august,r.september,r.october,r.november,r.december],monthsShort:[r.january3,r.february3,r.march3,r.april3,r.may3,r.june3,r.july3,r.august3,r.september3,r.october3,r.november3,r.december3],monthsParseExact:true,weekdays:[r.sunday,r.monday,r.tuesday,r.wednesday,r.thursday,r.friday,r.saturday],weekdaysShort:[r.sunday3,r.monday3,r.tuesday3,r.wednesday3,r.thursday3,r.friday3,r.saturday3],weekdaysMin:[r.sunday2,r.monday2,r.tuesday2,r.wednesday2,r.thursday2,r.friday2,r.saturday2]})}}}}));