/** * Kendo UI v2019.2.619 (http://www.telerik.com/kendo-ui) * Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(e,define){define("kendo.scheduler.timelineview.min",["kendo.scheduler.view.min"],e)}(function(){return function(e,t){function i(e){var t=new Date(1980,1,1,0,0,0);return u(t,g(e)),t}function n(e){var t=[],i=e.workWeekStart%7,n=Math.abs(e.workWeekEnd%7);for(t.push(i);n!=i;)i>6?i-=7:i++,t.push(i);return t}function o(e){var t,i=0;if(e.columns){for(t=0;t=0;n--)o=e[n].rectLeft,a=e[n].rectRight,r=o<=t&&a>=t,(r||o>=t&&a<=i||t<=o&&i>=o)&&(oi&&(i=a));return s(e,t,i)}function s(e,t,i){var n,o,r=[];for(n=0;nt||o.rectLeft>=t&&o.rectRight<=i)&&r.push(e[n]);return r}var a,l=window.kendo,d=l.ui,u=l.date.setTime,c=d.SchedulerView,h=l._outerWidth,f=l._outerHeight,_=e.extend,p=e.proxy,v=l.date.getDate,g=l.date.getMilliseconds,m=l.date.MS_PER_DAY,w=l.date.MS_PER_MINUTE,T="k-current-time",k="k-current-time-arrow",D="k-scheduler-header-wrap",y="k-event-inverse",S=.8666,C=".kendoTimelineView",V=l.template('
#:kendo.format("{0:t} - {1:t}", start, end)#
${title}
'),R=l.template("#=kendo.format('{0:m}', date)#"),x='
# if(data.tail) {##}## if(data.isException()) {## } else if(data.isRecurring()) {## } #{0}#if (showDelete) {##}## if(data.head) {##}##if(resizable && !data.tail){##}##if(resizable && !data.head){##}#
',M=l.Class.extend({init:function(e){this._view=e},_getTimeSlotByPosition:function(e,t,i){var n=this._view.groups[i];return n.timeSlotByPosition(e,t)},_hideHeaders:function(){var e=this._view;e.timesHeader.find("table tr:last").hide(),e.datesHeader.find("table tr:last").hide()},_setColspan:function(e){o(e)},_createRowsLayout:function(e,t,i){var n=this._view;return n._createRowsLayout(e,t,i)},_createVerticalColumnsLayout:function(e,t,i,n){return n},_createColumnsLayout:function(e,t,i){var n=this._view;return n._createColumnsLayout(e,t,i)},_getRowCount:function(){var e=this._view;return e._groupCount()},_getGroupsCount:function(){return 1},_addContent:function(e,t,i,n,o,r,s,a){var d,u,c,h,f=this._view,_="",p=f.options,v=function(t){var i,n="",o="",r=function(e){return function(){return f._resourceBySlot({groupIndex:e})}};return l.date.isToday(e[c])&&(o+="k-today"),(l.date.getMilliseconds(t)=l.date.getMilliseconds(p.workDayEnd)||!f._isWorkDay(e[c]))&&(o+=" k-nonwork-hour"),n+="",i=l.date.getDate(e[c]),l.date.setTime(i,l.date.getMilliseconds(t)),n+=s({date:i,resources:r(a?d:u)}),n+=""};for(d=0;d",u=0;u"}return _},_addTimeSlotsCollections:function(e,t,i,n,o){var r,s,a,l,d,u,c,h,f,_,p,v,m=this._view,w=i.length;for(o&&(w=Math.floor(w/e)),r=0;r",r=n.datesHeader.find("."+D),s=Math.round(t[0].innerRect(i,new Date(i.getTime()+1),!1).left),a=e(o).prependTo(r).addClass(k+"-down");a.css({left:n._adjustLeftPosition(s-h(a)*S/2),top:r.find("tr:last").prev().position().top}),e(o).prependTo(n.content).css({left:n._adjustLeftPosition(s),width:"1px",height:n.content[0].scrollHeight-1,top:0})},_changeGroup:function(){return t},_prevGroupSlot:function(e,t,i){var n,o=this._view;return o._isVerticallyGrouped()?e:(n=t._collection(0,i),n.last())},_nextGroupSlot:function(e,t,i){var n,o=this._view;return o._isVerticallyGrouped()?e:(n=t._collection(0,i),n.first())},_verticalSlots:function(e,t){var i=this._view;return i._changeGroup(e,t)},_verticalMethod:function(e){return e?"leftSlot":"rightSlot"},_normalizeVerticalSelection:function(){return t},_horizontalSlots:function(e,t,i,n,o,r,s){var a=this._view,l={};return l.startSlot=t[i](n),l.endSlot=t[i](o),r||!a._isHorizontallyGrouped()||l.startSlot&&l.endSlot||(l.startSlot=l.endSlot=a._changeGroup(e,s)),l},_changeVerticalViewPeriod:function(){return!1},_changeHorizontalViewPeriod:function(e,t,i,n){var o=this._view;return!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(i,n,!1))},_updateDirection:function(e,t,i,n){var o=this._view;o._updateDirection(e,t,i,n,!0)},_createMoveHint:function(e,t){var i,n,o,r,s=this._view,a=e.start,l=s._createEventElement(t.occurrence,t.occurrence,!1,!1);l.addClass("k-event-drag-hint"),i=e.innerRect(t.occurrence.start,t.occurrence.end,s.options.snap),n=i.right-i.left-2,n<0&&(n=0),o=s._adjustLeftPosition(i.left),r={left:o,top:a.offsetTop,height:a.offsetHeight-2,width:n},l.css(r),t.occurrence.inverseColor&&l.addClass(y),s._appendMoveHint(l)},_adjustLeftPosition:function(e){var t=this._view;return t._isRtl&&(e-=t.content[0].scrollWidth-t.content[0].clientWidth),e}}),H=l.Class.extend({init:function(e){this._view=e},_getTimeSlotByPosition:function(e,t,i){var n=this._view.groups[i];return n.timeSlotByPosition(e,t,!0)},_hideHeaders:function(){var e=this._view;e._isVerticallyGrouped()?e.times.find(".k-last").hide():(e.timesHeader.find("table tr").eq(2).hide(),e.datesHeader.find("table tr").eq(2).hide())},_setColspan:function(){},_createRowsLayout:function(e,t,i,n){var o=this._view;return o._createDateLayout(n,null,!0)},_createVerticalColumnsLayout:function(e,t,i){var n=this._view;return n._createColumnsLayout(e,null,i)},_createColumnsLayout:function(e,t,i,n){var o=this._view;return o._createColumnsLayout(e,t,i,n,!0)},_getRowCount:function(e){var t=this._view;return t._rowCountForLevel(e)},_getGroupsCount:function(){var e=this._view;return e._groupCount()},_addContent:function(e,t,i,n,o,r,s,a){var d,c,h,f,_=this._view,p="",v=_.options,g=function(t,i,n,o,r,a){var u,c="",f="",p=_._isVerticallyGrouped()?d:h,g=function(e){return function(){return _._resourceBySlot({groupIndex:e})}};return l.date.isToday(e[h])&&(f+="k-today"),(l.date.getMilliseconds(t)=l.date.getMilliseconds(v.workDayEnd)||!_._isWorkDay(e[p]))&&(f+=" k-nonwork-hour"),c+="",u=l.date.getDate(e[h]),l.date.setTime(u,l.date.getMilliseconds(t)),c+=s({date:u,resources:g(a)}),c+=""},m=new Date(o),T=_.options.minorTickCount,k=_.options.majorTick*w,D=k/T||1;for(c=0;c",c%(n/_._dates.length)===0&&(d=c/(n/_._dates.length),m=new Date(_._dates[d]),l.date.setTime(m,l.date.getMilliseconds(o))),h=0,f=t;h"}return p},_addTimeSlotsCollections:function(e,t,i,n,o){var r,s,a,l,d,u,c,h,f,_,p,v,m=this._view,w=i.length;for(o&&(w/=t),r=0;r",a=e(s).prependTo(n.times),l=Math.round(t[0].innerRect(i,new Date(i.getTime()+1),!1).top),d={};this._isRtl?(d.right=o.position().left+f(o)-f(r),a.addClass(k+"-left")):(d.left=r.position().left,a.addClass(k+"-right")),d.top=l-h(a)*S/2,a.css(d),e(s).prependTo(n.content).css({top:l,height:"1px",right:"1px",width:n.content[0].scrollWidth,left:0})},_changeGroup:function(e,t,i){var n=this._view;i||(e.groupIndex=t?n.groups.length-1:0)},_prevGroupSlot:function(e){return e},_nextGroupSlot:function(e){return e},_changeDate:function(e,t,i){var n,o,r=this._view,s=r.groups[e.groupIndex];if(t){if(n=s._getCollections(!1),o=i.index-1,o>=0)return n[0]._slots[o]}else if(n=s._getCollections(!1),o=i.index+1,n[0]&&n[0]._slots[o])return n[0]._slots[o]},_verticalSlots:function(e,t,i){return this._changeDate(e,t,i)},_verticalMethod:function(e,t){return t?e?"upSlot":"downSlot":e?"leftSlot":"rightSlot"},_normalizeVerticalSelection:function(e,i,n,o){var r=this._view;return o?t:r._normalizeVerticalSelection(e,i,n)},_horizontalSlots:function(e,t,i,n,o,r,s){var a=this._view,l=a._changeGroup(e,s),d={};return l?d.startSlot=d.endSlot=l:a._isVerticallyGrouped()||(d.startSlot=t[i](n),d.endSlot=t[i](o)),d},_changeVerticalViewPeriod:function(e,t,i,n){var o=this._view;return!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(i,n,o._isVerticallyGrouped()))},_changeHorizontalViewPeriod:function(e,t,i,n){var o=this._view;return!o._isVerticallyGrouped()&&!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(i,n,!1))},_updateDirection:function(e,t,i,n){var o=this._view;o._updateDirection(e,t,i,n,!o._isVerticallyGrouped())},_createMoveHint:function(e,t){var i,n,o,r,s=this._view,a=e.start,l=e.end;for(i=a.index;i<=l.index;i++)n=e.collection._slots[i],o=s._createEventElement(t.occurrence,t.occurrence,!1,!1),o.addClass("k-event-drag-hint"),r={left:n.offsetLeft+2,top:n.offsetTop,height:s.options.eventHeight,width:n.offsetWidth},o.css(r),t.occurrence.inverseColor&&o.addClass(y),s._appendMoveHint(o)},_adjustLeftPosition:function(e){var t=this._view;return t._isRtl&&!t._isVerticallyGrouped()&&(e-=t.content[0].scrollWidth-t.content[0].offsetWidth),e}});l.ui.scheduler.TimelineGroupedView=M,l.ui.scheduler.TimelineGroupedByDateView=H,a=c.extend({init:function(e,t){var i=this;c.fn.init.call(i,e,t),i._groupedView=i._getGroupedView(),i.title=i.options.title||i.options.name,i._workDays=n(i.options),i._templates(),i._editable(),i.calculateDateRange(),i._groups(),i._currentTime(!0)},name:"timeline",_getGroupedView:function(){return this._isGroupedByDate()?new l.ui.scheduler.TimelineGroupedByDateView(this):new l.ui.scheduler.TimelineGroupedView(this)},_getNextEventIndexBySlot:function(e,t,i){var n,o;if(this._isVerticallyGrouped())return l.ui.SchedulerView.fn._getNextEventIndexBySlot.call(this,e,t,i);for(n=0,o=0;ot[o].start.startDate())n++;else{if(!(e.startDate().getTime()===t[o].start.startDate().getTime()&&i>t[o].start.groupIndex))break;n++}return n},_getSelectedSlot:function(e,t,i,n,o,r){return this._isVerticallyGrouped()?l.ui.SchedulerView.fn._getSelectedSlot.call(this,e,t,i,n,o,r):e},_getSortedEvents:function(t){return this._isVerticallyGrouped()?l.ui.SchedulerView.fn._getSortedEvents.call(this,t):t.sort(function(t,i){var n=t.start.startDate().getTime()-i.start.startDate().getTime();return 0===n&&(t.start.isDaySlot&&!i.start.isDaySlot&&(n=-1),!t.start.isDaySlot&&i.start.isDaySlot&&(n=1)),0===n&&(n=t.start.groupIndex-i.start.groupIndex),0===n&&(n=e(t.element).index()-e(i.element).index()),n})},_currentTimeMarkerUpdater:function(){this._updateCurrentTimeMarker(new Date)},_updateCurrentTimeMarker:function(t){var i,n,o,r,s,a,d,u,c,f,_,p,v,g=this.options;if(this.datesHeader.find("."+T).remove(),this.times.find("."+T).remove(),this.content.find("."+T).remove(),this._isInDateSlot({start:t,end:t}))for(g.currentTimeMarker.useLocalTimezone===!1&&(i=g.dataSource.options.schema.timezone,g.dataSource&&i&&(n=l.timezone.offset(t,i),t=l.timezone.convert(t,t.getTimezoneOffset(),n))),o=g.group&&"vertical"!=g.group.orientation?this.groups.length:1,r=0;r",_=this.datesHeader.find("."+D),p=Math.round(d[0].innerRect(t,new Date(t.getTime()+1),!1).left),v=e(f).prependTo(_).addClass(k+"-down"),v.css({left:this._adjustLeftPosition(p-h(v)*S/2),top:_.find("tr:last").prev().position().top}),e(f).prependTo(this.content).css({left:this._adjustLeftPosition(p),width:"1px",height:this.content[0].scrollHeight-1,top:0})))}},_adjustLeftPosition:function(e){return this._groupedView._adjustLeftPosition(e)},_currentTime:function(e){var i=this,n=i.options.currentTimeMarker;n!==!1&&n.updateInterval!==t&&(i._currentTimeMarkerUpdater(),e&&(i._currentTimeUpdateTimer=setInterval(p(this._currentTimeMarkerUpdater,i),n.updateInterval)))},_editable:function(){this.options.editable&&(this._isMobile()?this._touchEditable():this._mouseEditable())},_mouseEditable:function(){var t=this;t.element.on("click"+C,".k-event a:has(.k-i-close)",function(i){t.trigger("remove",{uid:e(this).closest(".k-event").attr(l.attr("uid"))}),i.preventDefault()}),t.options.editable.create!==!1&&t.element.on("dblclick"+C,".k-scheduler-content td",function(e){var i,n=t._slotByPosition(e.pageX,e.pageY);n&&(i=t._resourceBySlot(n),t.trigger("add",{eventInfo:_({start:n.startDate(),end:n.endDate()},i)})),e.preventDefault()}),t.options.editable.update!==!1&&t.element.on("dblclick"+C,".k-event",function(i){t.trigger("edit",{uid:e(this).closest(".k-event").attr(l.attr("uid"))}),i.preventDefault()})},_touchEditable:function(){var i=this,n=0;l.support.mobileOS.android&&(n=5),i.options.editable.create!==!1&&(i._addUserEvents=new l.UserEvents(i.element,{threshold:n,useClickAsTap:!l.support.browser.edge,filter:".k-scheduler-content td",tap:function(e){var n,o,r,s;i._scrolling||(n=e.x.location!==t?e.x.location:e.x,o=e.y.location!==t?e.y.location:e.y,r=i._slotByPosition(n,o),r&&(s=i._resourceBySlot(r),i.trigger("add",{eventInfo:_({start:r.startDate(),end:r.endDate()},s)})),e.preventDefault())}})),i.options.editable.update!==!1&&(i._editUserEvents=new l.UserEvents(i.element,{threshold:n,useClickAsTap:!l.support.browser.edge,filter:".k-event",tap:function(t){var n,o;i._scrolling||(n=e(t.target).closest(".k-event"),o=e(t.touch.initialTouch),o.hasClass("k-i-close")?i.trigger("remove",{uid:n.attr(l.attr("uid"))}):n.hasClass("k-event-active")||i.trigger("edit",{uid:n.attr(l.attr("uid"))}),t.preventDefault())}}))},_slotByPosition:function(e,t){var i,n,o,r=this.content,s=r.offset();for(e-=s.left,t-=s.top,this._isRtl?(o=l.support.browser,o.mozilla?(e+=r[0].scrollWidth-r[0].offsetWidth,e+=r[0].scrollLeft):o.msie?(e-=r.scrollLeft(),e+=r[0].scrollWidth-r[0].offsetWidth):o.webkit&&(e+=r[0].scrollLeft)):e+=r[0].scrollLeft,t+=r[0].scrollTop,e=Math.ceil(e),t=Math.ceil(t),n=0;nl&&(l+=m),p=(l-a)/h),p=o?1:Math.round(p),r&&(p*=r);_',i=o.footer.command,this._isMobile()&&(t+='',t+=o.messages.today+""),i&&"workDay"===i?this._isMobile()?(t+='',t+=(o.showWorkHours?o.messages.showFullDay:o.messages.showWorkDay)+""):(t+='"):t+=" ",t+="",this.footer=e(t).appendTo(this.element),n=this,this.footer.on("click"+C,".k-scheduler-fullday",function(e){e.preventDefault(),n.trigger("navigate",{view:n.name||o.name,date:n.startDate(),isWorkDay:!o.showWorkHours})}),this.footer.on("click"+C,".k-scheduler-today",function(e){var t,i,r,s,a;e.preventDefault(),t=n.options.timezone,i="today",r=new Date,t?(a=l.timezone.offset(r,t),s=l.timezone.convert(r,r.getTimezoneOffset(),a)):s=r,n.trigger("navigate",{view:n.name||o.name,action:i,date:s})}))},_columnCountForLevel:function(e){var t=this.columnLevels[e];return t?t.length:0},_rowCountForLevel:function(e){var t=this.rowLevels[e];return t?t.length:0},_isWorkDay:function(e){var t,i=e.getDay(),n=this._workDays;for(t=0;t",a+=t._groupedView._addContent(e,s,o,r,i,n,d,u),a+="",this.content.find("table").append(a)},_groups:function(){var e,t,i,n,o,r,s=this._groupCount(),a=this._dates,d=a.length;for(this.groups=[],e=0;et?i=t:i1?this._eventsByResource(s,t.slice(1),i):i.push(s);else i.push(e)},_isInDateSlot:function(e){var t=e.start,i=e.end,n=v(this._startDate),o=l.date.addDays(v(this.visibleEndDate()),1);return t=a&&(d=v(i),u(d,s),f=!0),r>a&&r<=s&&(c=v(n),u(c,a),h=!0)):(s>o?(d=v(i),u(d,s),f=!0):a<=o&&(d=v(i),d=l.date.addDays(d,1),u(d,s),f=!0),ar&&(c=v(n),c=l.date.addDays(c,-1),u(c,a),h=!0)),t=e.clone({start:d?d:i,end:c?c:n,_startTime:d?l.date.toUtcTime(d):e._startTime,_endTime:c?l.date.toUtcTime(c):e._endTime,isAllDay:!1}),{occurrence:t,head:h,tail:f}},_renderEvents:function(e,t,i){var n,o,r,s,a,l,d,u,c,h,f;for(o=0,r=e.length;o=m,a=this.content,(s||this._isInTimeSlot(n))&&(l=this._adjustEvent(n),d=this.groups[t],d._continuousEvents||(d._continuousEvents=[]),this._isInTimeSlot(l.occurrence)&&(u=d.slotRanges(l.occurrence,!1),c=u[0],h=c.start.index,f=c.end.index,this._groupedView._renderEvent(i,n,l,d,c,a,h,f))))},addContinuousEvent:function(e,t,i,n){var o=e._continuousEvents;o.push({element:i,isAllDay:n,uid:i.attr(l.attr("uid")),start:t.start,end:t.end})},_createEventElement:function(t,i,n,o){var r,s,a=this.eventTemplate,d=this.options.editable,u=this._isMobile(),c=d&&d.destroy!==!1&&!u,h=d&&d.resize!==!1,f=i._time("start"),p=i._time("end"),v=i.start,g=i.end,m=this.eventResources(i);return i._startTime&&f!==l.date.getMilliseconds(i.start)&&(v=new Date(f),v=l.timezone.apply(v,"Etc/UTC")),i._endTime&&p!==l.date.getMilliseconds(i.end)&&(g=new Date(p),g=l.timezone.apply(g,"Etc/UTC")),r=_({},{ns:l.ns,resizable:h,showDelete:c,head:n,tail:o,singleDay:1==this._dates.length,resources:m,inverseColor:!1,messages:this.options.messages},i,{start:v,end:g}),s=e(a(r)),this.angular("compile",function(){return{elements:s,data:[{dataItem:r}]}}),s},_arrangeRows:function(e,t,i){var n,o,s,a,l,d,u=t.start.index,h=t.end.index,f=e.slotRange.innerRect(e.start,e.end,!1),_=f.right+this.options.eventMinWidth,p=r(t.events(),f.left,_);for(t.addEvent({slotIndex:u,start:u,end:h,rectLeft:f.left,rectRight:_,element:e.element,uid:e.uid}),p.push({start:u,end:h,uid:e.uid}),n=c.createRows(p),i.maxRowCount=m||this._isInTimeSlot(a)))for(n=this._adjustEvent(a),o=s.slotRanges(n.occurrence,!1),r=0;r=this.groups.length-1))return this._groupedView._nextGroupSlot(o,n,i)},_verticalSlots:function(e,t,i,n){var o=this._groupedView,r=o._verticalMethod(n,i),s=t[0].start,a=t[t.length-1].end,l=this.groups[e.groupIndex],d=o._normalizeVerticalSelection(e,t,n,i);return d&&(s=a=d),s=l[r](s),a=l[r](a),i||!this._isVerticallyGrouped()||s&&a||(s=a=o._verticalSlots(e,n,d)),{startSlot:s,endSlot:a}},_horizontalSlots:function(e,t,i,n){var o=n?"upSlot":"downSlot",r=t[0].start,s=t[t.length-1].end,a=this.groups[e.groupIndex],l={};return i?(l.startSlot=a[o](r),l.endSlot=a[o](s),i||!this._isHorizontallyGrouped()||r&&s||(l.startSlot=l.endSlot=this._changeGroup(e,n))):l=this._groupedView._horizontalSlots(e,a,o,r,s,i,n),l},_changeViewPeriod:function(e,t){var i,n=t?this.previousDate():this.nextDate(),o=e.start,r=e.end,s=new Date(n),a=new Date(n);return!this._isInRange(s,a)&&(e.start=s,e.end=a,this._isHorizontallyGrouped()&&(e.groupIndex=t?this.groups.length-1:0),i=r-o,t?(r=g(this.endTime()),r=0===r?m:r,u(e.start,r-i),u(e.end,r)):(o=g(this.startTime()), u(e.start,o),u(e.end,o+i)),e.events=[],!0)},move:function(e,t,i){var n,o,r,s,a,d=!1,u=this.groups[e.groupIndex],c=l.keys,h=this._groupedView,f=u.ranges(e.start,e.end,!1,!1);if(t===c.DOWN||t===c.UP){if(d=!0,r=t===c.UP,h._updateDirection(e,f,i,r),s=this._verticalSlots(e,f,i,r),h._changeVerticalViewPeriod(s,i,e,r))return d}else if((t===c.LEFT||t===c.RIGHT)&&(d=!0,r=t===c.LEFT,this._updateDirection(e,f,i,r,!1),s=this._horizontalSlots(e,f,i,r),h._changeHorizontalViewPeriod(s,i,e,r)))return d;return d&&(n=s.startSlot,o=s.endSlot,i?(a=e.backward,a&&n?e.start=n.startDate():!a&&o&&(e.end=o.endDate())):n&&o&&(e.start=n.startDate(),e.end=o.endDate()),e.events=[]),d},destroy:function(){var e=this;e.element&&e.element.off(C),e.footer&&e.footer.remove(),e._currentTimeUpdateTimer&&clearInterval(e._currentTimeUpdateTimer),c.fn.destroy.call(this),this._isMobile()&&e.options.editable&&(e.options.editable.create!==!1&&e._addUserEvents.destroy(),e.options.editable.update!==!1&&e._editUserEvents.destroy())}}),_(!0,d,{TimelineView:a,TimelineWeekView:a.extend({options:{name:"TimelineWeekView",title:"Timeline Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",selectedMobileDateFormat:"{0:MMM dd} - {1:dd}",majorTick:120},name:"timelineWeek",calculateDateRange:function(){var e,t,i=this.options.date,n=l.date.dayOfWeek(i,this.calendarInfo().firstDay,-1),o=[];for(e=0,t=7;e