(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c04e89f6"],{"0f40":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("2cfd"),n("c30f"),n("82a8"),n("2a39"),n("cfa8"),n("f39f");var r=n("954c");function o(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"1cf2":function(e,t,n){"use strict";var r=n("fdc8"),o=n("4326"),i=n("9aaa"),a=n("730b"),s=n("2730"),l=n("5c14"),c=n("d4eb");e.exports=function(e){var t,n,u,d,f,p,h=o(e),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,b=void 0!==m,y=c(h),E=0;if(b&&(m=r(m,g>2?arguments[2]:void 0,2)),void 0==y||v==Array&&a(y))for(t=s(h.length),n=new v(t);t>E;E++)p=b?m(h[E],E):h[E],l(n,E,p);else for(d=y.call(h),f=d.next,n=new v;!(u=f.call(d)).done;E++)p=b?i(d,m,[u.value,E],!0):u.value,l(n,E,p);return n.length=E,n}},"21c9":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.create;function a(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}Object.create},"22f4":function(e,t,n){"use strict";var r=n("b5f8"),o=n("21c9");
/*!
FullCalendar v5.5.0
Docs & License: https://fullcalendar.io/
(c) 2020 Adam Shaw
*/
r["db"].touchMouseIgnoreWait=500;var i=0,a=0,s=!1,l=function(){function e(e){var t=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&c(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,u()}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new r["s"],e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),d()}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),f()},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Object(r["rb"])(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){s=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?Object(r["rb"])(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return i||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(s=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,o=e.touches,i=0,a=0;return o&&o.length?(n=o[0].pageX,r=o[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(i=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:i,deltaY:a}},e}();function c(e){return 0===e.button&&!e.ctrlKey}function u(){i+=1,setTimeout((function(){i-=1}),r["db"].touchMouseIgnoreWait)}function d(){a+=1,1===a&&window.addEventListener("touchmove",p,{passive:!1})}function f(){a-=1,a||window.removeEventListener("touchmove",p,{passive:!1})}function p(e){s&&e.preventDefault()}var h=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,o=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",Object(r["R"])(n,{left:o.left,top:o.top}),Object(r["jc"])(n,(function(){n.style.transition="",e()}))},e.prototype.cleanup=function(){this.mirrorEl&&(Object(r["ac"])(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&Object(r["R"])(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),Object(r["R"])(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),v=function(e){function t(t,n){var r=e.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return Object(o["b"])(t,e),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(r["C"]),g=function(e){function t(t,n){return e.call(this,new r["r"](t),n)||this}return Object(o["b"])(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return Object(r["bb"])(this.scrollController.el)},t}(v),m=function(e){function t(t){return e.call(this,new r["K"],t)||this}return Object(o["b"])(t,e),t.prototype.getEventTarget=function(){return window},t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(v),b="function"===typeof performance?performance.now:Date.now,y=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=b();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t){this.isEnabled&&(this.scrollCaches=this.buildCaches(),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,o=null===this.pointerScreenY?0:r-this.pointerScreenY,i=null===this.pointerScreenX?0:n-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(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(b()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){var n=t[e];n.destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,o=r-e.distance,i=o*o/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+i*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+i*a);break}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,o=0,i=this.scrollCaches;o<i.length;o++){var a=i[o],s=a.clientRect,l=e-s.left,c=s.right-e,u=t-s.top,d=s.bottom-t;l>=0&&c>=0&&u>=0&&d>=0&&(u<=n&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"top",distance:u}),d<=n&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:a,name:"bottom",distance:d}),l<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:a,name:"left",distance:l}),c<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>c)&&(r={scrollCache:a,name:"right",distance:c}))}return r},e.prototype.buildCaches=function(){return this.queryScrollEls().map((function(e){return e===window?new m(!1):new g(e,!1)}))},e.prototype.queryScrollEls=function(){for(var e=[],t=0,n=this.scrollQuery;t<n.length;t++){var r=n[t];"object"===typeof r?e.push(r):e.push.apply(e,Array.prototype.slice.call(document.querySelectorAll(r)))}return e},e}(),E=function(e){function t(t,n){var o=e.call(this,t)||this;o.delay=null,o.minDistance=0,o.touchScrollAllowed=!0,o.mirrorNeedsRevert=!1,o.isInteracting=!1,o.isDragging=!1,o.isDelayEnded=!1,o.isDistanceSurpassed=!1,o.delayTimeoutId=null,o.onPointerDown=function(e){o.isDragging||(o.isInteracting=!0,o.isDelayEnded=!1,o.isDistanceSurpassed=!1,Object(r["Wb"])(document.body),Object(r["Vb"])(document.body),e.isTouch||e.origEvent.preventDefault(),o.emitter.trigger("pointerdown",e),o.isInteracting&&!o.pointer.shouldIgnoreMove&&(o.mirror.setIsVisible(!1),o.mirror.start(e.subjectEl,e.pageX,e.pageY),o.startDelay(e),o.minDistance||o.handleDistanceSurpassed(e)))},o.onPointerMove=function(e){if(o.isInteracting){if(o.emitter.trigger("pointermove",e),!o.isDistanceSurpassed){var t=o.minDistance,n=void 0,r=e.deltaX,i=e.deltaY;n=r*r+i*i,n>=t*t&&o.handleDistanceSurpassed(e)}o.isDragging&&("scroll"!==e.origEvent.type&&(o.mirror.handleMove(e.pageX,e.pageY),o.autoScroller.handleMove(e.pageX,e.pageY)),o.emitter.trigger("dragmove",e))}},o.onPointerUp=function(e){o.isInteracting&&(o.isInteracting=!1,Object(r["P"])(document.body),Object(r["O"])(document.body),o.emitter.trigger("pointerup",e),o.isDragging&&(o.autoScroller.stop(),o.tryStopDrag(e)),o.delayTimeoutId&&(clearTimeout(o.delayTimeoutId),o.delayTimeoutId=null))};var i=o.pointer=new l(t);return i.emitter.on("pointerdown",o.onPointerDown),i.emitter.on("pointermove",o.onPointerMove),i.emitter.on("pointerup",o.onPointerUp),n&&(i.selector=n),o.mirror=new h,o.autoScroller=new y,o}return Object(o["b"])(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.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}(r["q"]),S=function(){function e(e){this.origRect=Object(r["cb"])(e),this.scrollCaches=Object(r["xb"])(e).map((function(e){return new g(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++){var n=t[e];n.destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n={left:e,top:t},o=0,i=this.scrollCaches;o<i.length;o++){var a=i[o];if(!D(a.getEventTarget())&&!Object(r["Ub"])(n,a.clientRect))return!1}return!0},e}();function D(e){var t=e.tagName;return"HTML"===t||"BODY"===t}var O=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new r["s"]}return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},o=n,i=e.subjectEl;i!==document&&(t=Object(r["cb"])(i),o=Object(r["eb"])(o,t));var a=this.initialHit=this.queryHitForOffset(o.left,o.top);if(a){if(this.useSubjectCenter&&t){var s=Object(r["Kb"])(t,a.rect);s&&(o=Object(r["Ab"])(s))}this.coordAdjust=Object(r["ob"])(o,n)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&C(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=Object(r["Pb"])(this.droppableStore,(function(e){return e.component.prepareHits(),new S(e.el)}))},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this,o=n.droppableStore,i=n.offsetTrackers,a=null;for(var s in o){var l=o[s].component,c=i[s];if(c&&c.isWithinClipping(e,t)){var u=c.computeLeft(),d=c.computeTop(),f=e-u,p=t-d,h=c.origRect,v=h.right-h.left,g=h.bottom-h.top;if(f>=0&&f<v&&p>=0&&p<g){var m=l.queryHit(f,p,v,g),b=l.context.getCurrentData().dateProfile;m&&Object(r["Yb"])(b.activeRange,m.dateSpan.range)&&(!a||m.layer>a.layer)&&(m.rect.left+=u,m.rect.right+=u,m.rect.top+=d,m.rect.bottom+=d,a=m)}}}return a},e}();function C(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Object(r["Mb"])(e.dateSpan,t.dateSpan)}function w(e,t){for(var n={},r=0,i=t.pluginHooks.datePointTransforms;r<i.length;r++){var a=i[r];Object(o["a"])(n,a(e,t))}return Object(o["a"])(n,R(e,t.dateEnv)),n}function R(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}var T=function(e){function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging,r=e.origEvent.target;t.setIgnoreMove(!n.component.isValidDateDownEl(r))},n.handleDragEnd=function(e){var t=n.component,r=n.dragging.pointer;if(!r.wasTouchScroll){var i=n.hitDragging,a=i.initialHit,s=i.finalHit;if(a&&s&&C(a,s)){var l=t.context,c=Object(o["a"])(Object(o["a"])({},w(a.dateSpan,l)),{dayEl:a.dayEl,jsEvent:e.origEvent,view:l.viewApi||l.calendarApi.view});l.emitter.trigger("dateClick",c)}}},n.dragging=new E(t.el),n.dragging.autoScroller.isEnabled=!1;var i=n.hitDragging=new O(n.dragging,Object(r["Ib"])(t));return i.emitter.on("pointerdown",n.handlePointerDown),i.emitter.on("dragend",n.handleDragEnd),n}return Object(o["b"])(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(r["w"]),j=function(e){function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,o=t.dragging,i=r.context.options,a=i.selectable&&r.isValidDateDownEl(e.origEvent.target);o.setIgnoreMove(!a),o.delay=e.isTouch?k(r):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var o=n.component.context,i=null,a=!1;e&&(i=M(n.hitDragging.initialHit,e,o.pluginHooks.dateSelectionTransformers),i&&n.component.isDateSelectionValid(i)||(a=!0,i=null)),i?o.dispatch({type:"SELECT_DATES",selection:i}):t||o.dispatch({type:"UNSELECT_DATES"}),a?Object(r["qb"])():Object(r["tb"])(),t||(n.dragSelection=i)},n.handlePointerUp=function(e){n.dragSelection&&(Object(r["hc"])(n.dragSelection,e,n.component.context),n.dragSelection=null)};var o=t.component,i=o.context.options,a=n.dragging=new E(t.el);a.touchScrollAllowed=!1,a.minDistance=i.selectMinDistance||0,a.autoScroller.isEnabled=i.dragScroll;var s=n.hitDragging=new O(n.dragging,Object(r["Ib"])(t));return s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("pointerup",n.handlePointerUp),n}return Object(o["b"])(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(r["w"]);function k(e){var t=e.context.options,n=t.selectLongPressDelay;return null==n&&(n=t.longPressDelay),n}function M(e,t,n){var i=e.dateSpan,a=t.dateSpan,s=[i.range.start,i.range.end,a.range.start,a.range.end];s.sort(r["ab"]);for(var l={},c=0,u=n;c<u.length;c++){var d=u[c],f=d(e,t);if(!1===f)return null;f&&Object(o["a"])(l,f)}return l.range={start:s[0],end:s[3]},l.allDay=i.allDay,l}var _=function(e){function t(n){var i=e.call(this,n)||this;i.subjectEl=null,i.subjectSeg=null,i.isDragging=!1,i.eventRange=null,i.relevantEvents=null,i.receivingContext=null,i.validMutation=null,i.mutatedRelevantEvents=null,i.handlePointerDown=function(e){var t=e.origEvent.target,n=i,o=n.component,a=n.dragging,s=a.mirror,l=o.context.options,c=o.context;i.subjectEl=e.subjectEl;var u=i.subjectSeg=Object(r["zb"])(e.subjectEl),d=i.eventRange=u.eventRange,f=d.instance.instanceId;i.relevantEvents=Object(r["Bb"])(c.getCurrentData().eventStore,f),a.minDistance=e.isTouch?0:l.eventDragMinDistance,a.delay=e.isTouch&&f!==o.props.eventSelection?I(o):null,l.fixedMirrorParent?s.parentNode=l.fixedMirrorParent:s.parentNode=Object(r["rb"])(t,".fc"),s.revertDuration=l.dragRevertDuration;var p=o.isValidSegDownEl(t)&&!Object(r["rb"])(t,".fc-event-resizer");a.setIgnoreMove(!p),i.isDragging=p&&e.subjectEl.classList.contains("fc-event-draggable")},i.handleDragStart=function(e){var t=i.component.context,n=i.eventRange,o=n.instance.instanceId;e.isTouch?o!==i.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:o}):t.dispatch({type:"UNSELECT_EVENT"}),i.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:i.subjectEl,event:new r["t"](t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},i.handleHitUpdate=function(e,t){if(i.isDragging){var n=i.relevantEvents,o=i.hitDragging.initialHit,a=i.component.context,s=null,l=null,c=null,u=!1,d={affectedEvents:n,mutatedEvents:Object(r["hb"])(),isEvent:!0};if(e){var f=e.component;s=f.context;var p=s.options;a===s||p.editable&&p.droppable?(l=x(o,e,s.getCurrentData().pluginHooks.eventDragMutationMassagers),l&&(c=Object(r["Q"])(n,s.getCurrentData().eventUiBases,l,s),d.mutatedEvents=c,f.isInteractionValid(d)||(u=!0,l=null,c=null,d.mutatedEvents=Object(r["hb"])()))):s=null}i.displayDrag(s,d),u?Object(r["qb"])():Object(r["tb"])(),t||(a===s&&C(o,e)&&(l=null),i.dragging.setMirrorNeedsRevert(!l),i.dragging.setMirrorIsVisible(!e||!document.querySelector(".fc-event-mirror")),i.receivingContext=s,i.validMutation=l,i.mutatedRelevantEvents=c)}},i.handlePointerUp=function(){i.isDragging||i.cleanup()},i.handleDragEnd=function(e){if(i.isDragging){var t=i.component.context,n=t.viewApi,a=i,s=a.receivingContext,l=a.validMutation,c=i.eventRange.def,u=i.eventRange.instance,d=new r["t"](t,c,u),f=i.relevantEvents,p=i.mutatedRelevantEvents,h=i.hitDragging.finalHit;if(i.clearDrag(),t.emitter.trigger("eventDragStop",{el:i.subjectEl,event:d,jsEvent:e.origEvent,view:n}),l){if(s===t){var v=new r["t"](t,p.defs[c.defId],u?p.instances[u.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:p});for(var g={oldEvent:d,event:v,relatedEvents:Object(r["U"])(p,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:f})}},m={},b=0,y=t.getCurrentData().pluginHooks.eventDropTransformers;b<y.length;b++){var E=y[b];Object(o["a"])(m,E(l,t))}t.emitter.trigger("eventDrop",Object(o["a"])(Object(o["a"])(Object(o["a"])({},g),m),{el:e.subjectEl,delta:l.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",g)}else if(s){var S={event:d,relatedEvents:Object(r["U"])(f,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:f})}};t.emitter.trigger("eventLeave",Object(o["a"])(Object(o["a"])({},S),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:f}),t.emitter.trigger("eventRemove",S);var D=p.defs[c.defId],O=p.instances[u.instanceId],C=new r["t"](s,D,O);s.dispatch({type:"MERGE_EVENTS",eventStore:p});var R={event:C,relatedEvents:Object(r["U"])(p,s,O),revert:function(){s.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};s.emitter.trigger("eventAdd",R),e.isTouch&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId}),s.emitter.trigger("drop",Object(o["a"])(Object(o["a"])({},w(h.dateSpan,s)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:h.component.context.viewApi})),s.emitter.trigger("eventReceive",Object(o["a"])(Object(o["a"])({},R),{draggedEl:e.subjectEl,view:h.component.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}i.cleanup()};var a=i.component,s=a.context.options,l=i.dragging=new E(n.el);l.pointer.selector=t.SELECTOR,l.touchScrollAllowed=!1,l.autoScroller.isEnabled=s.dragScroll;var c=i.hitDragging=new O(i.dragging,r["Hb"]);return c.useSubjectCenter=n.useEventCenter,c.emitter.on("pointerdown",i.handlePointerDown),c.emitter.on("dragstart",i.handleDragStart),c.emitter.on("hitupdate",i.handleHitUpdate),c.emitter.on("pointerup",i.handlePointerUp),c.emitter.on("dragend",i.handleDragEnd),i}return Object(o["b"])(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context,o=this.receivingContext;o&&o!==e&&(o===n?o.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:Object(r["hb"])(),isEvent:!0}}):o.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=".fc-event-draggable, .fc-event-resizable",t}(r["w"]);function x(e,t,n){var o=e.dateSpan,i=t.dateSpan,a=o.range.start,s=i.range.start,l={};o.allDay!==i.allDay&&(l.allDay=i.allDay,l.hasEnd=t.component.context.options.allDayMaintainDuration,i.allDay&&(a=Object(r["gc"])(a)));var c=Object(r["mb"])(a,s,e.component.context.dateEnv,e.component===t.component?e.component.largeUnit:null);c.milliseconds&&(l.allDay=!1);for(var u={datesDelta:c,standardProps:l},d=0,f=n;d<f.length;d++){var p=f[d];p(u,e,t)}return u}function I(e){var t=e.context.options,n=t.eventLongPressDelay;return null==n&&(n=t.longPressDelay),n}var P=function(e){function t(t){var n=e.call(this,t)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,o=n.querySegEl(e),i=Object(r["zb"])(o),a=n.eventRange=i.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==a.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,o=n.eventRange;n.relevantEvents=Object(r["Bb"])(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var i=n.querySegEl(e);n.draggingSegEl=i,n.draggingSeg=Object(r["zb"])(i),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:i,event:new r["t"](t,o.def,o.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,o){var i=n.component.context,a=n.relevantEvents,s=n.hitDragging.initialHit,l=n.eventRange.instance,c=null,u=null,d=!1,f={affectedEvents:a,mutatedEvents:Object(r["hb"])(),isEvent:!0};e&&(c=N(s,e,o.subjectEl.classList.contains("fc-event-resizer-start"),l.range,i.pluginHooks.eventResizeJoinTransforms)),c&&(u=Object(r["Q"])(a,i.getCurrentData().eventUiBases,c,i),f.mutatedEvents=u,n.component.isInteractionValid(f)||(d=!0,c=null,u=null,f.mutatedEvents=null)),u?i.dispatch({type:"SET_EVENT_RESIZE",state:f}):i.dispatch({type:"UNSET_EVENT_RESIZE"}),d?Object(r["qb"])():Object(r["tb"])(),t||(c&&C(s,e)&&(c=null),n.validMutation=c,n.mutatedRelevantEvents=u)},n.handleDragEnd=function(e){var t=n.component.context,i=n.eventRange.def,a=n.eventRange.instance,s=new r["t"](t,i,a),l=n.relevantEvents,c=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:s,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var u=new r["t"](t,c.defs[i.defId],a?c.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});var d={oldEvent:s,event:u,relatedEvents:Object(r["U"])(c,t,a),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventResize",Object(o["a"])(Object(o["a"])({},d),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||Object(r["fb"])(0),endDelta:n.validMutation.endDelta||Object(r["fb"])(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",d)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var i=t.component,a=n.dragging=new E(t.el);a.pointer.selector=".fc-event-resizer",a.touchScrollAllowed=!1,a.autoScroller.isEnabled=i.context.options.dragScroll;var s=n.hitDragging=new O(n.dragging,Object(r["Ib"])(t));return s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("dragend",n.handleDragEnd),n}return Object(o["b"])(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return Object(r["rb"])(e.subjectEl,".fc-event")},t}(r["w"]);function N(e,t,n,i,a){for(var s=e.component.context.dateEnv,l=e.dateSpan.range.start,c=t.dateSpan.range.start,u=Object(r["mb"])(l,c,s,e.component.largeUnit),d={},f=0,p=a;f<p.length;f++){var h=p[f],v=h(e,t);if(!1===v)return null;v&&Object(o["a"])(d,v)}if(n){if(s.add(i.start,u)<i.end)return d.startDelta=u,d}else if(s.add(i.end,u)>i.start)return d.endDelta=u,d;return null}var H=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,o=e.origEvent.target;t.matchesCancel=!!Object(r["rb"])(o,n),t.matchesEvent=!!Object(r["rb"])(o,_.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 l(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={fixedMirrorParent:r["Gb"]},U={dateClick:r["Gb"],eventDragStart:r["Gb"],eventDragStop:r["Gb"],eventDrop:r["Gb"],eventResizeStart:r["Gb"],eventResizeStop:r["Gb"],eventResize:r["Gb"],drop:r["Gb"],eventReceive:r["Gb"],eventLeave:r["Gb"]},L=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,o){var i=n.hitDragging.dragging,a=null,s=null,l=!1,c={affectedEvents:Object(r["hb"])(),mutatedEvents:Object(r["hb"])(),isEvent:n.dragMeta.create};e&&(a=e.component.context,n.canDropElOnCalendar(o.subjectEl,a)&&(s=W(e.dateSpan,n.dragMeta,a),c.mutatedEvents=Object(r["ub"])(s),l=!Object(r["Nb"])(c,a),l&&(c.mutatedEvents=Object(r["hb"])(),s=null))),n.displayDrag(a,c),i.setMirrorIsVisible(t||!s||!document.querySelector(".fc-event-mirror")),l?Object(r["qb"])():Object(r["tb"])(),t||(i.setMirrorNeedsRevert(!s),n.receivingContext=a,n.droppableEvent=s)},this.handleDragEnd=function(e){var t=n,i=t.receivingContext,a=t.droppableEvent;if(n.clearDrag(),i&&a){var s=n.hitDragging.finalHit,l=s.component.context.viewApi,c=n.dragMeta;if(i.emitter.trigger("drop",Object(o["a"])(Object(o["a"])({},w(s.dateSpan,i)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:l})),c.create){var u=Object(r["ub"])(a);i.dispatch({type:"MERGE_EVENTS",eventStore:u}),e.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instance.instanceId}),i.emitter.trigger("eventReceive",{event:new r["t"](i,a.def,a.instance),relatedEvents:[],revert:function(){i.dispatch({type:"REMOVE_EVENTS",eventStore:u})},draggedEl:e.subjectEl,view:l})}}n.receivingContext=null,n.droppableEvent=null};var i=this.hitDragging=new O(e,r["Hb"]);i.requireInitial=!1,i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"===typeof this.suppliedDragMeta?Object(r["Sb"])(this.suppliedDragMeta):"function"===typeof this.suppliedDragMeta?Object(r["Sb"])(this.suppliedDragMeta(e)):V(e)},e.prototype.displayDrag=function(e,t){var n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.canDropElOnCalendar=function(e,t){var n=t.options.dropAccept;return"function"===typeof n?n.call(t.calendarApi,e):"string"!==typeof n||!n||Boolean(Object(r["sb"])(e,n))},e}();function W(e,t,n){for(var i=Object(o["a"])({},t.leftoverProps),a=0,s=n.pluginHooks.externalDefTransforms;a<s.length;a++){var l=s[a];Object(o["a"])(i,l(e,t))}var c=Object(r["Zb"])(i,n),u=c.refined,d=c.extra,f=Object(r["Tb"])(u,d,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),p=e.range.start;e.allDay&&t.startTime&&(p=n.dateEnv.add(p,t.startTime));var h=t.duration?n.dateEnv.add(p,t.duration):Object(r["yb"])(e.allDay,p,n),v=Object(r["ib"])(f.defId,{start:p,end:h});return{def:f,instance:v}}function V(e){var t=z(e,"event"),n=t?JSON.parse(t):{create:!1};return Object(r["Sb"])(n)}function z(e,t){var n=r["db"].dataAttrPrefix,o=(n?n+"-":"")+t;return e.getAttribute("data-"+o)||""}r["db"].dataAttrPrefix="";(function(){function e(e,t){var n=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,o=n.settings,i=o.minDistance,a=o.longPressDelay;t.minDistance=null!=i?i:e.isTouch?0:r["a"].eventDragMinDistance,t.delay=e.isTouch?null!=a?a:r["a"].longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;var o=this.dragging=new E(e);o.touchScrollAllowed=!1,null!=t.itemSelector&&(o.pointer.selector=t.itemSelector),null!=t.appendTo&&(o.mirror.parentNode=t.appendTo),o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),new L(o,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}})();var B=function(e){function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new l(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}return Object(o["b"])(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(r["q"]),F=(function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};var r=this.dragging=new B(n);"string"===typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"===typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new L(r,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}}(),Object(r["kb"])({componentInteractions:[T,j,_,P],calendarInteractions:[H],elementDraggingImpl:E,optionRefiners:A,listenerRefiners:U}));t["a"]=F},"2cfd":function(e,t,n){var r=n("4292"),o=n("1cf2"),i=n("8b5c"),a=!i((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:o})},"45ec":function(e,t,n){},6085:function(e,t,n){"use strict";n("aaf8");var r=n("b5f8"),o=n("21c9"),i=n("cdaa"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(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?Object(r["Fb"])(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(r["F"]),s=Object(r["jb"])({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function l(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Object(r["gb"])(r["H"].Consumer,null,(function(n){if(!e.isLabeled)return Object(r["gb"])("td",{className:t.join(" "),"data-time":e.isoTimeStr});var o=n.dateEnv,i=n.options,a=n.viewApi,l=null==i.slotLabelFormat?s:Array.isArray(i.slotLabelFormat)?Object(r["jb"])(i.slotLabelFormat[0]):Object(r["jb"])(i.slotLabelFormat),u={level:0,time:e.time,date:o.toDate(e.date),view:a,text:o.format(e.date,l)};return Object(r["gb"])(r["B"],{hookProps:u,classNames:i.slotLabelClassNames,content:i.slotLabelContent,defaultContent:c,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(function(n,o,i,a){return Object(r["gb"])("td",{ref:n,className:t.concat(o).join(" "),"data-time":e.isoTimeStr},Object(r["gb"])("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Object(r["gb"])("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:i},a)))}))}))}function c(e){return e.text}var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return Object(r["gb"])("tr",{key:e.key},Object(r["gb"])(l,Object(o["a"])({},e)))}))},t}(r["b"]),d=Object(r["jb"])({week:"short"}),f=5,p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new a,t.headerElRef=Object(r["lb"])(),t.rootElRef=Object(r["lb"])(),t.scrollerElRef=Object(r["lb"])(),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 i=t.context.options,a=t.props.dateProfile,s=a.renderRange,l=Object(r["nb"])(s.start,s.end),c=i.navLinks&&1===l?{"data-navlink":Object(r["W"])(s.start,"week"),tabIndex:0}:{};return i.weekNumbers&&"day"===e?Object(r["gb"])(r["J"],{date:s.start,defaultFormat:d},(function(e,t,i,a){return Object(r["gb"])("th",{ref:e,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},Object(r["gb"])("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},Object(r["gb"])("a",Object(o["a"])({ref:i,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},c),a)))})):Object(r["gb"])("th",{className:"fc-timegrid-axis"},Object(r["gb"])("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,o=n.options,i=n.viewApi,a={text:o.allDayText,view:i};return Object(r["gb"])(r["B"],{hookProps:a,classNames:o.allDayClassNames,content:o.allDayContent,defaultContent:h,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},(function(t,n,o,i){return Object(r["gb"])("td",{ref:t,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},Object(r["gb"])("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},Object(r["gb"])("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:o},i)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return Object(o["b"])(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var o=this,i=o.context,a=o.props,s=[],l=Object(r["Eb"])(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(s.push({type:"body",key:"all-day",chunk:{content:t}}),s.push({type:"body",key:"all-day-divider",outerContent:Object(r["gb"])("tr",{className:"fc-scrollgrid-section"},Object(r["gb"])("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Object(r["gb"])(r["I"],{viewSpec:i.viewSpec,elRef:this.rootElRef},(function(e,t){return Object(r["gb"])("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Object(r["gb"])(r["D"],{liquid:!a.isHeightAuto&&!a.forPrint,cols:[{width:"shrink"}],sections:s}))}))},t.prototype.renderHScrollLayout=function(e,t,n,o,i,a,s){var l=this,c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");var d=this,f=d.context,p=d.props,h=!p.forPrint&&Object(r["Eb"])(f.options),v=!p.forPrint&&Object(r["Db"])(f.options),g=[];e&&g.push({type:"header",key:"header",isSticky:h,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Object(r["gb"])("tr",null,l.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(g.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Object(r["gb"])("tr",null,l.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),g.push({key:"all-day-divider",type:"body",outerContent:Object(r["gb"])("tr",{className:"fc-scrollgrid-section"},Object(r["gb"])("td",{colSpan:2,className:"fc-timegrid-divider "+f.theme.getClass("tableCellShaded")}))}));var m=f.options.nowIndicator;return g.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(f.options.expandRows),chunks:[{key:"axis",content:function(e){return Object(r["gb"])("div",{className:"fc-timegrid-axis-chunk"},Object(r["gb"])("table",{style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,Object(r["gb"])("tbody",null,Object(r["gb"])(u,{slatMetas:a}))),Object(r["gb"])("div",{className:"fc-timegrid-now-indicator-container"},Object(r["gb"])(r["y"],{unit:m?"minute":"day"},(function(e){var t=m&&s&&s.safeComputeTop(e);return"number"===typeof t?Object(r["gb"])(r["x"],{isAxis:!0,date:e},(function(e,n,o,i){return Object(r["gb"])("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},i)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),v&&g.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:r["dc"]},{key:"cols",content:r["dc"]}]}),Object(r["gb"])(r["I"],{viewSpec:f.viewSpec,elRef:this.rootElRef},(function(e,t){return Object(r["gb"])("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Object(r["gb"])(c,{liquid:!p.isHeightAuto&&!p.forPrint,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:o,minWidth:i}]}],sections:g}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=f),{dayMaxEvents:t,dayMaxEventRows:n}},t}(r["i"]);function h(e){return e.text}var v=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(Object(r["Xb"])(t.currentRange,e)){var n=Object(r["gc"])(e),o=e.valueOf()-n.valueOf();if(o>=Object(r["T"])(t.slotMinTime)&&o<Object(r["T"])(t.slotMaxTime))return this.computeTimeTop(Object(r["fb"])(o))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=Object(r["gc"])(e)),this.computeTimeTop(Object(r["fb"])(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,o=this,i=o.positions,a=o.dateProfile,s=i.els.length,l=(e.milliseconds-Object(r["T"])(a.slotMinTime))/Object(r["T"])(this.slotDuration);return l=Math.max(0,l),l=Math.min(s,l),t=Math.floor(l),t=Math.min(t,s-1),n=l-t,i.tops[t]+i.getHeight(t)*n},e}(),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,i=n.options,a=t.slatElRefs;return Object(r["gb"])("tbody",null,t.slatMetas.map((function(e,s){var c={time:e.time,date:n.dateEnv.toDate(e.date),view:n.viewApi},u=["fc-timegrid-slot","fc-timegrid-slot-lane",e.isLabeled?"":"fc-timegrid-slot-minor"];return Object(r["gb"])("tr",{key:e.key,ref:a.createRef(e.key)},t.axis&&Object(r["gb"])(l,Object(o["a"])({},e)),Object(r["gb"])(r["B"],{hookProps:c,classNames:i.slotLaneClassNames,content:i.slotLaneContent,didMount:i.slotLaneDidMount,willUnmount:i.slotLaneWillUnmount},(function(t,n,o,i){return Object(r["gb"])("td",{ref:t,className:u.concat(n).join(" "),"data-time":e.isoTimeStr},i)})))})))},t}(r["b"]),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Object(r["lb"])(),t.slatElRefs=new r["A"],t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context;return Object(r["gb"])("div",{className:"fc-timegrid-slots",ref:this.rootElRef},Object(r["gb"])("table",{className:n.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,Object(r["gb"])(g,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e=this,t=e.context,n=e.props;if(n.onCoords&&null!==n.clientWidth){var o=this.rootElRef.current;o.offsetHeight&&n.onCoords(new v(new r["z"](this.rootElRef.current,b(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))}},t}(r["b"]);function b(e,t){return t.map((function(t){return e[t.key]}))}function y(e,t){var n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function E(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.col].segs.push(i)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}function S(e,t,n,r,o){return D(e,t,n,r),O(e,o)}function D(e,t,n,r){for(var o=0,i=e;o<i.length;o++){var a=i[o];a.top=n.computeDateTop(a.start,t),a.bottom=Math.max(a.top+(r||0),n.computeDateTop(a.end,t))}}function O(e,t){for(var n=0,o=e;n<o.length;n++){var i=o[n];i.level=null,i.forwardCoord=null,i.backwardCoord=null,i.forwardPressure=null}var a;e=Object(r["fc"])(e,t);var s=C(e);if(T(s),a=s[0]){for(var l=0,c=a;l<c.length;l++){i=c[l];j(i)}for(var u=0,d=a;u<d.length;u++){i=d[u];k(i,0,0,t)}}return e}function C(e){var t,n,r,o=[];for(t=0;t<e.length;t+=1){for(n=e[t],r=0;r<o.length;r+=1)if(!w(n,o[r]).length)break;n.level=r,(o[r]||(o[r]=[])).push(n)}return o}function w(e,t,n){void 0===n&&(n=[]);for(var r=0;r<t.length;r+=1)R(e,t[r])&&n.push(t[r]);return n}function R(e,t){return e.bottom>t.top&&e.top<t.bottom}function T(e){var t,n,r,o,i;for(t=0;t<e.length;t+=1)for(n=e[t],r=0;r<n.length;r+=1)for(o=n[r],o.forwardSegs=[],i=t+1;i<e.length;i+=1)w(o,e[i],o.forwardSegs)}function j(e){var t,n,r=e.forwardSegs,o=0;if(null==e.forwardPressure){for(t=0;t<r.length;t+=1)n=r[t],j(n),o=Math.max(o,1+n.forwardPressure);e.forwardPressure=o}}function k(e,t,n,r){var o,i=e.forwardSegs;if(null==e.forwardCoord)for(i.length?(M(i,r),k(i[0],t+1,n,r),e.forwardCoord=i[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-n)/(t+1),o=0;o<i.length;o+=1)k(i[o],0,e.forwardCoord,r)}function M(e,t){var n=e.map(_),o=[{field:"forwardPressure",order:-1},{field:"backwardCoord",order:1}].concat(t);return n.sort((function(e,t){return Object(r["Z"])(e,t,o)})),n.map((function(e){return e._seg}))}function _(e){var t=Object(r["X"])(e);return t.forwardPressure=e.forwardPressure,t.backwardCoord=e.backwardCoord,t}var x=Object(r["jb"])({hour:"numeric",minute:"2-digit",meridiem:!1}),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isCondensed&&e.push("fc-timegrid-event-condensed"),Object(r["gb"])(r["G"],Object(o["a"])({},this.props,{defaultTimeFormat:x,extraClassNames:e}))},t}(r["b"]),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this.props;return Object(r["gb"])(r["k"],{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&Object(r["gb"])("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},t}(r["b"]);r["db"].timeGridEventCondensedHeight=30;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,i=t.context,a=i.options.selectMirror,s=n.eventDrag&&n.eventDrag.segs||n.eventResize&&n.eventResize.segs||a&&n.dateSelectionSegs||[],l=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return Object(r["gb"])(r["l"],{elRef:n.elRef,date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},(function(t,i,c){return Object(r["gb"])("td",Object(o["a"])({ref:t,className:["fc-timegrid-col"].concat(i,n.extraClassNames||[]).join(" ")},c,n.extraDataAttrs),Object(r["gb"])("div",{className:"fc-timegrid-col-frame"},Object(r["gb"])("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(n.businessHourSegs,"non-business"),e.renderFillSegs(n.bgEventSegs,"bg-event"),e.renderFillSegs(n.dateSelectionSegs,"highlight")),Object(r["gb"])("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(n.fgEventSegs,l)),Object(r["gb"])("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(s,{},Boolean(n.eventDrag),Boolean(n.eventResize),Boolean(a))),Object(r["gb"])("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(n.nowIndicatorSegs)),Object(r["gb"])(P,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps})))}))},t.prototype.renderFgSegs=function(e,t,n,r,o){var i=this.props;return i.forPrint?this.renderPrintFgSegs(e):i.slatCoords?this.renderPositionedFgSegs(e,t,n,r,o):null},t.prototype.renderPrintFgSegs=function(e){var t=this,n=t.props,i=t.context;return e=Object(r["fc"])(e,i.options.eventOrder),e.map((function(e){return Object(r["gb"])("div",{className:"fc-timegrid-event-harness",key:e.eventRange.instance.instanceId},Object(r["gb"])(I,Object(o["a"])({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isCondensed:!1},Object(r["Cb"])(e,n.todayRange,n.nowDate))))}))},t.prototype.renderPositionedFgSegs=function(e,t,n,i,a){var s=this,l=this,c=l.context,u=l.props;return e=S(e,u.date,u.slatCoords,c.options.eventMinHeight,c.options.eventOrder),e.map((function(e){var l=e.eventRange.instance.instanceId,c=n||i||a,d=c?Object(o["a"])({left:0,right:0},s.computeSegTopBottomCss(e)):s.computeFgSegPositionCss(e);return Object(r["gb"])("div",{className:"fc-timegrid-event-harness"+(e.level>0?" fc-timegrid-event-harness-inset":""),key:l,style:Object(o["a"])({visibility:t[l]?"hidden":""},d)},Object(r["gb"])(I,Object(o["a"])({seg:e,isDragging:n,isResizing:i,isDateSelecting:a,isSelected:l===u.eventSelection,isCondensed:e.bottom-e.top<r["db"].timeGridEventCondensedHeight},Object(r["Cb"])(e,u.todayRange,u.nowDate))))}))},t.prototype.renderFillSegs=function(e,t){var n=this,i=this,a=i.context,s=i.props;if(!s.slatCoords)return null;D(e,s.date,s.slatCoords,a.options.eventMinHeight);var l=e.map((function(e){return Object(r["gb"])("div",{key:Object(r["V"])(e.eventRange),className:"fc-timegrid-bg-harness",style:n.computeSegTopBottomCss(e)},"bg-event"===t?Object(r["gb"])(r["c"],Object(o["a"])({seg:e},Object(r["Cb"])(e,s.todayRange,s.nowDate))):Object(r["cc"])(t))}));return Object(r["gb"])(r["v"],null,l)},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,o=t.date;return n?e.map((function(e,t){return Object(r["gb"])(r["x"],{isAxis:!1,date:o,key:t},(function(t,i,a,s){return Object(r["gb"])("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(i).join(" "),style:{top:n.computeDateTop(e.start,o)}},s)}))})):null},t.prototype.computeFgSegPositionCss=function(e){var t,n,r=this.context,i=r.isRtl,a=r.options,s=a.slotEventOverlap,l=e.backwardCoord,c=e.forwardCoord;s&&(c=Math.min(1,l+2*(c-l))),i?(t=1-c,n=l):(t=l,n=1-c);var u={zIndex:e.level+1,left:100*t+"%",right:100*n+"%"};return s&&e.forwardPressure&&(u[i?"marginLeft":"marginRight"]=20),Object(o["a"])(Object(o["a"])({},u),this.computeSegTopBottomCss(e))},t.prototype.computeSegTopBottomCss=function(e){return{top:e.top,bottom:-e.bottom}},t}(r["b"]),H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=Object(r["Qb"])(y),t.splitBgEventSegs=Object(r["Qb"])(y),t.splitBusinessHourSegs=Object(r["Qb"])(y),t.splitNowIndicatorSegs=Object(r["Qb"])(y),t.splitDateSelectionSegs=Object(r["Qb"])(y),t.splitEventDrag=Object(r["Qb"])(E),t.splitEventResize=Object(r["Qb"])(E),t.rootElRef=Object(r["lb"])(),t.cellElRefs=new r["A"],t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,o=t.context,i=o.options.nowIndicator&&n.slatCoords&&n.slatCoords.safeComputeTop(n.nowDate),a=n.cells.length,s=this.splitFgEventSegs(n.fgEventSegs,a),l=this.splitBgEventSegs(n.bgEventSegs,a),c=this.splitBusinessHourSegs(n.businessHourSegs,a),u=this.splitNowIndicatorSegs(n.nowIndicatorSegs,a),d=this.splitDateSelectionSegs(n.dateSelectionSegs,a),f=this.splitEventDrag(n.eventDrag,a),p=this.splitEventResize(n.eventResize,a);return Object(r["gb"])("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Object(r["gb"])("table",{style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,Object(r["gb"])("tbody",null,Object(r["gb"])("tr",null,n.axis&&Object(r["gb"])("td",{className:"fc-timegrid-col fc-timegrid-axis"},Object(r["gb"])("div",{className:"fc-timegrid-col-frame"},Object(r["gb"])("div",{className:"fc-timegrid-now-indicator-container"},"number"===typeof i&&Object(r["gb"])(r["x"],{isAxis:!0,date:n.nowDate},(function(e,t,n,o){return Object(r["gb"])("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:i}},o)}))))),n.cells.map((function(t,o){return Object(r["gb"])(N,{key:t.key,elRef:e.cellElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,nowDate:n.nowDate,todayRange:n.todayRange,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,fgEventSegs:s[o],bgEventSegs:l[o],businessHourSegs:c[o],nowIndicatorSegs:u[o],dateSelectionSegs:d[o],eventDrag:f[o],eventResize:p[o],slatCoords:n.slatCoords,eventSelection:n.eventSelection,forPrint:n.forPrint})}))))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e=this.props;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new r["z"](this.rootElRef.current,A(this.cellElRefs.currentMap,e.cells),!0,!1))},t}(r["b"]);function A(e,t){return t.map((function(t){return e[t.key]}))}var U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=Object(r["Qb"])(L),t.state={slatCoords:null},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,r=t.state.slatCoords;if(n&&r){if(e.time){var o=r.computeTimeTop(e.time);o=Math.ceil(o),o&&(o+=1),n(o)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state;return Object(r["gb"])("div",{className:"fc-timegrid-body",ref:t.rootElRef,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Object(r["gb"])(m,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Object(r["gb"])(H,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.positionToHit=function(e,t){var n=this.context,o=n.dateEnv,i=n.options,a=this.colCoords,s=this.props.dateProfile,l=this.state.slatCoords,c=this.processSlotOptions(this.props.slotDuration,i.snapDuration),u=c.snapDuration,d=c.snapsPerSlot,f=a.leftToIndex(e),p=l.positions.topToIndex(t);if(null!=f&&null!=p){var h=l.positions.tops[p],v=l.positions.getHeight(p),g=(t-h)/v,m=Math.floor(g*d),b=p*d+m,y=this.props.cells[f].date,E=Object(r["M"])(s.slotMinTime,Object(r["Rb"])(u,b)),S=o.add(y,E),D=o.add(S,u);return{col:f,dateSpan:{range:{start:S,end:D},allDay:!1},dayEl:a.els[f],relativeRect:{left:a.lefts[f],right:a.rights[f],top:h,bottom:h+v}}}return null},t}(r["b"]);function L(e,t){var n=t||e,o=Object(r["kc"])(e,n);return null===o&&(n=e,o=1),{snapDuration:n,snapsPerSlot:o}}var W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],o=0;o<t.length;o+=1){var i=Object(r["Jb"])(e,t[o]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:o})}return n},t}(r["E"]),V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=Object(r["Qb"])(z),t.slicer=new W,t.timeColsRef=Object(r["lb"])(),t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,i=t.context,a=n.dateProfile,s=n.dayTableModel,l=i.options.nowIndicator,c=this.buildDayRanges(s,a,i.dateEnv);return Object(r["gb"])(r["y"],{unit:l?"minute":"day"},(function(t,u){return Object(r["gb"])(U,Object(o["a"])({ref:e.timeColsRef,rootElRef:e.handleRootEl},e.slicer.sliceProps(n,a,null,i,c),{forPrint:n.forPrint,axis:n.axis,dateProfile:a,slatMetas:n.slatMetas,slotDuration:n.slotDuration,cells:s.cells[0],tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,expandRows:n.expandRows,nowDate:t,nowIndicatorSegs:l&&e.slicer.sliceNowDate(t,i,c),todayRange:u,onScrollTopRequest:n.onScrollTopRequest,onSlatCoords:n.onSlatCoords}))}))},t.prototype.queryHit=function(e,t){var n=this.timeColsRef.current.positionToHit(e,t);return n?{component:this,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}:null},t}(r["i"]);function z(e,t,n){for(var r=[],o=0,i=e.headerDates;o<i.length;o++){var a=i[o];r.push({start:n.add(a,t.slotMinTime),end:n.add(a,t.slotMaxTime)})}return r}var B=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function F(e,t,n,o,i){var a=new Date(0),s=e,l=Object(r["fb"])(0),c=n||G(o),u=[];while(Object(r["T"])(s)<Object(r["T"])(t)){var d=i.add(a,s),f=null!==Object(r["kc"])(l,c);u.push({date:d,time:s,key:d.toISOString(),isoTimeStr:Object(r["wb"])(d),isLabeled:f}),s=Object(r["M"])(s,o),l=Object(r["M"])(l,o)}return u}function G(e){var t,n,o;for(t=B.length-1;t>=0;t-=1)if(n=Object(r["fb"])(B[t]),o=Object(r["kc"])(n,e),null!==o&&o>1)return n;return e}var q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=Object(r["Qb"])(Y),t.buildSlatMetas=Object(r["Qb"])(F),t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,a=t.dateEnv,s=t.dateProfileGenerator,l=this.props,c=l.dateProfile,u=this.buildTimeColsModel(c,s),d=this.allDaySplitter.splitProps(l),f=this.buildSlatMetas(c.slotMinTime,c.slotMaxTime,n.slotLabelInterval,n.slotDuration,a),p=n.dayMinWidth,h=!p,v=p,g=n.dayHeaders&&Object(r["gb"])(r["m"],{dates:u.headerDates,dateProfile:c,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),m=!1!==n.allDaySlot&&function(t){return Object(r["gb"])(i["a"],Object(o["a"])({},d.allDay,{dateProfile:c,dayTableModel:u,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:h?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:l.forPrint},e.getAllDayMaxEventProps()))},b=function(t){return Object(r["gb"])(V,Object(o["a"])({},d.timed,{dayTableModel:u,dateProfile:c,axis:h,slotDuration:n.slotDuration,slatMetas:f,forPrint:l.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return v?this.renderHScrollLayout(g,m,b,u.colCnt,p,f,this.state.slatCoords):this.renderSimpleLayout(g,m,b)},t}(p);function Y(e,t){var n=new r["n"](e.renderRange,t);return new r["o"](n,!1)}var Z={allDaySlot:Boolean},X=Object(r["kb"])({initialView:"timeGridWeek",optionRefiners:Z,views:{timeGrid:{component:q,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});t["a"]=X},"62ea":function(e,t,n){"use strict";var r,o,i,a,s,l=n("21c9"),c=n("a593"),u={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,a=arguments,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(a[i]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return g(e,s,r,o,null)}function g(e,t,n,o,i){var a={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r.__v:i};return null!=r.vnode&&r.vnode(a),a}function m(){return{current:null}}function b(e){return e.children}function y(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function D(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!O.__r++||a!==r.debounceRendering)&&((a=r.debounceRendering)||i)(O)}function O(){for(var e;O.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,x(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?E(o):i,o.__h),I(n,o),o.__e!=i&&S(o)))}))}function C(e,t,n,r,o,i,a,s,l,c){var f,p,h,v,m,y,S,D=r&&r.__k||d,O=D.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(v=n.__k[f]=null==(v=t[f])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(b,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=D[f])||h&&v.key==h.key&&v.type===h.type)D[f]=void 0;else for(p=0;p<O;p++){if((h=D[p])&&v.key==h.key&&v.type===h.type){D[p]=void 0;break}h=null}x(e,v,h=h||u,o,i,a,s,l,c),m=v.__e,(p=v.ref)&&h.ref!=p&&(S||(S=[]),h.ref&&S.push(h.ref,null,v),S.push(p,v.__c||m,v)),null!=m?(null==y&&(y=m),"function"==typeof v.type&&null!=v.__k&&v.__k===h.__k?v.__d=l=w(v,l,e):l=R(e,v,h,D,m,l),c||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&h.__e==l&&l.parentNode!=e&&(l=E(h))}for(n.__e=y,f=O;f--;)null!=D[f]&&("function"==typeof n.type&&null!=D[f].__e&&D[f].__e==n.__d&&(n.__d=E(r,f+1)),H(D[f],D[f]));if(S)for(f=0;f<S.length;f++)N(S[f],S[++f],S[++f])}function w(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?w(o,t,n):R(n,o,o,e.__k,o.__e,t));return t}function R(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function T(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||k(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||k(e,i,t[i],n[i],r)}function j(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function k(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||j(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||j(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?_:M,i):e.removeEventListener(t,i?_:M,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function M(e){this.l[e.type+!1](r.event?r.event(e):e)}function _(e){this.l[e.type+!0](r.event?r.event(e):e)}function x(e,t,n,o,i,a,s,l,c){var u,d,f,h,v,g,m,E,S,D,O,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,l=t.__e=n.__e,t.__h=null,a=[l]),(u=r.__b)&&u(t);try{e:if("function"==typeof w){if(E=t.props,S=(u=w.contextType)&&o[u.__c],D=u?S?S.props.value:u.__:o,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(E,D):(t.__c=d=new y(E,D),d.constructor=w,d.render=A),S&&S.sub(d),d.props=E,d.state||(d.state={}),d.context=D,d.__n=o,f=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=w.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,w.getDerivedStateFromProps(E,d.__s))),h=d.props,v=d.state,f)null==w.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==w.getDerivedStateFromProps&&E!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(E,D),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(E,d.__s,D)||t.__v===n.__v){d.props=E,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(E,d.__s,D),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,v,g)}))}d.context=D,d.props=E,d.state=d.__s,(u=r.__r)&&u(t),d.__d=!1,d.__v=t,d.__P=e,u=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(o=p(p({},o),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(h,v)),O=null!=u&&u.type===b&&null==u.key?u.props.children:u,C(e,Array.isArray(O)?O:[O],t,n,o,i,a,s,l,c),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P(n.__e,t,n,o,i,a,s,c);(u=r.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=a)&&(t.__e=l,t.__h=!!c,a[a.indexOf(l)]=null),r.__e(e,t,n)}}function I(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function P(e,t,n,r,o,i,a,s){var l,c,f,p,v=n.props,g=t.props,m=t.type,b=0;if("svg"===m&&(o=!0),null!=i)for(;b<i.length;b++)if((l=i[b])&&(l===e||(m?l.localName==m:3==l.nodeType))){e=l,i[b]=null;break}if(null==e){if(null===m)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,g.is&&g),i=null,s=!1}if(null===m)v===g||s&&e.data===g||(e.data=g);else{if(i=i&&d.slice.call(e.childNodes),c=(v=n.props||u).dangerouslySetInnerHTML,f=g.dangerouslySetInnerHTML,!s){if(null!=i)for(v={},p=0;p<e.attributes.length;p++)v[e.attributes[p].name]=e.attributes[p].value;(f||c)&&(f&&(c&&f.__html==c.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(T(e,g,v,o,s),f)t.__k=[];else if(b=t.props.children,C(e,Array.isArray(b)?b:[b],t,n,r,o&&"foreignObject"!==m,i,a,e.firstChild,s),null!=i)for(b=i.length;b--;)null!=i[b]&&h(i[b]);s||("value"in g&&void 0!==(b=g.value)&&(b!==e.value||"progress"===m&&!b)&&k(e,"value",b,v.value,!1),"checked"in g&&void 0!==(b=g.checked)&&b!==e.checked&&k(e,"checked",b,v.checked,!1))}return e}function N(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function H(e,t,n){var o,i,a;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||N(o,null,t)),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(a=0;a<o.length;a++)o[a]&&H(o[a],t,n);null!=i&&h(i)}function A(e,t,n){return this.constructor(e,n)}function U(e,t,n){var o,i,a;r.__&&r.__(e,t),i=(o="function"==typeof n)?null:n&&n.__k||t.__k,a=[],x(t,e=(!o&&n||t).__k=v(b,null,[e]),i||u,u,void 0!==t.ownerSVGElement,!o&&n?[n]:i?null:t.firstChild?d.slice.call(t.childNodes):null,a,!o&&n?n:i?i.__e:t.firstChild,o),I(a,e)}function L(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(D)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e},__v:0},y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),D(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),D(this))},y.prototype.render=b,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,O.__r=0,s=0;var W="undefined"!==typeof globalThis?globalThis:window;function V(){var e=r.debounceRendering,t=[];function n(e){t.push(e)}r.debounceRendering=n,U(v(z,{}),document.createElement("div"));while(t.length)t.shift()();r.debounceRendering=e}W.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):W.FullCalendarVDom={Component:y,createElement:v,render:U,createRef:m,Fragment:b,createContext:B,flushToDom:V,unmountComponentAtNode:F};var z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l["b"])(t,e),t.prototype.render=function(){return v("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(y);function B(e){var t=L(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,r=n.apply(this,arguments);if(t){var o=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&o.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){o.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){o.splice(o.indexOf(e),1),t&&t.call(e)}}}return r},t}function F(e){U(null,e)}var G=n("b5f8"),q=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;Object(G["bc"])(Object(G["gb"])(G["g"],{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,o,i){return r.setClassNames(t),r.setHeight(n),Object(G["gb"])(G["h"].Provider,{value:r.customContentRenderId},Object(G["gb"])(G["e"],Object(l["a"])({isHeightAuto:o,forPrint:i},e)))})),r.el)}else r.isRendered&&(r.isRendered=!1,Object(G["ic"])(r.el),r.setClassNames([]),r.setHeight(""));Object(G["vb"])()},r.el=t,r.renderRunner=new G["p"](r.handleRenderRequest),new G["f"]({optionOverrides:n,calendarApi:r,onAction:r.handleAction,onData:r.handleData}),r}return Object(l["b"])(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(){e.prototype.updateSize.call(this),Object(G["vb"])()},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(!Object(G["Lb"])(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n<r.length;n++){var o=r[n];t.remove(o)}for(var i=0,a=e;i<a.length;i++){o=a[i];t.add(o)}this.currentClassNames=e}},t.prototype.setHeight=function(e){Object(G["S"])(this.el,"height",e)},t}(G["d"]),Y={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};
/*!
FullCalendar v5.5.1
Docs & License: https://fullcalendar.io/
(c) 2020 Adam Shaw
*/function Z(e){return"object"===typeof e&&(Array.isArray(e)?e=Array.prototype.slice.call(e):e&&(e=Object(l["a"])({},e))),e}function X(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r],r));return n}function Q(e){return function(t){return{vue:e(t)}}}function J(e){return Object(G["kb"])({contentTypeHandlers:{vue:function(){return K(e)}}})}function K(e){var t,n;function r(r,o){if(t!==r&&(t&&n&&n.$destroy(),t=r),n)n.content=o;else{n=$(o,e);var i=document.createElement("span");r.appendChild(i),n.$mount(i)}}function o(){n&&n.$destroy()}return{render:r,destroy:o}}function $(e,t){return new c["default"]({parent:t,data:{content:e},render:function(e){var t=this.content;return 1===t.length?t[0]:e("span",{},t)}})}var ee=c["default"].extend({props:{options:Object},data:te,render:function(e){return e("div",{attrs:{"data-fc-render-id":this.renderId}})},mounted:function(){var e=this.$options;e.scopedSlotOptions=X(this.$scopedSlots,Q);var t=new q(this.$el,this.buildOptions(this.options,this));e.calendar=t,t.render()},methods:{getApi:re,buildOptions:ne},beforeUpdate:function(){this.getApi().resumeRendering()},beforeDestroy:function(){this.getApi().destroy()},watch:oe()});function te(){return{renderId:0}}function ne(e,t){var n=this.$options;return e=e||{},Object(l["a"])(Object(l["a"])(Object(l["a"])({},n.scopedSlotOptions),e),{plugins:(e.plugins||[]).concat([J(t)])})}function re(){var e=this.$options;return e.calendar}function oe(){var e={options:{deep:!0,handler:function(e){var t=this.getApi();t.pauseRendering(),t.resetOptions(this.buildOptions(e,this)),this.renderId++}}},t=function(t){e["options."+t]={deep:!0,handler:function(e){var n;if(void 0!==e){var r=this.getApi();r.pauseRendering(),r.resetOptions((n={},n[t]=Z(e),n),!0),this.renderId++}}}};for(var n in Y)t(n);return e}var ie,ae=ee,se=!1;function le(e){se||(se=!0,e.component("FullCalendar",ae))}ie="undefined"!==typeof globalThis?globalThis.Vue:window.Vue,ie&&ie.use({install:le});t["a"]=ae},"6eb8":function(e,t,n){},"730b":function(e,t,n){var r=n("9345"),o=n("5d29"),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},"8b5c":function(e,t,n){var r=n("9345"),o=r("iterator"),i=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){i=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},9010:function(e,t,n){"use strict";var r=n("4292"),o=n("fb77"),i=n("8a37"),a=n("2730"),s=n("4326"),l=n("698e"),c=n("5c14"),u=n("b9d5"),d=u("splice"),f=Math.max,p=Math.min,h=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,r,u,d,g,m,b=s(this),y=a(b.length),E=o(e,y),S=arguments.length;if(0===S?n=r=0:1===S?(n=0,r=y-E):(n=S-2,r=p(f(i(t),0),y-E)),y+n-r>h)throw TypeError(v);for(u=l(b,r),d=0;d<r;d++)g=E+d,g in b&&c(u,d,b[g]);if(u.length=r,n<r){for(d=E;d<y-r;d++)g=d+r,m=d+n,g in b?b[m]=b[g]:delete b[m];for(d=y;d>y-r+n;d--)delete b[d-1]}else if(n>r)for(d=y-r;d>E;d--)g=d+r-1,m=d+n-1,g in b?b[m]=b[g]:delete b[m];for(d=0;d<n;d++)b[d+E]=arguments[d+2];return b.length=y-r+n,u}})},"954c":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},"9aaa":function(e,t,n){var r=n("425b"),o=n("e3fb");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){throw o(e),a}}},aaf8:function(e,t,n){},b5f8:function(e,t,n){"use strict";n.d(t,"v",(function(){return l})),n.d(t,"gb",(function(){return i})),n.d(t,"lb",(function(){return s})),n.d(t,"vb",(function(){return u})),n.d(t,"bc",(function(){return a})),n.d(t,"ic",(function(){return d})),n.d(t,"a",(function(){return yt})),n.d(t,"b",(function(){return to})),n.d(t,"c",(function(){return ss})),n.d(t,"d",(function(){return Qn})),n.d(t,"e",(function(){return ga})),n.d(t,"f",(function(){return qi})),n.d(t,"g",(function(){return ya})),n.d(t,"h",(function(){return Po})),n.d(t,"i",(function(){return Co})),n.d(t,"j",(function(){return Xo})),n.d(t,"k",(function(){return rs})),n.d(t,"l",(function(){return is})),n.d(t,"m",(function(){return Ta})),n.d(t,"n",(function(){return ka})),n.d(t,"o",(function(){return Ma})),n.d(t,"p",(function(){return zi})),n.d(t,"q",(function(){return sa})),n.d(t,"r",(function(){return Zr})),n.d(t,"s",(function(){return Br})),n.d(t,"t",(function(){return Jn})),n.d(t,"u",(function(){return Ja})),n.d(t,"w",(function(){return ra})),n.d(t,"x",(function(){return ts})),n.d(t,"y",(function(){return wa})),n.d(t,"z",(function(){return qr})),n.d(t,"A",(function(){return Na})),n.d(t,"B",(function(){return Io})),n.d(t,"C",(function(){return Yr})),n.d(t,"D",(function(){return Xa})),n.d(t,"E",(function(){return _a})),n.d(t,"F",(function(){return Rr})),n.d(t,"G",(function(){return Ka})),n.d(t,"H",(function(){return Kr})),n.d(t,"I",(function(){return Vo})),n.d(t,"J",(function(){return cs})),n.d(t,"K",(function(){return Xr})),n.d(t,"L",(function(){return F})),n.d(t,"M",(function(){return Pe})),n.d(t,"N",(function(){return B})),n.d(t,"O",(function(){return I})),n.d(t,"P",(function(){return _})),n.d(t,"Q",(function(){return Ln})),n.d(t,"R",(function(){return b})),n.d(t,"S",(function(){return y})),n.d(t,"T",(function(){return We})),n.d(t,"U",(function(){return $n})),n.d(t,"V",(function(){return wn})),n.d(t,"W",(function(){return Mr})),n.d(t,"X",(function(){return bn})),n.d(t,"Y",(function(){return Dn})),n.d(t,"Z",(function(){return N})),n.d(t,"ab",(function(){return L})),n.d(t,"bb",(function(){return Lr})),n.d(t,"cb",(function(){return Wr})),n.d(t,"db",(function(){return la})),n.d(t,"eb",(function(){return Er})),n.d(t,"fb",(function(){return Me})),n.d(t,"hb",(function(){return xt})),n.d(t,"ib",(function(){return pe})),n.d(t,"jb",(function(){return mt})),n.d(t,"kb",(function(){return wo})),n.d(t,"mb",(function(){return en})),n.d(t,"nb",(function(){return Y})),n.d(t,"ob",(function(){return Dr})),n.d(t,"pb",(function(){return q})),n.d(t,"qb",(function(){return j})),n.d(t,"rb",(function(){return h})),n.d(t,"sb",(function(){return v})),n.d(t,"tb",(function(){return k})),n.d(t,"ub",(function(){return kt})),n.d(t,"wb",(function(){return Ge})),n.d(t,"xb",(function(){return Vr})),n.d(t,"yb",(function(){return Un})),n.d(t,"zb",(function(){return hn})),n.d(t,"Ab",(function(){return Sr})),n.d(t,"Bb",(function(){return Mt})),n.d(t,"Cb",(function(){return On})),n.d(t,"Db",(function(){return Za})),n.d(t,"Eb",(function(){return Ya})),n.d(t,"Fb",(function(){return fn})),n.d(t,"Gb",(function(){return Tt})),n.d(t,"Hb",(function(){return aa})),n.d(t,"Ib",(function(){return ia})),n.d(t,"Jb",(function(){return on})),n.d(t,"Kb",(function(){return yr})),n.d(t,"Lb",(function(){return Ye})),n.d(t,"Mb",(function(){return kn})),n.d(t,"Nb",(function(){return ho})),n.d(t,"Ob",(function(){return Ee})),n.d(t,"Pb",(function(){return me})),n.d(t,"Qb",(function(){return Ze})),n.d(t,"Rb",(function(){return He})),n.d(t,"Sb",(function(){return ua})),n.d(t,"Tb",(function(){return Xt})),n.d(t,"Ub",(function(){return br})),n.d(t,"Vb",(function(){return x})),n.d(t,"Wb",(function(){return M})),n.d(t,"Xb",(function(){return cn})),n.d(t,"Yb",(function(){return ln})),n.d(t,"Zb",(function(){return Yt})),n.d(t,"ac",(function(){return p})),n.d(t,"cc",(function(){return as})),n.d(t,"dc",(function(){return qa})),n.d(t,"ec",(function(){return oo})),n.d(t,"fc",(function(){return mn})),n.d(t,"gc",(function(){return ee})),n.d(t,"hc",(function(){return Nn})),n.d(t,"jc",(function(){return w})),n.d(t,"kc",(function(){return Ve}));n("6eb8");var r=n("21c9");if("undefined"===typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var o=FullCalendarVDom.Component,i=FullCalendarVDom.createElement,a=FullCalendarVDom.render,s=FullCalendarVDom.createRef,l=FullCalendarVDom.Fragment,c=FullCalendarVDom.createContext,u=FullCalendarVDom.flushToDom,d=FullCalendarVDom.unmountComponentAtNode,f=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]})},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 p(e){e.parentNode&&e.parentNode.removeChild(e)}function h(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(v(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function v(e,t){var n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function g(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].querySelectorAll(t),a=0;a<i.length;a+=1)r.push(i[a]);return r}var m=/(top|left|right|bottom|width|height)$/i;function b(e,t){for(var n in t)y(e,n,t[n])}function y(e,t,n){null==n?e.style[t]="":"number"===typeof n&&m.test(t)?e.style[t]=n+"px":e.style[t]=n}function E(e){e.preventDefault()}function S(e,t){return function(n){var r=h(n.target,e);r&&t.call(r,n,r)}}function D(e,t,n,r){var o=S(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}function O(e,t,n,r){var o;return D(e,"mouseover",t,(function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}}))}var C=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function w(e,t){var n=function(r){t(r),C.forEach((function(t){e.removeEventListener(t,n)}))};C.forEach((function(t){e.addEventListener(t,n)}))}var R=0;function T(){return R+=1,String(R)}function j(){document.body.classList.add("fc-not-allowed")}function k(){document.body.classList.remove("fc-not-allowed")}function M(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",E)}function _(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",E)}function x(e){e.addEventListener("contextmenu",E)}function I(e){e.removeEventListener("contextmenu",E)}function P(e){var t,n,r=[],o=[];for("string"===typeof e?o=e.split(/\s*,\s*/):"function"===typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)n=o[t],"string"===typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"===typeof n&&r.push({func:n});return r}function N(e,t,n){var r,o;for(r=0;r<n.length;r+=1)if(o=H(e,t,n[r]),o)return o;return 0}function H(e,t,n){return n.func?n.func(e,t):A(e[n.field],t[n.field])*(n.order||1)}function A(e,t){return e||t?null==t?-1:null==e?1:"string"===typeof e||"string"===typeof t?String(e).localeCompare(String(t)):e-t:0}function U(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function L(e,t){return e-t}function W(e){return e%1===0}function V(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var z=["sun","mon","tue","wed","thu","fri","sat"];function B(e,t){var n=ce(e);return n[2]+=7*t,ue(n)}function F(e,t){var n=ce(e);return n[2]+=t,ue(n)}function G(e,t){var n=ce(e);return n[6]+=t,ue(n)}function q(e,t){return Y(e,t)/7}function Y(e,t){return(t.valueOf()-e.valueOf())/864e5}function Z(e,t){return(t.valueOf()-e.valueOf())/36e5}function X(e,t){return(t.valueOf()-e.valueOf())/6e4}function Q(e,t){return(t.valueOf()-e.valueOf())/1e3}function J(e,t){var n=ee(e),r=ee(t);return{years:0,months:0,days:Math.round(Y(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function K(e,t){var n=$(e,t);return null!==n&&n%7===0?n/7:null}function $(e,t){return fe(e)===fe(t)?Math.round(Y(e,t)):null}function ee(e){return ue([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function te(e){return ue([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function ne(e){return ue([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function re(e){return ue([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function oe(e,t,n){var r=e.getUTCFullYear(),o=ie(e,r,t,n);if(o<1)return ie(e,r-1,t,n);var i=ie(e,r+1,t,n);return i>=1?Math.min(o,i):o}function ie(e,t,n,r){var o=ue([t,0,1+ae(t,n,r)]),i=ee(e),a=Math.round(Y(o,i));return Math.floor(a/7)+1}function ae(e,t,n){var r=7+t-n,o=(7+ue([e,0,r]).getUTCDay()-t)%7;return-o+r-1}function se(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function le(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 ce(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ue(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function de(e){return!isNaN(e.valueOf())}function fe(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function pe(e,t,n,r){return{instanceId:T(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var he=Object.prototype.hasOwnProperty;function ve(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;i>=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]=ve(o))}for(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 ge(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function me(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function be(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}function ye(e){var t=[];for(var n in e)t.push(e[n]);return t}function Ee(e,t){if(e===t)return!0;for(var n in e)if(he.call(e,n)&&!(n in t))return!1;for(var n in t)if(he.call(t,n)&&e[n]!==t[n])return!1;return!0}function Se(e,t){var n=[];for(var r in e)he.call(e,r)&&(r in t||n.push(r));for(var r in t)he.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function De(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!Oe(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function Oe(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Ce(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var o=[];null==n&&(n=Object.keys(e).length);for(var i=t;i<n;i+=r){var a=e[i];void 0!==a&&o.push(a)}return o}function we(e,t,n,r){for(var o=0;o<r.length;o+=1){var i=r[o].parse(e,n);if(i){var a=e.allDay;return null==a&&(a=t,null==a&&(a=i.allDayGuess,null==a&&(a=!1))),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}function Re(e,t,n){var r=n.dateEnv,o=n.pluginHooks,i=n.options,a=e.defs,s=e.instances;for(var l in s=ge(s,(function(e){return!a[e.defId].recurringDef})),a){var c=a[l];if(c.recurringDef){var u=c.recurringDef.duration;u||(u=c.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);for(var d=Te(c,u,t,r,o.recurringTypes),f=0,p=d;f<p.length;f++){var h=p[f],v=pe(l,{start:h,end:r.add(h,u)});s[v.instanceId]=v}}}return{defs:a,instances:s}}function Te(e,t,n,r,o){var i=o[e.recurringDef.typeId],a=i.expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(ee)),a}var je=["years","months","days","milliseconds"],ke=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Me(e,t){var n;return"string"===typeof e?_e(e):"object"===typeof e&&e?xe(e):"number"===typeof e?xe((n={},n[t||"milliseconds"]=e,n)):null}function _e(e){var t=ke.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}function xe(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,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)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Ie(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function Pe(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Ne(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function He(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Ae(e){return Le(e)/365}function Ue(e){return Le(e)/30}function Le(e){return We(e)/864e5}function We(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Ve(e,t){for(var n=null,r=0;r<je.length;r+=1){var o=je[r];if(t[o]){var i=e[o]/t[o];if(!W(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function ze(e){var t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%6e4!==0)return{unit:"second",value:t/1e3};if(t%36e5!==0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Be(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",qe(t,!0)))),r}function Fe(e){return e.toISOString().replace(/T.*$/,"")}function Ge(e){return U(e.getUTCHours(),2)+":"+U(e.getUTCMinutes(),2)+":"+U(e.getUTCSeconds(),2)}function qe(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+U(o,2)+":"+U(i,2):"GMT"+n+o+(i?":"+U(i,2):"")}function Ye(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function Ze(e,t,n){var r,o;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r){if(!Ye(r,i)){n&&n(o);var s=e.apply(this,i);t&&t(s,o)||(o=s)}}else o=e.apply(this,i);return r=i,o}}function Xe(e,t,n){var r,o,i=this;return function(a){if(r){if(!Ee(r,a)){n&&n(o);var s=e.call(i,a);t&&t(s,o)||(o=s)}}else o=e.call(i,a);return r=a,o}}var Qe={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Je={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ke=/\s*([ap])\.?m\.?/i,$e=/,/g,et=/\s+/g,tt=/\u200e/g,nt=/UTC|GMT/,rt=function(){function e(e){var t={},n={},r=0;for(var o in e)o in Qe?(n[o]=e[o],r=Math.max(Qe[o],r)):(t[o]=e[o],o in Je&&(r=Math.max(Je[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Ze(ot)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var o=this,i=o.standardDateProps,a=o.extendedSettings,s=ut(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);var l=s;!(l>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(l=1);var c=this.format(e,n),u=this.format(t,n);if(c===u)return c;var d=dt(i,l),f=ot(d,a,n),p=f(e),h=f(t),v=ft(c,p,u,h),g=a.separator||r||n.defaultSeparator||"";return v?v.before+p+g+h+v.after:c+g+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function ot(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return qe(e.timeZoneOffset)}:0===r&&t.week?function(e){return ct(n.computeWeekNumber(e.marker),n.weekText,n.locale,t.week)}:it(e,t,n)}function it(e,t,n){e=Object(r["a"])({},e),t=Object(r["a"])({},t),at(e,t),e.timeZone="UTC";var o,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=Object(r["a"])({},e);delete a.minute,o=new Intl.DateTimeFormat(n.locale.codes,a)}return function(r){var a,s=r.marker;a=o&&!s.getUTCMinutes()?o:i;var l=a.format(s);return st(l,r,e,t,n)}}function at(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function st(e,t,n,r,o){return e=e.replace(tt,""),"short"===n.timeZoneName&&(e=lt(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":qe(t.timeZoneOffset))),r.omitCommas&&(e=e.replace($e,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(Ke,"").trim():"narrow"===r.meridiem?e=e.replace(Ke,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(Ke,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(Ke,(function(e){return e.toLocaleLowerCase()}))),e=e.replace(et," "),e=e.trim(),e}function lt(e,t){var n=!1;return e=e.replace(nt,(function(){return n=!0,t})),n||(e+=" "+t),e}function ct(e,t,n,r){var o=[];return"narrow"===r?o.push(t):"short"===r&&o.push(t," "),o.push(n.simpleNumberFormat.format(e)),"rtl"===n.options.direction&&o.reverse(),o.join("")}function ut(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:fe(e)!==fe(t)?1:0}function dt(e,t){var n={};for(var r in e)(!(r in Je)||Je[r]<=t)&&(n[r]=e[r]);return n}function ft(e,t,n,r){var o=0;while(o<e.length){var i=e.indexOf(t,o);if(-1===i)break;var a=e.substr(0,i);o=i+t.length;var s=e.substr(o),l=0;while(l<n.length){var c=n.indexOf(r,l);if(-1===c)break;var u=n.substr(0,c);l=c+r.length;var d=n.substr(l);if(a===u&&s===d)return{before:a,after:s}}}return null}function pt(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function ht(e,t,n,r){var o=pt(e,n.calendarSystem),i=t?pt(t,n.calendarSystem):null;return{date:o,start:o,end:i,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var vt=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,ht(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,ht(e,t,n,r))},e}(),gt=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(ht(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(ht(e,t,n,r))},e}();function mt(e){return"object"===typeof e&&e?new rt(e):"string"===typeof e?new vt(e):"function"===typeof e?new gt(e):null}var bt={navLinkDayClick:Tt,navLinkWeekClick:Tt,duration:Me,bootstrapFontAwesome:Tt,buttonIcons:Tt,customButtons:Tt,defaultAllDayEventDuration:Me,defaultTimedEventDuration:Me,nextDayThreshold:Me,scrollTime:Me,slotMinTime:Me,slotMaxTime:Me,dayPopoverFormat:mt,slotDuration:Me,snapDuration:Me,headerToolbar:Tt,footerToolbar:Tt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:mt,dayHeaderClassNames:Tt,dayHeaderContent:Tt,dayHeaderDidMount:Tt,dayHeaderWillUnmount:Tt,dayCellClassNames:Tt,dayCellContent:Tt,dayCellDidMount:Tt,dayCellWillUnmount:Tt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Tt,weekNumbers:Boolean,weekNumberClassNames:Tt,weekNumberContent:Tt,weekNumberDidMount:Tt,weekNumberWillUnmount:Tt,editable:Boolean,viewClassNames:Tt,viewDidMount:Tt,viewWillUnmount:Tt,nowIndicator:Boolean,nowIndicatorClassNames:Tt,nowIndicatorContent:Tt,nowIndicatorDidMount:Tt,nowIndicatorWillUnmount:Tt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Tt,locale:Tt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Tt,eventOrder:P,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Tt,contentHeight:Tt,direction:String,weekNumberFormat:mt,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:Tt,initialDate:Tt,now:Tt,eventDataTransform:Tt,stickyHeaderDates:Tt,stickyFooterScrollbar:Tt,viewHeight:Tt,defaultAllDay:Boolean,eventSourceFailure:Tt,eventSourceSuccess:Tt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Tt,eventConstraint:Tt,eventAllow:Tt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Tt,eventContent:Tt,eventDidMount:Tt,eventWillUnmount:Tt,selectConstraint:Tt,selectOverlap:Tt,selectAllow:Tt,droppable:Boolean,unselectCancel:String,slotLabelFormat:Tt,slotLaneClassNames:Tt,slotLaneContent:Tt,slotLaneDidMount:Tt,slotLaneWillUnmount:Tt,slotLabelClassNames:Tt,slotLabelContent:Tt,slotLabelDidMount:Tt,slotLabelWillUnmount:Tt,dayMaxEvents:Tt,dayMaxEventRows:Tt,dayMinWidth:Number,slotLabelInterval:Me,allDayText:String,allDayClassNames:Tt,allDayContent:Tt,allDayDidMount:Tt,allDayWillUnmount:Tt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:mt,rerenderDelay:Number,moreLinkText:Tt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMinHeight:Number,slotEventOverlap:Boolean,plugins:Tt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Me,hiddenDays:Tt,monthMode:Boolean,fixedWeekCount:Boolean,validRange:Tt,visibleRange:Tt,titleFormat:Tt,noEventsText:String},yt={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1},Et={datesSet:Tt,eventsSet:Tt,eventAdd:Tt,eventChange:Tt,eventRemove:Tt,windowResize:Tt,eventClick:Tt,eventMouseEnter:Tt,eventMouseLeave:Tt,select:Tt,unselect:Tt,loading:Tt,_unmount:Tt,_beforeprint:Tt,_afterprint:Tt,_noEventDrop:Tt,_noEventResize:Tt,_resize:Tt,_scrollRequest:Tt},St={buttonText:Tt,views:Tt,plugins:Tt,initialEvents:Tt,events:Tt,eventSources:Tt},Dt={headerToolbar:Ot,footerToolbar:Ot,buttonText:Ot,buttonIcons:Ot};function Ot(e,t){return"object"===typeof e&&"object"===typeof t&&e&&t?Ee(e,t):e===t}var Ct={type:String,component:Tt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Tt,usesMinMaxTime:Boolean,classNames:Tt,content:Tt,didMount:Tt,willUnmount:Tt};function wt(e){return ve(e,Dt)}function Rt(e,t){var n={},r={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function Tt(e){return e}function jt(e,t,n,r){for(var o=xt(),i=Zt(n),a=0,s=e;a<s.length;a++){var l=s[a],c=qt(l,t,n,r,i);c&&kt(c,o)}return o}function kt(e,t){return void 0===t&&(t=xt()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Mt(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=Pt(e,(function(e){return _t(r,e)}));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return xt()}function _t(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function xt(){return{defs:{},instances:{}}}function It(e,t){return{defs:Object(r["a"])(Object(r["a"])({},e.defs),t.defs),instances:Object(r["a"])(Object(r["a"])({},e.instances),t.instances)}}function Pt(e,t){var n=ge(e.defs,t),r=ge(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function Nt(e,t){var n=e.defs,r=e.instances,o={},i={};for(var a in n)t.defs[a]||(o[a]=n[a]);for(var s in r)!t.instances[s]&&o[r[s].defId]&&(i[s]=r[s]);return{defs:o,instances:i}}function Ht(e,t){return Array.isArray(e)?jt(e,null,t,!0):"object"===typeof e&&e?jt([e],null,t,!0):null!=e?String(e):null}function At(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}var Ut={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Tt,overlap:Tt,allow:Tt,className:At,classNames:At,color:String,backgroundColor:String,borderColor:String,textColor:String},Lt={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Wt(e,t){var n=Ht(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Vt(e){return e.reduce(zt,Lt)}function zt(e,t){return{display:null!=t.display?t.display:e.display,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},Ft={start:Tt,end:Tt,date:Tt,allDay:Boolean},Gt=Object(r["a"])(Object(r["a"])(Object(r["a"])({},Bt),Ft),{extendedProps:Tt});function qt(e,t,n,r,o){void 0===o&&(o=Zt(n));var i=Yt(e,n,o),a=i.refined,s=i.extra,l=Jt(t,n),c=we(a,l,n.dateEnv,n.pluginHooks.recurringTypes);if(c){var u=Xt(a,s,t?t.sourceId:"",c.allDay,Boolean(c.duration),n);return u.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:u,instance:null}}var d=Qt(a,l,n,r);if(d){u=Xt(a,s,t?t.sourceId:"",d.allDay,d.hasEnd,n);var f=pe(u.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return{def:u,instance:f}}return null}function Yt(e,t,n){return void 0===n&&(n=Zt(t)),Rt(e,n)}function Zt(e){return Object(r["a"])(Object(r["a"])(Object(r["a"])({},Ut),Gt),e.pluginHooks.eventRefiners)}function Xt(e,t,n,o,i,a){for(var s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:T(),sourceId:n,allDay:o,hasEnd:i,ui:Wt(e,a),extendedProps:Object(r["a"])(Object(r["a"])({},e.extendedProps||{}),t)},l=0,c=a.pluginHooks.eventDefMemberAdders;l<c.length;l++){var u=c[l];Object(r["a"])(s,u(e))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Qt(e,t,n,r){var o,i,a=e.allDay,s=null,l=!1,c=null,u=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(u),o)s=o.marker;else if(!r)return null;return null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end)),null==a&&(a=null!=t?t:(!o||o.isTimeUnspecified)&&(!i||i.isTimeUnspecified)),a&&s&&(s=ee(s)),i&&(c=i.marker,a&&(c=ee(c)),s&&c<=s&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:a,hasEnd:l,range:{start:s,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}function Jt(e,t){var n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function Kt(e){var t=Math.floor(Y(e.start,e.end))||1,n=ee(e.start),r=F(n,t);return{start:n,end:r}}function $t(e,t){void 0===t&&(t=Me(0));var n=null,r=null;if(e.end){r=ee(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=We(t)&&(r=F(r,1))}return e.start&&(n=ee(e.start),r&&r<=n&&(r=F(n,1))),{start:n,end:r}}function en(e,t,n,r){return"year"===r?Me(n.diffWholeYears(e,t),"year"):"month"===r?Me(n.diffWholeMonths(e,t),"month"):J(e,t)}function tn(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function nn(e,t){var n,r,o=[],i=t.start;for(e.sort(rn),n=0;n<e.length;n+=1)r=e[n],r.start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function rn(e,t){return e.start.valueOf()-t.start.valueOf()}function on(e,t){var n=e.start,r=e.end,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function an(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function sn(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function ln(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function cn(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function un(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function dn(e,t,n,r){var o={},i={},a={},s=[],l=[],c=vn(e.defs,t);for(var u in e.defs){var d=e.defs[u],f=c[d.defId];"inverse-background"===f.display&&(d.groupId?(o[d.groupId]=[],a[d.groupId]||(a[d.groupId]=d)):i[u]=[])}for(var p in e.instances){var h=e.instances[p],v=(d=e.defs[h.defId],f=c[d.defId],h.range),g=!d.allDay&&r?$t(v,r):v,m=on(g,n);m&&("inverse-background"===f.display?d.groupId?o[d.groupId].push(m):i[h.defId].push(m):"none"!==f.display&&("background"===f.display?s:l).push({def:d,ui:f,instance:h,range:m,isStart:g.start&&g.start.valueOf()===m.start.valueOf(),isEnd:g.end&&g.end.valueOf()===m.end.valueOf()}))}for(var b in o)for(var y=o[b],E=nn(y,n),S=0,D=E;S<D.length;S++){var O=D[S];d=a[b],f=c[d.defId];s.push({def:d,ui:f,instance:null,range:O,isStart:!1,isEnd:!1})}for(var u in i){y=i[u],E=nn(y,n);for(var C=0,w=E;C<w.length;C++){O=w[C];s.push({def:e.defs[u],ui:c[u],instance:null,range:O,isStart:!1,isEnd:!1})}}return{bg:s,fg:l}}function fn(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function pn(e,t){e.fcSeg=t}function hn(e){return e.fcSeg||e.parentNode.fcSeg||null}function vn(e,t){return me(e,(function(e){return gn(e,t)}))}function gn(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Vt(n)}function mn(e,t){var n=e.map(bn);return n.sort((function(e,n){return N(e,n,t)})),n.map((function(e){return e._seg}))}function bn(e){var t=e.eventRange,n=t.def,o=t.instance?t.instance.range:t.range,i=o.start?o.start.valueOf():0,a=o.end?o.end.valueOf():0;return Object(r["a"])(Object(r["a"])(Object(r["a"])({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function yn(e,t){for(var n=t.pluginHooks,r=n.isDraggableTransformers,o=e.eventRange,i=o.def,a=o.ui,s=a.startEditable,l=0,c=r;l<c.length;l++){var u=c[l];s=u(s,i,a,t)}return s}function En(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Sn(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Dn(e,t,n,r,o,i,a){var s=n.dateEnv,l=n.options,c=l.displayEventTime,u=l.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;if(null==c&&(c=!1!==r),null==u&&(u=!1!==o),c&&!d.allDay&&(e.isStart||e.isEnd)){var p=i||(e.isStart?f.range.start:e.start||e.eventRange.range.start),h=a||(e.isEnd?f.range.end:e.end||e.eventRange.range.end);return u&&d.hasEnd?s.formatRange(p,h,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:a?null:f.forcedEndTzo}):s.format(p,t,{forcedTzo:i?null:f.forcedStartTzo})}return""}function On(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&cn(t,r.start)}}function Cn(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 wn(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}var Rn={start:Tt,end:Tt,allDay:Boolean};function Tn(e,t,n){var r=jn(e,t),o=r.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}function jn(e,t){var n=Rt(e,Rn),o=n.refined,i=n.extra,a=o.start?t.createMarkerMeta(o.start):null,s=o.end?t.createMarkerMeta(o.end):null,l=o.allDay;return null==l&&(l=a&&a.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object(r["a"])({range:{start:a?a.marker:null,end:s?s.marker:null},allDay:l},i)}function kn(e,t){return an(e.range,t.range)&&e.allDay===t.allDay&&Mn(e,t)}function Mn(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function _n(e,t){return Object(r["a"])(Object(r["a"])({},In(e.range,t,e.allDay)),{allDay:e.allDay})}function xn(e,t,n){return Object(r["a"])(Object(r["a"])({},In(e,t,n)),{timeZone:t.timeZone})}function In(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 Pn(e,t,n){var r=Yt({editable:!1},n),o=Xt(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:gn(o,t),instance:pe(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Nn(e,t,n){n.emitter.trigger("select",Object(r["a"])(Object(r["a"])({},An(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Hn(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function An(e,t){for(var n={},o=0,i=t.pluginHooks.dateSpanTransforms;o<i.length;o++){var a=i[o];Object(r["a"])(n,a(e,t))}return Object(r["a"])(n,_n(e,t.dateEnv)),n}function Un(e,t,n){var r=n.dateEnv,o=n.options,i=t;return e?(i=ee(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function Ln(e,t,n,r){var o=vn(e.defs,t),i=xt();for(var a in e.defs){var s=e.defs[a];i.defs[a]=Wn(s,o[a],n,r)}for(var l in e.instances){var c=e.instances[l];s=i.defs[c.defId];i.instances[l]=Vn(c,s,o[c.defId],n,r)}return i}function Wn(e,t,n,o){var i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);var a=Object(r["a"])(Object(r["a"])(Object(r["a"])({},e),i),{ui:Object(r["a"])(Object(r["a"])({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=Object(r["a"])(Object(r["a"])({},a.extendedProps),n.extendedProps));for(var s=0,l=o.pluginHooks.eventDefMutationAppliers;s<l.length;s++){var c=l[s];c(a,n,o)}return!a.hasEnd&&o.options.forceEventDuration&&(a.hasEnd=!0),a}function Vn(e,t,n,o,i){var a=i.dateEnv,s=o.standardProps&&!0===o.standardProps.allDay,l=o.standardProps&&!1===o.standardProps.hasEnd,c=Object(r["a"])({},e);return s&&(c.range=Kt(c.range)),o.datesDelta&&n.startEditable&&(c.range={start:a.add(c.range.start,o.datesDelta),end:a.add(c.range.end,o.datesDelta)}),o.startDelta&&n.durationEditable&&(c.range={start:a.add(c.range.start,o.startDelta),end:c.range.end}),o.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:a.add(c.range.end,o.endDelta)}),l&&(c.range={start:c.range.start,end:Un(t.allDay,c.range.start,i)}),t.allDay&&(c.range={start:ee(c.range.start),end:ee(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Un(t.allDay,c.range.start,i)),c}var zn=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),Bn={id:String,defaultAllDay:Boolean,url:String,format:String,events:Tt,eventDataTransform:Tt,success:Tt,failure:Tt};function Fn(e,t,n){var r;if(void 0===n&&(n=Gn(t)),"string"===typeof e?r={url:e}:"function"===typeof e||Array.isArray(e)?r={events:e}:"object"===typeof e&&e&&(r=e),r){var o=Rt(r,n),i=o.refined,a=o.extra,s=qn(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:T(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Wt(i,t),extendedProps:a}}return null}function Gn(e){return Object(r["a"])(Object(r["a"])(Object(r["a"])({},Ut),Bn),e.pluginHooks.eventSourceRefiners)}function qn(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var o=n[r],i=o.parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}function Yn(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function Zn(e,t){var n=e.initialDate;return null!=n?t.createMarker(n):Xn(e.now,t)}function Xn(e,t){return"function"===typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var Qn=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=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];(t=this.currentDataManager.emitter).trigger.apply(t,Object(r["c"])([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n,r=this.getCurrentData();t=t||"day",n=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),o=r.viewSpecs,i=r.toolbarConfig,a=[].concat(i.viewsWithButtons);for(var s in o)a.push(s);for(t=0;t<a.length;t+=1)if(n=o[a[t]],n&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Xn(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=Me(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),mt(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),mt(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),o=Tn(n,r.dateEnv,Me({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),Nn(o,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Hn(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof Jn){var n=e._def,r=e._instance,o=this.getCurrentData();return o.eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:kt({def:n,instance:r})}),this.triggerEventAdd(e)),e}var i,a=this.getCurrentData();if(t instanceof f)i=t.internalEventSource;else if("boolean"===typeof t)t&&(i=ye(a.eventSources)[0]);else if(null!=t){var s=this.getEventSourceById(t);if(!s)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=s.internalEventSource}var l=qt(e,i,a,!1);if(l){var c=new Jn(a,l.def,l.def.recurringDef?null:l.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:kt(l)}),this.triggerEventAdd(c),c}return null},e.prototype.triggerEventAdd=function(e){var t=this,n=this.getCurrentData().emitter;n.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:Kn(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,o=n.instances;for(var i in e=String(e),r){var a=r[i];if(a.publicId===e){if(a.recurringDef)return new Jn(t,a,null);for(var s in o){var l=o[s];if(l.defId===a.defId)return new Jn(t,a,l)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return $n(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new f(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new f(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof f)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=Fn(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new f(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},e.prototype.scrollToTime=function(e){var t=Me(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),Jn=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in Ft)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e in Bt)t=Bt[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in Ut){var o=Ut[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:(r={},r[e]=t,o=r),this.mutate({standardProps:{ui:o}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var o=this._instance.range,i=en(o.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){var o=en(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o=this._context.dateEnv,i={allDay:n.allDay},a=o.createMarker(e);if(a&&(null==t||(r=o.createMarker(t),r))&&this._instance){var s=this._instance.range;!0===n.allDay&&(s=Kt(s));var l=en(s.start,a,o,n.granularity);if(r){var c=en(s.end,r,o,n.granularity);Ie(l,c)?this.mutate({datesDelta:l,standardProps:i}):this.mutate({startDelta:l,endDelta:c,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:l,standardProps:i})}},e.prototype.moveStart=function(e){var t=Me(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Me(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Me(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=mt(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,o=this._context,i=o.getCurrentData().eventStore,a=Mt(i,n.instanceId),s={"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}};a=Ln(a,s,t,o);var l=new e(o,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:a}),o.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:$n(a,o,n),revert:function(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}},e.prototype.remove=function(){var e=this._context,t=Kn(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new f(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,o=this,i=o.startStr,a=o.endStr,s={};return t.title&&(s.title=t.title),i&&(s.start=i),a&&(s.end=a),t.publicId&&(s.id=t.publicId),t.groupId&&(s.groupId=t.groupId),t.url&&(s.url=t.url),n.display&&"auto"!==n.display&&(s.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?s.color=n.backgroundColor:(n.backgroundColor&&(s.backgroundColor=n.backgroundColor),n.borderColor&&(s.borderColor=n.borderColor)),n.textColor&&(s.textColor=n.textColor),n.classNames.length&&(s.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object(r["a"])(s,t.extendedProps):s.extendedProps=t.extendedProps),s},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function Kn(e){var t,n,r=e._def,o=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function $n(e,t,n){var r=e.defs,o=e.instances,i=[],a=n?n.instanceId:"";for(var s in o){var l=o[s],c=r[l.defId];l.instanceId!==a&&i.push(new Jn(t,c,l))}return i}var er={};function tr(e,t){er[e]=t}function nr(e){return new er[e]}var rr=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return ue(e)},e.prototype.markerToArray=function(e){return ce(e)},e}();tr("gregory",rr);var or=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function ir(e){var t=or.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(de(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var ar=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=nr(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"===typeof e.firstDay&&(this.weekDow=e.firstDay),"function"===typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):ue(se(new Date))},e.prototype.createMarkerMeta=function(e){if("string"===typeof e)return this.parse(e);var t=null;return"number"===typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=ue(e)),null!==t&&de(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=ir(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return fe(e)===fe(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return fe(e)===fe(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=K(e,t),null!==n?{unit:"week",value:n}:(n=$(e,t),null!==n?{unit:"day",value:n}:(n=Z(e,t),W(n)?{unit:"hour",value:n}:(n=X(e,t),W(n)?{unit:"minute",value:n}:(n=Q(e,t),W(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/Ae(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/Ue(n):n.days&&(r=$(e,t),null!==r)?r/Le(n):(t.valueOf()-e.valueOf())/We(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?ee(e):"hour"===t?te(e):"minute"===t?ne(e):"second"===t?re(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):oe(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=G(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)),Be(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ue(se(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ue(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-le(ce(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ce(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?le(ce(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ce(e))*60):new Date(e.valueOf()-(t||0))},e}(),sr=[],lr={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",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"};function cr(e){for(var t=e.length>0?e[0].code:"en",n=sr.concat(e),r={en:lr},o=0,i=n;o<i.length;o++){var a=i[o];r[a.code]=a}return{map:r,defaultCode:t}}function ur(e,t){return"object"!==typeof e||Array.isArray(e)?dr(e,t):pr(e.code,[e.code],e)}function dr(e,t){var n=[].concat(e||[]),r=fr(n,t)||lr;return pr(e,n,r)}function fr(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),o=r.length;o>0;o-=1){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}function pr(e,t,n){var r=ve([lr,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}}var hr,vr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function gr(e,t){return jt(mr(e),null,t)}function mr(e){var t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"===typeof e&&e?[e]:[],t=t.map((function(e){return Object(r["a"])(Object(r["a"])({},vr),e)})),t}function br(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function yr(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function Er(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Sr(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Dr(e,t){return{left:e.left-t.left,top:e.top-t.top}}function Or(){return null==hr&&(hr=Cr()),hr}function Cr(){if("undefined"===typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div"),n=t.offsetHeight>0;return document.body.removeChild(e),n}var wr=xt(),Rr=function(){function e(){this.getKeysForEventDefs=Ze(this._getKeysForEventDefs),this.splitDateSelection=Ze(this._splitDateSpan),this.splitEventStore=Ze(this._splitEventStore),this.splitIndividualUi=Ze(this._splitIndividualUi),this.splitEventDrag=Ze(this._splitInteraction),this.splitEventResize=Ze(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),c={};for(var u in this.eventUiBuilders=me(n,(function(e,n){return t.eventUiBuilders[n]||Ze(Tr)})),n){var d=n[u],f=a[u]||wr,p=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||e.businessHours,dateSelection:o[u]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,i[u]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[u]||null,eventResize:l[u]||null}}return c},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=this.getKeysForDateSpan(e),r=0,o=n;r<o.length;r++){var i=o[r];t[i]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return me(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,o={};for(var i in n)for(var a=0,s=t[i];a<s.length;a++){var l=s[a];o[l]||(o[l]=xt()),o[l].defs[i]=n[i]}for(var c in r)for(var u=r[c],d=0,f=t[u.defId];d<f.length;d++){l=f[d];o[l]&&(o[l].instances[c]=u)}return o},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var o=0,i=t[r];o<i.length;o++){var a=i[o];n[a]||(n[a]={}),n[a][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=function(r){t[r]||(t[r]={affectedEvents:n[r]||wr,mutatedEvents:o[r]||wr,isEvent:e.isEvent})};for(var a in n)i(a);for(var a in o)i(a)}return t},e}();function Tr(e,t,n){var o=[];e&&o.push(e),t&&o.push(t);var i={"":Vt(o)};return n&&Object(r["a"])(i,n),i}function jr(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!cn(r.activeRange,e)),isOther:Boolean(r&&!cn(r.currentRange,e)),isToday:Boolean(t&&cn(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function kr(e,t){var n=["fc-day","fc-day-"+z[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}function Mr(e,t){return void 0===t&&(t="day"),JSON.stringify({date:Fe(e),type:t})}var _r,xr=null;function Ir(){return null===xr&&(xr=Pr()),xr}function Pr(){var e=document.createElement("div");b(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild,n=t.getBoundingClientRect().left>e.getBoundingClientRect().left;return p(e),n}function Nr(){return _r||(_r=Hr()),_r}function Hr(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=Ar(e);return document.body.removeChild(e),t}function Ar(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Ur(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=Ar(e),l=s.y-r-o,c=s.x-i-a,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return Ir()&&"rtl"===n.direction?u.scrollbarLeft=l:u.scrollbarRight=l,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function Lr(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():Wr(e),o=Ur(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 Wr(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 Vr(e){var t=[];while(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 zr(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 Br=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){Fr(this.handlers,e,t)},e.prototype.off=function(e,t){Gr(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],o=this.options&&this.options[e],i=[].concat(o||[],r),a=0,s=i;a<s.length;a++){var l=s[a];l.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e]},e}();function Fr(e,t,n){(e[t]||(e[t]=[])).push(n)}function Gr(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}var qr=function(){function e(e,t,n,r){this.els=t;var o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r],a=i.getBoundingClientRect();t.push(a.left-e),n.push(a.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r],a=i.getBoundingClientRect();t.push(a.top-e),n.push(a.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this,r=n.lefts,o=n.rights,i=r.length;for(t=0;t<i;t+=1)if(e>=r[t]&&e<o[t])return t},e.prototype.topToIndex=function(e){var t,n=this,r=n.tops,o=n.bottoms,i=r.length;for(t=0;t<i;t+=1)if(e>=r[t]&&e<o[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),Yr=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),Zr=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return Object(r["b"])(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(Yr),Xr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(Yr),Qr=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"===typeof e&&e){for(n in t=Object(r["a"])({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();Qr.prototype.classes={},Qr.prototype.iconClasses={},Qr.prototype.baseIconClass="",Qr.prototype.iconOverridePrefix="";var Jr=function(){function e(e,t,n){var o=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.handleScrollRequest=function(e){o.queuedRequest=Object(r["a"])({},o.queuedRequest||{},e),o.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),Kr=c({});function $r(e,t,n,r,o,i,a,s,l,c,u,d,f){return{dateEnv:o,options:n,pluginHooks:a,emitter:c,dispatch:s,getCurrentData:l,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler:function(e){c.on("_resize",e)},removeResizeHandler:function(e){c.off("_resize",e)},createScrollResponder:function(e){return new Jr(e,c,Me(n.scrollTime))},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Se(e,this.props),Se(t,this.state)),!De(this.props,e,this.propEquality)||!De(this.state,t,this.stateEquality)},t.addPropsEquality=no,t.addStateEquality=ro,t.contextType=Kr,t}(o);eo.prototype.propEquality={},eo.prototype.stateEquality={};var to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.contextType=Kr,t}(eo);function no(e){var t=Object.create(this.prototype.propEquality);Object(r["a"])(t,e),this.prototype.propEquality=t}function ro(e){var t=Object.create(this.prototype.stateEquality);Object(r["a"])(t,e),this.prototype.stateEquality=t}function oo(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function io(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return ao(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return co(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return It(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Re(e,r.activeRange,o):e;case"REMOVE_EVENTS":return Nt(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return fo(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Pt(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return xt();default:return e}}function ao(e,t,n,r,o,i){if(t&&n===t.latestFetchId){var a=jt(so(o,t,i),t,i);return r&&(a=Re(a,r,i)),It(fo(e,t.sourceId),a)}return e}function so(e,t,n){var r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=lo(e,o)),r&&(e=lo(e,r)),e}function lo(e,t){var n;if(t){n=[];for(var r=0,o=e;r<o.length;r++){var i=o[r],a=t(i);a?n.push(a):null==a&&n.push(i)}}else n=e;return n}function co(e,t,n,r){return n&&(t=Re(t,n,r)),It(e,t)}function uo(e,t,n){var o=e.defs,i=me(e.instances,(function(e){var i=o[e.defId];return i.allDay||i.recurringDef?e:Object(r["a"])(Object(r["a"])({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:o,instances:i}}function fo(e,t){return Pt(e,(function(e){return e.sourceId!==t}))}function po(e,t){return{defs:e.defs,instances:ge(e.instances,(function(e){return!t[e.instanceId]}))}}function ho(e,t){return go({eventDrag:e},t)}function vo(e,t){return go({dateSelection:e},t)}function go(e,t){var n=t.getCurrentData(),o=Object(r["a"])({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||mo)(o,t)}function mo(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!bo(e,t,n,r))&&!(e.dateSelection&&!yo(e,t,n,r))}function bo(e,t,n,o){var i=t.getCurrentData(),a=e.eventDrag,s=a.mutatedEvents,l=s.defs,c=s.instances,u=vn(l,a.isEvent?e.eventUiBases:{"":i.selectionConfig});o&&(u=me(u,o));var d=po(e.eventStore,a.affectedEvents.instances),f=d.defs,p=d.instances,h=vn(f,e.eventUiBases);for(var v in c){var g=c[v],m=g.range,b=u[g.defId],y=l[g.defId];if(!Eo(b.constraints,m,d,e.businessHours,t))return!1;var E=t.options.eventOverlap,S="function"===typeof E?E:null;for(var D in p){var O=p[D];if(sn(m,O.range)){var C=h[O.defId].overlap;if(!1===C&&a.isEvent)return!1;if(!1===b.overlap)return!1;if(S&&!S(new Jn(t,f[O.defId],O),new Jn(t,y,g)))return!1}}for(var w=i.eventStore,R=0,T=b.allows;R<T.length;R++){var j=T[R],k=Object(r["a"])(Object(r["a"])({},n),{range:g.range,allDay:y.allDay}),M=w.defs[y.defId],_=w.instances[v],x=void 0;if(x=M?new Jn(t,M,_):new Jn(t,y),!j(An(k,t),x))return!1}}return!0}function yo(e,t,n,o){var i=e.eventStore,a=i.defs,s=i.instances,l=e.dateSelection,c=l.range,u=t.getCurrentData().selectionConfig;if(o&&(u=o(u)),!Eo(u.constraints,c,i,e.businessHours,t))return!1;var d=t.options.selectOverlap,f="function"===typeof d?d:null;for(var p in s){var h=s[p];if(sn(c,h.range)){if(!1===u.overlap)return!1;if(f&&!f(new Jn(t,a[h.defId],h),null))return!1}}for(var v=0,g=u.allows;v<g.length;v++){var m=g[v],b=Object(r["a"])(Object(r["a"])({},n),l);if(!m(An(b,t),null))return!1}return!0}function Eo(e,t,n,r,o){for(var i=0,a=e;i<a.length;i++){var s=a[i];if(!Oo(So(s,t,n,r,o),t))return!1}return!0}function So(e,t,n,r,o){return"businessHours"===e?Do(Re(r,t,o)):"string"===typeof e?Do(Pt(n,(function(t){return t.groupId===e}))):"object"===typeof e&&e?Do(Re(e,t,o)):[]}function Do(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Oo(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(ln(o,t))return!0}return!1}var Co=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=T(),t}return Object(r["b"])(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isInteractionValid=function(e){var t=this.props.dateProfile,n=e.mutatedEvents.instances;if(t)for(var r in n)if(!ln(t.validRange,n[r].range))return!1;return ho(e,this.context)},t.prototype.isDateSelectionValid=function(e){var t=this.props.dateProfile;return!(t&&!ln(t.validRange,e.range))&&vo(e,this.context)},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!h(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!h(e,".fc-event:not(.fc-bg-event)")&&!h(e,".fc-daygrid-more-link")&&!h(e,"a[data-navlink]")&&!h(e,".fc-popover")},t}(to);function wo(e){return{id:T(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},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||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Ro(e,t){var n={},r={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(var t=0,i=e;t<i.length;t++){var a=i[t];n[a.id]||(n[a.id]=!0,o(a.deps),r=jo(r,a))}}return e&&o(e),o(t),r}function To(){var e,t=[],n=[];return function(r,o){return e&&Ye(r,t)&&Ye(o,n)||(e=Ro(r,o)),t=r,n=o,e}}function jo(e,t){return{reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object(r["a"])(Object(r["a"])({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object(r["a"])(Object(r["a"])({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object(r["a"])(Object(r["a"])({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),eventResizeJoinTransforms:e.eventResizeJoinTransforms.concat(t.eventResizeJoinTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object(r["a"])(Object(r["a"])({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object(r["a"])(Object(r["a"])({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,contentTypeHandlers:Object(r["a"])(Object(r["a"])({},e.contentTypeHandlers),t.contentTypeHandlers),listenerRefiners:Object(r["a"])(Object(r["a"])({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object(r["a"])(Object(r["a"])({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object(r["a"])(Object(r["a"])({},e.propSetHandlers),t.propSetHandlers)}}var ko=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t}(Qr);function Mo(e,t){var n,r={};for(n in e)_o(n,r,e,t);for(n in t)_o(n,r,e,t);return r}function _o(e,t,n,r){if(t[e])return t[e];var o=xo(e,t,n,r);return o&&(t[e]=o),o}function xo(e,t,n,o){var i=n[e],a=o[e],s=function(e){return i&&null!==i[e]?i[e]:a&&null!==a[e]?a[e]:null},l=s("component"),c=s("superType"),u=null;if(c){if(c===e)throw new Error("Can't have a custom view type that references itself");u=_o(c,t,n,o)}return!l&&u&&(l=u.component),l?{type:e,component:l,defaults:Object(r["a"])(Object(r["a"])({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object(r["a"])(Object(r["a"])({},u?u.overrides:{}),a?a.rawOptions:{})}:null}ko.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},ko.prototype.baseIconClass="fc-icon",ko.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},ko.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},ko.prototype.iconOverrideOption="buttonIcons",ko.prototype.iconOverrideCustomButtonOption="icon",ko.prototype.iconOverridePrefix="fc-icon-";var Io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=s(),t.handleRootEl=function(e){oo(t.rootElRef,e),t.props.elRef&&oo(t.props.elRef,e)},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return i(Ao,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return i(No,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,o){return t.children(r,Lo(t.classNames,n),e,o)}))}))},t}(to),Po=c(0);function No(e){return i(Po.Consumer,null,(function(t){return i(Ho,Object(r["a"])({renderId:t},e))}))}var Ho=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=s(),t}return Object(r["b"])(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.context.pluginHooks.contentTypeHandlers,t=this,n=t.props,o=t.customContentInfo,i=n.content,a=Wo(i,n.hookProps),s=null;if(void 0===a&&(a=Wo(n.defaultContent,n.hookProps)),void 0!==a){if(o)o.contentVal=a[o.contentKey];else if("object"===typeof a)for(var l in e)if(void 0!==a[l]){var c=e[l]();o=this.customContentInfo=Object(r["a"])({contentKey:l,contentVal:a[l]},c);break}s=o?[]:a}return s},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(to),Ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&oo(t.props.elRef,e)},t}return Object(r["b"])(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(Object(r["a"])(Object(r["a"])({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(Object(r["a"])(Object(r["a"])({},this.props.hookProps),{el:this.rootEl}))},t}(to);function Uo(){var e,t,n=[];return function(r,o){return t&&Ee(t,o)&&r===e||(e=r,t=o,n=Lo(r,o)),n}}function Lo(e,t){return"function"===typeof e&&(e=e(t)),At(e)}function Wo(e,t){return"function"===typeof e?e(t,i):e}var Vo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=Uo(),t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,o={view:n.viewApi},a=this.normalizeClassNames(r.viewClassNames,o);return i(Ao,{hookProps:o,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount,elRef:t.elRef},(function(e){return t.children(e,["fc-"+t.viewSpec.type+"-view","fc-view"].concat(a))}))},t}(to);function zo(e){return me(e,Bo)}function Bo(e){var t="function"===typeof e?{component:e}:e,n=t.component;return t.content&&(n=Fo(t)),{superType:t.type,component:n,rawOptions:t}}function Fo(e){return function(t){return i(Kr.Consumer,null,(function(n){return i(Vo,{viewSpec:n.viewSpec},(function(o,a){var s=Object(r["a"])(Object(r["a"])({},t),{nextDayThreshold:n.options.nextDayThreshold});return i(Io,{hookProps:s,classNames:e.classNames,content:e.content,didMount:e.didMount,willUnmount:e.willUnmount,elRef:o},(function(e,t,n,r){return i("div",{className:a.concat(t).join(" "),ref:e},r)}))}))}))}}function Go(e,t,n,r){var o=zo(e),i=zo(t.views),a=Mo(o,i);return me(a,(function(e){return qo(e,i,t,n,r)}))}function qo(e,t,n,o,i){var a=e.overrides.duration||e.defaults.duration||o.duration||n.duration,s=null,l="",c="",u={};if(a&&(s=Zo(a),s)){var d=ze(s);l=d.unit,1===d.value&&(c=l,u=t[l]?t[l].rawOptions:{})}var f=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null};return{type:e.type,component:e.component,duration:s,durationUnit:l,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object(r["a"])(Object(r["a"])({},u),e.overrides),buttonTextOverride:f(o)||f(n)||e.overrides.buttonText,buttonTextDefault:f(i)||e.defaults.buttonText||f(yt)||e.type}}var Yo={};function Zo(e){var t=JSON.stringify(e),n=Yo[t];return void 0===n&&(n=Me(e),Yo[t]=n),n}var Xo=function(){function e(e){this.props=e,this.nowDate=Xn(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,o,i,a,s,l,c=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=un(e,r)),o=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(o.unit),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),a=this.trimHiddenDays(a),s=a,c.showNonCurrentDates||(s=on(s,o.range)),s=this.adjustActiveRange(s),s=on(s,r),l=sn(o.range,r),{validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:s,renderRange:a,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.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:(o=this.getFallbackDuration(),i=ze(o).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},e.prototype.getFallbackDuration=function(){return Me({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&&(Le(o)<0&&(a=ee(a),a=n.add(a,o)),Le(i)>1&&(s=ee(s),s=F(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,c=s.dateAlignment;if(!c){var u=this.props.dateIncrement;c=u&&We(u)<We(n)?ze(u).unit:r}function d(){o=l.startOf(e,c),i=l.add(o,n),a={start:o,end:i}}return Le(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=ee(o)),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=ee(l),l=this.skipHiddenDays(l,t),r=l;do{r=F(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:l,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"===typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?Me(1,t):e||Me({days:1}))},e.prototype.refineRange=function(e){if(e){var t=tn(e,this.props.dateEnv);return t&&(t=$t(t)),t}return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);while(this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7])e=F(e,t);return e},e}();function Qo(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function Jo(e,t){var n;switch(t.type){case"SET_OPTION":return Object(r["a"])(Object(r["a"])({},e),(n={},n[t.optionName]=t.rawOptionValue,n));default:return e}}function Ko(e,t,n,r){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":if(!e.activeRange||!cn(e.currentRange,t.dateMarker))return r.build(t.dateMarker);break;case"PREV":if(o=r.buildPrev(e,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o;break}return e}function $o(e,t,n){var r=t?t.activeRange:null;return ri({},di(e,n),r,n)}function ei(e,t,n,r){var o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return ri(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return oi(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?ii(e,o,r):e;case"FETCH_EVENT_SOURCES":return si(e,t.sourceIds?be(t.sourceIds):ui(e,r),o,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return ci(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function ti(e,t,n){var r=t?t.activeRange:null;return si(e,ui(e,n),r,n)}function ni(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function ri(e,t,n,o){for(var i={},a=0,s=t;a<s.length;a++){var l=s[a];i[l.sourceId]=l}return n&&(i=ii(i,n,o)),Object(r["a"])(Object(r["a"])({},e),i)}function oi(e,t){return ge(e,(function(e){return e.sourceId!==t}))}function ii(e,t,n){return si(e,ge(e,(function(e){return ai(e,t,n)})),t,n)}function ai(e,t,n){return fi(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function si(e,t,n,r){var o={};for(var i in e){var a=e[i];t[i]?o[i]=li(a,n,r):o[i]=a}return o}function li(e,t,n){var o=n.options,i=n.calendarApi,a=n.pluginHooks.eventSourceDefs[e.sourceDefId],s=T();return a.fetch({eventSource:e,range:t,context:n},(function(r){var a=r.rawEvents;o.eventSourceSuccess&&(a=o.eventSourceSuccess.call(i,a,r.xhr)||a),e.success&&(a=e.success.call(i,a,r.xhr)||a),n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:a})}),(function(r){console.warn(r.message,r),o.eventSourceFailure&&o.eventSourceFailure.call(i,r),e.failure&&e.failure(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:r})})),Object(r["a"])(Object(r["a"])({},e),{isFetching:!0,latestFetchId:s})}function ci(e,t,n,o){var i,a=e[t];return a&&n===a.latestFetchId?Object(r["a"])(Object(r["a"])({},e),(i={},i[t]=Object(r["a"])(Object(r["a"])({},a),{isFetching:!1,fetchRange:o}),i)):e}function ui(e,t){return ge(e,(function(e){return fi(e,t)}))}function di(e,t){var n=Gn(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(var i=0,a=r;i<a.length;i++){var s=a[i],l=Fn(s,t,n);l&&o.push(l)}return o}function fi(e,t){var n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function pi(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function hi(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function vi(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function gi(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function mi(e,t,n,r,o){var i=[],a=e.headerToolbar?bi(e.headerToolbar,e,t,n,r,o,i):null,s=e.footerToolbar?bi(e.footerToolbar,e,t,n,r,o,i):null;return{headerToolbar:a,footerToolbar:s,viewsWithButtons:i}}function bi(e,t,n,r,o,i,a){return me(e,(function(e){return yi(e,t,n,r,o,i,a)}))}function yi(e,t,n,r,o,i,a){var s="rtl"===t.direction,l=t.customButtons||{},c=n.buttonText||{},u=t.buttonText||{},d=e?e.split(" "):[];return d.map((function(e){return e.split(",").map((function(e){return"title"===e?{buttonName:e}:((t=l[e])?(d=function(e){t.click&&t.click.call(e.target,e,e.target)},(f=r.getCustomButtonIconClass(t))||(f=r.getIconClass(e,s))||(p=t.text)):(n=o[e])?(a.push(e),d=function(){i.changeView(e)},(p=n.buttonTextOverride)||(f=r.getIconClass(e,s))||(p=n.buttonTextDefault)):i[e]&&(d=function(){i[e]()},(p=c[e])||(f=r.getIconClass(e,s))||(p=u[e])),{buttonName:e,buttonClick:d,buttonIcon:f,buttonText:p});var t,n,d,f,p}))}))}var Ei={ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}},Si=wo({eventSourceDefs:[Ei]}),Di={parseMeta:function(e){return"function"===typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv,o=e.eventSource.meta;zr(o.bind(null,xn(e.range,r)),(function(e){t({rawEvents:e})}),n)}},Oi=wo({eventSourceDefs:[Di]});function Ci(e,t,n,r,o){e=e.toUpperCase();var i=null;"GET"===e?t=wi(t,n):i=Ri(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var e=!1,t=void 0;try{t=JSON.parse(a.responseText),e=!0}catch(n){}e?r(t,a):o("Failure parsing JSON",a)}else o("Request failed",a)},a.onerror=function(){o("Request failed",a)},a.send(i)}function wi(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Ri(t)}function Ri(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var Ti={method:String,extraParams:Tt,startParam:String,endParam:String,timeZoneParam:String},ji={parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,o=Mi(r,e.range,e.context);Ci(r.method,r.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}},ki=wo({eventSourceRefiners:Ti,eventSourceDefs:[ji]});function Mi(e,t,n){var o,i,a,s,l=n.dateEnv,c=n.options,u={};return o=e.startParam,null==o&&(o=c.startParam),i=e.endParam,null==i&&(i=c.endParam),a=e.timeZoneParam,null==a&&(a=c.timeZoneParam),s="function"===typeof e.extraParams?e.extraParams():e.extraParams||{},Object(r["a"])(u,s),u[o]=l.formatIso(t.start),u[i]=l.formatIso(t.end),"local"!==l.timeZone&&(u[a]=l.timeZone),u}var _i={daysOfWeek:Tt,startTime:Me,endTime:Me,duration:Me,startRecur:Tt,endRecur:Tt},xi={parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={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},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=Ne(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}return null},expand:function(e,t,n){var r=on(t,{start:e.startRecur,end:e.endRecur});return r?Pi(e.daysOfWeek,e.startTime,r,n):[]}},Ii=wo({recurringTypes:[xi],eventRefiners:_i});function Pi(e,t,n,r){var o=e?be(e):null,i=ee(n.start),a=n.end,s=[];while(i<a){var l=void 0;o&&!o[i.getUTCDay()]||(l=t?r.add(i,t):i,s.push(l)),i=F(i,1)}return s}var Ni=wo({optionChangeHandlers:{events:function(e,t){Hi([e],t)},eventSources:Hi}});function Hi(e,t){for(var n=ye(t.getCurrentData().eventSources),r=[],o=0,i=e;o<i.length;o++){for(var a=i[o],s=!1,l=0;l<n.length;l+=1)if(n[l]._raw===a){n.splice(l,1),s=!0;break}s||r.push(a)}for(var c=0,u=n;c<u.length;c++){var d=u[c];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.calendarApi.addEventSource(h)}}function Ai(e,t){t.emitter.trigger("datesSet",Object(r["a"])(Object(r["a"])({},xn(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function Ui(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",$n(e,t))}var Li=[Si,Oi,ki,Ii,Ni,wo({isLoadingFuncs:[function(e){return ni(e.eventSources)}],contentTypeHandlers:{html:function(){return{render:Wi}},domNodes:function(){return{render:Vi}}},propSetHandlers:{dateProfile:Ai,eventStore:Ui}})];function Wi(e,t){e.innerHTML=t}function Vi(e,t){var n=Array.prototype.slice.call(e.childNodes),r=Array.prototype.slice.call(t);if(!Ye(n,r)){for(var o=0,i=r;o<i.length;o++){var a=i[o];e.appendChild(a)}n.forEach(p)}}var zi=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else{n[e]-=1;var r=n[e];r<=0&&delete n[e]}this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){this.isRunning=!0;while(this.isDirty)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),Bi=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new zi(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){var e=this.queue;while(e.length){var t=[],n=void 0;while(n=e.shift())this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function Fi(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,mt(t.titleFormat||Gi(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function Gi(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=$(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}var qi=function(){function e(e){var t=this;this.computeOptionsData=Ze(this._computeOptionsData),this.computeCurrentViewData=Ze(this._computeCurrentViewData),this.organizeRawLocales=Ze(cr),this.buildLocale=Ze(ur),this.buildPluginHooks=To(),this.buildDateEnv=Ze(Yi),this.buildTheme=Ze(Zi),this.parseToolbars=Ze(mi),this.buildViewSpecs=Ze(Go),this.buildDateProfileGenerator=Xe(Xi),this.buildViewApi=Ze(Qi),this.buildViewUiProps=Xe($i),this.buildEventUiBySource=Ze(Ji,Ee),this.buildEventUiBases=Ze(Ki),this.parseContextBusinessHours=Xe(ta),this.buildTitle=Ze(Fi),this.emitter=new Br,this.actionRunner=new Bi(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},o=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=o.calendarOptions.initialView||o.pluginHooks.initialView,a=this.computeCurrentViewData(i,o,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);var s=Zn(o.calendarOptions,o.dateEnv),l=a.dateProfileGenerator.build(s);cn(l.activeRange,s)||(s=l.currentRange.start);for(var c={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},u=0,d=o.pluginHooks.contextInit;u<d.length;u++){var f=d[u];f(c)}for(var p=$o(o.calendarOptions,l,c),h={dynamicOptionOverrides:n,currentViewType:i,currentDate:s,dateProfile:l,businessHours:this.parseContextBusinessHours(c),eventSources:p,eventUiBases:{},eventStore:xt(),renderableEventStore:xt(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},v=Object(r["a"])(Object(r["a"])({},c),h),g=0,m=o.pluginHooks.reducers;g<m.length;g++){var b=m[g];Object(r["a"])(h,b(null,null,v))}ea(h,c)&&this.emitter.trigger("loading",!0),this.state=h,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?Object(r["a"])(Object(r["a"])({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,o=t.state,i=t.emitter,a=Jo(o.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),l=Qo(o.currentViewType,e),c=this.computeCurrentViewData(l,s,n.optionOverrides,a);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(c.options);var u={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},d=o.currentDate,f=o.dateProfile;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(f=c.dateProfileGenerator.build(d)),d=Yn(d,e),f=Ko(f,e,d,c.dateProfileGenerator),cn(f.currentRange,d)||(d=f.currentRange.start);for(var p=ei(o.eventSources,e,f,u),h=io(o.eventStore,e,p,f,u),v=ni(p),g=v&&!c.options.progressiveEventRendering&&o.renderableEventStore||h,m=this.buildViewUiProps(u),b=m.eventUiSingleBase,y=m.selectionConfig,E=this.buildEventUiBySource(p),S=this.buildEventUiBases(g.defs,b,E),D={dynamicOptionOverrides:a,currentViewType:l,currentDate:d,dateProfile:f,eventSources:p,eventStore:h,renderableEventStore:g,selectionConfig:y,eventUiBases:S,businessHours:this.parseContextBusinessHours(u),dateSelection:pi(o.dateSelection,e),eventSelection:hi(o.eventSelection,e),eventDrag:vi(o.eventDrag,e),eventResize:gi(o.eventResize,e)},O=Object(r["a"])(Object(r["a"])({},u),D),C=0,w=s.pluginHooks.reducers;C<w.length;C++){var R=w[C];Object(r["a"])(D,R(o,e,O))}var T=ea(o,u),j=ea(D,u);!T&&j?i.trigger("loading",!0):T&&!j&&i.trigger("loading",!1),this.state=D,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e=this,t=e.props,n=e.state,o=this.data,i=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),a=this.computeCurrentViewData(n.currentViewType,i,t.optionOverrides,n.dynamicOptionOverrides),s=this.data=Object(r["a"])(Object(r["a"])(Object(r["a"])({viewTitle:this.buildTitle(n.dateProfile,a.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),a),n),l=i.pluginHooks.optionChangeHandlers,c=o&&o.calendarOptions,u=i.calendarOptions;if(c&&c!==u)for(var d in c.timeZone!==u.timeZone&&(n.eventSources=s.eventSources=ti(s.eventSources,n.dateProfile,s),n.eventStore=s.eventStore=uo(s.eventStore,o.dateEnv,s.dateEnv)),l)c[d]!==u[d]&&l[d](u[d],s);t.onData&&t.onData(s)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),o=r.refinedOptions,i=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData,l=r.extra;na(l);var c=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,s,o.defaultRangeSeparator),u=this.buildViewSpecs(i.views,e,t,a),d=this.buildTheme(o,i),f=this.parseToolbars(o,e,d,u,n);return{calendarOptions:o,pluginHooks:i,dateEnv:c,viewSpecs:u,theme:d,toolbarConfig:f,localeDefaults:a,availableRawLocales:s.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=wt([yt,e,t]),o=n.locales,i=n.locale,a=this.organizeRawLocales(o),s=a.map,l=this.buildLocale(i||a.defaultCode,s).options,c=this.buildPluginHooks(e.plugins||[],Li),u=this.currentCalendarOptionsRefiners=Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({},bt),Et),St),c.listenerRefiners),c.optionRefiners),d={},f=wt([yt,l,e,t]),p={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,g=!1;for(var m in f)"plugins"!==m&&(f[m]===h[m]||Dt[m]&&m in h&&Dt[m](h[m],f[m])?p[m]=v[m]:u[m]?(p[m]=u[m](f[m]),g=!0):d[m]=h[m]);return g&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=p),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:a,localeDefaults:l,extra:d}},e.prototype._computeCurrentViewData=function(e,t,n,r){var o=t.viewSpecs[e];if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var i=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r),a=i.refinedOptions,s=i.extra;na(s);var l=this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,monthMode:a.monthMode,fixedWeekCount:a.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:o,options:a,dateProfileGenerator:l,viewApi:c}},e.prototype.processRawViewOptions=function(e,t,n,o,i){var a=wt([yt,e.optionDefaults,n,o,e.optionOverrides,i]),s=Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({},bt),Et),St),Ct),t.listenerRefiners),t.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,f={};for(var p in a)a[p]===c[p]?l[p]=u[p]:(a[p]===this.currentCalendarOptionsInput[p]?p in this.currentCalendarOptionsRefined&&(l[p]=this.currentCalendarOptionsRefined[p]):s[p]?l[p]=s[p](a[p]):f[p]=a[p],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:f}},e}();function Yi(e,t,n,r,o,i,a,s){var l=ur(t||a.defaultCode,a.map);return new ar({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function Zi(e,t){var n=t.themeClasses[e.themeSystem]||ko;return new n(e)}function Xi(e){var t=e.dateProfileGeneratorClass||Xo;return new t(e)}function Qi(e,t,n){return new zn(e,t,n)}function Ji(e){return me(e,(function(e){return e.ui}))}function Ki(e,t,n){var r={"":t};for(var o in e){var i=e[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function $i(e){var t=e.options;return{eventUiSingleBase:Wt({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"===typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Wt({constraint:t.selectConstraint,overlap:"boolean"===typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function ea(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){var o=r[n];if(o(e))return!0}return!1}function ta(e){return gr(e.options.businessHours,e)}function na(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}(function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new qi({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}Object(r["b"])(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)}})(o);(function(){function e(e){this.timeZoneName=e}})();var ra=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}();function oa(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}function ia(e){var t;return t={},t[e.component.uid]=e,t}var aa={},sa=function(){function e(e,t){this.emitter=new Br}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),la={},ca={startTime:Me,duration:Me,create:Boolean,sourceId:String};function ua(e){var t=Rt(e,ca),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 da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return i.apply(void 0,Object(r["c"])(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,o=[],a=!0,s=0,l=e;s<l.length;s++){var c=l[s],u=c.buttonName,d=c.buttonClick,f=c.buttonText,p=c.buttonIcon;if("title"===u)a=!1,o.push(i("h2",{className:"fc-toolbar-title"},t.title));else{var h=p?{"aria-label":u}:{},v=["fc-"+u+"-button",n.getClass("button")];u===t.activeButton&&v.push(n.getClass("buttonActive"));var g=!t.isTodayEnabled&&"today"===u||!t.isPrevEnabled&&"prev"===u||!t.isNextEnabled&&"next"===u;o.push(i("button",Object(r["a"])({disabled:g,className:v.join(" "),onClick:d,type:"button"},h),f||(p?i("span",{className:p}):"")))}}if(o.length>1){var m=a&&n.getClass("buttonGroup")||"";return i.apply(void 0,Object(r["c"])(["div",{className:m}],o))}return o[0]},t}(to),fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,a=!1,s=r.center;r.left?(a=!0,e=r.left):e=r.start,r.right?(a=!0,t=r.right):t=r.end;var l=[o||"","fc-toolbar",a?"fc-toolbar-ltr":""];return i("div",{className:l.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return i(da,{key:e,widgetGroups:t,title:n.title,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})},t}(to),pa=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,oo(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=t.aspectRatio,o=["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],a="",s="";return r?null!==n.availableWidth?a=n.availableWidth/r:s=1/r*100+"%":a=t.height||"",i("div",{ref:this.handleEl,onClick:t.onClick,className:o.join(" "),style:{height:a,paddingBottom:s}},t.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}(to),ha=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=hn(t);if(i&&r.isValidSegDownEl(e.target)){var a=h(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new Jn(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=D(t.el,"click",".fc-event",n.handleSegClick),n}return Object(r["b"])(t,e),t}(ra),va=function(e){function t(t){var n=e.call(this,t)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){hn(t)&&(n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))},n.removeHoverListeners=O(t.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return Object(r["b"])(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=hn(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new Jn(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(ra),ga=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=Ze($r),t.buildViewPropTransformers=Ze(ba),t.buildToolbarProps=Ze(ma),t.handleNavLinkClick=S("a[data-navlink]",t._handleNavLinkClick.bind(t)),t.headerRef=s(),t.footerRef=s(),t.interactionsStore={},t.registerInteractiveComponent=function(e,n){var r=oa(e,n),o=[ha,va],i=o.concat(t.props.pluginHooks.componentInteractions),a=i.map((function(e){return new e(r)}));t.interactionsStore[e.uid]=a,aa[e.uid]=r},t.unregisterInteractiveComponent=function(e){for(var n=0,r=t.interactionsStore[e.uid];n<r.length;n++){var o=r[n];o.destroy()}delete t.interactionsStore[e.uid],delete aa[e.uid]},t.resizeRunner=new zi((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,o=t.options,a=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Xn(t.options.now,t.dateEnv),t.viewTitle),s=!1,l="";t.isHeightAuto||t.forPrint?l="":null!=o.height?s=!0:null!=o.contentHeight?l=o.contentHeight:e=Math.max(o.aspectRatio,.5);var c=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent);return i(Kr.Provider,{value:c},n.headerToolbar&&i(fa,Object(r["a"])({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.headerToolbar},a)),i(pa,{liquid:s,height:l,aspectRatio:e,onClick:this.handleNavLinkClick},this.renderView(t),this.buildAppendContent()),n.footerToolbar&&i(fa,Object(r["a"])({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footerToolbar},a)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){var n=t[e];n.destroy()}this.props.emitter.trigger("_unmount")},t.prototype._handleNavLinkClick=function(e,t){var n=this.props,r=n.dateEnv,o=n.options,i=n.calendarApi,a=t.getAttribute("data-navlink");a=a?JSON.parse(a):{};var s=r.createMarker(a.date),l=a.type,c="day"===l?o.navLinkDayClick:"week"===l?o.navLinkWeekClick:null;"function"===typeof c?c.call(i,r.toDate(s),e):("string"===typeof c&&(l=c),i.zoomTo(s,l))},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return i.apply(void 0,Object(r["c"])([l,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,o={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},a=this.buildViewPropTransformers(t.viewPropsTransformers),s=0,l=a;s<l.length;s++){var c=l[s];Object(r["a"])(o,c.transform(o,e))}var u=n.component;return i(u,Object(r["a"])({},o))},t}(eo);function ma(e,t,n,r,o,i){var a=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,isTodayEnabled:a.isValid&&!cn(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function ba(e){return e.map((function(e){return new e}))}var ya=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Or()||i.push("fc-liquid-hack"),e.children(i,o,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(to);function Ea(e,t){return mt(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var Sa="fc-col-header-cell";function Da(e){return e.text}var Oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,o=e.theme,a=e.viewApi,s=this.props,l=s.date,c=s.dateProfile,u=jr(l,s.todayRange,null,c),d=[Sa].concat(kr(u,o)),f=t.format(l,s.dayHeaderFormat),p=n.navLinks&&!u.isDisabled&&s.colCnt>1?{"data-navlink":Mr(l),tabIndex:0}:{},h=Object(r["a"])(Object(r["a"])(Object(r["a"])({date:t.toDate(l),view:a},s.extraHookProps),{text:f}),u);return i(Io,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Da,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,o){return i("th",Object(r["a"])({ref:e,className:d.concat(t).join(" "),"data-date":u.isDisabled?void 0:Fe(l),colSpan:s.colSpan},s.extraDataAttrs),i("div",{className:"fc-scrollgrid-sync-inner"},!u.isDisabled&&i("a",Object(r["a"])({ref:n,className:["fc-col-header-cell-cushion",s.isSticky?"fc-sticky":""].join(" ")},p),o)))}))},t}(to),Ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,o=t.theme,a=t.viewApi,s=t.options,l=F(new Date(2592e5),e.dow),c={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},u=[Sa].concat(kr(c,o),e.extraClassNames||[]),d=n.format(l,e.dayHeaderFormat),f=Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({date:l},c),{view:a}),e.extraHookProps),{text:d});return i(Io,{hookProps:f,classNames:s.dayHeaderClassNames,content:s.dayHeaderContent,defaultContent:Da,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},(function(t,n,o,a){return i("th",Object(r["a"])({ref:t,className:u.concat(n).join(" "),colSpan:e.colSpan},e.extraDataAttrs),i("div",{className:"fc-scrollgrid-sync-inner"},i("a",{className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},a)))}))},t}(to),wa=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=Xn(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state;return t.children(n.nowDate,n.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,t=e.props,n=e.context,r=G(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),o=n.dateEnv.startOf(r,t.unit),i=n.dateEnv.add(o,Me(1,t.unit)),a=i.valueOf()-r.valueOf();return a=Math.min(864e5,a),{currentState:{nowDate:o,todayRange:Ra(o)},nextState:{nowDate:i,todayRange:Ra(i)},waitMs:a}},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=Kr,t}(o);function Ra(e){var t=ee(e),n=F(t,1);return{start:t,end:n}}var Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=Ze(ja),t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,a=t.renderIntro,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return i(wa,{unit:"day"},(function(e,t){return i("tr",null,a&&a("day"),n.map((function(e){return o?i(Oa,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:s}):i(Ca,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s})})))}))},t}(to);function ja(e,t,n){return e||Ea(t,n)}var ka=function(){function e(e,t){var n=e.start,r=e.end,o=[],i=[],a=-1;while(n<r)t.isHiddenDay(n)?o.push(a+.5):(a+=1,o.push(a),i.push(n)),n=F(n,1);this.dates=i,this.indices=o,this.cnt=i.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(F(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return r=Math.ceil(r),o=Math.floor(o),r<=o?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(Y(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Ma=function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length;n+=1)if(i[n].getUTCDay()===r)break;o=Math.ceil(i.length/n)}else o=1,n=i.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n){var o=n.firstIndex,i=n.lastIndex,a=o;while(a<=i){var s=Math.floor(a/t),l=Math.min((s+1)*t,i+1);r.push({row:s,firstCol:a%t,lastCol:(l-1)%t,isStart:n.isStart&&a===o,isEnd:n.isEnd&&l-1===i}),a=l}}return r},e}(),_a=function(){function e(){this.sliceBusinessHours=Ze(this._sliceBusinessHours),this.sliceDateSelection=Ze(this._sliceDateSpan),this.sliceEventStore=Ze(this._sliceEventStore),this.sliceEventDrag=Ze(this._sliceInteraction),this.sliceEventResize=Ze(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,o){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=e.eventUiBases,l=this.sliceEventStore.apply(this,Object(r["c"])([e.eventStore,s,t,n],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,Object(r["c"])([e.dateSelection,s,o],i)),businessHourSegs:this.sliceBusinessHours.apply(this,Object(r["c"])([e.businessHours,t,n,o],i)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,Object(r["c"])([e.eventDrag,s,t,n],i)),eventResize:this.sliceEventResize.apply(this,Object(r["c"])([e.eventResize,s,t,n],i)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return this._sliceDateSpan.apply(this,Object(r["c"])([{range:{start:e,end:G(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,o){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];return e?this._sliceEventStore.apply(this,Object(r["c"])([Re(e,xa(t,Boolean(n)),o),{},t,n],i)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(e){var a=dn(e,t,xa(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(!e)return null;var a=dn(e.mutatedEvents,t,xa(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(!e)return[];for(var a=Pn(e,t,n),s=this.sliceRange.apply(this,Object(r["c"])([e.range],o)),l=0,c=s;l<c.length;l++){var u=c[l];u.eventRange=a}return s},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.sliceEventRange(i,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:F(n.start,1)});for(var o=this.sliceRange.apply(this,Object(r["c"])([n],t)),i=0,a=o;i<a.length;i++){var s=a[i];s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return o},e}();function xa(e,t){var n=e.activeRange;return t?n:{start:G(n.start,e.slotMinTime.milliseconds),end:G(n.end,e.slotMaxTime.milliseconds-864e5)}}var Ia=/^(visible|hidden)$/,Pa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,oo(t.props.elRef,e)},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),i("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(Ia.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){var o=n[r];if(o.getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(Ia.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){var o=n[r];if(o.getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return Ia.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return Ia.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(to),Na=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 Ce(this.currentMap,e,t,n)},e.prototype.getAll=function(){return ye(this.currentMap)},e}();function Ha(e){for(var t=g(e,".fc-scrollgrid-shrink"),n=0,r=0,o=t;r<o.length;r++){var i=o[r];n=Math.max(n,V(i))}return Math.ceil(n)}function Aa(e,t){return e.liquid&&t.liquid}function Ua(e,t){return null!=t.maxHeight||Aa(e,t)}function La(e,t,n){var r=n.expandRows,o="function"===typeof t.content?t.content(n):i("table",{className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,i("tbody",{},"function"===typeof t.rowContent?t.rowContent(n):t.rowContent));return o}function Wa(e,t){return Ye(e,t,Ee)}function Va(e,t){for(var n=[],o=0,a=e;o<a.length;o++)for(var s=a[o],l=s.span||1,c=0;c<l;c+=1)n.push(i("col",{style:{width:"shrink"===s.width?za(t):s.width||"",minWidth:s.minWidth||""}}));return i.apply(void 0,Object(r["c"])(["colgroup",{}],n))}function za(e){return null==e?4:e}function Ba(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("shrink"===r.width)return!0}return!1}function Fa(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function Ga(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function qa(e){return i("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Ya(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function Za(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var Xa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=Ze((function(e){return e}),Wa),t.renderMicroColGroup=Ze(Va),t.scrollerRefs=new Na,t.scrollerElRefs=new Na(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState(Object(r["a"])({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e,t=this,n=t.props,o=t.state,a=t.context,s=n.sections||[],l=this.processCols(n.cols),c=this.renderMicroColGroup(l,o.shrinkWidth),u=Fa(n.liquid,a),d=s.length,f=0,p=[],h=[],v=[];while(f<d&&"header"===(e=s[f]).type)p.push(this.renderSection(e,c)),f+=1;while(f<d&&"body"===(e=s[f]).type)h.push(this.renderSection(e,c)),f+=1;while(f<d&&"footer"===(e=s[f]).type)v.push(this.renderSection(e,c)),f+=1;var g=!Or();return i("table",{className:u.join(" "),style:{height:n.height}},Boolean(!g&&p.length)&&i.apply(void 0,Object(r["c"])(["thead",{}],p)),Boolean(!g&&h.length)&&i.apply(void 0,Object(r["c"])(["tbody",{}],h)),Boolean(!g&&v.length)&&i.apply(void 0,Object(r["c"])(["tfoot",{}],v)),g&&i.apply(void 0,Object(r["c"])(["tbody",{}],p,h,v)))},t.prototype.renderSection=function(e,t){return"outerContent"in e?i(l,{key:e.key},e.outerContent):i("tr",{key:e.key,className:Ga(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk))},t.prototype.renderChunkTd=function(e,t,n){if("outerContent"in n)return n.outerContent;var r=this.props,o=this.state,a=o.forceYScrollbars,s=o.scrollerClientWidths,l=o.scrollerClientHeights,c=Ua(r,e),u=Aa(r,e),d=r.liquid?a?"scroll":c?"auto":"hidden":"visible",f=e.key,p=La(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:void 0!==s[f]?s[f]:null,clientHeight:void 0!==l[f]?l[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}});return i("td",{ref:n.elRef},i("div",{className:"fc-scroller-harness"+(u?" fc-scroller-harness-liquid":"")},i(Pa,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:r.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=Qa(this.props.sections,t);n&&oo(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return Ba(this.props.cols)?Ha(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=Nr(),t=this,n=t.scrollerRefs,r=t.scrollerElRefs,o=!1,i={},a={};for(var s in n.currentMap){var l=n.currentMap[s];if(l&&l.needsYScrolling()){o=!0;break}}for(var c=0,u=this.props.sections;c<u.length;c++){var d=u[c],f=(s=d.key,r.currentMap[s]);if(f){var p=f.parentNode;i[s]=Math.floor(p.getBoundingClientRect().width-(o?e.y:0)),a[s]=Math.floor(p.getBoundingClientRect().height)}}return{forceYScrollbars:o,scrollerClientWidths:i,scrollerClientHeights:a}},t}(to);function Qa(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.key===t)return o}return null}Xa.addStateEquality({scrollerClientWidths:Ee,scrollerClientHeights:Ee});var Ja=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=s(),t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,o=t.seg,a=o.eventRange,s=a.ui,l={event:new Jn(n,a.def,a.instance),view:n.viewApi,timeText:t.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!t.disableDragging&&yn(o,n),isStartResizable:!t.disableResizing&&En(o,n),isEndResizable:!t.disableResizing&&Sn(o),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(o.isStart),isEnd:Boolean(o.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)},c=Cn(l).concat(s.classNames);return i(Io,{hookProps:l,classNames:r.eventClassNames,content:r.eventContent,defaultContent:t.defaultContent,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount,elRef:this.elRef},(function(e,n,r,o){return t.children(e,c.concat(n),r,o,l)}))},t.prototype.componentDidMount=function(){pn(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&pn(this.elRef.current,t)},t}(to),Ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,o=t.seg,a=n.options.eventTimeFormat||t.defaultTimeFormat,s=Dn(o,a,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return i(Ja,{seg:o,timeText:s,disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||$a,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(e,n,a,s,l){return i("a",Object(r["a"])({className:t.extraClassNames.concat(n).join(" "),style:{borderColor:l.borderColor,backgroundColor:l.backgroundColor},ref:e},es(o)),i("div",{className:"fc-event-main",ref:a,style:{color:l.textColor}},s),l.isStartResizable&&i("div",{className:"fc-event-resizer fc-event-resizer-start"}),l.isEndResizable&&i("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(to);function $a(e){return i("div",{className:"fc-event-main-frame"},e.timeText&&i("div",{className:"fc-event-time"},e.timeText),i("div",{className:"fc-event-title-container"},i("div",{className:"fc-event-title fc-sticky"},e.event.title||i(l,null," "))))}function es(e){var t=e.eventRange.def.url;return t?{href:t}:{}}var ts=function(e){return i(Kr.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return i(Io,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},ns=mt({day:"numeric"}),rs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,o=os({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv});return i(No,{hookProps:o,content:r.dayCellContent,defaultContent:t.defaultContent},t.children)},t}(to);function os(e){var t=e.date,n=e.dateEnv,o=jr(t,e.todayRange,null,e.dateProfile);return Object(r["a"])(Object(r["a"])(Object(r["a"])({date:n.toDate(t),view:e.viewApi},o),{dayNumberText:e.showDayNumber?n.format(t,ns):""}),e.extraProps)}var is=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Xe(os),t.normalizeClassNames=Uo(),t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,o=this.refineHookProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv}),a=kr(o,n.theme).concat(o.isDisabled?[]:this.normalizeClassNames(r.dayCellClassNames,o)),s=o.isDisabled?{}:{"data-date":Fe(t.date)};return i(Ao,{hookProps:o,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount,elRef:t.elRef},(function(e){return t.children(e,a,s,o.isDisabled)}))},t}(to);function as(e){return i("div",{className:"fc-"+e})}var ss=function(e){return i(Ja,{defaultContent:ls,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,o){return i("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)}))};function ls(e){var t=e.event.title;return t&&i("div",{className:"fc-event-title"},e.event.title)}var cs=function(e){return i(Kr.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,o=e.date,a=r.weekNumberFormat||e.defaultFormat,s=n.computeWeekNumber(o),l=n.format(o,a),c={num:s,text:l,date:o};return i(Io,{hookProps:c,classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:us,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function us(e){return e.text}},b6f6:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("954c");function o(e){if(Array.isArray(e))return Object(r["a"])(e)}n("6b07"),n("cf2b"),n("08b3"),n("2cfd"),n("2a39"),n("f39f"),n("4021");function i(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var a=n("0f40");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return o(e)||i(e)||Object(a["a"])(e)||s()}},c30f:function(e,t,n){"use strict";var r=n("4292"),o=n("3079"),i=n("a308"),a=n("fb77"),s=n("2730"),l=n("b9dd"),c=n("5c14"),u=n("9345"),d=n("b9d5"),f=d("slice"),p=u("species"),h=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,u,d=l(this),f=s(d.length),g=a(e,f),m=a(void 0===t?f:t,f);if(i(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?o(n)&&(n=n[p],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return h.call(d,g,m);for(r=new(void 0===n?Array:n)(v(m-g,0)),u=0;g<m;g++,u++)g in d&&c(r,u,d[g]);return r.length=u,r}})},cdaa:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));n("45ec");var r=n("b5f8"),o=n("21c9"),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=Object(r["lb"])(),t}return Object(o["b"])(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this,o=n.props,i=n.context,a=[],s=Object(r["Eb"])(i.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),Object(r["gb"])(r["I"],{viewSpec:i.viewSpec},(function(e,t){return Object(r["gb"])("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},Object(r["gb"])(r["D"],{liquid:!o.isHeightAuto&&!o.forPrint,cols:[],sections:a}))}))},t.prototype.renderHScrollLayout=function(e,t,n,o){var i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");var a=this,s=a.props,l=a.context,c=!s.forPrint&&Object(r["Eb"])(l.options),u=!s.forPrint&&Object(r["Db"])(l.options),d=[];return e&&d.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),u&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:r["dc"]}]}),Object(r["gb"])(r["I"],{viewSpec:l.viewSpec},(function(e,t){return Object(r["gb"])("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},Object(r["gb"])(i,{liquid:!s.isHeightAuto&&!s.forPrint,colGroups:[{cols:[{span:n,minWidth:o}]}],sections:d}))}))},t}(r["i"]);function a(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var a=i[o];n[a.row].push(a)}return n}function s(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var a=i[o];n[a.firstCol].push(a)}return n}function l(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.row].segs.push(i)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this.props,t=this.context.options.navLinks?{"data-navlink":Object(r["W"])(e.date),tabIndex:0}:{};return Object(r["gb"])(r["k"],{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:u},(function(n,i){return(i||e.forceDayTop)&&Object(r["gb"])("div",{className:"fc-daygrid-day-top",ref:n},Object(r["gb"])("a",Object(o["a"])({className:"fc-daygrid-day-number"},t),i||Object(r["gb"])(r["v"],null," ")))}))},t}(r["b"]);function u(e){return e.dayNumberText}var d=Object(r["jb"])({week:"narrow"}),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,Object(r["ec"])(t.props.elRef,e)},t.handleMoreLinkClick=function(e){var n=t.props;if(n.onMoreClick){var r=n.segsByEachCol,o=r.filter((function(e){return n.segIsHidden[e.eventRange.instance.instanceId]}));n.onMoreClick({date:n.date,allSegs:r,hiddenSegs:o,moreCnt:n.moreCnt,dayEl:t.rootEl,ev:e})}},t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,i=t.viewApi,a=this.props,s=a.date,l=a.dateProfile,u={num:a.moreCnt,text:a.buildMoreLinkText(a.moreCnt),view:i},f=n.navLinks?{"data-navlink":Object(r["W"])(s,"week"),tabIndex:0}:{};return Object(r["gb"])(r["l"],{date:s,dateProfile:l,todayRange:a.todayRange,showDayNumber:a.showDayNumber,extraHookProps:a.extraHookProps,elRef:this.handleRootEl},(function(t,i,h,v){return Object(r["gb"])("td",Object(o["a"])({ref:t,className:["fc-daygrid-day"].concat(i,a.extraClassNames||[]).join(" ")},h,a.extraDataAttrs),Object(r["gb"])("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:a.innerElRef},a.showWeekNumber&&Object(r["gb"])(r["J"],{date:s,defaultFormat:d},(function(e,t,n,i){return Object(r["gb"])("a",Object(o["a"])({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},f),i)})),!v&&Object(r["gb"])(c,{date:s,dateProfile:l,showDayNumber:a.showDayNumber,forceDayTop:a.forceDayTop,todayRange:a.todayRange,extraHookProps:a.extraHookProps}),Object(r["gb"])("div",{className:"fc-daygrid-day-events",ref:a.fgContentElRef,style:{paddingBottom:a.fgPaddingBottom}},a.fgContent,Boolean(a.moreCnt)&&Object(r["gb"])("div",{className:"fc-daygrid-day-bottom",style:{marginTop:a.moreMarginTop}},Object(r["gb"])(r["B"],{hookProps:u,classNames:n.moreLinkClassNames,content:n.moreLinkContent,defaultContent:p,didMount:n.moreLinkDidMount,willUnmount:n.moreLinkWillUnmount},(function(t,n,o,i){return Object(r["gb"])("a",{ref:t,className:["fc-daygrid-more-link"].concat(n).join(" "),onClick:e.handleMoreLinkClick},i)})))),Object(r["gb"])("div",{className:"fc-daygrid-day-bg"},a.bgContent)))}))},t}(r["i"]);function p(e){return e.text}f.addPropsEquality({onMoreClick:!0});var h=Object(r["jb"])({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function v(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,i=n.options.eventTimeFormat||h,a=Object(r["Y"])(t.seg,i,n,!0,t.defaultDisplayEventEnd);return Object(r["gb"])(r["u"],{seg:t.seg,timeText:a,defaultContent:m,isDragging:t.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(e,n,i,a){return Object(r["gb"])("a",Object(o["a"])({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(n).join(" "),ref:e},b(t.seg)),a)}))},t}(r["b"]);function m(e){return Object(r["gb"])(r["v"],null,Object(r["gb"])("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&Object(r["gb"])("div",{className:"fc-event-time"},e.timeText),Object(r["gb"])("div",{className:"fc-event-title"},e.event.title||Object(r["gb"])(r["v"],null," ")))}function b(e){var t=e.eventRange.def.url;return t?{href:t}:{}}var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this.props;return Object(r["gb"])(r["G"],Object(o["a"])({},e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:h,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(r["b"]);function E(e,t,n,o,i,a,s,l){for(var c=[],u=[],d={},f={},p={},h={},v={},g=0;g<s;g+=1)c.push([]),u.push(0);t=Object(r["fc"])(t,l);for(var m=0,b=t;m<b.length;m++){var y=b[m],E=y.eventRange.instance.instanceId,R=i[E+":"+y.firstCol];N(y,R||0)}!0===n||!0===o?O(u,d,c,a):"number"===typeof n?C(u,d,c,n):"number"===typeof o&&w(u,d,c,o);for(var j=0;j<s;j+=1){for(var k=c[j],M=0,_=0,x=0,I=k;x<I.length;x++){var P=I[x];y=P.seg;d[y.eventRange.instance.instanceId]||(f[y.eventRange.instance.instanceId]=P.top,y.firstCol===y.lastCol&&y.isStart&&y.isEnd?(p[y.eventRange.instance.instanceId]=P.top-M,_=0,M=P.bottom):_=P.bottom-M)}_&&(u[j]?h[j]=_:v[j]=_)}function N(e,t){if(!H(e,t,0))for(var n=e.firstCol;n<=e.lastCol;n+=1)for(var r=0,o=c[n];r<o.length;r++){var i=o[r];if(H(e,t,i.bottom))return}}function H(e,t,n){if(A(e,t,n)){for(var r=e.firstCol;r<=e.lastCol;r+=1){var o=c[r],i=0;while(i<o.length&&n>=o[i].top)i+=1;o.splice(i,0,{seg:e,top:n,bottom:n+t})}return!0}return!1}function A(e,t,n){for(var r=e.firstCol;r<=e.lastCol;r+=1)for(var o=0,i=c[r];o<i.length;o++){var a=i[o];if(n<a.bottom&&n+t>a.top)return!1}return!0}for(var U in i)i[U]||(d[U.split(":")[0]]=!0);var L=c.map(S),W=c.map((function(t,n){var r=D(t);return r=T(r,e[n].date,n),r}));return{segsByFirstCol:L,segsByEachCol:W,segIsHidden:d,segTops:f,segMarginTops:p,moreCnts:u,moreTops:h,paddingBottoms:v}}function S(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];i.seg.firstCol===t&&n.push(i.seg)}return n}function D(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.seg)}return t}function O(e,t,n,r){R(e,t,n,!0,(function(e){return e.bottom<=r}))}function C(e,t,n,r){R(e,t,n,!1,(function(e,t){return t<r}))}function w(e,t,n,r){R(e,t,n,!0,(function(e,t){return t<r}))}function R(e,t,n,r,o){for(var i=e.length,a={},s=[],l=0;l<i;l+=1)s.push([]);for(l=0;l<i;l+=1)for(var c=n[l],u=0,d=0,f=c;d<f.length;d++){var p=f[d];o(p,u)?h(p):v(p,u,r),p.top!==p.bottom&&(u+=1)}function h(e){var t=e.seg,n=t.eventRange.instance.instanceId;if(!a[n]){a[n]=!0;for(var r=t.firstCol;r<=t.lastCol;r+=1){var o=s[r],i=0;while(i<o.length&&e.top>=o[i].top)i+=1;o.splice(i,0,e)}}}function v(n,r,o){var i=n.seg,a=i.eventRange.instance.instanceId;if(!t[a]){t[a]=!0;for(var l=i.firstCol;l<=i.lastCol;l+=1){e[l]+=1;var c=e[l];if(o&&1===c&&r>0){var u=r-1;while(s[l].length>u)v(s[l].pop(),s[l].length,!1)}}}}}function T(e,t,n){for(var i=t,a=Object(r["L"])(i,1),s={start:i,end:a},l=[],c=0,u=e;c<u.length;c++){var d=u[c],f=d.eventRange,p=f.range,h=Object(r["Jb"])(p,s);h&&l.push(Object(o["a"])(Object(o["a"])({},d),{firstCol:n,lastCol:n,eventRange:{def:f.def,ui:Object(o["a"])(Object(o["a"])({},f.ui),{durationEditable:!1}),instance:f.instance,range:h},isStart:d.isStart&&h.start.valueOf()===p.start.valueOf(),isEnd:d.isEnd&&h.end.valueOf()===p.end.valueOf()}))}return l}var j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new r["A"],t.frameElRefs=new r["A"],t.fgElRefs=new r["A"],t.segHarnessRefs=new r["A"],t.rootElRef=Object(r["lb"])(),t.state={framePositions:null,maxContentHeight:null,segHeights:{}},t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,i=t.state,a=t.context,l=n.cells.length,c=s(n.businessHourSegs,l),u=s(n.bgEventSegs,l),d=s(this.getHighlightSegs(),l),p=s(this.getMirrorSegs(),l),h=E(n.cells,n.fgEventSegs,n.dayMaxEvents,n.dayMaxEventRows,i.segHeights,i.maxContentHeight,l,a.options.eventOrder),v=h.paddingBottoms,g=h.segsByFirstCol,m=h.segsByEachCol,b=h.segIsHidden,y=h.segTops,S=h.segMarginTops,D=h.moreCnts,O=h.moreTops,C=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return Object(r["gb"])("tr",{ref:this.rootElRef},n.renderIntro&&n.renderIntro(),n.cells.map((function(t,i){var a=e.renderFgSegs(g[i],b,y,S,C,n.todayRange),s=e.renderFgSegs(p[i],{},y,{},{},n.todayRange,Boolean(n.eventDrag),Boolean(n.eventResize),!1);return Object(r["gb"])(f,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&0===i,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,moreCnt:D[i],buildMoreLinkText:n.buildMoreLinkText,onMoreClick:function(e){n.onMoreClick(Object(o["a"])(Object(o["a"])({},e),{fromCol:i}))},segIsHidden:b,moreMarginTop:O[i],segsByEachCol:m[i],fgPaddingBottom:v[i],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:Object(r["gb"])(r["v"],null,Object(r["gb"])(r["v"],null,a),Object(r["gb"])(r["v"],null,s)),bgContent:Object(r["gb"])(r["v"],null,e.renderFillSegs(d[i],"highlight"),e.renderFillSegs(c[i],"non-business"),e.renderFillSegs(u[i],"bg-event"))})})))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!Object(r["Ob"])(e,n))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,n,i,a,s,l,c,u){var d=this.context,f=this.props.eventSelection,p=this.state.framePositions,h=1===this.props.cells.length,m=[];if(p)for(var b=0,E=e;b<E.length;b++){var S=E[b],D=S.eventRange.instance.instanceId,O=l||c||u,C=a[D],w=t[D]||C,R=t[D]||O||S.firstCol!==S.lastCol||!S.isStart||!S.isEnd,T=void 0,j=void 0,k=void 0,M=void 0;R?(j=n[D],d.isRtl?(M=0,k=p.lefts[S.lastCol]-p.lefts[S.firstCol]):(k=0,M=p.rights[S.firstCol]-p.rights[S.lastCol])):T=i[D],m.push(Object(r["gb"])("div",{className:"fc-daygrid-event-harness"+(R?" fc-daygrid-event-harness-abs":""),key:D,ref:O?null:this.segHarnessRefs.createRef(D+":"+S.firstCol),style:{visibility:w?"hidden":"",marginTop:T||"",top:j||"",left:k||"",right:M||""}},v(S)?Object(r["gb"])(g,Object(o["a"])({seg:S,isDragging:l,isSelected:D===f,defaultDisplayEventEnd:h},Object(r["Cb"])(S,s))):Object(r["gb"])(y,Object(o["a"])({seg:S,isDragging:l,isResizing:c,isDateSelecting:u,isSelected:D===f,defaultDisplayEventEnd:h},Object(r["Cb"])(S,s)))))}return m},t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,i=this.props.todayRange,a=this.state.framePositions,s=[];if(a)for(var l=0,c=e;l<c.length;l++){var u=c[l],d=n?{right:0,left:a.lefts[u.lastCol]-a.lefts[u.firstCol]}:{left:0,right:a.rights[u.firstCol]-a.rights[u.lastCol]};s.push(Object(r["gb"])("div",{key:Object(r["V"])(u.eventRange),className:"fc-daygrid-bg-harness",style:d},"bg-event"===t?Object(r["gb"])(r["c"],Object(o["a"])({seg:u},Object(r["Cb"])(u,i))):Object(r["cc"])(t)))}return r["gb"].apply(void 0,Object(o["c"])([r["v"],{}],s))},t.prototype.updateSizing=function(e){var t=this,n=t.props,o=t.frameElRefs;if(null!==n.clientWidth){if(e){var i=n.cells.map((function(e){return o.currentMap[e.key]}));if(i.length){var a=this.rootElRef.current;this.setState({framePositions:new r["z"](a,i,!0,!1)})}}var s=!0===n.dayMaxEvents||!0===n.dayMaxEventRows;this.setState({segHeights:this.computeSegHeights(),maxContentHeight:s?this.computeMaxContentHeight():null})}},t.prototype.computeSegHeights=function(){return Object(r["Pb"])(this.segHarnessRefs.currentMap,(function(e){return e.getBoundingClientRect().height}))},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))},t}(r["i"]);j.addPropsEquality({onMoreClick:!0}),j.addStateEquality({segHeights:r["Ob"]});var k=10,M=10,_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.repositioner=new r["p"](t.updateSize.bind(t)),t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&Object(r["ec"])(t.props.elRef,e)},t.handleDocumentMousedown=function(e){var n=t.props.onClose;n&&!t.rootEl.contains(e.target)&&n()},t.handleDocumentScroll=function(){t.repositioner.request(M)},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this.context.theme,t=this.props,n=["fc-popover",e.getClass("popover")].concat(t.extraClassNames||[]);return Object(r["gb"])("div",Object(o["a"])({className:n.join(" ")},t.extraAttrs,{ref:this.handleRootEl}),Object(r["gb"])("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},Object(r["gb"])("span",{className:"fc-popover-title"},t.title),Object(r["gb"])("span",{className:"fc-popover-close "+e.getIconClass("close"),onClick:this.handleCloseClick})),Object(r["gb"])("div",{className:"fc-popover-body "+e.getClass("popoverContent")},t.children))},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMousedown),document.addEventListener("scroll",this.handleDocumentScroll),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMousedown),document.removeEventListener("scroll",this.handleDocumentScroll)},t.prototype.updateSize=function(){var e=this.props,t=e.alignmentEl,n=e.topAlignmentEl,o=this.rootEl;if(o){var i,a=o.getBoundingClientRect(),s=t.getBoundingClientRect(),l=n?n.getBoundingClientRect().top:s.top;l=Math.min(l,window.innerHeight-a.height-k),l=Math.max(l,k),i=this.context.isRtl?s.right-a.width:s.left,i=Math.min(i,window.innerWidth-a.width-k),i=Math.max(i,k),Object(r["R"])(o,{top:l,left:i})}},t}(r["b"]),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Object(r["lb"])(),t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,i=this.props,a=i.date,s=i.hiddenInstances,l=i.todayRange,c=i.dateProfile,u=i.selectedInstanceId,d=n.format(a,t.dayPopoverFormat);return Object(r["gb"])(r["l"],{date:a,dateProfile:c,todayRange:l,elRef:this.rootElRef},(function(e,t,n){return Object(r["gb"])(_,{elRef:e,title:d,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,onClose:i.onCloseClick,alignmentEl:i.alignmentEl,topAlignmentEl:i.topAlignmentEl},Object(r["gb"])(r["k"],{date:a,dateProfile:c,todayRange:l},(function(e,t){return t&&Object(r["gb"])("div",{className:"fc-more-popover-misc",ref:e},t)})),i.segs.map((function(e){var t=e.eventRange.instance.instanceId;return Object(r["gb"])("div",{className:"fc-daygrid-event-harness",key:t,style:{visibility:s[t]?"hidden":""}},v(e)?Object(r["gb"])(g,Object(o["a"])({seg:e,isDragging:!1,isSelected:t===u,defaultDisplayEventEnd:!1},Object(r["Cb"])(e,l))):Object(r["gb"])(y,Object(o["a"])({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===u,defaultDisplayEventEnd:!1},Object(r["Cb"])(e,l))))})))}))},t.prototype.positionToHit=function(e,t,n){var o=this.rootElRef.current;if(!n||!o)return null;var i=n.getBoundingClientRect(),a=o.getBoundingClientRect(),s=a.left-i.left,l=a.top-i.top,c=e-s,u=t-l,d=this.props.date;return c>=0&&c<a.width&&u>=0&&u<a.height?{dateSpan:{allDay:!0,range:{start:d,end:Object(r["L"])(d,1)}},dayEl:o,relativeRect:{left:s,top:l,right:a.width,bottom:a.height},layer:1}:null},t}(r["i"]),I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=Object(r["Qb"])(a),t.splitBgEventSegs=Object(r["Qb"])(a),t.splitFgEventSegs=Object(r["Qb"])(a),t.splitDateSelectionSegs=Object(r["Qb"])(a),t.splitEventDrag=Object(r["Qb"])(l),t.splitEventResize=Object(r["Qb"])(l),t.buildBuildMoreLinkText=Object(r["Qb"])(P),t.morePopoverRef=Object(r["lb"])(),t.rowRefs=new r["A"],t.state={morePopoverState:null},t.handleRootEl=function(e){t.rootEl=e,Object(r["ec"])(t.props.elRef,e)},t.handleMoreLinkClick=function(e){var n=t.context,i=n.dateEnv,a=n.options.moreLinkClick;function s(e){var t=e.eventRange,o=t.def,a=t.instance,s=t.range;return{event:new r["t"](n,o,a),start:i.toDate(s.start),end:i.toDate(s.end),isStart:e.isStart,isEnd:e.isEnd}}"function"===typeof a&&(a=a({date:i.toDate(e.date),allDay:!0,allSegs:e.allSegs.map(s),hiddenSegs:e.hiddenSegs.map(s),jsEvent:e.ev,view:n.viewApi})),a&&"popover"!==a?"string"===typeof a&&n.calendarApi.zoomTo(e.date,a):t.setState({morePopoverState:Object(o["a"])(Object(o["a"])({},e),{currentFgEventSegs:t.props.fgEventSegs,fromRow:e.fromRow,fromCol:e.fromCol})})},t.handleMorePopoverClose=function(){t.setState({morePopoverState:null})},t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,i=t.dayMaxEventRows,a=t.dayMaxEvents,s=t.expandRows,l=this.state.morePopoverState,c=t.cells.length,u=this.splitBusinessHourSegs(t.businessHourSegs,c),d=this.splitBgEventSegs(t.bgEventSegs,c),f=this.splitFgEventSegs(t.fgEventSegs,c),p=this.splitDateSelectionSegs(t.dateSelectionSegs,c),h=this.splitEventDrag(t.eventDrag,c),v=this.splitEventResize(t.eventResize,c),g=this.buildBuildMoreLinkText(this.context.options.moreLinkText),m=!0===a||!0===i;m&&!s&&(m=!1,i=null,a=null);var b=["fc-daygrid-body",m?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",s?"":"fc-daygrid-body-natural"];return Object(r["gb"])("div",{className:b.join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Object(r["gb"])(r["y"],{unit:"day"},(function(m,b){return Object(r["gb"])(r["v"],null,Object(r["gb"])("table",{className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:s?t.clientHeight:""}},t.colGroupNode,Object(r["gb"])("tbody",null,t.cells.map((function(s,l){return Object(r["gb"])(j,{ref:e.rowRefs.createRef(l),key:s.length?s[0].date.toISOString():l,showDayNumbers:c>1,showWeekNumbers:t.showWeekNumbers,todayRange:b,dateProfile:n,cells:s,renderIntro:t.renderRowIntro,businessHourSegs:u[l],eventSelection:t.eventSelection,bgEventSegs:d[l].filter(N),fgEventSegs:f[l],dateSelectionSegs:p[l],eventDrag:h[l],eventResize:v[l],dayMaxEvents:a,dayMaxEventRows:i,clientWidth:t.clientWidth,clientHeight:t.clientHeight,buildMoreLinkText:g,onMoreClick:function(t){e.handleMoreLinkClick(Object(o["a"])(Object(o["a"])({},t),{fromRow:l}))}})})))),!t.forPrint&&l&&l.currentFgEventSegs===t.fgEventSegs&&Object(r["gb"])(x,{ref:e.morePopoverRef,date:l.date,dateProfile:n,segs:l.allSegs,alignmentEl:l.dayEl,topAlignmentEl:1===c?t.headerAlignElRef.current:null,onCloseClick:e.handleMorePopoverClose,selectedInstanceId:t.eventSelection,hiddenInstances:(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{},todayRange:b}))})))},t.prototype.prepareHits=function(){this.rowPositions=new r["z"](this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new r["z"](this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.positionToHit=function(e,t){var n=this.morePopoverRef.current,r=n?n.positionToHit(e,t,this.rootEl):null,i=this.state.morePopoverState;if(r)return Object(o["a"])({row:i.fromRow,col:i.fromCol},r);var a=this,s=a.colPositions,l=a.rowPositions,c=s.leftToIndex(e),u=l.topToIndex(t);return null!=u&&null!=c?{row:u,col:c,dateSpan:{range:this.getCellRange(u,c),allDay:!0},dayEl:this.getCellEl(u,c),relativeRect:{left:s.lefts[c],right:s.rights[c],top:l.tops[u],bottom:l.bottoms[u]}}: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,o=Object(r["L"])(n,1);return{start:n,end:o}},t}(r["i"]);function P(e){return"function"===typeof e?e:function(t){return"+"+t+" "+e}}function N(e){return e.eventRange.def.allDay}var H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return Object(o["b"])(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(r["E"]),A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new H,t.tableRef=Object(r["lb"])(),t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context;return Object(r["gb"])(I,Object(o["a"])({ref:this.tableRef,elRef:this.handleRootEl},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,n,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))},t.prototype.prepareHits=function(){this.tableRef.current.prepareHits()},t.prototype.queryHit=function(e,t){var n=this.tableRef.current.positionToHit(e,t);return n?{component:this,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}:null},t}(r["i"]),U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=Object(r["Qb"])(L),t.headerRef=Object(r["lb"])(),t.tableRef=Object(r["lb"])(),t}return Object(o["b"])(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,o=t.dateProfileGenerator,i=this.props,a=this.buildDayTableModel(i.dateProfile,o),s=n.dayHeaders&&Object(r["gb"])(r["m"],{ref:this.headerRef,dateProfile:i.dateProfile,dates:a.headerDates,datesRepDistinctDays:1===a.rowCnt}),l=function(t){return Object(r["gb"])(A,{ref:e.tableRef,dateProfile:i.dateProfile,dayTableModel:a,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(s,l,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(s,l)},t}(i);function L(e,t){var n=new r["n"](e.renderRange,t);return new r["o"](n,/year|month|week/.test(e.currentRangeUnit))}var W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o["b"])(t,e),t.prototype.buildRenderRange=function(t,n,o){var i,a=this.props.dateEnv,s=e.prototype.buildRenderRange.call(this,t,n,o),l=s.start,c=s.end;if(/^(year|month)$/.test(n)&&(l=a.startOfWeek(l),i=a.startOfWeek(c),i.valueOf()!==c.valueOf()&&(c=Object(r["N"])(i,1))),this.props.monthMode&&this.props.fixedWeekCount){var u=Math.ceil(Object(r["pb"])(l,c));c=Object(r["N"])(c,6-u)}return{start:l,end:c}},t}(r["j"]),V={moreLinkClick:r["Gb"],moreLinkClassNames:r["Gb"],moreLinkContent:r["Gb"],moreLinkDidMount:r["Gb"],moreLinkWillUnmount:r["Gb"]},z=Object(r["kb"])({initialView:"dayGridMonth",optionRefiners:V,views:{dayGrid:{component:U,dateProfileGeneratorClass:W},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});t["b"]=z},d4eb:function(e,t,n){var r=n("7506"),o=n("5d29"),i=n("9345"),a=i("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[r(e)]}},e3fb:function(e,t,n){var r=n("425b");e.exports=function(e){var t=e["return"];if(void 0!==t)return r(t.call(e)).value}}}]);