var FullCalendar=function(e){"use strict"; var t,n,r,o,i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function e(t){for(var n,r=1,o=arguments.length;r3)for(n=[n],i=3;i0?S(f.type,f.props,f.key,null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=E[c])||p&&f.key==p.key&&f.type===p.type)E[c]=void 0;else for(d=0;d3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),W(E(es,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ei.prototype=new b).__e=function(e){var t=this,n=eo(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ea(t,e,r)):o()};n?n(i):i()}},ei.prototype.render=function(e){this.u=null,this.o=new Map;var t=x(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ei.prototype.componentDidUpdate=ei.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ea(e,n,t)})};var eu="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ec=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ed=u.event;function ep(){}function ef(){return this.cancelBubble}function eh(){return this.defaultPrevented}u.event=function(e){return ed&&(e=ed(e)),e.persist=ep,e.isPropagationStopped=ef,e.isDefaultPrevented=eh,e.nativeEvent=e};var ev={configurable:!0,get:function(){return this.class}},eg=u.vnode;u.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i,a=n[o];"value"===o&&"defaultValue"in n&&null==a||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===a?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&(i=n.type,!("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(i))?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():ec.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[o]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=x(n.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=x(n.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),e.props=r}t&&n.class!=n.className&&(ev.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",ev)),e.$$typeof=eu,eg&&eg(e)};var em=u.__r;u.__r=function(e){em&&em(e)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var ey="undefined"!=typeof globalThis?globalThis:window;function eE(e){e();var t=u.debounceRendering,n=[];for(u.debounceRendering=function e(t){n.push(t)},W(E(eS,{}),document.createElement("div"));n.length;)n.shift()();u.debounceRendering=t}ey.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):ey.FullCalendarVDom={Component:b,createElement:E,render:W,createRef:function e(){return{current:null}},Fragment:D,createContext:function e(t){var n,r,o,i=(n=t,(o={__c:r="__cC"+f++,__:n,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[r]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(R)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=o.Consumer.contextType=o),a=i.Provider;return i.Provider=function(){var e=this,t=!this.getChildContext,n=a.apply(this,arguments);if(t){var r=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&r.forEach(function(e){e.context=t.value,e.forceUpdate()})},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}}return n},i},createPortal:function e(t,n){return E(el,{__v:t,i:n})},flushSync:eE,unmountComponentAtNode:function e(t){W(null,t)}};var eS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){return E("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(b),eD=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function eb(e){e.parentNode&&e.parentNode.removeChild(e)}function eC(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(e$(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function e$(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function eR(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o=0;i-=1){var a=e[i][r];if("object"==typeof a&&a)o.unshift(a);else if(void 0!==a){n[r]=a;break}}o.length&&(n[r]=td(o))}for(var i=e.length-1;i>=0;i-=1){var s=e[i];for(var l in s)l in n||(n[l]=s[l])}return n}function tp(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function tf(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function th(e){for(var t={},n=0,r=e;n10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",tH(t,!0)))),r}function tP(e){return e.toISOString().replace(/T.*$/,"")}function tN(e){return eX(e.getUTCHours(),2)+":"+eX(e.getUTCMinutes(),2)+":"+eX(e.getUTCSeconds(),2)}function tH(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+eX(o,2)+":"+eX(i,2):"GMT"+n+o+(i?":"+eX(i,2):"")}function tO(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r1&&("numeric"===s.year||"2-digit"===s.year)&&("numeric"===s.month||"2-digit"===s.month)&&("numeric"===s.day||"2-digit"===s.day)&&(c=1);var d=this.format(e,n),p=this.format(t,n);if(d===p)return d;var f=function e(t,n){var r={};for(var o in t)o in tW&&!(tW[o]<=n)||(r[o]=t[o]);return r}(s,c),h=tj(f,l,n),v=h(e),g=h(t),m=function e(t,n,r,o){for(var i=0;i=tx(t)&&(r=e5(r,1))}return e.start&&(n=tt(e.start),r&&r<=n&&(r=e5(n,1))),{start:n,end:r}}function nD(e){var t=nS(e);return e6(t.start,t.end)>1}function nb(e,t,n,r){return"year"===r?tR(n.diffWholeYears(e,t),"year"):"month"===r?tR(n.diffWholeMonths(e,t),"month"):eQ(e,t)}function nC(e,t){var n,r,o=[],i=t.start;for(e.sort(n$),n=0;ni&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return it.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function nk(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t=(n||t.end),isToday:t&&nk(t,r.start)}}function nz(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function nF(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function nB(e,t){var n=e.eventRange,r=n.def,o=n.instance,i=r.url;if(i)return{href:i};var a=t.emitter,s=t.options.eventInteractive;return(null==s&&null==(s=r.interactive)&&(s=Boolean(a.hasHandlers("eventClick"))),s)?eA(function(e){a.trigger("eventClick",{el:e.target,event:new nQ(t,r,o),jsEvent:e,view:t.viewApi})}):{}}var nG={start:tJ,end:tJ,allDay:Boolean};function nq(e,t){return n8(e.range,t.range)&&e.allDay===t.allDay&&function e(t,n){for(var r in n)if("range"!==r&&"allDay"!==r&&t[r]!==n[r])return!1;for(var r in t)if(!(r in n))return!1;return!0}(e,t)}function nj(e,t,n){return s(s({},nY(e,t,n)),{timeZone:t.timeZone})}function nY(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function nZ(e,t,n){n.emitter.trigger("select",s(s({},nX(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function nX(e,t){for(var n,r,o={},i=0,a=t.pluginHooks.dateSpanTransforms;i=0;o-=1){var i=r[o].parseMeta(t);if(i)return{sourceDefId:o,meta:i}}return null}(i,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:eU(),sourceDefId:s.sourceDefId,meta:s.meta,ui:nu(i,t),extendedProps:a}}return null}function n9(e){return s(s(s({},ns),n2),e.pluginHooks.eventSourceRefiners)}function n7(e,t){return("function"==typeof e&&(e=e()),null==e)?t.createNowMarker():t.createMarker(e)}var n6=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r=1?Math.min(i,a):i}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=e9(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),tI(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ta(tr(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ta(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-to(ti(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ti(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?to(ti(e)):new Date("UTC"===this.timeZone?e.valueOf():this.namedTimeZoneImpl?e.valueOf()-6e4*this.namedTimeZoneImpl.offsetForArray(ti(e)):e.valueOf()-(t||0))},e}(),ra=[],rs={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},rl=s(s({},rs),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function ru(e){for(var t=e.length>0?e[0].code:"en",n=ra.concat(e),r={en:rl},o=0,i=n;o0;i-=1){var a=o.slice(0,i).join("-");if(n[a])return n[a]}return null}(o,r)||rl,rd(n,o,i)):rd(e.code,[e.code],e)}function rd(e,t,n){var r=td([rs,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function rp(e){var t=rc(e.locale||"en",ru([]).map);return new ri(s(s({timeZone:tK.timeZone,calendarSystem:"gregory"},e),{locale:t}))}var rf={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function rh(e,t){var n,r;return ne((n=e,(r=!0===n?[{}]:Array.isArray(n)?n.filter(function(e){return e.daysOfWeek}):"object"==typeof n&&n?[n]:[]).map(function(e){return s(s({},rf),e)})),null,t)}function rv(e,t){return e.left>=t.left&&e.left=t.top&&e.top
",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);var n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}()),r}var rD=nr(),rb=function(){function e(){this.getKeysForEventDefs=tA(this._getKeysForEventDefs),this.splitDateSelection=tA(this._splitDateSpan),this.splitEventStore=tA(this._splitEventStore),this.splitIndividualUi=tA(this._splitIndividualUi),this.splitEventDrag=tA(this._splitInteraction),this.splitEventResize=tA(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=tf(n,function(e,n){return t.eventUiBuilders[n]||tA(rC)}),n){var d=n[c],p=a[c]||rD,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:o[c]||null,eventStore:p,eventUiBases:f(e.eventUiBases[""],d.ui,i[c]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:l[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=this.getKeysForDateSpan(e),r=0,o=n;rn:!!t&&e>=t.end)}}function rR(e,t){var n=["fc-day","fc-day-"+e3[e.dow],];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}var r8=t1({year:"numeric",month:"long",day:"numeric"}),rw=t1({week:"long"});function rT(e,t,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var o=e.dateEnv,i=e.options,a=e.calendarApi,l=o.format(t,"week"===n?rw:r8);if(i.navLinks){var u=o.toDate(t),c=function(e){var r="day"===n?i.navLinkDayClick:"week"===n?i.navLinkWeekClick:null;"function"==typeof r?r.call(a,o.toDate(t),e):("string"==typeof r&&(n=r),a.zoomTo(t,n))};return s({title:e0(i.navLinkHint,[l,u],l),"data-navlink":""},r?eO(c):{onClick:c})}return{"aria-label":l}}var rk=null;function rx(){var e,t;return null===rk&&(rk=(e=document.createElement("div"),ew(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="
",document.body.appendChild(e),t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left,eb(e),t)),rk}function rM(){var e,t;return o||(o=(e=document.createElement("div"),e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t=r_(e),document.body.removeChild(e),t)),o}function r_(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function rI(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=r_(e),l=s.y-r-o,u=s.x-i-a,c={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return rx()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function rP(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():rN(e),o=rI(e,t),i={left:r.left+o.borderLeft+o.scrollbarLeft,right:r.right-o.borderRight-o.scrollbarRight,top:r.top+o.borderTop,bottom:r.bottom-o.borderBottom-o.scrollbarBottom};return t&&(i.left+=o.paddingLeft,i.right-=o.paddingRight,i.top+=o.paddingTop,i.bottom-=o.paddingBottom),i}function rN(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 rH(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 rO(e,t,n){var r=!1,o=function(){r||(r=!0,t.apply(this,arguments))},i=function(){!r&&(r=!0,n&&n.apply(this,arguments))},a=e(o,i);a&&"function"==typeof a.then&&a.then(o,i)}var rA=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){(function e(t,n,r){(t[n]||(t[n]=[])).push(r)})(this.handlers,e,t)},e.prototype.off=function(e,t){var n,r,o;n=this.handlers,r=e,o=t,o?n[r]&&(n[r]=n[r].filter(function(e){return e!==o})):delete n[r]},e.prototype.trigger=function(e){for(var t=[],n=1;n=n[t]&&e=n[t]&&e0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()0},e.prototype.canScrollRight=function(){return this.getScrollLeft()=o.end?new Date(o.end.valueOf()-1):r)),a=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),u=l=this.trimHiddenDays(l),d.showNonCurrentDates||(u=nR(u,a.range)),u=nR(u=this.adjustActiveRange(u),i),c=nw(a.range,i),{validRange:i,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:u,renderRange:l,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(a.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,a=null;return r.duration?(o=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=t_(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},e.prototype.getFallbackDuration=function(){return tR({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,i=t.slotMaxTime,a=e.start,s=e.end;return r&&(0>tk(o)&&(a=tt(a),a=n.add(a,o)),tk(i)>1&&(s=tt(s),s=e5(s,-1),s=n.add(s,i))),{start:a,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,a,s=this.props,l=s.dateEnv,u=s.dateAlignment;if(!u){var c=this.props.dateIncrement;u=c&&tx(c)=tk(n)&&this.isHiddenDay(o)&&(o=tt(o=this.skipHiddenDays(o,t))),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,o=this.props,i=o.dateEnv,a=o.dateAlignment,s=0,l=e;a&&(l=i.startOf(l,a)),l=tt(l),r=l=this.skipHiddenDays(l,t);do r=e5(r,1),this.isHiddenDay(r)||(s+=1);while(sr.fetchRange.end:!r.latestFetchId}),t,!1,n)}function oy(e,t,n,r,o){var i={};for(var a in e){var s=e[a];t[a]?i[a]=oE(s,n,r,o):i[a]=s}return i}function oE(e,t,n,r){var o=r.options,i=r.calendarApi,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],l=eU();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},function(n){var a=n.rawEvents;o.eventSourceSuccess&&(a=o.eventSourceSuccess.call(i,a,n.xhr)||a),e.success&&(a=e.success.call(i,a,n.xhr)||a),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:a})},function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(i,n),e.failure&&e.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:n})}),s(s({},e),{isFetching:!0,latestFetchId:l})}function oS(e,t){return tp(e,function(e){return oD(e,t)})}function oD(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ob(e,t){var n;if(t){n=[];for(var r=0,o=e;r=200&&l.status<400){var e=!1,t=void 0;try{t=JSON.parse(l.responseText),e=!0}catch(n){}e?r(t,l):o("Failure parsing JSON",l)}else o("Request failed",l)},l.onerror=function(){o("Request failed",l)},l.send(s)}function ox(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var oM=r6({eventSourceRefiners:{method:String,extraParams:tJ,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(e){return e.url&&("json"===e.format||!e.format)?{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch:function(e,t,n){var r,o,i,a,l,u,c,d,p,f,h=e.eventSource.meta,v=(r=h,o=e.range,i=e.context,d=i.dateEnv,p=i.options,f={},null==(a=r.startParam)&&(a=p.startParam),null==(l=r.endParam)&&(l=p.endParam),null==(u=r.timeZoneParam)&&(u=p.timeZoneParam),s(f,c="function"==typeof r.extraParams?r.extraParams():r.extraParams||{}),f[a]=d.formatIso(o.start),f[l]=d.formatIso(o.end),"local"!==d.timeZone&&(f[u]=d.timeZone),f);ok(h.method,h.url,v,function(e,n){t({rawEvents:e,xhr:n})},function(e,t){n({message:e,xhr:t})})}}]}),o_=r6({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n,r,o={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},i=void 0;return e.duration&&(i=e.duration),!i&&e.startTime&&e.endTime&&(i=(n=e.endTime,r=e.startTime,{years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds})),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:o}}return null},expand:function(e,t,n){var r=nR(t,{start:e.startRecur,end:e.endRecur});return r?function e(t,n,r,o){for(var i=t?th(t):null,a=tt(r.start),s=r.end,l=[];a1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var oL=function(){function e(e){var t,n,r,o=this;this.computeOptionsData=tA(this._computeOptionsData),this.computeCurrentViewData=tA(this._computeCurrentViewData),this.organizeRawLocales=tA(ru),this.buildLocale=tA(rc),this.buildPluginHooks=(n=[],r=[],function(e,o){return t&&tO(e,n)&&tO(o,r)||(t=function e(t,n){var r={},o={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(var t=0,n=e;ta.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:i.end}},o)),r)?(n.push.apply(n,l([{index:e.index,thickness:e.thickness,span:o3(a,i)}],o)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(o2(r,t.level,t.levelCoord),o2(n,t.level,[e])):o2(n[t.level],t.lateral,e),this.stackCnts[o1(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this.levelCoords,n=this.entriesByLevel,r=this.strictOrder,o=this.stackCnts,i=t.length,a=0,s=-1,l=-1,u=null,c=0,d=0;d=a+e.thickness)break;for(var f=n[d],h=void 0,v=o5(f,e.span.start,o0),g=v[0]+v[1];(h=f[g])&&h.span.starta&&(a=m,u=h,s=d,l=g),m===a&&(c=Math.max(c,o[o1(h)]+1)),g+=1}}var y=0;if(u)for(y=s+1;yn(e[o-1]))return[o,0];for(;ra))return[i,1];r=i+1}}return[r,0]}var o9=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function o7(e){var t;return(t={})[e.component.uid]=e,t}var o6={},oQ=function(){function e(e,t){this.emitter=new rA}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),oJ={},ie={startTime:tR,duration:tR,create:Boolean,sourceId:String};function it(e){var t=tQ(e,ie),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:r}}var ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map(function(t){return e.renderWidgetGroup(t)});return rB.apply(void 0,l(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],o=!0,i=0,a=e;i1){var m=o&&n.getClass("buttonGroup")||"";return rB.apply(void 0,l(["div",{className:m}],r))}return r[0]},t}(r3),io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,i=!1,a=r.sectionWidgets,s=a.center;return a.left?(i=!0,e=a.left):e=a.start,a.right?(i=!0,t=a.right):t=a.end,rB("div",{className:[o||"","fc-toolbar",i?"fc-toolbar-ltr":"",].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return rB(ir,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(r3),ii=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,r9(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return a(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",i="";return n?null!==t.availableWidth?o=t.availableWidth/n:i=1/n*100+"%":o=e.height||"",rB("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:i}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(r3),ia=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,o=r.context,i=nI(t);if(i&&r.isValidSegDownEl(e.target)){var a=eC(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new nQ(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=eP(t.el,"click",".fc-event",n.handleSegClick),n}return a(t,e),t}(o9),is=function(e){function t(t){var n,r,o,i,a=e.call(this,t)||this;return a.handleEventElRemove=function(e){e===a.currentSegEl&&a.handleSegLeave(null,a.currentSegEl)},a.handleSegEnter=function(e,t){nI(t)&&(a.currentSegEl=t,a.triggerEvent("eventMouseEnter",e,t))},a.handleSegLeave=function(e,t){a.currentSegEl&&(a.currentSegEl=null,a.triggerEvent("eventMouseLeave",e,t))},a.removeHoverListeners=(n=t.el,r=a.handleSegEnter,o=a.handleSegLeave,eP(n,"mouseover",".fc-event",function(e,t){if(t!==i){i=t,r(e,t);var n=function(e){i=null,o(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}})),a}return a(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=nI(n);(!t||r.isValidSegDownEl(t.target))&&o.emitter.trigger(e,{el:n,event:new nQ(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(o9),il=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=tA(r4),t.buildViewPropTransformers=tA(ic),t.buildToolbarProps=tA(iu),t.headerRef=rq(),t.footerRef=rq(),t.interactionsStore={},t.state={viewLabelId:e_()},t.registerInteractiveComponent=function(e,n){var r,o,i=(r=e,o=n,{component:r,el:o.el,useEventCenter:null==o.useEventCenter||o.useEventCenter,isHitComboAllowed:o.isHitComboAllowed||null}),a=[ia,is,].concat(t.props.pluginHooks.componentInteractions).map(function(e){return new e(i)});t.interactionsStore[e.uid]=a,o6[e.uid]=i},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,o=n;r10?t1({weekday:"short"}):t>1?t1({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):t1({weekday:"long"})}var ih="fc-col-header-cell";function iv(e){return e.text}var ig=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,o=e.viewApi,i=this.props,a=i.date,l=i.dateProfile,u=r$(a,i.todayRange,null,l),c=[ih].concat(rR(u,r)),d=t.format(a,i.dayHeaderFormat),p=!u.isDisabled&&i.colCnt>1?rT(this.context,a):{},f=s(s(s({date:t.toDate(a),view:o},i.extraHookProps),{text:d}),u);return rB(ot,{hookProps:f,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:iv,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},function(e,t,n,r){return rB("th",s({ref:e,role:"columnheader",className:c.concat(t).join(" "),"data-date":u.isDisabled?void 0:tP(a),colSpan:i.colSpan},i.extraDataAttrs),rB("div",{className:"fc-scrollgrid-sync-inner"},!u.isDisabled&&rB("a",s({ref:n,className:["fc-col-header-cell-cushion",i.isSticky?"fc-sticky":"",].join(" ")},p),r)))})},t}(r3),im=t1({weekday:"long"}),iy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,o=t.viewApi,i=t.options,a=e5(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},u=[ih].concat(rR(l,r),e.extraClassNames||[]),c=n.format(a,e.dayHeaderFormat),d=s(s(s(s({date:a},l),{view:o}),e.extraHookProps),{text:c});return rB(ot,{hookProps:d,classNames:i.dayHeaderClassNames,content:i.dayHeaderContent,defaultContent:iv,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},function(t,r,o,i){return rB("th",s({ref:t,role:"columnheader",className:u.concat(r).join(" "),colSpan:e.colSpan},e.extraDataAttrs),rB("div",{className:"fc-scrollgrid-sync-inner"},rB("a",{"aria-label":n.format(a,im),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":"",].join(" "),ref:o},i)))})},t}(r3),iE=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=n7(n.options.now,n.dateEnv),r.initialNowQueriedMs=new Date().valueOf(),r.state=r.computeTiming().currentState,r}return a(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=e9(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(r,tR(1,e.unit)),i=o.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:iS(r)},nextState:{nowDate:o,todayRange:iS(o)},waitMs:i}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout(function(){e.setState(n,function(){e.setTimeout()})},r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=r1,t}(rF);function iS(e){var t=tt(e),n=e5(t,1);return{start:t,end:n}}var iD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=tA(ib),t}return a(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,i=t.renderIntro,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return rB(iE,{unit:"day"},function(e,t){return rB("tr",{role:"row"},i&&i("day"),n.map(function(e){return o?rB(ig,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:a}):rB(iy,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a})}))})},t}(r3);function ib(e,t,n){return e||ip(t,n)}var iC=function(){function e(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;n=t.length?t[t.length-1]+1:t[n]},e}(),i$=function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(n=1,r=i[0].getUTCDay();nt)return!0;return!1},t.prototype.needsYScrolling=function(){if(iN.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;rt)return!0;return!1},t.prototype.getXScrollbarWidth=function(){return iN.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return iN.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(r3),iO=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,o=r.depths,i=r.currentMap,a=!1,s=!1;null!==e?(a=n in i,i[n]=e,o[n]=(o[n]||0)+1,s=!0):(o[n]-=1,o[n]||(delete i[n],delete t.callbackMap[n],a=!0)),t.masterCallback&&(a&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return tS(this.currentMap,e,t,n)},e.prototype.getAll=function(){return tv(this.currentMap)},e}();function iA(e){for(var t=eR(e,".fc-scrollgrid-shrink"),n=0,r=0,o=t;r=0&&e=0&&tt.eventRange.range.end?e:t}var au=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.isRendering=!1,r.isRendered=!1,r.currentClassNames=[],r.customContentRenderId=0,r.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":r.renderRunner.tryDrain()}},r.handleData=function(e){r.currentData=e,r.renderRunner.request(e.calendarOptions.rerenderDelay)},r.handleRenderRequest=function(){if(r.isRendering){r.isRendered=!0;var e=r.currentData;eE(function(){rG(rB(id,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},function(t,n,o,i){return r.setClassNames(t),r.setHeight(n),rB(on.Provider,{value:r.customContentRenderId},rB(il,s({isHeightAuto:o,forPrint:i},e)))}),r.el)})}else r.isRendered&&(r.isRendered=!1,rX(r.el),r.setClassNames([]),r.setHeight(""))},r.el=t,r.renderRunner=new oH(r.handleRenderRequest),new oL({optionOverrides:n,calendarApi:r,onAction:r.handleAction,onData:r.handleData}),r}return a(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){var t=this;eE(function(){e.prototype.updateSize.call(t)})},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!tO(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(aE()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e=0&&c>=0&&d>=0&&p>=0&&(d<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>d)&&(r={scrollCache:s,name:"top",distance:d}),p<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>p)&&(r={scrollCache:s,name:"bottom",distance:p}),u<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>u)&&(r={scrollCache:s,name:"left",distance:u}),c<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"right",distance:c}))}return r},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map(function(e){return e===window?new ay(!1):new am(e,!1)})},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;n=t*t&&r.handleDistanceSurpassed(e)}r.isDragging&&("scroll"!==e.origEvent.type&&(r.mirror.handleMove(e.pageX,e.pageY),r.autoScroller.handleMove(e.pageX,e.pageY)),r.emitter.trigger("dragmove",e))}},r.onPointerUp=function(e){r.isInteracting&&(r.isInteracting=!1,eF(document.body),eG(document.body),r.emitter.trigger("pointerup",e),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(e)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};var o=r.pointer=new af(t);return o.emitter.on("pointerdown",r.onPointerDown),o.emitter.on("pointermove",r.onPointerMove),o.emitter.on("pointerup",r.onPointerUp),n&&(o.selector=n),r.mirror=new av,r.autoScroller=new aS,r}return a(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null,t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll())},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(oQ),ab=function(){function e(e){this.origRect=rN(e),this.scrollCaches=rH(e).map(function(e){return new am(e,!0)})}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e=0&&c=0&&do.layer)&&(v.componentId=i,v.context=a.context,v.rect.left+=l,v.rect.right+=l,v.rect.top+=u,v.rect.bottom+=u,o=v)}}}return o},e}();function aR(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&nq(e.dateSpan,t.dateSpan)}function a8(e,t){for(var n,r,o={},i=0,a=t.pluginHooks.datePointTransforms;io.start)return{endDelta:s};return null}(a,e,r.subjectEl.classList.contains("fc-event-resizer-start"),s.range))),l&&(u=n1(i,o.getCurrentData().eventUiBases,l,o),d.mutatedEvents=u,iw(d,e.dateProfile,o)||(c=!0,l=null,u=null,d.mutatedEvents=null)),u?o.dispatch({type:"SET_EVENT_RESIZE",state:d}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),c?eW():eV(),t||(l&&aR(a,e)&&(l=null),n.validMutation=l,n.mutatedRelevantEvents=u)},n.handleDragEnd=function(e){var t=n.component.context,r=n.eventRange.def,o=n.eventRange.instance,i=new nQ(t,r,o),a=n.relevantEvents,l=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:i,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var u=new nQ(t,l.defs[r.defId],o?l.instances[o.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:l});var c={oldEvent:i,event:u,relatedEvents:re(l,t,o),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:a})}};t.emitter.trigger("eventResize",s(s({},c),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||tR(0),endDelta:n.validMutation.endDelta||tR(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=t.component,o=n.dragging=new aD(t.el);o.pointer.selector=".fc-event-resizer",o.touchScrollAllowed=!1,o.autoScroller.isEnabled=r.context.options.dragScroll;var i=n.hitDragging=new a$(n.dragging,o7(t));return i.emitter.on("pointerdown",n.handlePointerDown),i.emitter.on("dragstart",n.handleDragStart),i.emitter.on("hitupdate",n.handleHitUpdate),i.emitter.on("dragend",n.handleDragEnd),n}return a(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return eC(e.subjectEl,".fc-event")},t}(o9),aM=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,r=ek(e.origEvent);t.matchesCancel=!!eC(r,n),t.matchesEvent=!!eC(r,ak.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,o=n.getCurrentData();if(!r.wasTouchScroll){if(o.dateSelection&&!t.isRecentPointerDateSelect){var i=n.options.unselectAuto;!i||i&&t.matchesCancel||n.calendarApi.unselect(e)}o.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new af(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),a_=function(){function e(e,t){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,r){var o=n.hitDragging.dragging,i=null,a=null,l=!1,u={affectedEvents:nr(),mutatedEvents:nr(),isEvent:n.dragMeta.create};e&&(i=e.context,n.canDropElOnCalendar(r.subjectEl,i)&&(a=function e(t,n,r){for(var o=s({},n.leftoverProps),i=0,a=r.pluginHooks.externalDefTransforms;i1,D=v.span.start===l;p+=v.levelCoord-d,d=v.levelCoord+v.thickness,S?(p+=v.thickness,D&&m.push({seg:a0(g,v.span.start,v.span.end,r),isVisible:!0,isAbsolute:!0,absoluteTop:v.levelCoord,marginTop:0})):D&&(m.push({seg:a0(g,v.span.start,v.span.end,r),isVisible:!0,isAbsolute:!1,absoluteTop:v.levelCoord,marginTop:p}),p=0)}i.push(c),a.push(m),s.push(p)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:s}}(l.toRects(),t,s),g=v.singleColPlacements,m=v.multiColPlacements,y=v.leftoverMargins,E=[],S=[],D=0,b=c;D1,showWeekNumbers:t.showWeekNumbers,todayRange:h,dateProfile:n,cells:i,renderIntro:t.renderRowIntro,businessHourSegs:s[f],eventSelection:t.eventSelection,bgEventSegs:l[f].filter(a3),fgEventSegs:u[f],dateSelectionSegs:c[f],eventDrag:d[f],eventResize:p[f],dayMaxEvents:o,dayMaxEventRows:r,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})}))))}))},t.prototype.prepareHits=function(){this.rowPositions=new rL(this.rootEl,this.rowRefs.collect().map(function(e){return e.getCellEls()[0]}),!1,!0),this.colPositions=new rL(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,r=this.rowPositions,o=n.leftToIndex(e),i=r.topToIndex(t);if(null!=i&&null!=o){var a=this.props.cells[i][o];return{dateProfile:this.props.dateProfile,dateSpan:s({range:this.getCellRange(i,o),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(i,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[i],bottom:r.bottoms[i]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date,r=e5(n,1);return{start:n,end:r}},t}(r7);function a3(e){return e.eventRange.def.allDay}var a2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return a(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(iR),a5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new a2,t.tableRef=rq(),t}return a(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return rB(aK,s({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(r7),a9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=tA(a7),t.headerRef=rq(),t.tableRef=rq(),t}return a(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,o=this.props,i=this.buildDayTableModel(o.dateProfile,r),a=n.dayHeaders&&rB(iD,{ref:this.headerRef,dateProfile:o.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),s=function(t){return rB(a5,{ref:e.tableRef,dateProfile:o.dateProfile,dayTableModel:i,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(a,s,i.colCnt,n.dayMinWidth):this.renderSimpleLayout(a,s)},t}(aO);function a7(e,t){var n=new iC(e.renderRange,t);return new i$(n,/year|month|week/.test(e.currentRangeUnit))}var a6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.buildRenderRange=function(t,n,r){var o,i=this.props.dateEnv,a=e.prototype.buildRenderRange.call(this,t,n,r),s=a.start,l=a.end;if(/^(year|month)$/.test(n)&&(s=i.startOfWeek(s),(o=i.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=e2(o,1))),this.props.monthMode&&this.props.fixedWeekCount){var u=Math.ceil(e7(s,l));l=e2(l,6-u)}return{start:s,end:l}},t}(oh),aQ=r6({initialView:"dayGridMonth",views:{dayGrid:{component:a9,dateProfileGeneratorClass:a6},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),aJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?nM(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(rb),se=t1({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function st(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor",];return rB(r1.Consumer,null,function(n){if(!e.isLabeled)return rB("td",{className:t.join(" "),"data-time":e.isoTimeStr});var r=n.dateEnv,o=n.options,i=n.viewApi,a=null==o.slotLabelFormat?se:Array.isArray(o.slotLabelFormat)?t1(o.slotLabelFormat[0]):t1(o.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:i,text:r.format(e.date,a)};return rB(ot,{hookProps:s,classNames:o.slotLabelClassNames,content:o.slotLabelContent,defaultContent:sn,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},function(n,r,o,i){return rB("td",{ref:n,className:t.concat(r).join(" "),"data-time":e.isoTimeStr},rB("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},rB("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:o},i)))})})}function sn(e){return e.text}var sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){return this.props.slatMetas.map(function(e){return rB("tr",{key:e.key},rB(st,s({},e)))})},t}(r3),so=t1({week:"short"}),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new aJ,t.headerElRef=rq(),t.rootElRef=rq(),t.scrollerElRef=rq(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var r=t.context.options,o=t.props.dateProfile.renderRange,i=1===e6(o.start,o.end)?rT(t.context,o.start,"week"):{};return r.weekNumbers&&"day"===e?rB(iJ,{date:o.start,defaultFormat:so},function(e,t,r,o){return rB("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink",].concat(t).join(" ")},rB("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},rB("a",s({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},i),o)))}):rB("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},rB("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,r=n.options,o=n.viewApi;return rB(ot,{hookProps:{text:r.allDayText,view:o},classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:sa,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},function(t,n,r,o){return rB("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink",].concat(n).join(" ")},rB("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},rB("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},o)))})},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return a(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var r=this.context,o=this.props,i=[],a=iY(r.options);return e&&i.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(i.push({type:"body",key:"all-day",chunk:{content:t}}),i.push({type:"body",key:"all-day-divider",outerContent:rB("tr",{role:"presentation",className:"fc-scrollgrid-section"},rB("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),i.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),rB(ou,{viewSpec:r.viewSpec,elRef:this.rootElRef},function(e,t){return rB("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},rB(iX,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:i}))})},t.prototype.renderHScrollLayout=function(e,t,n,r,o,i,a){var s=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw Error("No ScrollGrid implementation");var u=this.context,c=this.props,d=!c.forPrint&&iY(u.options),p=!c.forPrint&&iZ(u.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return rB("tr",{role:"presentation"},s.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e},]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return rB("tr",{role:"presentation"},s.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t},]}),f.push({key:"all-day-divider",type:"body",outerContent:rB("tr",{role:"presentation",className:"fc-scrollgrid-section"},rB("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var h=u.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return rB("div",{className:"fc-timegrid-axis-chunk"},rB("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,rB("tbody",null,rB(sr,{slatMetas:i}))),rB("div",{className:"fc-timegrid-now-indicator-container"},rB(iE,{unit:h?"minute":"day"},function(e){var t=h&&a&&a.safeComputeTop(e);return"number"==typeof t?rB(iK,{isAxis:!0,date:e},function(e,n,r,o){return rB("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},o)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n},]}),p&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:ij},{key:"cols",content:ij},]}),rB(ou,{viewSpec:u.viewSpec,elRef:this.rootElRef},function(e,t){return rB("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},rB(l,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:o}]},],sections:f}))})},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return(!0===t||!0===n)&&(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}},t}(r7);function sa(e){return e.text}var ss=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(nk(t.currentRange,e)){var n=tt(e),r=e.valueOf()-n.valueOf();if(r>=tx(t.slotMinTime)&&r0,E=Boolean(l)&&l.span.end-l.span.start=0;n-=1)if(r=tR(sM[n]),null!==(o=tM(r,t))&&o>1)return r;return t}(r),u=[];tx(a)0?e.renderSegList(s,i):e.renderEmptyMessage()))})},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi;return rB(ot,{hookProps:{text:t.noEventsText,view:n},classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:sV,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},function(e,t,n,r){return rB("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},rB("div",{className:"fc-list-empty-cushion",ref:n},r))})},t.prototype.renderSegList=function(e,t){var n=this.context,r=n.theme,o=n.options,i=this.state,a=i.timeHeaderId,l=i.eventHeaderId,u=i.dateHeaderIdRoot,c=function e(t){var n,r,o=[];for(n=0;n>>0,s=0;sBe(e)?(r=e+1,a-Be(e)):(r=e,a);return{year:r,dayOfYear:t}}function Xe(e,a,t){var s,n,r=$e(e.year(),a,t),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?s=r+ea(n=e.year()-1,a,t):r>ea(e.year(),a,t)?(s=r-ea(e.year(),a,t),n=e.year()+1):(n=e.year(),s=r),{week:s,year:n}}function ea(e,a,t){var s=$e(e,a,t),a=$e(e+1,a,t);return(Be(e)-s+a)/7}s("w",["ww",2],"wo","week"),s("W",["WW",2],"Wo","isoWeek"),a("week","w"),a("isoWeek","W"),t("week",5),t("isoWeek",5),p("w",o),p("ww",o,r),p("W",o),p("WW",o,r),je(["w","ww","W","WW"],function(e,a,t,s){a[s.substr(0,1)]=m(e)});function aa(e,a){return e.slice(a,7).concat(e.slice(0,a))}s("d",0,"do","day"),s("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),s("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),s("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),s("e",0,0,"weekday"),s("E",0,0,"isoWeekday"),a("day","d"),a("weekday","e"),a("isoWeekday","E"),t("day",11),t("weekday",11),t("isoWeekday",11),p("d",o),p("e",o),p("E",o),p("dd",function(e,a){return a.weekdaysMinRegex(e)}),p("ddd",function(e,a){return a.weekdaysShortRegex(e)}),p("dddd",function(e,a){return a.weekdaysRegex(e)}),je(["dd","ddd","dddd"],function(e,a,t,s){s=t._locale.weekdaysParse(e,s,t._strict);null!=s?a.d=s:h(t).invalidWeekday=e}),je(["d","e","E"],function(e,a,t,s){a[s]=m(e)});var ta="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),na="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ra=f,da=f,ia=f;function _a(){function e(e,a){return a.length-e.length}for(var a,t,s,n=[],r=[],d=[],i=[],_=0;_<7;_++)s=U([2e3,1]).day(_),a=k(this.weekdaysMin(s,"")),t=k(this.weekdaysShort(s,"")),s=k(this.weekdays(s,"")),n.push(a),r.push(t),d.push(s),i.push(a),i.push(t),i.push(s);n.sort(e),r.sort(e),d.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function oa(){return this.hours()%12||12}function ma(e,a){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}function ua(e,a){return a._meridiemParse}s("H",["HH",2],0,"hour"),s("h",["hh",2],0,oa),s("k",["kk",2],0,function(){return this.hours()||24}),s("hmm",0,0,function(){return""+oa.apply(this)+de(this.minutes(),2)}),s("hmmss",0,0,function(){return""+oa.apply(this)+de(this.minutes(),2)+de(this.seconds(),2)}),s("Hmm",0,0,function(){return""+this.hours()+de(this.minutes(),2)}),s("Hmmss",0,0,function(){return""+this.hours()+de(this.minutes(),2)+de(this.seconds(),2)}),ma("a",!0),ma("A",!1),a("hour","h"),t("hour",13),p("a",ua),p("A",ua),p("H",o),p("h",o),p("k",o),p("HH",o,r),p("hh",o,r),p("kk",o,r),p("hmm",c),p("hmmss",L),p("Hmm",c),p("Hmmss",L),D(["H","HH"],w),D(["k","kk"],function(e,a,t){e=m(e);a[w]=24===e?0:e}),D(["a","A"],function(e,a,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),D(["h","hh"],function(e,a,t){a[w]=m(e),h(t).bigHour=!0}),D("hmm",function(e,a,t){var s=e.length-2;a[w]=m(e.substr(0,s)),a[Oe]=m(e.substr(s)),h(t).bigHour=!0}),D("hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[w]=m(e.substr(0,s)),a[Oe]=m(e.substr(s,2)),a[We]=m(e.substr(n)),h(t).bigHour=!0}),D("Hmm",function(e,a,t){var s=e.length-2;a[w]=m(e.substr(0,s)),a[Oe]=m(e.substr(s))}),D("Hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[w]=m(e.substr(0,s)),a[Oe]=m(e.substr(s,2)),a[We]=m(e.substr(n))});f=Ye("Hours",!0);var la,Ma={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ne,monthsShort:Je,week:{dow:0,doy:6},weekdays:ta,weekdaysMin:na,weekdaysShort:sa,meridiemParse:/[ap]\.?m?\.?/i},b={},ha={};function ca(e){return e&&e.toLowerCase().replace("_","-")}function La(e){for(var a,t,s,n,r=0;r=a&&function(e,a){for(var t=Math.min(e.length,a.length),s=0;s=a-1)break;a--}r++}return la}function Ya(a){var e;if(void 0===b[a]&&"undefined"!=typeof module&&module&&module.exports&&null!=a.match("^[^/\\\\]*$"))try{e=la._abbr,require("./locale/"+a),ya(e)}catch(e){b[a]=null}return b[a]}function ya(e,a){return e&&((a=d(a)?pa(e):fa(e,a))?la=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),la._abbr}function fa(e,a){if(null===a)return delete b[e],null;var t,s=Ma;if(a.abbr=e,null!=b[e])ae("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=b[e]._config;else if(null!=a.parentLocale)if(null!=b[a.parentLocale])s=b[a.parentLocale]._config;else{if(null==(t=Ya(a.parentLocale)))return ha[a.parentLocale]||(ha[a.parentLocale]=[]),ha[a.parentLocale].push({name:e,config:a}),null;s=t._config}return b[e]=new ne(se(s,a)),ha[e]&&ha[e].forEach(function(e){fa(e.name,e.config)}),ya(e),b[e]}function pa(e){var a;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return la;if(!F(e)){if(a=Ya(e))return a;e=[e]}return La(e)}function ka(e){var a=e._a;return a&&-2===h(e).overflow&&(a=a[xe]<0||11ze(a[g],a[xe])?Pe:a[w]<0||24ea(r,_,o)?h(s)._overflowWeeks=!0:null!=m?h(s)._overflowWeekday=!0:(u=Qe(r,d,i,_,o),s._a[g]=u.year,s._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(n=Oa(e._a[g],t[g]),(e._dayOfYear>Be(n)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),m=Ze(n,0,e._dayOfYear),e._a[xe]=m.getUTCMonth(),e._a[Pe]=m.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=l[a]=t[a];for(;a<7;a++)e._a[a]=l[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[w]&&0===e._a[Oe]&&0===e._a[We]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[w]=0),e._d=(e._useUTC?Ze:qe).apply(null,l),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[w]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(h(e).weekdayMismatch=!0)}}function Aa(e){if(e._f===M.ISO_8601)ja(e);else if(e._f===M.RFC_2822)Pa(e);else{e._a=[],h(e).empty=!0;for(var a,t,s,n,r,d=""+e._i,i=d.length,_=0,o=le(e._f,e._locale).match(ie)||[],m=o.length,u=0;ue.valueOf():e.valueOf()"}),n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},n.eraName=function(){for(var e,a=this.localeData().eras(),t=0,s=a.length;tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},n.isLocal=function(){return!!this.isValid()&&!this._isUTC},n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},n.isUtc=Ka,n.isUTC=Ka,n.zoneAbbr=function(){return this._isUTC?"UTC":""},n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},n.dates=e("dates accessor is deprecated. Use date instead.",Y),n.months=e("months accessor is deprecated. Use month instead",Ge),n.years=e("years accessor is deprecated. Use year instead",Ke),n.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,a){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,a),this):-this.utcOffset()}),n.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,a={};return Z(a,this),(a=Ea(a))._a?(e=(a._isUTC?U:S)(a._a),this._isDSTShifted=this.isValid()&&0r.rowSortOrder[a(i).data("rowid")]:"numeric"==r.sortAs[r.sortColumn]?r.sortOrder>0?(parseFloat(e)||0)-(parseFloat(n)||0):(parseFloat(n)||0)-(parseFloat(e)||0):t.localeCompare?0>e.localeCompare(n)?-r.sortOrder:e.localeCompare(n)>0?r.sortOrder:0:en?r.sortOrder:0},testing:!1},e),n=this;return this.settings=t,this.tableUpdate=function(e){if(t.beforeUpdate.call(this,e),e.fancyTable.matches=0,a(e).find("tbody tr").each(function(){var r=0,s=!0,i=!1;a(this).find("td").each(function(){t.globalSearch||!e.fancyTable.searchArr[r]||n.isSearchMatch(a(this).html(),e.fancyTable.searchArr[r])?t.globalSearch&&(!e.fancyTable.search||n.isSearchMatch(a(this).html(),e.fancyTable.search))&&(!Array.isArray(t.globalSearchExcludeColumns)||!t.globalSearchExcludeColumns.includes(r+1))&&(i=!0):s=!1,r++}),t.globalSearch&&i||!t.globalSearch&&s?(e.fancyTable.matches++,!t.pagination||e.fancyTable.matches>e.fancyTable.perPage*(e.fancyTable.page-1)&&e.fancyTable.matches<=e.fancyTable.perPage*e.fancyTable.page?a(this).show():a(this).hide()):a(this).hide()}),e.fancyTable.pages=Math.ceil(e.fancyTable.matches/e.fancyTable.perPage),t.pagination){var r=t.paginationElement;if(r.empty(),e.fancyTable.pages>1){for(var s=1;s<=e.fancyTable.pages;s++)if(1==s||s>e.fancyTable.page-(t.pagClosest+1)&&s",{html:s,"data-n":s,class:t.paginationClass+" "+(s==e.fancyTable.page?t.paginationClassActive:"")}).bind("click",function(){e.fancyTable.page=a(this).data("n"),n.tableUpdate(e)});s==e.fancyTable.pages&&e.fancyTable.page...")),r.append(i),1==s&&e.fancyTable.page>t.pagClosest+2&&r.append(a("..."))}}}t.onUpdate.call(this,e)},this.isSearchMatch=function(a,e){if(t.matchCase||(a=a.toUpperCase(),e=e.toUpperCase()),"auto"==t.exactMatch&&e.match(/^".*?"$/))return a==(e=e.substring(1,e.length-1));if("auto"==t.exactMatch&&e.replace(/\s+/g,"").match(/^[<>]=?/)){var n=e.replace(/\s+/g,"").match(/^[<>]=?/)[0],r=e.replace(/\s+/g,"").substring(n.length);return">"==n&&1*a>1*r||"<"==n&&1*a<1*r||">="==n&&1*a>=1*r||"<="==n&&1*a<=1*r}if("auto"==t.exactMatch&&e.replace(/\s+/g,"").match(/^.+(\.\.|-).+$/)){var s=e.replace(/\s+/g,"").split(/\.\.|-/);return 1*a>=1*s[0]&&1*a<=1*s[1]}try{return!0===t.exactMatch?a==e:RegExp(e).test(a)}catch{return!1}},this.reinit=function(){a(this).each(function(){a(this).find("th a").contents().unwrap()}),a(this).fancyTable(this.settings)},this.tableSort=function(e){if(void 0!==e.fancyTable.sortColumn&&e.fancyTable.sortColumn",{class:"sortArrow"}).css({margin:"0.1em",display:"inline-block",width:0,height:0,"border-left":"0.4em solid transparent","border-right":"0.4em solid transparent"});r.css(e.fancyTable.sortOrder>0?{"border-top":"0.4em solid #000"}:{"border-bottom":"0.4em solid #000"}),a(e).find("thead th a").eq(e.fancyTable.sortColumn).append(r);var s=a(e).find("tbody tr").toArray().sort(function(n,r){var s=a(n).find("td").eq(e.fancyTable.sortColumn),i=a(r).find("td").eq(e.fancyTable.sortColumn),o=a(s).attr("data-sortvalue")?a(s).data("sortvalue"):s.html(),l=a(i).attr("data-sortvalue")?a(i).data("sortvalue"):i.html();return"case-insensitive"==e.fancyTable.sortAs[e.fancyTable.sortColumn]&&(o=o.toLowerCase(),l=l.toLowerCase()),t.sortFunction.call(this,o,l,e.fancyTable,n,r)});a(s).each(function(t){e.fancyTable.rowSortOrder[a(this).data("rowid")]=t}),a(e).find("tbody").empty().append(s)}},this.each(function(){if("TABLE"!==a(this).prop("tagName"))return console.warn("fancyTable: Element is not a table."),!0;var e=this;if(e.fancyTable={nColumns:a(e).find("td").first().parent().find("td").length,nRows:a(this).find("tbody tr").length,perPage:t.perPage,page:1,pages:0,matches:0,searchArr:[],search:"",sortColumn:t.sortColumn,sortOrder:void 0===t.sortOrder?1:/desc/i.test(t.sortOrder)||-1==t.sortOrder?-1:1,sortAs:[],paginationElement:t.paginationElement},e.fancyTable.rowSortOrder=Array(e.fancyTable.nRows),0==a(e).find("tbody").length){var r=a(e).html();a(e).empty(),a(e).append("").append(a(r))}if(0==a(e).find("thead").length&&a(e).prepend(a("")),a(e).find("tbody tr").each(function(e){a(this).data("rowid",e)}),t.sortable){var s=0;a(e).find("thead th").each(function(){e.fancyTable.sortAs.push("numeric"==a(this).data("sortas")?"numeric":"case-insensitive"==a(this).data("sortas")?"case-insensitive":null);var t=a(this).html(),r=a("",{href:"#","aria-label":"Sort by "+a(this).text(),html:t,"data-n":s,class:""}).bind("click",function(){return e.fancyTable.sortColumn==a(this).data("n")?e.fancyTable.sortOrder=-e.fancyTable.sortOrder:e.fancyTable.sortOrder=1,e.fancyTable.sortColumn=a(this).data("n"),n.tableSort(e),n.tableUpdate(e),!1});a(this).empty(),a(this).append(r),s++})}t.searchable&&(t.searchInput,t.globalSearch&&a("input").bind("change paste keyup",function(){e.fancyTable.search=a(this).val(),e.fancyTable.page=1,n.tableUpdate(e)})),n.tableSort(e),t.pagination&&!t.paginationElement&&t.paginationElement.html(""),n.tableUpdate(e),t.onInit.call(this,e)}),this}}(jQuery);!function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=9)}({9:function(e,t){function a(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,d=!0,m=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return d=e.done,e},e:function(e){m=!0,l=e},f:function(){try{d||null==a.return||a.return()}finally{if(m)throw l}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a'+o+"")},h=new n(e[0].querySelector(".eael-event-calendar-cls"),{editable:!1,selectable:!1,firstDay:i,eventTimeFormat:{hour:"2-digit",minute:"2-digit",hour12:!y},nextDayThreshold:"00:00:00",headerToolbar:{start:"prev,next today",center:"title",end:"timeGridDay,timeGridWeek,dayGridMonth,listMonth"},events:m,locale:s,dayMaxEventRows:void 0!==Y&&Y>0?parseInt(Y):3,initialView:f,initialDate:u,eventClassNames:function(e){},eventContent:function(e){},eventDidMount:function(a){var n=t(a.el),o=a.event;if(moment.locale(s),v&&o.endStr>o.startStr){var r,l=void 0!==o.startStr?new Date(o.startStr):"",m=((void 0!==o.endStr?new Date(o.endStr):"")-l)/864e5,i=null===(r=t(n).prevAll("tr.fc-list-day:first"))||void 0===r?void 0:r.data("date");i=void 0!==i?new Date(i):"";var f=l&&i?Math.ceil((i-l)/864e5)+1:"",u="".concat(o.title," (Day ").concat(f,"/").concat(m," )");n.find(".fc-list-event-title a").text(u)}n.hasClass("fc-event-past")&&n.find(".fc-event-title").addClass("eael-event-completed"),c.today=a.event._context.dateEnv.locale.options.buttonText.today,n.attr("style","color:"+o.textColor+";background:"+o.backgroundColor+";"),n.find(".fc-list-event-dot").attr("style","border-color:"+o.backgroundColor+";"),n.find(".fc-daygrid-event-dot").remove(),"yes"===o._def.extendedProps.is_redirect?(n.attr("href",o.url),"on"===o._def.extendedProps.external&&n.attr("target","_blank"),"on"===o._def.extendedProps.nofollow&&n.attr("rel","nofollow"),""!==o._def.extendedProps.custom_attributes&&t.each(o._def.extendedProps.custom_attributes,(function(e,t){n.attr(t.key,t.value)})),n.hasClass("fc-list-item")&&(n.removeAttr("href target rel"),n.removeClass("fc-has-url"),n.css("cursor","default"))):(n.attr("href","javascript:void(0);"),n.click((function(a){a.preventDefault(),a.stopPropagation();var n=o.start,r=y?"H:mm":"h:mm A",l=o.end,m=t("span.eaelec-event-date-start"),i=t("span.eaelec-event-date-end"),f=t(".eaelec-modal-footer a");o.allDay&&(l=moment(l).subtract(1,"days")._d,r=" ");moment.locale(s);var u=moment(n).format("YYYY"),v=moment(l).format("YYYY"),Y=v>u,D="",h="";m.html(" "),i.html(" "),d.addClass("eael-ec-popup-ready").removeClass("eael-ec-modal-removing"),o.allDay&&moment(n).format("MM-DD-YYYY")===moment(l).format("MM-DD-YYYY")?(D=moment(n).format("MMM Do"),!0===moment(n).isSame(Date.now(),"day")?D=c.today:moment(n).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(D=c.tomorrow)):(!0===moment(o.start).isSame(Date.now(),"day")&&(D=c.today+" "+moment(o.start).format(r)),moment(n).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(D=c.tomorrow+" "+moment(o.start).format(r)),(moment(n).format("MM-DD-YYYY")moment(new Date).add(1,"days").format("MM-DD-YYYY"))&&(D=moment(o.start).format(p+" "+r)),D=Y?u+" "+D:D,!0===moment(l).isSame(Date.now(),"day")&&(h=!0!==moment(n).isSame(Date.now(),"day")?c.today+" "+moment(l).format(r):moment(l).format(r)),moment(n).format("MM-DD-YYYY")!==moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(l).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(h=c.tomorrow+" "+moment(l).format(r)),moment(n).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&moment(l).format("MM-DD-YYYY")===moment(new Date).add(1,"days").format("MM-DD-YYYY")&&(h=moment(l).format(r)),moment(l).diff(moment(n),"days")>0&&i.text().trim().length<1&&(h=moment(l).format(p+" "+r)),moment(n).format("MM-DD-YYYY")===moment(l).format("MM-DD-YYYY")&&(h=moment(l).format(r)),h=Y?v+" "+h:h),void 0!==o.extendedProps.hideEndDate&&"yes"===o.extendedProps.hideEndDate?i.html(" "):i.html(""!=h?"- "+h:""),m.html(' '+D),t(".eaelec-modal-header h2").html(o.title),t(".eaelec-modal-body").html(o.extendedProps.description),o.extendedProps.description.length<1?t(".eaelec-modal-body").css("height","auto"):t(".eaelec-modal-body").css("height","300px"),"yes"!==t(".eael-event-calendar-cls",e).data("hidedetailslink")?f.attr("href",o.url).css("display","block"):f.css("display","none"),"on"===o.extendedProps.external&&f.attr("target","_blank"),"on"===o.extendedProps.nofollow&&f.attr("rel","nofollow"),""!=o.extendedProps.custom_attributes&&t.each(o.extendedProps.custom_attributes,(function(e,t){f.attr(t.key,t.value)})),t(".eaelec-modal-header").css("border-left","5px solid "+o.borderColor),t(".eaelec-modal-header").css("border-left","5px solid "+o.borderColor)})))},eventWillUnmount:function(e){}});l.on("click",(function(e){e.stopPropagation(),d.addClass("eael-ec-modal-removing").removeClass("eael-ec-popup-ready"),D()})),t(document).on("click",(function(e){e.target.closest(".eaelec-modal-content")||d.hasClass("eael-ec-popup-ready")&&(d.addClass("eael-ec-modal-removing").removeClass("eael-ec-popup-ready"),D())})),h.render(),new IntersectionObserver((function(e){var t,n=a(e);try{for(n.s();!(t=n.n()).done;){t.value;window.dispatchEvent(new Event("resize")),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),200)}}catch(e){n.e(e)}finally{n.f()}})).observe(o[0]),ea.hooks.addAction("eventCalendar.reinit","ea",(function(){h.today()}))}else{var M=t(".eael-event-calendar-table",r),b=M.hasClass("ea-ec-table-paginated"),w=b?M.data("items-per-page"):10,g=t(".eael-ec-event-date",M).index();t(".eael-event-calendar-table",r).fancyTable({sortColumn:g>=0?g:0,pagination:b,perPage:w,globalSearch:!0,searchInput:t(".ea-ec-search-wrap",r),paginationElement:t(".eael-event-calendar-pagination",r)})}};jQuery(window).on("elementor/frontend/init",(function(){if(ea.elementStatusCheck("eaelEventCalendar"))return!1;elementorFrontend.hooks.addAction("frontend/element_ready/eael-event-calendar.default",o)}))}});