!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).FullCalendar={})}(this,function(e){"use strict";var o={className:!0,colSpan:!0,rowSpan:!0},t={"");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return r(e),t}()),y}function w(e){return e=Math.max(0,e),e=Math.round(e)}function D(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=w(e.offsetWidth-e.clientWidth-r-i),l={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:w(e.offsetHeight-e.clientHeight-o-s),scrollbarLeft:0,scrollbarRight:0};return S()&&"rtl"===n.direction?l.scrollbarLeft=a:l.scrollbarRight=a,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function T(e,t){void 0===t&&(t=!1);var n=C(e),r=D(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function C(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function R(e){return e.getBoundingClientRect().height+I(e)}function I(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function k(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function x(e){e.preventDefault()}function M(e,t,n,r){function i(e){var t=c(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var P=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];var H=["sun","mon","tue","wed","thu","fri","sat"];function _(e,t){var n=A(e);return n[2]+=t,W(n)}function O(e,t){var n=A(e);return n[6]+=t,W(n)}function z(e,t){return(t.valueOf()-e.valueOf())/864e5}function N(e,t){var n=V(e),r=V(t);return{years:0,months:0,days:Math.round(z(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function L(e,t){var n=B(e,t);return null!==n&&n%7==0?n/7:null}function B(e,t){return Z(e)===Z(t)?Math.round(z(e,t)):null}function V(e){return W([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function F(e,t,n,r){var i,o,s=W([t,0,1+(-(7+W([t,0,o=7+(i=n)-r]).getUTCDay()-i)%7+o-1)]),a=V(e),l=Math.round(z(s,a));return Math.floor(l/7)+1}function G(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function U(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function A(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function W(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function j(e){return!isNaN(e.valueOf())}function Z(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var q=["years","months","days","milliseconds"],Y=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function X(e,t){var n;return"string"==typeof e?function(e){var t=Y.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?K(e):"number"==typeof e?K(((n={})[t||"milliseconds"]=e,n)):null}function K(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*J(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function J(e){return e.weeks||e.week||0}function Q(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function $(e){return ee(e)/864e5}function ee(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function te(e,t){var n=e.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return e.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function ne(e){e.forEach(function(e){e.style.height=""})}function re(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t=ee(t)&&(i=_(i,1))),e.start&&(r=V(e.start),i&&i<=r&&(i=_(r,1))),{start:r,end:i}}function ge(e,t,n,r){return"year"===r?X(n.diffWholeYears(e,t),"year"):"month"===r?X(n.diffWholeMonths(e,t),"month"):N(e,t)}var me=function(e,t){return(me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ye(e,t){function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Se=function(){return(Se=Object.assign||function(e){for(var t,n=1,r=arguments.length;no&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return ot.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Ge(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function Mt(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function Pt(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var Ht={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:Pt,classNames:Pt,color:String,backgroundColor:String,borderColor:String,textColor:String};function _t(e,t,n){var r,i,o=he(e,Ht,{},n),s=(r=o.constraint,i=t,Array.isArray(r)?Ie(r,"",i,!0):"object"==typeof r&&r?Ie([r],"",i,!0):null!=r?String(r):null);return{startEditable:null!=o.startEditable?o.startEditable:o.editable,durationEditable:null!=o.durationEditable?o.durationEditable:o.editable,constraints:null!=s?[s]:[],overlap:o.overlap,allows:null!=o.allow?[o.allow]:[],backgroundColor:o.backgroundColor||o.color,borderColor:o.borderColor||o.color,textColor:o.textColor,classNames:o.classNames.concat(o.className)}}function Ot(e,t,n,r){var i={},o={};for(var s in Ht){var a=e+ae(s);i[s]=t[a],o[a]=!0}if("event"===e&&(i.editable=t.editable),r)for(var s in t)o[s]||(r[s]=t[s]);return _t(i,n)}var zt={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Nt(e){return e.reduce(Lt,zt)}function Lt(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var Bt={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},Vt={start:null,date:null,end:null,allDay:null},Ft=0;function Gt(e,t,n,r){var i=function(e,t){var n=null;{var r;e&&(r=t.state.eventSources[e],n=r.allDayDefault)}null==n&&(n=t.opt("allDayDefault"));return n}(t,n),o={},s=function(e,t,n,r,i){for(var o=0;o'+i+"":""+i+""}function Qt(e,t,n,r){var i,o,s=n.calendar,a=n.options,l=n.theme,d=n.dateEnv,c=[];return Ge(t.activeRange,e)?(c.push("fc-"+H[e.getUTCDay()]),a.monthMode&&d.getMonth(e)!==d.getMonth(t.currentRange.start)&&c.push("fc-other-month"),o=_(i=V(s.getNow()),1),e=t[i]&&e=t[i]&&e *",xn.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var Pn=0;function Hn(e){return{id:String(Pn++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}var _n=(On.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,n=e.deps;tt.fetchRange.end:!t.latestFetchId;var t,n,r}),i,o)}function fr(e,t,n,r){var i={};for(var o in e){var s=e[o];t[o]?i[o]=function(o,s,a){var e=a.pluginSystem.hooks.eventSourceDefs[o.sourceDefId],l=String(pr++);return e.fetch({eventSource:o,calendar:a,range:s},function(e){var t,n,r=e.rawEvents,i=a.opt("eventSourceSuccess");o.success&&(n=o.success(r,e.xhr)),i&&(t=i(r,e.xhr)),r=n||t||r,a.dispatch({type:"RECEIVE_EVENTS",sourceId:o.sourceId,fetchId:l,fetchRange:s,rawEvents:r})},function(e){var t=a.opt("eventSourceFailure");console.warn(e.message,e),o.failure&&o.failure(e),t&&t(e),a.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:o.sourceId,fetchId:l,fetchRange:s,error:e})}),Se({},o,{isFetching:!0,latestFetchId:l})}(s,n,r):i[o]=s}return i}var vr=(gr.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},gr.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},gr.prototype.build=function(e,t,n){void 0===n&&(n=!1);var r,i,o,s,a,l,d,c,u,p=this.buildValidRange();return p=this.trimHiddenDays(p),n&&(c=e,e=null!=(u=p).start&&c=u.end?new Date(u.end.valueOf()-1):c),o=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(o.unit),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,s),l=a=this.trimHiddenDays(a),this.options.showNonCurrentDates||(l=Le(l,o.range)),r=X(this.options.minTime),i=X(this.options.maxTime),l=Le(l=this.adjustActiveRange(l,r,i),p),d=Ve(o.range,p),{validRange:p,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:s,activeRange:l,renderRange:a,minTime:r,maxTime:i,isValid:d,dateIncrement:this.buildDateIncrement(o.duration)}},gr.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},gr.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.viewSpec,i=this.dateEnv,o=null,s=null,a=null;return r.duration?(o=r.duration,s=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,s)):(n=this.options.dayCount)?(s="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?s=i.greatestWholeUnit(a.start,a.end).unit:(s=te(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,s)),{duration:o,unit:s,range:a}},gr.prototype.getFallbackDuration=function(){return X({day:1})},gr.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&($(t)<0&&(i=V(i),i=r.add(i,t)),1<$(n)&&(o=_(o=V(o),-1),o=r.add(o,n))),{start:i,end:o}},gr.prototype.buildRangeFromDuration=function(e,t,n,r){var i,o,s,a,l,d=this.dateEnv,c=this.options.dateAlignment;function u(){s=d.startOf(e,c),a=d.add(s,n),l={start:s,end:a}}return c||(i=this.options.dateIncrement,c=i&&ee(o=X(i)) ")),p=!1):((n=m[e])?(i=function(e){n.click&&n.click.call(d,e)},(o=f.getCustomButtonIconClass(n))||(o=f.getIconClass(e))||(s=n.text)):(r=g[e])?(h.viewsWithButtons.push(e),i=function(){v.changeView(e)},(s=r.buttonTextOverride)||(o=f.getIconClass(e))||(s=r.buttonTextDefault)):v[e]&&(i=function(){v[e]()},(s=y[e])||(o=f.getIconClass(e))||(s=S[e])),i&&(l=["fc-"+e+"-button",f.getClass("button")],s?(a=xt(s),c=""):o&&(a="",c=' aria-label="'+e+'"'),(d=E('")).addEventListener("click",i),u.push(d)))}),1"},di.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(r),delete this.containerElsByType[e])},di.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},di.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},di.prototype.computeSegSizes=function(e){},di.prototype.assignSegSizes=function(e){},di);function di(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}function ci(e){this.timeZoneName=e}var ui=(pi.prototype.destroy=function(){},pi.prototype.setMirrorIsVisible=function(e){},pi.prototype.setMirrorNeedsRevert=function(e){},pi.prototype.setAutoScrollEnabled=function(e){},pi);function pi(e){this.emitter=new rn}function hi(e){var t=Xn(e.locale||"en",Yn([]).map);return e=Se({timeZone:An.timeZone,calendarSystem:"gregory"},e,{locale:t}),new or(e)}var fi={startTime:X,duration:X,create:Boolean,sourceId:String},vi={create:!0};function gi(e,t){return!e||10"+(u?Jt(c,l,{date:e,forceOff:!n||1===r},h):h)+""}var yi,Si=(ye(Ei,yi=Rn),Ei.prototype.render=function(e,t){var n=e.dates,r=e.datesRepDistinctDays,i=[];this.renderSkeleton(t),e.renderIntroHtml&&i.push(e.renderIntroHtml());for(var o=ot(t.options.columnHeaderFormat||gi(r,n.length)),s=0,a=n;s"+i.join("")+""},Ei.prototype.destroy=function(){yi.prototype.destroy.call(this),this.renderSkeleton.unrender()},Ei.prototype._renderSkeleton=function(e){var t=e.theme,n=this.parentEl;n.innerHTML="",n.appendChild(this.el=E('
')),this.thead=this.el.querySelector("thead")},Ei.prototype._unrenderSkeleton=function(){r(this.el)},Ei);function Ei(e){var t=yi.call(this)||this;return t.renderSkeleton=Zt(t._renderSkeleton,t._unrenderSkeleton),t.parentEl=e,t}var bi=(wi.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(_(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},wi.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(z(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},wi);function wi(e,t){for(var n=e.start,r=e.end,i=[],o=[],s=-1;n=t.left&&e.left=t.top&&e.top'+R.htmlEscape(n)+""),r=''+(R.htmlEscape(s.title||"")||" ")+"",'
'+("rtl"===i.options.dir?r+" "+f:f+" "+r)+"
"+(c?'
':"")+(u?'
':"")+"
"},l.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},l.prototype.computeDisplayEventEnd=function(){return!1},l);function l(){return null!==s&&s.apply(this,arguments)||this}var u,p=(t(h,u=a),h.prototype.attachSegs=function(e,t){var n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(n[t].tbodyEl)}),t||this.dayGrid.removeSegPopover()},h.prototype.detachSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)R.removeElement(e.tbodyEl);this.rowStructs=null},h.prototype.renderSegRows=function(e){for(var t=[],n=this.groupSegRows(e),r=0;r=e.firstCol)return 1}(n,s[r]);r++);n.level=r,n.leftCol=i?o-1-n.lastCol:n.firstCol,n.rightCol=i?o-1-n.firstCol:n.lastCol,(s[r]||(s[r]=[])).push(n)}for(r=0;r
'),r=o&&o.row===t?o.el:(r=e.querySelector(".fc-content-skeleton tbody"))||e.querySelector(".fc-content-skeleton table"),i=r.getBoundingClientRect().top-e.getBoundingClientRect().top;n.style.top=i+"px",n.querySelector("table").appendChild(s[t].tbodyEl),e.appendChild(n)})},y);function y(){return null!==g&&g.apply(this,arguments)||this}var S,E='',b=(t(w,S=R.FillRenderer),w.prototype.renderSegs=function(e,t,n){"bgEvent"===e&&(n=n.filter(function(e){return e.eventRange.def.allDay})),S.prototype.renderSegs.call(this,e,t,n)},w.prototype.attachSegs=function(e,t){for(var n,r,i=[],o=0;o
'),d=l.getElementsByTagName("tr")[0];0'+R.htmlEscape(o)+'
',this.segContainerEl=this.el.querySelector(".fc-event-container")},C.prototype.queryHit=function(e,t,n,r){var i=this.props.date;if(e"))}return e.cells.length||t.push(''),"rtl"===this.context.options.dir&&t.reverse(),""+t.join("")+""},P);function P(e){this.context=e}var H,_=R.createFormatter({day:"numeric"}),O=R.createFormatter({week:"numeric"}),z=(t(N,H=R.DateComponent),N.prototype.render=function(e,t){var n=e.cells;this.rowCnt=n.length,this.colCnt=n[0].length,this.renderCells(n,e.isRigid),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(t,e.dateSelectionSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},N.prototype.destroy=function(){H.prototype.destroy.call(this),this.renderCells.unrender()},N.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:R.addDays(n,1)}},N.prototype.updateSegPopoverTile=function(e,t){var n=this.props;this.segPopoverTile.receiveProps({date:e||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:n.eventSelection,eventDragInstances:n.eventDrag?n.eventDrag.affectedInstances:null,eventResizeInstances:n.eventResize?n.eventResize.affectedInstances:null},this.context)},N.prototype._renderCells=function(e,t){for(var n,r=this.context,i=r.calendar,o=r.view,s=r.isRtl,a=r.dateEnv,l=this.rowCnt,d=this.colCnt,c="",u=0;u
'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'
'+(this.getIsNumbersVisible()?""+this.renderNumberTrHtml(e)+"":"")+"
"},N.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},N.prototype.getIsDayNumbersVisible=function(){return 1"+(t?"":n)+this.renderNumberCellsHtml(e)+(t?n:"")+""},N.prototype.renderNumberCellsHtml=function(e){for(var t,n=[],r=0;r",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===n&&(s+=R.buildGotoAnchorHtml(o,i,{date:e,type:"week"},{class:"fc-week-number"},i.format(e,O))),l&&(s+=R.buildGotoAnchorHtml(o,i,e,{class:"fc-day-number"},i.format(e,_))),s+=""):""},N.prototype.updateSize=function(e){var t=this.context.calendar,n=this.fillRenderer,r=this.eventRenderer,i=this.mirrorRenderer;(e||this.isCellSizesDirty||t.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),n.computeSizes(e),r.computeSizes(e),i.computeSizes(e),n.assignSizes(e),r.assignSizes(e),i.assignSizes(e)},N.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},N.prototype.buildColPositions=function(){this.colPositions.build()},N.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},N.prototype.positionToHit=function(e,t){var n=this.colPositions,r=this.rowPositions,i=n.leftToIndex(e),o=r.topToIndex(t);if(null!=o&&null!=i)return{row:o,col:i,dateSpan:{range:this.getCellRange(o,i),allDay:!0},dayEl:this.getCellEl(o,i),relativeRect:{left:n.lefts[i],right:n.rights[i],top:r.tops[o],bottom:r.bottoms[o]}}},N.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},N.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs))},N.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},N.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},N.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},N.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},N.prototype.limitRows=function(e){for(var t,n=this.eventRenderer.rowStructs||[],r=0;rn)return i;return!1},N.prototype.limitRow=function(t,n){function e(e){for(;D tr > td").appendChild(t),t.classList.add("fc-day-grid-container");var n=R.createElement("div",{className:"fc-day-grid"});t.appendChild(n),this.dayGrid=new z(n,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},F.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},F.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return''+(n.columnHeader?'':"")+'
 
'},F.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},F.prototype.hasRigidRows=function(){var e=this.context.options.eventLimit;return e&&"number"!=typeof e},F.prototype.updateSize=function(e,t,n){L.prototype.updateSize.call(this,e,t,n),this.dayGrid.updateSize(e)},F.prototype.updateBaseSize=function(e,t,n){var r,i,o=this.dayGrid,s=this.context.options.eventLimit,a=this.header?this.header.el:null;o.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=R.matchCellWidths(R.findElements(this.el,".fc-week-number"))),this.scroller.clear(),a&&R.uncompensateScroll(a),o.removeSegPopover(),s&&"number"==typeof s&&o.limitRows(s),r=this.computeScrollerHeight(t),this.setGridHeight(r,n),s&&"number"!=typeof s&&o.limitRows(s),n||(this.scroller.setHeight(r),((i=this.scroller.getScrollbarWidths()).left||i.right)&&(a&&R.compensateScroll(a,i),r=this.computeScrollerHeight(t),this.scroller.setHeight(r)),this.scroller.lockOverflow(i))):n||(r=this.computeScrollerHeight(t),this.scroller.setHeight(r))},F.prototype.computeScrollerHeight=function(e){return e-R.subtractInnerElHeight(this.el,this.scroller.el)},F.prototype.setGridHeight=function(e,t){this.context.options.monthMode?(t&&(e*=this.dayGrid.rowCnt/6),R.distributeHeight(this.dayGrid.rowEls,e,!t)):t?R.undistributeHeight(this.dayGrid.rowEls):R.distributeHeight(this.dayGrid.rowEls,e,!0)},F.prototype.computeDateScroll=function(e){return{top:0}},F.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},F.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},F);function F(){var s=null!==L&&L.apply(this,arguments)||this;return s.processOptions=R.memoize(s._processOptions),s.renderSkeleton=R.memoizeRendering(s._renderSkeleton,s._unrenderSkeleton),s.renderHeadIntroHtml=function(){var e=s.context,t=e.theme,n=e.options;return s.colWeekNumbersVisible?'"+R.htmlEscape(n.weekLabel)+"":""},s.renderDayGridNumberIntroHtml=function(e,t){var n=s.context,r=n.options,i=n.dateEnv,o=t.props.cells[e][0].date;return s.colWeekNumbersVisible?'"+R.buildGotoAnchorHtml(r,i,{date:o,type:"week",forceOff:1===t.colCnt},i.format(o,B))+"":""},s.renderDayGridBgIntroHtml=function(){var e=s.context.theme;return s.colWeekNumbersVisible?'":""},s.renderDayGridIntroHtml=function(){return s.colWeekNumbersVisible?'":""},s}V.prototype.dateProfileGeneratorClass=n;var G,U=(t(A,G=R.DateComponent),A.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},A.prototype.destroy=function(){G.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},A.prototype.render=function(e,t){var n=this.dayGrid,r=e.dateProfile,i=e.dayTable;n.receiveContext(t),n.receiveProps(c({},this.slicer.sliceProps(e,r,e.nextDayThreshold,t.calendar,n,i),{dateProfile:r,cells:i.cells,isRigid:e.isRigid}),t)},A.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},A.prototype.queryHit=function(e,t){var n=this.dayGrid.positionToHit(e,t);if(n)return{component:this.dayGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},A);function A(e){var t=G.call(this,e.el)||this;return t.slicer=new j,t.dayGrid=e,t}var W,j=(t(Z,W=R.Slicer),Z.prototype.sliceRange=function(e,t){return t.sliceRange(e)},Z);function Z(){return null!==W&&W.apply(this,arguments)||this}var q,Y=(t(X,q=V),X.prototype.render=function(e,t){q.prototype.render.call(this,e,t);var n=this.props.dateProfile,r=this.dayTable=this.buildDayTable(n,e.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:n,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},t),this.simpleDayGrid.receiveProps({dateProfile:n,dayTable:r,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},t)},X.prototype._renderSkeleton=function(e){q.prototype._renderSkeleton.call(this,e),e.options.columnHeader&&(this.header=new R.DayHeader(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new U(this.dayGrid)},X.prototype._unrenderSkeleton=function(){q.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},X);function X(){var e=null!==q&&q.apply(this,arguments)||this;return e.buildDayTable=R.memoize(K),e}function K(e,t){var n=new R.DaySeries(e.renderRange,t);return new R.DayTable(n,/year|month|week/.test(e.currentRangeUnit))}var J=R.createPlugin({defaultView:"dayGridMonth",views:{dayGrid:Y,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});e.AbstractDayGridView=V,e.DayBgRow=M,e.DayGrid=z,e.DayGridSlicer=j,e.DayGridView=Y,e.SimpleDayGrid=U,e.buildBasicDayTable=K,e.default=J,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarList={},e.FullCalendar)}(this,function(e,p){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var n,i=(t(o,n=p.FgEventRenderer),o.prototype.attachSegs=function(e){e.length?this.listView.renderSegList(e):this.listView.renderEmptyMessage()},o.prototype.detachSegs=function(){},o.prototype.renderSegHtml=function(e){var t=this.context,n=t.theme,r=t.options,i=e.eventRange,o=i.def,s=i.instance,a=i.ui,l=o.url,d=["fc-list-item"].concat(a.classNames),c=a.backgroundColor,u=o.allDay?p.getAllDayHtml(r):p.isMultiDayRange(i.range)?e.isStart?p.htmlEscape(this._getTimeText(s.range.start,e.end,!1)):e.isEnd?p.htmlEscape(this._getTimeText(e.start,s.range.end,!1)):p.getAllDayHtml(r):p.htmlEscape(this.getTimeText(i));return l&&d.push("fc-has-url"),''+(this.displayEventTime?''+(u||"")+"":"")+'"+p.htmlEscape(o.title||"")+""},o.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:"short"}},o);function o(e){var t=n.call(this)||this;return t.listView=e,t}var s,a=(t(l,s=p.View),l.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el})},l.prototype.render=function(e,t){s.prototype.render.call(this,e,t);var n=this.computeDateVars(e.dateProfile),r=n.dayDates,i=n.dayRanges;this.dayDates=r,this.renderSkeleton(t),this.renderContent(t,this.eventStoreToSegs(e.eventStore,e.eventUiBases,i))},l.prototype.destroy=function(){s.prototype.destroy.call(this),this.renderSkeleton.unrender(),this.renderContent.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},l.prototype._renderSkeleton=function(e){var t=e.theme;this.el.classList.add("fc-list-view");for(var n=0,r=(t.getClass("listView")||"").split(" ");n
'+p.htmlEscape(this.context.options.noEventsMessage)+"
"},l.prototype.renderSegList=function(e){for(var t,n,r=this.context.theme,i=this.groupSegsByDay(e),o=p.htmlToElement('
'),s=o.querySelector("tbody"),a=0;a'+(o?p.buildGotoAnchorHtml(i,r,e,{class:"fc-list-heading-main"},p.htmlEscape(r.format(e,o))):"")+(s?p.buildGotoAnchorHtml(i,r,e,{class:"fc-list-heading-alt"},p.htmlEscape(r.format(e,s))):"")+"")},l);function l(e,t){var n=s.call(this,e,t)||this;n.computeDateVars=p.memoize(d),n.eventStoreToSegs=p.memoize(n._eventStoreToSegs),n.renderSkeleton=p.memoizeRendering(n._renderSkeleton,n._unrenderSkeleton);var r=n.eventRenderer=new i(n);return n.renderContent=p.memoizeRendering(r.renderSegs.bind(r),r.unrender.bind(r),[n.renderSkeleton]),n}function d(e){for(var t=p.startOfDay(e.renderRange.start),n=e.renderRange.end,r=[],i=[];t
'+(i?'
'+g.htmlEscape(i)+"
":"")+(l.title?'
'+g.htmlEscape(l.title)+"
":"")+"
"+(h?'
':"")+""},n.prototype.computeSegHorizontals=function(e){var t,n,r=function(e){var t,n,r,i=[];for(t=0;ti.top&&r.top
',this.rootBgContainerEl=t.querySelector(".fc-bg"),this.slatContainerEl=t.querySelector(".fc-slats"),this.bottomRuleEl=t.querySelector(".fc-divider")},E.prototype._renderSlats=function(e){var t=this.context.theme;this.slatContainerEl.innerHTML=''+this.renderSlatRowHtml(e)+"
",this.slatEls=g.findElements(this.slatContainerEl,"tr"),this.slatPositions=new g.PositionCache(this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},E.prototype.renderSlatRowHtml=function(e){for(var t,n,r,i=this.context,o=i.dateEnv,s=i.theme,a=i.isRtl,l="",d=g.startOfDay(e.renderRange.start),c=e.minTime,u=g.createDuration(0);g.asRoughMs(c)'+(n?""+g.htmlEscape(o.format(t,this.labelFormat))+"":"")+"",l+='"+(a?"":r)+''+(a?r:"")+"",c=g.addDurations(c,this.slotDuration),u=g.addDurations(u,this.slotDuration);return l},E.prototype._renderColumns=function(e,t){var n=this.context,r=n.calendar,i=n.view,o=n.isRtl,s=n.theme,a=n.dateEnv,l=new c.DayBgRow(this.context);this.rootBgContainerEl.innerHTML=''+l.renderHtml({cells:e,dateProfile:t,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"
",this.colEls=g.findElements(this.el,".fc-day, .fc-disabled-day");for(var d=0;d
');t&&n.reverse(),e=this.contentSkeletonEl=g.htmlToElement('
'+n.join("")+"
"),this.colContainerEls=g.findElements(e,".fc-content-col"),this.mirrorContainerEls=g.findElements(e,".fc-mirror-container"),this.fgContainerEls=g.findElements(e,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=g.findElements(e,".fc-bgevent-container"),this.highlightContainerEls=g.findElements(e,".fc-highlight-container"),this.businessContainerEls=g.findElements(e,".fc-business-container"),t&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(e)},E.prototype.unrenderContentSkeleton=function(){g.removeElement(this.contentSkeletonEl)},E.prototype.groupSegsByCol=function(e){for(var t=[],n=0;n tr > td").appendChild(t),t.classList.add("fc-time-grid-container");var n,r=g.createElement("div",{className:"fc-time-grid"});t.appendChild(r),this.timeGrid=new S(r,{renderBgIntroHtml:this.renderTimeGridBgIntroHtml,renderIntroHtml:this.renderTimeGridIntroHtml}),e.options.allDaySlot&&(this.dayGrid=new c.DayGrid(this.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:this.renderDayGridIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1}),n=this.el.querySelector(".fc-divider"),this.dayGrid.bottomCoordPadding=n.getBoundingClientRect().height)},I.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-timeGrid-view"),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},I.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return''+(n.columnHeader?'':"")+'
 
'+(n.allDaySlot?'

':"")+"
"},I.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},I.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},I.prototype.updateSize=function(e,t,n){T.prototype.updateSize.call(this,e,t,n),this.timeGrid.updateSize(e),this.dayGrid&&this.dayGrid.updateSize(e)},I.prototype.updateBaseSize=function(e,t,n){var r,i,o,s,a=this;this.axisWidth=g.matchCellWidths(g.findElements(this.el,".fc-axis")),this.timeGrid.colEls?(s=g.findElements(this.el,".fc-row").filter(function(e){return!a.scroller.el.contains(e)}),this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),s.forEach(g.uncompensateScroll),this.dayGrid&&(this.dayGrid.removeSegPopover(),(r=this.context.options.eventLimit)&&"number"!=typeof r&&(r=5),r&&this.dayGrid.limitRows(r)),n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(s.forEach(function(e){g.compensateScroll(e,o)}),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()"+g.buildGotoAnchorHtml(i,r,{date:o.start,type:"week",forceOff:1"):'"},a.renderTimeGridBgIntroHtml=function(){return'"},a.renderTimeGridIntroHtml=function(){return'"},a.renderDayGridBgIntroHtml=function(){var e=a.context,t=e.theme,n=e.options;return'"+g.getAllDayHtml(n)+""},a.renderDayGridIntroHtml=function(){return'"},a}R.prototype.usesMinMaxTime=!0;var k,x=(t(M,k=g.DateComponent),M.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.timeGrid.el})},M.prototype.destroy=function(){k.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},M.prototype.render=function(e,t){var n=this.context.dateEnv,r=e.dateProfile,i=e.dayTable,o=this.dayRanges=this.buildDayRanges(i,r,n),s=this.timeGrid;s.receiveContext(t),s.receiveProps(l({},this.slicer.sliceProps(e,r,null,t.calendar,s,o),{dateProfile:r,cells:i.cells[0]}),t)},M.prototype.renderNowIndicator=function(e){this.timeGrid.renderNowIndicator(this.slicer.sliceNowDate(e,this.timeGrid,this.dayRanges),e)},M.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches()},M.prototype.queryHit=function(e,t){var n=this.timeGrid.positionToHit(e,t);if(n)return{component:this.timeGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},M);function M(e){var t=k.call(this,e.el)||this;return t.buildDayRanges=g.memoize(P),t.slicer=new _,t.timeGrid=e,t}function P(e,t,n){for(var r=[],i=0,o=e.headerDates;i