Skip to content

Instantly share code, notes, and snippets.

@Gits-hub
Created May 15, 2024 18:12
Show Gist options
  • Save Gits-hub/4e1daacdbb8f8e759a01a8e3aefbd907 to your computer and use it in GitHub Desktop.
Save Gits-hub/4e1daacdbb8f8e759a01a8e3aefbd907 to your computer and use it in GitHub Desktop.
Fullcalendar snapshot
import{l as Je,D as ft,y as p,x as Ve,G as Zr,i as Xr,_ as N,j as $r,d as _}from"./preact-30b9eaac.js";const Nn=[],ht=new Map;function Hn(n){Nn.push(n),ht.forEach(e=>{Bn(e,n)})}function Jr(n){n.isConnected&&Pn(n.getRootNode())}function Pn(n){let e=ht.get(n);if(!e||!e.isConnected){if(e=n.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const t=ei();t&&(e.nonce=t);const r=n===document?document.head:n,i=n===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}ht.set(n,e),Kr(e)}}function Kr(n){for(const e of Nn)Bn(n,e)}function Bn(n,e){const{sheet:t}=n,r=t.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&t.insertRule(i+"}",r+s)})}let Ke;function ei(){return Ke===void 0&&(Ke=ti()),Ke}function ti(){const n=document.querySelector('meta[name="csp-nonce"]');if(n&&n.hasAttribute("content"))return n.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Pn(document);var ni=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Hn(ni);class Ct{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:r}=this;e in r&&(t?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function wt(n){n.parentNode&&n.parentNode.removeChild(n)}function x(n,e){if(n.closest)return n.closest(e);if(!document.documentElement.contains(n))return null;do{if(ri(n,e))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}function ri(n,e){return(n.matches||n.matchesSelector||n.msMatchesSelector).call(n,e)}function ii(n,e){let t=n instanceof HTMLElement?[n]:n,r=[];for(let i=0;i<t.length;i+=1){let s=t[i].querySelectorAll(e);for(let l=0;l<s.length;l+=1)r.push(s[l])}return r}const si=/(top|left|right|bottom|width|height)$/i;function ge(n,e){for(let t in e)jn(n,t,e[t])}function jn(n,e,t){t==null?n.style[e]="":typeof t=="number"&&si.test(e)?n.style[e]=`${t}px`:n.style[e]=t}function Ln(n){var e,t;return(t=(e=n.composedPath)===null||e===void 0?void 0:e.call(n)[0])!==null&&t!==void 0?t:n.target}let Zt=0;function We(){return Zt+=1,"fc-dom-"+Zt}function Ge(n){n.preventDefault()}function li(n,e){return t=>{let r=x(t.target,n);r&&e.call(r,t,r)}}function _n(n,e,t,r){let i=li(t,r);return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}function ai(n,e,t,r){let i;return _n(n,"mouseover",e,(s,l)=>{if(l!==i){i=l,t(s,l);let a=o=>{i=null,r(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const Xt=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function oi(n,e){let t=r=>{e(r),Xt.forEach(i=>{n.removeEventListener(i,t)})};Xt.forEach(r=>{n.addEventListener(r,t)})}function Un(n){return Object.assign({onClick:n},zn(n))}function zn(n){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(n(e),e.preventDefault())}}}let $t=0;function te(){return $t+=1,String($t)}function Rt(){document.body.classList.add("fc-not-allowed")}function Tt(){document.body.classList.remove("fc-not-allowed")}function ci(n){n.style.userSelect="none",n.style.webkitUserSelect="none",n.addEventListener("selectstart",Ge)}function di(n){n.style.userSelect="",n.style.webkitUserSelect="",n.removeEventListener("selectstart",Ge)}function ui(n){n.addEventListener("contextmenu",Ge)}function fi(n){n.removeEventListener("contextmenu",Ge)}function hi(n){let e=[],t=[],r,i;for(typeof n=="string"?t=n.split(/\s*,\s*/):typeof n=="function"?t=[n]:Array.isArray(n)&&(t=n),r=0;r<t.length;r+=1)i=t[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function gi(n,e,t){let r,i;for(r=0;r<t.length;r+=1)if(i=pi(n,e,t[r]),i)return i;return 0}function pi(n,e,t){return t.func?t.func(n,e):mi(n[t.field],e[t.field])*(t.order||1)}function mi(n,e){return!n&&!e?0:e==null?-1:n==null?1:typeof n=="string"||typeof e=="string"?String(n).localeCompare(String(e)):n-e}function et(n,e){let t=String(n);return"000".substr(0,e-t.length)+t}function pe(n,e,t){return typeof n=="function"?n(...e):typeof n=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),n):t}function vi(n,e){return n-e}function tt(n){return n%1===0}function bi(n){let e=n.querySelector(".fc-scrollgrid-shrink-frame"),t=n.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!t)throw new Error("needs fc-scrollgrid-shrink-cushion className");return n.getBoundingClientRect().width-e.getBoundingClientRect().width+t.getBoundingClientRect().width}const Ei=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function D(n,e){return typeof n=="string"?yi(n):typeof n=="object"&&n?Jt(n):typeof n=="number"?Jt({[e||"milliseconds"]:n}):null}function yi(n){let e=Ei.exec(n);if(e){let t=e[1]?-1:1;return{years:0,months:0,days:t*(e[2]?parseInt(e[2],10):0),milliseconds:t*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Jt(n){let e={years:n.years||n.year||0,months:n.months||n.month||0,days:n.days||n.day||0,milliseconds:(n.hours||n.hour||0)*60*60*1e3+(n.minutes||n.minute||0)*60*1e3+(n.seconds||n.second||0)*1e3+(n.milliseconds||n.millisecond||n.ms||0)},t=n.weeks||n.week;return t&&(e.days+=t*7,e.specifiedWeeks=!0),e}function Ai(n,e){return n.years===e.years&&n.months===e.months&&n.days===e.days&&n.milliseconds===e.milliseconds}function Si(n,e){return{years:n.years-e.years,months:n.months-e.months,days:n.days-e.days,milliseconds:n.milliseconds-e.milliseconds}}function Di(n){return oe(n)/365}function Ci(n){return oe(n)/30}function oe(n){return Ee(n)/864e5}function Ee(n){return n.years*(365*864e5)+n.months*(30*864e5)+n.days*864e5+n.milliseconds}function gt(n){let e=n.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return n.days?n.specifiedWeeks&&n.days%7===0?{unit:"week",value:n.days/7}:{unit:"day",value:n.days}:n.months?{unit:"month",value:n.months}:n.years?{unit:"year",value:n.years}:{unit:"millisecond",value:0}}function G(n,e,t){if(n===e)return!0;let r=n.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(t?t(n[i],e[i]):n[i]===e[i]))return!1;return!0}const wi=["sun","mon","tue","wed","thu","fri","sat"];function Kt(n,e){let t=F(n);return t[2]+=e*7,H(t)}function k(n,e){let t=F(n);return t[2]+=e,H(t)}function Q(n,e){let t=F(n);return t[6]+=e,H(t)}function Ri(n,e){return fe(n,e)/7}function fe(n,e){return(e.valueOf()-n.valueOf())/(1e3*60*60*24)}function Ti(n,e){return(e.valueOf()-n.valueOf())/(1e3*60*60)}function Ii(n,e){return(e.valueOf()-n.valueOf())/(1e3*60)}function Mi(n,e){return(e.valueOf()-n.valueOf())/1e3}function xi(n,e){let t=w(n),r=w(e);return{years:0,months:0,days:Math.round(fe(t,r)),milliseconds:e.valueOf()-r.valueOf()-(n.valueOf()-t.valueOf())}}function ki(n,e){let t=He(n,e);return t!==null&&t%7===0?t/7:null}function He(n,e){return V(n)===V(e)?Math.round(fe(n,e)):null}function w(n){return H([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()])}function Oi(n){return H([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours()])}function Ni(n){return H([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes()])}function Hi(n){return H([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()])}function Pi(n,e,t){let r=n.getUTCFullYear(),i=nt(n,r,e,t);if(i<1)return nt(n,r-1,e,t);let s=nt(n,r+1,e,t);return s>=1?Math.min(i,s):i}function nt(n,e,t,r){let i=H([e,0,1+Bi(e,t,r)]),s=w(n),l=Math.round(fe(i,s));return Math.floor(l/7)+1}function Bi(n,e,t){let r=7+e-t;return-((7+H([n,0,r]).getUTCDay()-e)%7)+r-1}function en(n){return[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()]}function tn(n){return new Date(n[0],n[1]||0,n[2]==null?1:n[2],n[3]||0,n[4]||0,n[5]||0)}function F(n){return[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()]}function H(n){return n.length===1&&(n=n.concat([0])),new Date(Date.UTC(...n))}function Fn(n){return!isNaN(n.valueOf())}function V(n){return n.getUTCHours()*1e3*60*60+n.getUTCMinutes()*1e3*60+n.getUTCSeconds()*1e3+n.getUTCMilliseconds()}function ji(n,e,t=!1){let r=n.toISOString();return r=r.replace(".000",""),t&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",Mt(e,!0)))),r}function It(n){return n.toISOString().replace(/T.*$/,"")}function Li(n){return n.toISOString().match(/^\d{4}-\d{2}/)[0]}function Mt(n,e=!1){let t=n<0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),s=Math.round(r%60);return e?`${t+et(i,2)}:${et(s,2)}`:`GMT${t}${i}${s?`:${et(s,2)}`:""}`}function C(n,e,t){let r,i;return function(...s){if(!r)i=n.apply(this,s);else if(!G(r,s)){t&&t(i);let l=n.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function Oe(n,e,t){let r,i;return s=>{if(!r)i=n.call(this,s);else if(!L(r,s)){t&&t(i);let l=n.call(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}const nn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Pe={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},we=/\s*([ap])\.?m\.?/i,_i=/,/g,Ui=/\s+/g,zi=/\u200e/g,Fi=/UTC|GMT/;class Vi{constructor(e){let t={},r={},i=0;for(let s in e)s in nn?(r[s]=e[s],i=Math.max(nn[s],i)):(t[s]=e[s],s in Pe&&(i=Math.max(Pe[s],i)));this.standardDateProps=t,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=C(rn)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,r,i){let{standardDateProps:s,extendedSettings:l}=this,a=Zi(e.marker,t.marker,r.calendarSystem);if(!a)return this.format(e,r);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let c=this.format(e,r),d=this.format(t,r);if(c===d)return c;let u=Xi(s,o),h=rn(u,l,r),f=h(e),b=h(t),m=$i(c,f,d,b),v=l.separator||i||r.defaultSeparator||"";return m?m.before+f+v+b+m.after:c+v+d}getLargestUnit(){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"}}}function rn(n,e,t){let r=Object.keys(n).length;return r===1&&n.timeZoneName==="short"?i=>Mt(i.timeZoneOffset):r===0&&e.week?i=>qi(t.computeWeekNumber(i.marker),t.weekText,t.weekTextLong,t.locale,e.week):Wi(n,e,t)}function Wi(n,e,t){n=Object.assign({},n),e=Object.assign({},e),Gi(n,e),n.timeZone="UTC";let r=new Intl.DateTimeFormat(t.locale.codes,n),i;if(e.omitZeroMinute){let s=Object.assign({},n);delete s.minute,i=new Intl.DateTimeFormat(t.locale.codes,s)}return s=>{let{marker:l}=s,a;i&&!l.getUTCMinutes()?a=i:a=r;let o=a.format(l);return Qi(o,s,n,e,t)}}function Gi(n,e){n.timeZoneName&&(n.hour||(n.hour="2-digit"),n.minute||(n.minute="2-digit")),n.timeZoneName==="long"&&(n.timeZoneName="short"),e.omitZeroMinute&&(n.second||n.millisecond)&&delete e.omitZeroMinute}function Qi(n,e,t,r,i){return n=n.replace(zi,""),t.timeZoneName==="short"&&(n=Yi(n,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Mt(e.timeZoneOffset))),r.omitCommas&&(n=n.replace(_i,"").trim()),r.omitZeroMinute&&(n=n.replace(":00","")),r.meridiem===!1?n=n.replace(we,"").trim():r.meridiem==="narrow"?n=n.replace(we,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?n=n.replace(we,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(n=n.replace(we,s=>s.toLocaleLowerCase())),n=n.replace(Ui," "),n=n.trim(),n}function Yi(n,e){let t=!1;return n=n.replace(Fi,()=>(t=!0,e)),t||(n+=` ${e}`),n}function qi(n,e,t,r,i){let s=[];return i==="long"?s.push(t):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(n)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function Zi(n,e,t){return t.getMarkerYear(n)!==t.getMarkerYear(e)?5:t.getMarkerMonth(n)!==t.getMarkerMonth(e)?4:t.getMarkerDay(n)!==t.getMarkerDay(e)?2:V(n)!==V(e)?1:0}function Xi(n,e){let t={};for(let r in n)(!(r in Pe)||Pe[r]<=e)&&(t[r]=n[r]);return t}function $i(n,e,t,r){let i=0;for(;i<n.length;){let s=n.indexOf(e,i);if(s===-1)break;let l=n.substr(0,s);i=s+e.length;let a=n.substr(i),o=0;for(;o<t.length;){let c=t.indexOf(r,o);if(c===-1)break;let d=t.substr(0,c);o=c+r.length;let u=t.substr(o);if(l===d&&a===u)return{before:l,after:a}}}return null}function sn(n,e){let t=e.markerToArray(n.marker);return{marker:n.marker,timeZoneOffset:n.timeZoneOffset,array:t,year:t[0],month:t[1],day:t[2],hour:t[3],minute:t[4],second:t[5],millisecond:t[6]}}function Be(n,e,t,r){let i=sn(n,t.calendarSystem),s=e?sn(e,t.calendarSystem):null;return{date:i,start:i,end:s,timeZone:t.timeZone,localeCodes:t.locale.codes,defaultSeparator:r||t.defaultSeparator}}class Ji{constructor(e){this.cmdStr=e}format(e,t,r){return t.cmdFormatter(this.cmdStr,Be(e,null,t,r))}formatRange(e,t,r,i){return r.cmdFormatter(this.cmdStr,Be(e,t,r,i))}}class Ki{constructor(e){this.func=e}format(e,t,r){return this.func(Be(e,null,t,r))}formatRange(e,t,r,i){return this.func(Be(e,t,r,i))}}function M(n){return typeof n=="object"&&n?new Vi(n):typeof n=="string"?new Ji(n):typeof n=="function"?new Ki(n):null}const ln={navLinkDayClick:g,navLinkWeekClick:g,duration:D,bootstrapFontAwesome:g,buttonIcons:g,customButtons:g,defaultAllDayEventDuration:D,defaultTimedEventDuration:D,nextDayThreshold:D,scrollTime:D,scrollTimeReset:Boolean,slotMinTime:D,slotMaxTime:D,dayPopoverFormat:M,slotDuration:D,snapDuration:D,headerToolbar:g,footerToolbar:g,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:M,dayHeaderClassNames:g,dayHeaderContent:g,dayHeaderDidMount:g,dayHeaderWillUnmount:g,dayCellClassNames:g,dayCellContent:g,dayCellDidMount:g,dayCellWillUnmount:g,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:g,weekNumbers:Boolean,weekNumberClassNames:g,weekNumberContent:g,weekNumberDidMount:g,weekNumberWillUnmount:g,editable:Boolean,viewClassNames:g,viewDidMount:g,viewWillUnmount:g,nowIndicator:Boolean,nowIndicatorClassNames:g,nowIndicatorContent:g,nowIndicatorDidMount:g,nowIndicatorWillUnmount:g,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:g,locale:g,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:g,eventOrder:hi,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:g,contentHeight:g,direction:String,weekNumberFormat:M,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:g,initialDate:g,now:g,eventDataTransform:g,stickyHeaderDates:g,stickyFooterScrollbar:g,viewHeight:g,defaultAllDay:Boolean,eventSourceFailure:g,eventSourceSuccess:g,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:g,eventConstraint:g,eventAllow:g,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:g,eventContent:g,eventDidMount:g,eventWillUnmount:g,selectConstraint:g,selectOverlap:g,selectAllow:g,droppable:Boolean,unselectCancel:String,slotLabelFormat:g,slotLaneClassNames:g,slotLaneContent:g,slotLaneDidMount:g,slotLaneWillUnmount:g,slotLabelClassNames:g,slotLabelContent:g,slotLabelDidMount:g,slotLabelWillUnmount:g,dayMaxEvents:g,dayMaxEventRows:g,dayMinWidth:Number,slotLabelInterval:D,allDayText:String,allDayClassNames:g,allDayContent:g,allDayDidMount:g,allDayWillUnmount:g,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:M,rerenderDelay:Number,moreLinkText:g,moreLinkHint:g,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:g,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:D,hiddenDays:g,fixedWeekCount:Boolean,validRange:g,visibleRange:g,titleFormat:g,eventInteractive:Boolean,noEventsText:String,viewHint:g,navLinkHint:g,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:g,moreLinkClassNames:g,moreLinkContent:g,moreLinkDidMount:g,moreLinkWillUnmount:g,monthStartFormat:M,handleCustomRendering:g,customRenderingMetaMap:g,customRenderingReplaces:Boolean},me={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",scrollTimeReset:!0,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,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},an={datesSet:g,eventsSet:g,eventAdd:g,eventChange:g,eventRemove:g,windowResize:g,eventClick:g,eventMouseEnter:g,eventMouseLeave:g,select:g,unselect:g,loading:g,_unmount:g,_beforeprint:g,_afterprint:g,_noEventDrop:g,_noEventResize:g,_resize:g,_scrollRequest:g},on={buttonText:g,buttonHints:g,views:g,plugins:g,initialEvents:g,events:g,eventSources:g},Z={headerToolbar:X,footerToolbar:X,buttonText:X,buttonHints:X,buttonIcons:X,dateIncrement:X,plugins:Re,events:Re,eventSources:Re,resources:Re};function X(n,e){return typeof n=="object"&&typeof e=="object"&&n&&e?L(n,e):n===e}function Re(n,e){return Array.isArray(n)&&Array.isArray(e)?G(n,e):n===e}const es={type:String,component:g,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:g,usesMinMaxTime:Boolean,classNames:g,content:g,didMount:g,willUnmount:g};function rt(n){return kt(n,Z)}function xt(n,e){let t={},r={};for(let i in e)i in n&&(t[i]=e[i](n[i]));for(let i in n)i in e||(r[i]=n[i]);return{refined:t,extra:r}}function g(n){return n}const{hasOwnProperty:je}=Object.prototype;function kt(n,e){let t={};if(e){for(let r in e)if(e[r]===X){let i=[];for(let s=n.length-1;s>=0;s-=1){let l=n[s][r];if(typeof l=="object"&&l)i.unshift(l);else if(l!==void 0){t[r]=l;break}}i.length&&(t[r]=kt(i))}}for(let r=n.length-1;r>=0;r-=1){let i=n[r];for(let s in i)s in t||(t[s]=i[s])}return t}function K(n,e){let t={};for(let r in n)e(n[r],r)&&(t[r]=n[r]);return t}function ne(n,e){let t={};for(let r in n)t[r]=e(n[r],r);return t}function Vn(n){let e={};for(let t of n)e[t]=!0;return e}function Ot(n){let e=[];for(let t in n)e.push(n[t]);return e}function L(n,e){if(n===e)return!0;for(let t in n)if(je.call(n,t)&&!(t in e))return!1;for(let t in e)if(je.call(e,t)&&n[t]!==e[t])return!1;return!0}const ts=/^on[A-Z]/;function ns(n,e){const t=pt(n,e);for(let r of t)if(!ts.test(r))return!1;return!0}function pt(n,e){let t=[];for(let r in n)je.call(n,r)&&(r in e||t.push(r));for(let r in e)je.call(e,r)&&n[r]!==e[r]&&t.push(r);return t}function it(n,e,t={}){if(n===e)return!0;for(let r in e)if(!(r in n&&rs(n[r],e[r],t[r])))return!1;for(let r in n)if(!(r in e))return!1;return!0}function rs(n,e,t){return n===e||t===!0?!0:t?t(n,e):!1}function is(n,e=0,t,r=1){let i=[];t==null&&(t=Object.keys(n).length);for(let s=e;s<t;s+=r){let l=n[s];l!==void 0&&i.push(l)}return i}let Wn={};function ss(n,e){Wn[n]=e}function ls(n){return new Wn[n]}class as{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return H(e)}markerToArray(e){return F(e)}}ss("gregory",as);const os=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function cs(n){let e=os.exec(n);if(e){let t=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Fn(t)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:t,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class ds{constructor(e){let t=this.timeZone=e.timeZone,r=t!=="local"&&t!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=ls(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return t===null?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):H(en(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let t=null;return typeof e=="number"?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=H(e)),t===null||!Fn(t)?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let t=cs(e);if(t===null)return null;let{marker:r}=t,i=null;return t.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-t.timeZoneOffset*60*1e3):i=t.timeZoneOffset),{marker:r,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let r=this.calendarSystem.markerToArray(e);return r[0]+=t.years,r[1]+=t.months,r[2]+=t.days,r[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,t){let r=this.calendarSystem.markerToArray(e);return r[0]-=t.years,r[1]-=t.months,r[2]-=t.days,r[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,t){let r=this.calendarSystem.markerToArray(e);return r[0]+=t,this.calendarSystem.arrayToMarker(r)}addMonths(e,t){let r=this.calendarSystem.markerToArray(e);return r[1]+=t,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,t){let{calendarSystem:r}=this;return V(e)===V(t)&&r.getMarkerDay(e)===r.getMarkerDay(t)&&r.getMarkerMonth(e)===r.getMarkerMonth(t)?r.getMarkerYear(t)-r.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:r}=this;return V(e)===V(t)&&r.getMarkerDay(e)===r.getMarkerDay(t)?r.getMarkerMonth(t)-r.getMarkerMonth(e)+(r.getMarkerYear(t)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,t){let r=this.diffWholeYears(e,t);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,t),r!==null?{unit:"month",value:r}:(r=ki(e,t),r!==null?{unit:"week",value:r}:(r=He(e,t),r!==null?{unit:"day",value:r}:(r=Ti(e,t),tt(r)?{unit:"hour",value:r}:(r=Ii(e,t),tt(r)?{unit:"minute",value:r}:(r=Mi(e,t),tt(r)?{unit:"second",value:r}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,r){let i;return r.years&&(i=this.diffWholeYears(e,t),i!==null)?i/Di(r):r.months&&(i=this.diffWholeMonths(e,t),i!==null)?i/Ci(r):r.days&&(i=He(e,t),i!==null)?i/oe(r):(t.valueOf()-e.valueOf())/Ee(r)}startOf(e,t){return t==="year"?this.startOfYear(e):t==="month"?this.startOfMonth(e):t==="week"?this.startOfWeek(e):t==="day"?w(e):t==="hour"?Oi(e):t==="minute"?Ni(e):t==="second"?Hi(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):Pi(e,this.weekDow,this.weekDoy)}format(e,t,r={}){return t.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,r,i={}){return i.isEndExclusive&&(t=Q(t,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(t)},this,i.defaultSeparator)}formatIso(e,t={}){let r=null;return t.omitTimeZoneOffset||(t.forcedTzo!=null?r=t.forcedTzo:r=this.offsetForMarker(e)),ji(e,r,t.omitTime)}timestampToMarker(e){return this.timeZone==="local"?H(en(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):H(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-tn(F(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(F(e)):null}toDate(e,t){return this.timeZone==="local"?tn(F(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(F(e))*1e3*60):new Date(e.valueOf()-(t||0))}}class Ae{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,r;if(typeof e=="object"&&e){t=Object.assign({},this.iconClasses);for(r in e)t[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=t}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&e.indexOf(t)!==0&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let r;return t&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}Ae.prototype.classes={};Ae.prototype.iconClasses={};Ae.prototype.baseIconClass="";Ae.prototype.iconOverridePrefix="";function cn(n){n();let e=Je.debounceRendering,t=[];function r(i){t.push(i)}for(Je.debounceRendering=r,ft(p(us,{}),document.createElement("div"));t.length;)t.shift()();Je.debounceRendering=e}class us extends Ve{render(){return p("div",{})}componentDidMount(){this.setState({})}}function Gn(n){let e=Zr(n),t=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=t.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=l=>{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return i},e}class fs{constructor(e,t,r,i){this.execFunc=e,this.emitter=t,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const re=Gn({});function hs(n,e,t,r,i,s,l,a,o,c,d,u,h){return{dateEnv:i,options:t,pluginHooks:l,emitter:c,dispatch:a,getCurrentData:o,calendarApi:d,viewSpec:n,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:t.direction==="rtl",addResizeHandler(f){c.on("_resize",f)},removeResizeHandler(f){c.off("_resize",f)},createScrollResponder(f){return new fs(f,c,D(t.scrollTime),t.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:h}}class ie extends Ve{shouldComponentUpdate(e,t){return this.debug&&console.log(pt(e,this.props),pt(t,this.state)),!it(this.props,e,this.propEquality)||!it(this.state,t,this.stateEquality)}safeSetState(e){it(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}ie.addPropsEquality=gs;ie.addStateEquality=ps;ie.contextType=re;ie.prototype.propEquality={};ie.prototype.stateEquality={};class T extends ie{}T.contextType=re;function gs(n){let e=Object.create(this.prototype.propEquality);Object.assign(e,n),this.prototype.propEquality=e}function ps(n){let e=Object.create(this.prototype.stateEquality);Object.assign(e,n),this.prototype.stateEquality=e}function U(n,e){typeof n=="function"?n(e):n&&(n.current=e)}class Nt extends T{constructor(){super(...arguments),this.id=te(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:r}=this.props;(!t.customRenderingReplaces||!mt(r,t))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&U(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:r}=t,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,a=Qn(e,[],this.handleEl);let o=!1,c,d=[],u;if(i!=null){const h=typeof i=="function"?i(l,p):i;if(h===!0)o=!0;else{const f=h&&typeof h=="object";f&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?d=Array.prototype.slice.call(h.domNodes):(f?Xr(h):typeof h!="function")?c=h:u=h}}else o=!mt(e.generatorName,r);return o&&s&&(c=s(l)),this.queuedDomNodes=d,this.currentGeneratorMeta=u,p(e.elTag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=i.options;if(s){const a=(t=this.currentGeneratorMeta)!==null&&t!==void 0?t:l==null?void 0:l[r.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(ms)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,r=this.base;if(!G(e,t)){t.forEach(wt);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}Nt.addPropsEquality({elClasses:G,elStyle:L,elAttrs:ns,renderProps:L});function mt(n,e){var t;return!!(e.handleCustomRendering&&n&&(!((t=e.customRenderingMetaMap)===null||t===void 0)&&t[n]))}function Qn(n,e,t){const r=Object.assign(Object.assign({},n.elAttrs),{ref:t});return(n.elClasses||e)&&(r.className=(n.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),n.elStyle&&(r.style=n.elStyle),r}function ms(n){return!!n}const Yn=Gn(0);class z extends Ve{constructor(){super(...arguments),this.InnerContent=vs.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(U(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=bs(e.classNameGenerator,e.renderProps);if(e.children){const r=Qn(e,t,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?p(e.elTag,r,i):i}else return p(Nt,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?(t=(e=this.props).didMount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}z.contextType=Yn;function vs(n,e){const t=n.props;return p(Nt,Object.assign({renderProps:t.renderProps,generatorName:t.generatorName,customGenerator:t.customGenerator,defaultGenerator:t.defaultGenerator,renderId:n.context},e))}function bs(n,e){const t=typeof n=="function"?n(e):n||[];return typeof t=="string"?[t]:t}class dn extends T{render(){let{props:e,context:t}=this,{options:r}=t,i={view:t.viewApi};return p(z,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...qn(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function qn(n){return[`fc-${n.type}-view`,"fc-view"]}function Es(n,e){let t=null,r=null;return n.start&&(t=e.createMarker(n.start)),n.end&&(r=e.createMarker(n.end)),!t&&!r||t&&r&&r<t?null:{start:t,end:r}}function un(n,e){let t=[],{start:r}=e,i,s;for(n.sort(ys),i=0;i<n.length;i+=1)s=n[i],s.start>r&&t.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&t.push({start:r,end:e.end}),t}function ys(n,e){return n.start.valueOf()-e.start.valueOf()}function de(n,e){let{start:t,end:r}=n,i=null;return e.start!==null&&(t===null?t=e.start:t=new Date(Math.max(t.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(t===null||r===null||t<r)&&(i={start:t,end:r}),i}function As(n,e){return(n.start===null?null:n.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(n.end===null?null:n.end.valueOf())===(e.end===null?null:e.end.valueOf())}function Ht(n,e){return(n.end===null||e.start===null||n.end>e.start)&&(n.start===null||e.end===null||n.start<e.end)}function Qe(n,e){return(n.start===null||e.start!==null&&e.start>=n.start)&&(n.end===null||e.end!==null&&e.end<=n.end)}function W(n,e){return(n.start===null||e>=n.start)&&(n.end===null||e<n.end)}function Ss(n,e){return e.start!=null&&n<e.start?e.start:e.end!=null&&n>=e.end?new Date(e.end.valueOf()-1):n}function Zn(n){let e=Math.floor(fe(n.start,n.end))||1,t=w(n.start),r=k(t,e);return{start:t,end:r}}function Xn(n,e=D(0)){let t=null,r=null;if(n.end){r=w(n.end);let i=n.end.valueOf()-r.valueOf();i&&i>=Ee(e)&&(r=k(r,1))}return n.start&&(t=w(n.start),r&&r<=t&&(r=k(t,1))),{start:t,end:r}}function ae(n,e,t,r){return r==="year"?D(t.diffWholeYears(n,e),"year"):r==="month"?D(t.diffWholeMonths(n,e),"month"):xi(n,e)}function Ds(n,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return n}}function Cs(n,e){let t=n.initialDate;return t!=null?e.createMarker(t):Se(n.now,e)}function Se(n,e){return typeof n=="function"&&(n=n()),n==null?e.createNowMarker():e.createMarker(n)}class $n{constructor(e){this.props=e,this.nowDate=Se(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,t,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,t,r=!0){let{props:i}=this,s,l,a,o,c,d;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Ss(e,s)),l=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),c=o,i.showNonCurrentDates||(c=de(c,l.range)),c=this.adjustActiveRange(c),c=de(c,s),d=Ht(l.range,s),W(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:c,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,t=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:r}=this,i=null,s=null,l=null,a;return r.duration?(i=r.duration,s=r.durationUnit,l=this.buildRangeFromDuration(e,t,i,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,t,a)):(l=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(l.start,l.end).unit:(i=this.getFallbackDuration(),s=gt(i).unit,l=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return D({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:a}=e;return r&&(oe(i)<0&&(l=w(l),l=t.add(l,i)),oe(s)>1&&(a=w(a),a=k(a,-1),a=t.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,t,r,i){let{dateEnv:s,dateAlignment:l}=this.props,a,o,c;if(!l){let{dateIncrement:u}=this.props;u&&Ee(u)<Ee(r)?l=gt(u).unit:l=i}oe(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,t),a=w(a));function d(){a=s.startOf(e,l),o=s.add(a,r),c={start:a,end:o}}return d(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,t),d()),c}buildRangeFromDayCount(e,t,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,a=e,o;s&&(a=i.startOf(a,s)),a=w(a),a=this.skipHiddenDays(a,t),o=a;do o=k(o,1),this.isHiddenDay(o)||(l+=1);while(l<r);return{start:a,end:o}}buildCustomVisibleRange(e){let{props:t}=this,r=t.visibleRangeInput,i=typeof r=="function"?r.call(t.calendarApi,t.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,t,r){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props,r;return t||((r=this.props.dateAlignment)?D(1,r):e||D({days:1}))}refineRange(e){if(e){let t=Es(e,this.props.dateEnv);return t&&(t=Xn(t)),t}return null}initHiddenDays(){let e=this.props.hiddenDays||[],t=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(t[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:r}=e;return t&&(t=this.skipHiddenDays(t)),r&&(r=this.skipHiddenDays(r,-1,!0)),t==null||r==null||t<r?{start:t,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?t:0)+7)%7];)e=k(e,t);return e}}function Pt(n,e,t,r){return{instanceId:te(),defId:n,range:e,forcedStartTzo:t??null,forcedEndTzo:r??null}}function ws(n,e,t,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(n,t);if(s){let{allDay:l}=n;return l==null&&(l=e,l==null&&(l=s.allDayGuess,l==null&&(l=!1))),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function ee(n,e,t){let{dateEnv:r,pluginHooks:i,options:s}=t,{defs:l,instances:a}=n;a=K(a,o=>!l[o.defId].recurringDef);for(let o in l){let c=l[o];if(c.recurringDef){let{duration:d}=c.recurringDef;d||(d=c.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let u=Rs(c,d,e,r,i.recurringTypes);for(let h of u){let f=Pt(o,{start:h,end:r.add(h,d)});a[f.instanceId]=f}}}return{defs:l,instances:a}}function Rs(n,e,t,r,i){let l=i[n.recurringDef.typeId].expand(n.recurringDef.typeData,{start:r.subtract(t.start,e),end:t.end},r);return n.allDay&&(l=l.map(w)),l}const Ne={id:String,groupId:String,title:String,url:String,interactive:Boolean},Jn={start:g,end:g,date:g,allDay:Boolean},Ts=Object.assign(Object.assign(Object.assign({},Ne),Jn),{extendedProps:g});function Kn(n,e,t,r,i=Bt(t),s,l){let{refined:a,extra:o}=er(n,t,i),c=Ms(e,t),d=ws(a,c,t.dateEnv,t.pluginHooks.recurringTypes);if(d){let h=vt(a,o,e?e.sourceId:"",d.allDay,!!d.duration,t,s);return h.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:h,instance:null}}let u=Is(a,c,t,r);if(u){let h=vt(a,o,e?e.sourceId:"",u.allDay,u.hasEnd,t,s),f=Pt(h.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(f.instanceId=l[h.publicId]),{def:h,instance:f}}return null}function er(n,e,t=Bt(e)){return xt(n,t)}function Bt(n){return Object.assign(Object.assign(Object.assign({},Le),Ts),n.pluginHooks.eventRefiners)}function vt(n,e,t,r,i,s,l){let a={title:n.title||"",groupId:n.groupId||"",publicId:n.id||"",url:n.url||"",recurringDef:null,defId:(l&&n.id?l[n.id]:"")||te(),sourceId:t,allDay:r,hasEnd:i,interactive:n.interactive,ui:_e(n,s),extendedProps:Object.assign(Object.assign({},n.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(n));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Is(n,e,t,r){let{allDay:i}=n,s,l=null,a=!1,o,c=null,d=n.start!=null?n.start:n.date;if(s=t.dateEnv.createMarkerMeta(d),s)l=s.marker;else if(!r)return null;return n.end!=null&&(o=t.dateEnv.createMarkerMeta(n.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),i&&l&&(l=w(l)),o&&(c=o.marker,i&&(c=w(c)),l&&c<=l&&(c=null)),c?a=!0:r||(a=t.options.forceEventDuration||!1,c=t.dateEnv.add(l,i?t.options.defaultAllDayEventDuration:t.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:l,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function Ms(n,e){let t=null;return n&&(t=n.defaultAllDay),t==null&&(t=e.options.defaultAllDay),t}function ye(n,e,t,r,i,s){let l=j(),a=Bt(t);for(let o of n){let c=Kn(o,e,t,r,a,i,s);c&&bt(c,l)}return l}function bt(n,e=j()){return e.defs[n.def.defId]=n.def,n.instance&&(e.instances[n.instance.instanceId]=n.instance),e}function jt(n,e){let t=n.instances[e];if(t){let r=n.defs[t.defId],i=Ye(n,s=>xs(r,s));return i.defs[r.defId]=r,i.instances[t.instanceId]=t,i}return j()}function xs(n,e){return!!(n.groupId&&n.groupId===e.groupId)}function j(){return{defs:{},instances:{}}}function Lt(n,e){return{defs:Object.assign(Object.assign({},n.defs),e.defs),instances:Object.assign(Object.assign({},n.instances),e.instances)}}function Ye(n,e){let t=K(n.defs,e),r=K(n.instances,i=>t[i.defId]);return{defs:t,instances:r}}function ks(n,e){let{defs:t,instances:r}=n,i={},s={};for(let l in t)e.defs[l]||(i[l]=t[l]);for(let l in r)!e.instances[l]&&i[r[l].defId]&&(s[l]=r[l]);return{defs:i,instances:s}}function Os(n,e){return Array.isArray(n)?ye(n,null,e,!0):typeof n=="object"&&n?ye([n],null,e,!0):n!=null?String(n):null}function fn(n){return Array.isArray(n)?n:typeof n=="string"?n.split(/\s+/):[]}const Le={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:g,overlap:g,allow:g,className:fn,classNames:fn,color:String,backgroundColor:String,borderColor:String,textColor:String},Ns={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function _e(n,e){let t=Os(n.constraint,e);return{display:n.display||null,startEditable:n.startEditable!=null?n.startEditable:n.editable,durationEditable:n.durationEditable!=null?n.durationEditable:n.editable,constraints:t!=null?[t]:[],overlap:n.overlap!=null?n.overlap:null,allows:n.allow!=null?[n.allow]:[],backgroundColor:n.backgroundColor||n.color||"",borderColor:n.borderColor||n.color||"",textColor:n.textColor||"",classNames:(n.className||[]).concat(n.classNames||[])}}function Hs(n){return n.reduce(Ps,Ns)}function Ps(n,e){return{display:e.display!=null?e.display:n.display,startEditable:e.startEditable!=null?e.startEditable:n.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:n.durationEditable,constraints:n.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:n.overlap,allows:n.allows.concat(e.allows),backgroundColor:e.backgroundColor||n.backgroundColor,borderColor:e.borderColor||n.borderColor,textColor:e.textColor||n.textColor,classNames:n.classNames.concat(e.classNames)}}const Bs={id:String,defaultAllDay:Boolean,url:String,format:String,events:g,eventDataTransform:g,success:g,failure:g};function tr(n,e,t=nr(e)){let r;if(typeof n=="string"?r={url:n}:typeof n=="function"||Array.isArray(n)?r={events:n}:typeof n=="object"&&n&&(r=n),r){let{refined:i,extra:s}=xt(r,t),l=js(i,e);if(l)return{_raw:n,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:te(),sourceDefId:l.sourceDefId,meta:l.meta,ui:_e(i,e),extendedProps:s}}return null}function nr(n){return Object.assign(Object.assign(Object.assign({},Le),Bs),n.pluginHooks.eventSourceRefiners)}function js(n,e){let t=e.pluginHooks.eventSourceDefs;for(let r=t.length-1;r>=0;r-=1){let s=t[r].parseMeta(n);if(s)return{sourceDefId:r,meta:s}}return null}function Ls(n,e,t,r,i){switch(e.type){case"RECEIVE_EVENTS":return _s(n,t[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return Us(n,t[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return zs(n,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Lt(n,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?ee(n,r.activeRange,i):n;case"REMOVE_EVENTS":return ks(n,e.eventStore);case"REMOVE_EVENT_SOURCE":return ir(n,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ye(n,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return j();default:return n}}function _s(n,e,t,r,i,s){if(e&&t===e.latestFetchId){let l=ye(rr(i,e,s),e,s);return r&&(l=ee(l,r,s)),Lt(ir(n,e.sourceId),l)}return n}function Us(n,e,t,r,i){const{defIdMap:s,instanceIdMap:l}=Vs(n);let a=ye(rr(t,e,i),e,i,!1,s,l);return ee(a,r,i)}function rr(n,e,t){let r=t.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(n=hn(n,i)),r&&(n=hn(n,r)),n}function hn(n,e){let t;if(!e)t=n;else{t=[];for(let r of n){let i=e(r);i?t.push(i):i==null&&t.push(r)}}return t}function zs(n,e,t,r){return t&&(e=ee(e,t,r)),Lt(n,e)}function gn(n,e,t){let{defs:r}=n,i=ne(n.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:t.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:t.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:t.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:t.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function ir(n,e){return Ye(n,t=>t.sourceId!==e)}function Fs(n,e){return{defs:n.defs,instances:K(n.instances,t=>!e[t.instanceId])}}function Vs(n){const{defs:e,instances:t}=n,r={},i={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(r[a]=s)}for(let s in t){const l=t[s],a=e[l.defId],{publicId:o}=a;o&&(i[o]=s)}return{defIdMap:r,instanceIdMap:i}}class qe{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){Ws(this.handlers,e,t)}off(e,t){Gs(this.handlers,e,t)}trigger(e,...t){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let l of s)l.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Ws(n,e,t){(n[e]||(n[e]=[])).push(t)}function Gs(n,e,t){t?n[e]&&(n[e]=n[e].filter(r=>r!==t)):delete n[e]}const Qs={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Ys(n,e){return ye(qs(n),null,e)}function qs(n){let e;return n===!0?e=[{}]:Array.isArray(n)?e=n.filter(t=>t.daysOfWeek):typeof n=="object"&&n?e=[n]:e=[],e=e.map(t=>Object.assign(Object.assign({},Qs),t)),e}function sr(n,e,t){t.emitter.trigger("select",Object.assign(Object.assign({},_t(n,t)),{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view}))}function Zs(n,e){e.emitter.trigger("unselect",{jsEvent:n?n.origEvent:null,view:e.viewApi||e.calendarApi.view})}function _t(n,e){let t={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(t,r(n,e));return Object.assign(t,dl(n,e.dateEnv)),t}function pn(n,e,t){let{dateEnv:r,options:i}=t,s=e;return n?(s=w(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Ut(n,e,t,r){let i=Ue(n.defs,e),s=j();for(let l in n.defs){let a=n.defs[l];s.defs[l]=Xs(a,i[l],t,r)}for(let l in n.instances){let a=n.instances[l],o=s.defs[a.defId];s.instances[l]=$s(a,o,i[a.defId],t,r)}return s}function Xs(n,e,t,r){let i=t.standardProps||{};i.hasEnd==null&&e.durationEditable&&(t.startDelta||t.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},n),i),{ui:Object.assign(Object.assign({},n.ui),i.ui)});t.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),t.extendedProps));for(let l of r.pluginHooks.eventDefMutationAppliers)l(s,t,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function $s(n,e,t,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},n);return l&&(o.range=Zn(o.range)),r.datesDelta&&t.startEditable&&(o.range={start:s.add(o.range.start,r.datesDelta),end:s.add(o.range.end,r.datesDelta)}),r.startDelta&&t.durationEditable&&(o.range={start:s.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&t.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,r.endDelta)}),a&&(o.range={start:o.range.start,end:pn(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:w(o.range.start),end:w(o.range.end)}),o.range.end<o.range.start&&(o.range.end=pn(e.allDay,o.range.start,i)),o}class le{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class R{constructor(e,t,r){this._context=e,this._def=t,this._instance=r||null}setProp(e,t){if(e in Jn)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")t=Ne[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Ne)t=Ne[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Le){let r=Le[e](t);e==="color"?r={backgroundColor:t,borderColor:t}:e==="editable"?r={startEditable:t,durationEditable:t}:r={[e]:t},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,l=ae(s.start,i,r,t.granularity);t.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,t={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=ae(this._instance.range.end,i,r,t.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},l=i.createMarker(e),a;if(l&&!(t!=null&&(a=i.createMarker(t),!a))&&this._instance){let o=this._instance.range;r.allDay===!0&&(o=Zn(o));let c=ae(o.start,l,i,r.granularity);if(a){let d=ae(o.end,a,i,r.granularity);Ai(c,d)?this.mutate({datesDelta:c,standardProps:s}):this.mutate({startDelta:c,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:c,standardProps:s})}}moveStart(e){let t=D(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=D(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=D(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let r={allDay:e},{maintainDuration:i}=t;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:t}=this._context,r=this._instance,i=M(e);return this._def.hasEnd?t.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):t.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),l=jt(s,t.instanceId);l=Ut(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let o=new R(i,r,t);this._def=l.defs[r.defId],this._instance=l.instances[t.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:l}),i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:J(l,i,t),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,t=lr(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new le(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:r}=t,{startStr:i,endStr:s}=this,l={allDay:t.allDay};return t.title&&(l.title=t.title),i&&(l.start=i),s&&(l.end=s),t.publicId&&(l.id=t.publicId),t.groupId&&(l.groupId=t.groupId),t.url&&(l.url=t.url),r.display&&r.display!=="auto"&&(l.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?l.color=r.backgroundColor:(r.backgroundColor&&(l.backgroundColor=r.backgroundColor),r.borderColor&&(l.borderColor=r.borderColor)),r.textColor&&(l.textColor=r.textColor),r.classNames.length&&(l.classNames=r.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,t.extendedProps):l.extendedProps=t.extendedProps),l}toJSON(){return this.toPlainObject()}}function lr(n){let e=n._def,t=n._instance;return{defs:{[e.defId]:e},instances:t?{[t.instanceId]:t}:{}}}function J(n,e,t){let{defs:r,instances:i}=n,s=[],l=t?t.instanceId:"";for(let a in i){let o=i[a],c=r[o.defId];o.instanceId!==l&&s.push(new R(e,c,o))}return s}function mn(n,e,t,r){let i={},s={},l={},a=[],o=[],c=Ue(n.defs,e);for(let d in n.defs){let u=n.defs[d];c[u.defId].display==="inverse-background"&&(u.groupId?(i[u.groupId]=[],l[u.groupId]||(l[u.groupId]=u)):s[d]=[])}for(let d in n.instances){let u=n.instances[d],h=n.defs[u.defId],f=c[h.defId],b=u.range,m=!h.allDay&&r?Xn(b,r):b,v=de(m,t);v&&(f.display==="inverse-background"?h.groupId?i[h.groupId].push(v):s[u.defId].push(v):f.display!=="none"&&(f.display==="background"?a:o).push({def:h,ui:f,instance:u,range:v,isStart:m.start&&m.start.valueOf()===v.start.valueOf(),isEnd:m.end&&m.end.valueOf()===v.end.valueOf()}))}for(let d in i){let u=i[d],h=un(u,t);for(let f of h){let b=l[d],m=c[b.defId];a.push({def:b,ui:m,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let d in s){let u=s[d],h=un(u,t);for(let f of h)a.push({def:n.defs[d],ui:c[d],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function vn(n,e){n.fcSeg=e}function ue(n){return n.fcSeg||n.parentNode.fcSeg||null}function Ue(n,e){return ne(n,t=>ar(t,e))}function ar(n,e){let t=[];return e[""]&&t.push(e[""]),e[n.defId]&&t.push(e[n.defId]),t.push(n.ui),Hs(t)}function Js(n,e){let t=n.map(Ks);return t.sort((r,i)=>gi(r,i,e)),t.map(r=>r._seg)}function Ks(n){let{eventRange:e}=n,t=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},t.extendedProps),t),{id:t.publicId,start:i,end:s,duration:s-i,allDay:Number(t.allDay),_seg:n})}function el(n,e){let{pluginHooks:t}=e,r=t.isDraggableTransformers,{def:i,ui:s}=n.eventRange,l=s.startEditable;for(let a of r)l=a(l,i,s,e);return l}function tl(n,e){return n.isStart&&n.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function nl(n,e){return n.isEnd&&n.eventRange.ui.durationEditable}function or(n,e,t,r,i,s,l){let{dateEnv:a,options:o}=t,{displayEventTime:c,displayEventEnd:d}=o,u=n.eventRange.def,h=n.eventRange.instance;c==null&&(c=r!==!1),d==null&&(d=i!==!1);let f=h.range.start,b=h.range.end,m=s||n.start||n.eventRange.range.start,v=l||n.end||n.eventRange.range.end,E=w(f).valueOf()===w(m).valueOf(),y=w(Q(b,-1)).valueOf()===w(Q(v,-1)).valueOf();return c&&!u.allDay&&(E||y)?(m=E?f:m,v=y?b:v,d&&u.hasEnd?a.formatRange(m,v,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(m,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function ve(n,e,t){let r=n.eventRange.range;return{isPast:r.end<(t||e.start),isFuture:r.start>=(t||e.end),isToday:e&&W(e,r.start)}}function rl(n){let e=["fc-event"];return n.isMirror&&e.push("fc-event-mirror"),n.isDraggable&&e.push("fc-event-draggable"),(n.isStartResizable||n.isEndResizable)&&e.push("fc-event-resizable"),n.isDragging&&e.push("fc-event-dragging"),n.isResizing&&e.push("fc-event-resizing"),n.isSelected&&e.push("fc-event-selected"),n.isStart&&e.push("fc-event-start"),n.isEnd&&e.push("fc-event-end"),n.isPast&&e.push("fc-event-past"),n.isToday&&e.push("fc-event-today"),n.isFuture&&e.push("fc-event-future"),e}function il(n){return n.instance?n.instance.instanceId:`${n.def.defId}:${n.range.start.toISOString()}`}function cr(n,e){let{def:t,instance:r}=n.eventRange,{url:i}=t;if(i)return{href:i};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=t.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?zn(o=>{s.trigger("eventClick",{el:o.target,event:new R(e,t,r),jsEvent:o,view:e.viewApi})}):{}}const sl={start:g,end:g,allDay:Boolean};function ll(n,e,t){let r=al(n,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(t==null)return null;i.end=e.add(i.start,t)}return r}function al(n,e){let{refined:t,extra:r}=xt(n,sl),i=t.start?e.createMarkerMeta(t.start):null,s=t.end?e.createMarkerMeta(t.end):null,{allDay:l}=t;return l==null&&(l=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:l},r)}function ol(n,e){return As(n.range,e.range)&&n.allDay===e.allDay&&cl(n,e)}function cl(n,e){for(let t in e)if(t!=="range"&&t!=="allDay"&&n[t]!==e[t])return!1;for(let t in n)if(!(t in e))return!1;return!0}function dl(n,e){return Object.assign(Object.assign({},ur(n.range,e,n.allDay)),{allDay:n.allDay})}function dr(n,e,t){return Object.assign(Object.assign({},ur(n,e,t)),{timeZone:e.timeZone})}function ur(n,e,t){return{start:e.toDate(n.start),end:e.toDate(n.end),startStr:e.formatIso(n.start,{omitTime:t}),endStr:e.formatIso(n.end,{omitTime:t})}}function ul(n,e,t){let r=er({editable:!1},t),i=vt(r.refined,r.extra,"",n.allDay,!0,t);return{def:i,ui:ar(i,e),instance:Pt(i.defId,n.range),range:n.range,isStart:!0,isEnd:!0}}function fl(n,e,t){let r=!1,i=function(a){r||(r=!0,e(a))},s=function(a){r||(r=!0,t(a))},l=n(i,s);l&&typeof l.then=="function"&&l.then(i,s)}class bn extends Error{constructor(e,t){super(e),this.response=t}}function hl(n,e,t){n=n.toUpperCase();const r={method:n};return n==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(t):(r.body=new URLSearchParams(t),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new bn("Failure parsing JSON",i)});throw new bn("Request failed",i)})}let st;function fr(){return st==null&&(st=gl()),st}function gl(){if(typeof document>"u")return!0;let n=document.createElement("div");n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.innerHTML="<table><tr><td><div></div></td></tr></table>",n.querySelector("table").style.height="100px",n.querySelector("div").style.height="100%",document.body.appendChild(n);let t=n.querySelector("div").offsetHeight>0;return document.body.removeChild(n),t}class pl extends T{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:r}=this.state,i=r||t.height==="auto"||t.contentHeight==="auto",s=!i&&t.height!=null?t.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return fr()||l.push("fc-liquid-hack"),e.children(l,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class he{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function ml(n,e){return{component:n,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function zt(n){return{[n.component.uid]:n}}const Et={};class vl{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let r=this.getCurrentData(),i;t=t||"day",i=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let a in t)i.push(a);for(s=0;s<i.length;s+=1)if(l=t[i[s]],l&&l.singleUnit===e)return l;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Se(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),r=D(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),M(t))}formatRange(e,t,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(t),M(r),r)}formatIso(e,t){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:t})}select(e,t){let r;t==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:t};let i=this.getCurrentData(),s=ll(r,i.dateEnv,D({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),sr(s,null,i))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Zs(e,t))}addEvent(e,t){if(e instanceof R){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:bt({def:l,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(t instanceof le)i=t.internalEventSource;else if(typeof t=="boolean")t&&([i]=Ot(r.eventSources));else if(t!=null){let l=this.getEventSourceById(t);if(!l)return console.warn(`Could not find an event source with ID "${t}"`),null;i=l.internalEventSource}let s=Kn(e,i,r,!1);if(s){let l=new R(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:bt(s)}),this.triggerEventAdd(l),l}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:lr(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:r,instances:i}=t.eventStore;e=String(e);for(let s in r){let l=r[s];if(l.publicId===e){if(l.recurringDef)return new R(t,l,null);for(let a in i){let o=i[a];if(o.defId===l.defId)return new R(t,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return J(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,r=[];for(let i in t)r.push(new le(e,t[i]));return r}getEventSourceById(e){let t=this.getCurrentData(),r=t.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new le(t,r[i]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof le)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=tr(e,t);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new le(t,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=D(e);t&&this.trigger("_scrollRequest",{time:t})}}function bl(n,e){return n.left>=e.left&&n.left<e.right&&n.top>=e.top&&n.top<e.bottom}function hr(n,e){let t={left:Math.max(n.left,e.left),right:Math.min(n.right,e.right),top:Math.max(n.top,e.top),bottom:Math.min(n.bottom,e.bottom)};return t.left<t.right&&t.top<t.bottom?t:!1}function El(n,e){return{left:Math.min(Math.max(n.left,e.left),e.right),top:Math.min(Math.max(n.top,e.top),e.bottom)}}function yl(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function Al(n,e){return{left:n.left-e.left,top:n.top-e.top}}function gr(n,e,t,r){return{dow:n.getUTCDay(),isDisabled:!!(r&&!W(r.activeRange,n)),isOther:!!(r&&!W(r.currentRange,n)),isToday:!!(e&&W(e,n)),isPast:!!(t?n<t:e&&n<e.start),isFuture:!!(t?n>t:e&&n>=e.end)}}function Ft(n,e){let t=["fc-day",`fc-day-${wi[n.dow]}`];return n.isDisabled?t.push("fc-day-disabled"):(n.isToday&&(t.push("fc-day-today"),t.push(e.getClass("today"))),n.isPast&&t.push("fc-day-past"),n.isFuture&&t.push("fc-day-future"),n.isOther&&t.push("fc-day-other")),t}const Sl=M({year:"numeric",month:"long",day:"numeric"}),Dl=M({week:"long"});function yt(n,e,t="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=n;let a=i.format(e,t==="week"?Dl:Sl);if(s.navLinks){let o=i.toDate(e);const c=d=>{let u=t==="day"?s.navLinkDayClick:t==="week"?s.navLinkWeekClick:null;typeof u=="function"?u.call(l,i.toDate(e),d):(typeof u=="string"&&(t=u),l.zoomTo(e,t))};return Object.assign({title:pe(s.navLinkHint,[a,o],a),"data-navlink":""},r?Un(c):{onClick:c})}return{"aria-label":a}}let lt=null;function Cl(){return lt===null&&(lt=wl()),lt}function wl(){let n=document.createElement("div");ge(n,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),n.innerHTML="<div></div>",document.body.appendChild(n);let t=n.firstChild.getBoundingClientRect().left>n.getBoundingClientRect().left;return wt(n),t}let at;function Rl(){return at||(at=Tl()),at}function Tl(){let n=document.createElement("div");n.style.overflow="scroll",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",document.body.appendChild(n);let e=pr(n);return document.body.removeChild(n),e}function pr(n){return{x:n.offsetHeight-n.clientHeight,y:n.offsetWidth-n.clientWidth}}function Il(n,e=!1){let t=window.getComputedStyle(n),r=parseInt(t.borderLeftWidth,10)||0,i=parseInt(t.borderRightWidth,10)||0,s=parseInt(t.borderTopWidth,10)||0,l=parseInt(t.borderBottomWidth,10)||0,a=pr(n),o=a.y-r-i,c=a.x-s-l,d={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return Cl()&&t.direction==="rtl"?d.scrollbarLeft=o:d.scrollbarRight=o,e&&(d.paddingLeft=parseInt(t.paddingLeft,10)||0,d.paddingRight=parseInt(t.paddingRight,10)||0,d.paddingTop=parseInt(t.paddingTop,10)||0,d.paddingBottom=parseInt(t.paddingBottom,10)||0),d}function Ml(n,e=!1,t){let r=t?n.getBoundingClientRect():Vt(n),i=Il(n,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function Vt(n){let e=n.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function xl(n){let e=mr(n),t=n.getBoundingClientRect();for(let r of e){let i=hr(t,r.getBoundingClientRect());if(i)t=i;else return null}return t}function mr(n){let e=[];for(;n instanceof HTMLElement;){let t=window.getComputedStyle(n);if(t.position==="fixed")break;/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)&&e.push(n),n=n.parentNode}return e}class ze{constructor(e,t,r,i){this.els=t;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let t=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();t.push(s.left-e),r.push(s.right-e)}this.lefts=t,this.rights=r}buildElVerticals(e){let t=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();t.push(s.top-e),r.push(s.bottom-e)}this.tops=t,this.bottoms=r}leftToIndex(e){let{lefts:t,rights:r}=this,i=t.length,s;for(s=0;s<i;s+=1)if(e>=t[s]&&e<r[s])return s}topToIndex(e){let{tops:t,bottoms:r}=this,i=t.length,s;for(s=0;s<i;s+=1)if(e>=t[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Te(this.tops||[],e.tops||[])&&Te(this.bottoms||[],e.bottoms||[])&&Te(this.lefts||[],e.lefts||[])&&Te(this.rights||[],e.rights||[])}}function Te(n,e){const t=n.length;if(t!==e.length)return!1;for(let r=0;r<t;r++)if(Math.round(n[r])!==Math.round(e[r]))return!1;return!0}class Wt{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class kl extends Wt{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Ol extends Wt{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class se extends T{constructor(){super(...arguments),this.uid=te()}prepareHits(){}queryHit(e,t,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!x(e,".fc-event-mirror")}isValidDateDownEl(e){return!x(e,".fc-event:not(.fc-bg-event)")&&!x(e,".fc-more-link")&&!x(e,"a[data-navlink]")&&!x(e,".fc-popover")}}class Nl{constructor(e=t=>t.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let r of e)this.insertEntry(r,t);return t}insertEntry(e,t){let r=this.findInsertion(e);return this.isInsertionValid(r,e)?(this.insertEntryAt(e,r),1):this.handleInvalidInsertion(r,e,t)}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,r){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,r):(r.push(t),0)}splitEntry(e,t,r){let i=0,s=[],l=e.span,a=t.span;return l.start<a.start&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.start,end:a.start}},s)),l.end>a.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:l.end}},s)),i?(r.push({index:e.index,thickness:e.thickness,span:vr(a,l)},...s),i):(r.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:r,levelCoords:i}=this;t.lateral===-1?(ot(i,t.level,t.levelCoord),ot(r,t.level,[e])):ot(r[t.level],t.lateral,e),this.stackCnts[be(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=t.length,a=0,o=-1,c=-1,d=null,u=0;for(let b=0;b<l;b+=1){let m=t[b];if(!i&&m>=a+this.getEntryThickness(e))break;let v=r[b],E,y=yn(v,e.span.start,En),A=y[0]+y[1];for(;(E=v[A])&&E.span.start<e.span.end;){let S=m+this.getEntryThickness(E);S>a&&(a=S,d=E,o=b,c=A),S===a&&(u=Math.max(u,s[be(E)]+1)),A+=1}}let h=0;if(d)for(h=o+1;h<l&&t[h]<a;)h+=1;let f=-1;return h<l&&t[h]===a&&(f=yn(r[h],e.span.end,En)[0]),{touchingLevel:o,touchingLateral:c,touchingEntry:d,stackCnt:u,levelCoord:a,level:h,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let l=e[s],a=t[s];for(let o of l)i.push(Object.assign(Object.assign({},o),{thickness:this.getEntryThickness(o),levelCoord:a}))}return i}}function En(n){return n.span.end}function be(n){return n.index+":"+n.span.start}function vr(n,e){let t=Math.max(n.start,e.start),r=Math.min(n.end,e.end);return t<r?{start:t,end:r}:null}function ot(n,e,t){n.splice(e,0,t)}function yn(n,e,t){let r=0,i=n.length;if(!i||e<t(n[r]))return[0,0];if(e>t(n[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),l=t(n[s]);if(e<l)i=s;else if(e>l)r=s+1;else return[s,1]}return[r,0]}class Hl{constructor(e,t){this.emitter=new qe}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Gt={};function Pl(n,e){return!n||e>10?M({weekday:"short"}):e>1?M({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):M({weekday:"long"})}const br="fc-col-header-cell";function Er(n){return n.text}class Bl extends T{render(){let{dateEnv:e,options:t,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=gr(l,s.todayRange,null,a),c=[br].concat(Ft(o,r)),d=e.format(l,s.dayHeaderFormat),u=!o.isDisabled&&s.colCnt>1?yt(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:d}),o);return p(z,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:It(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:Er,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},f=>p("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&p(f,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const jl=M({weekday:"long"});class Ll extends T{render(){let{props:e}=this,{dateEnv:t,theme:r,viewApi:i,options:s}=this.context,l=k(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=t.format(l,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:i}),e.extraRenderProps),{text:o});return p(z,{elTag:"th",elClasses:[br,...Ft(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:Er,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},d=>p("div",{className:"fc-scrollgrid-sync-inner"},p(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(l,jl)}})))}}class Qt extends Ve{constructor(e,t){super(e,t),this.initialNowDate=Se(t.options.now,t.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,r=Q(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=t.dateEnv.startOf(r,e.unit),s=t.dateEnv.add(i,D(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:An(i)},nextState:{nowDate:s,todayRange:An(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Qt.contextType=re;function An(n){let e=w(n),t=k(e,1);return{start:e,end:t}}class _l extends T{constructor(){super(...arguments),this.createDayHeaderFormatter=C(Ul)}render(){let{context:e}=this,{dates:t,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,t.length);return p(Qt,{unit:"day"},(a,o)=>p("tr",{role:"row"},s&&s("day"),t.map(c=>i?p(Bl,{key:c.toISOString(),date:c,dateProfile:r,todayRange:o,colCnt:t.length,dayHeaderFormat:l}):p(Ll,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:l}))))}}function Ul(n,e,t){return n||Pl(e,t)}class zl{constructor(e,t){let r=e.start,{end:i}=e,s=[],l=[],a=-1;for(;r<i;)t.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),l.push(r)),r=k(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let t=this.getDateDayIndex(e.start),r=this.getDateDayIndex(k(e.end,-1)),i=Math.max(0,t),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:t===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:t}=this,r=Math.floor(fe(this.dates[0],e));return r<0?t[0]-1:r>=t.length?t[t.length-1]+1:t[r]}}class Fl{constructor(e,t){let{dates:r}=e,i,s,l;if(t){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);l=Math.ceil(r.length/i)}else l=1,i=r.length;this.rowCnt=l,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(t,i));e.push(r)}return e}buildCell(e,t){let r=this.daySeries.dates[e*this.colCnt+t];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:l}=r,a=s;for(;a<=l;){let o=Math.floor(a/t),c=Math.min((o+1)*t,l+1);i.push({row:o,firstCol:a%t,lastCol:(c-1)%t,isStart:r.isStart&&a===s,isEnd:r.isEnd&&c-1===l}),a=c}}return i}}class Vl{constructor(){this.sliceBusinessHours=C(this._sliceBusinessHours),this.sliceDateSelection=C(this._sliceDateSpan),this.sliceEventStore=C(this._sliceEventStore),this.sliceEventDrag=C(this._sliceInteraction),this.sliceEventResize=C(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,r,i,...s){let{eventUiBases:l}=e,a=this.sliceEventStore(e.eventStore,l,t,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,r,l,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,r,i,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,t,r,...s),eventResize:this.sliceEventResize(e.eventResize,l,t,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,t,r,i,...s){return this._sliceDateSpan({range:{start:e,end:Q(e,1)},allDay:!1},t,r,{},i,...s)}_sliceBusinessHours(e,t,r,i,...s){return e?this._sliceEventStore(ee(e,Ie(t,!!r),i),{},t,r,...s).bg:[]}_sliceEventStore(e,t,r,i,...s){if(e){let l=mn(e,t,Ie(r,!!i),i);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,r,i,...s){if(!e)return null;let l=mn(e.mutatedEvents,t,Ie(r,!!i),i);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,r,i,s,...l){if(!e)return[];let a=Ie(t,!!r),o=de(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let c=ul(e,i,s),d=this.sliceRange(e.range,...l);for(let u of d)u.eventRange=c;return d}return[]}sliceEventRanges(e,t){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,t));return r}sliceEventRange(e,t){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:k(r.start,1)});let i=this.sliceRange(r,...t);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function Ie(n,e){let t=n.activeRange;return e?t:{start:Q(t.start,n.slotMinTime.milliseconds),end:Q(t.end,n.slotMaxTime.milliseconds-864e5)}}function yr(n,e,t){let{instances:r}=n.mutatedEvents;for(let i in r)if(!Qe(e.validRange,r[i].range))return!1;return Ar({eventDrag:n},t)}function Wl(n,e,t){return Qe(e.validRange,n.range)?Ar({dateSelection:n},t):!1}function Ar(n,e){let t=e.getCurrentData(),r=Object.assign({businessHours:t.businessHours,dateSelection:"",eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},n);return(e.pluginHooks.isPropsValid||Gl)(r,e)}function Gl(n,e,t={},r){return!(n.eventDrag&&!Ql(n,e,t,r)||n.dateSelection&&!Yl(n,e,t,r))}function Ql(n,e,t,r){let i=e.getCurrentData(),s=n.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,c=Ue(a,s.isEvent?n.eventUiBases:{"":i.selectionConfig});r&&(c=ne(c,r));let d=Fs(n.eventStore,s.affectedEvents.instances),u=d.defs,h=d.instances,f=Ue(u,n.eventUiBases);for(let b in o){let m=o[b],v=m.range,E=c[m.defId],y=a[m.defId];if(!Sr(E.constraints,v,d,n.businessHours,e))return!1;let{eventOverlap:A}=e.options,S=typeof A=="function"?A:null;for(let B in h){let O=h[B];if(Ht(v,O.range)&&(f[O.defId].overlap===!1&&s.isEvent||E.overlap===!1||S&&!S(new R(e,u[O.defId],O),new R(e,y,m))))return!1}let P=i.eventStore;for(let B of E.allows){let O=Object.assign(Object.assign({},t),{range:m.range,allDay:y.allDay}),I=P.defs[y.defId],qr=P.instances[b],$e;if(I?$e=new R(e,I,qr):$e=new R(e,y),!B(_t(O,e),$e))return!1}}return!0}function Yl(n,e,t,r){let i=n.eventStore,s=i.defs,l=i.instances,a=n.dateSelection,o=a.range,{selectionConfig:c}=e.getCurrentData();if(r&&(c=r(c)),!Sr(c.constraints,o,i,n.businessHours,e))return!1;let{selectOverlap:d}=e.options,u=typeof d=="function"?d:null;for(let h in l){let f=l[h];if(Ht(o,f.range)&&(c.overlap===!1||u&&!u(new R(e,s[f.defId],f),null)))return!1}for(let h of c.allows){let f=Object.assign(Object.assign({},t),a);if(!h(_t(f,e),null))return!1}return!0}function Sr(n,e,t,r,i){for(let s of n)if(!Zl(ql(s,e,t,r,i),e))return!1;return!0}function ql(n,e,t,r,i){return n==="businessHours"?ct(ee(r,e,i)):typeof n=="string"?ct(Ye(t,s=>s.groupId===n)):typeof n=="object"&&n?ct(ee(n,e,i)):[]}function ct(n){let{instances:e}=n,t=[];for(let r in e)t.push(e[r].range);return t}function Zl(n,e){for(let t of n)if(Qe(t,e))return!0;return!1}const Me=/^(visible|hidden)$/;class Xl extends T{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,U(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:r}=e,i=t&&r,s=["fc-scroller"];return t&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),p("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Me.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(Me.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return Me.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Me.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ${constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(t,r)=>{let{depths:i,currentMap:s}=this,l=!1,a=!1;t!==null?(l=r in s,s[r]=t,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(r)),a&&this.masterCallback(t,String(r)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),t}collect(e,t,r){return is(this.currentMap,e,t,r)}getAll(){return Ot(this.currentMap)}}function $l(n){let e=ii(n,".fc-scrollgrid-shrink"),t=0;for(let r of e)t=Math.max(t,bi(r));return Math.ceil(t)}function Dr(n,e){return n.liquid&&e.liquid}function Jl(n,e){return e.maxHeight!=null||Dr(n,e)}function Kl(n,e,t,r){let{expandRows:i}=t;return typeof e.content=="function"?e.content(t):p("table",{role:"presentation",className:[e.tableClassName,n.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:i?t.clientHeight:""}},t.tableColGroupNode,p(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(t):e.rowContent))}function ea(n,e){return G(n,e,L)}function ta(n,e){let t=[];for(let r of n){let i=r.span||1;for(let s=0;s<i;s+=1)t.push(p("col",{style:{width:r.width==="shrink"?na(e):r.width||"",minWidth:r.minWidth||""}}))}return p("colgroup",{},...t)}function na(n){return n??4}function ra(n){for(let e of n)if(e.width==="shrink")return!0;return!1}function ia(n,e){let t=["fc-scrollgrid",e.theme.getClass("table")];return n&&t.push("fc-scrollgrid-liquid"),t}function sa(n,e){let t=["fc-scrollgrid-section",`fc-scrollgrid-section-${n.type}`,n.className];return e&&n.liquid&&n.maxHeight==null&&t.push("fc-scrollgrid-section-liquid"),n.isSticky&&t.push("fc-scrollgrid-section-sticky"),t}function la(n){return p("div",{className:"fc-scrollgrid-sticky-shim",style:{width:n.clientWidth,minWidth:n.tableMinWidth}})}function Sn(n){let{stickyHeaderDates:e}=n;return(e==null||e==="auto")&&(e=n.height==="auto"||n.viewHeight==="auto"),e}function aa(n){let{stickyFooterScrollbar:e}=n;return(e==null||e==="auto")&&(e=n.height==="auto"||n.viewHeight==="auto"),e}class Cr extends T{constructor(){super(...arguments),this.processCols=C(e=>e,ea),this.renderMicroColGroup=C(ta),this.scrollerRefs=new $,this.scrollerElRefs=new $(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,t.shrinkWidth),a=ia(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=i.length,c=0,d,u=[],h=[],f=[];for(;c<o&&(d=i[c]).type==="header";)u.push(this.renderSection(d,l,!0)),c+=1;for(;c<o&&(d=i[c]).type==="body";)h.push(this.renderSection(d,l,!1)),c+=1;for(;c<o&&(d=i[c]).type==="footer";)f.push(this.renderSection(d,l,!0)),c+=1;let b=!fr();const m={role:"rowgroup"};return p("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!b&&u.length)&&p("thead",m,...u),!!(!b&&h.length)&&p("tbody",m,...h),!!(!b&&f.length)&&p("tfoot",m,...f),b&&p("tbody",m,...u,...h,...f))}renderSection(e,t,r){return"outerContent"in e?p(N,{key:e.key},e.outerContent):p("tr",{key:e.key,role:"presentation",className:sa(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,r))}renderChunkTd(e,t,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:a,scrollerClientHeights:o}=this.state,c=Jl(s,e),d=Dr(s,e),u=s.liquid?l?"scroll":c?"auto":"hidden":"visible",h=e.key,f=Kl(e,r,{tableColGroupNode:t,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:o[h]!==void 0?o[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return p(i?"th":"td",{ref:r.elRef,role:"presentation"},p("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},p(Xl,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:u,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let r=oa(this.props.sections,t);r&&U(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return ra(this.props.cols)?$l(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Rl(),{scrollerRefs:t,scrollerElRefs:r}=this,i=!1,s={},l={};for(let a in t.currentMap){let o=t.currentMap[a];if(o&&o.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let o=a.key,c=r.currentMap[o];if(c){let d=c.parentNode;s[o]=Math.floor(d.getBoundingClientRect().width-(i?e.y:0)),l[o]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}Cr.addStateEquality({scrollerClientWidths:L,scrollerClientHeights:L});function oa(n,e){for(let t of n)if(t.key===e)return t;return null}class Yt extends T{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&vn(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:r}=t,{seg:i}=e,{eventRange:s}=i,{ui:l}=s,a={event:new R(t,s.def,s.instance),view:t.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&el(i,t),isStartResizable:!e.disableResizing&&tl(i,t),isEndResizable:!e.disableResizing&&nl(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return p(z,Object.assign({},e,{elRef:this.handleEl,elClasses:[...rl(a),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&vn(this.el,this.props.seg)}}class ca extends T{render(){let{props:e,context:t}=this,{options:r}=t,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,a=or(i,l,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return p(Yt,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:cr(i,t),defaultGenerator:da,timeText:a}),(o,c)=>p(N,null,p(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function da(n){return p("div",{className:"fc-event-main-frame"},n.timeText&&p("div",{className:"fc-event-time"},n.timeText),p("div",{className:"fc-event-title-container"},p("div",{className:"fc-event-title fc-sticky"},n.event.title||p(N,null," "))))}const ua=M({day:"numeric"});class wr extends T{constructor(){super(...arguments),this.refineRenderProps=Oe(fa)}render(){let{props:e,context:t}=this,{options:r}=t,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:r.monthStartFormat});return p(z,Object.assign({},e,{elClasses:[...Ft(i,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":It(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function Rr(n){return!!(n.dayCellContent||mt("dayCellContent",n))}function fa(n){let{date:e,dateEnv:t,dateProfile:r,isMonthStart:i}=n,s=gr(e,n.todayRange,null,r),l=n.showDayNumber?t.format(e,i?n.monthStartFormat:ua):"";return Object.assign(Object.assign(Object.assign({date:t.toDate(e),view:n.viewApi},s),{isMonthStart:i,dayNumberText:l}),n.extraRenderProps)}class ha extends T{render(){let{props:e}=this,{seg:t}=e;return p(Yt,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:ga,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function ga(n){let{title:e}=n.event;return e&&p("div",{className:"fc-event-title"},n.event.title)}function pa(n){return p("div",{className:`fc-${n}`})}const ma=n=>p(re.Consumer,null,e=>{let{dateEnv:t,options:r}=e,{date:i}=n,s=r.weekNumberFormat||n.defaultFormat,l=t.computeWeekNumber(i),a=t.format(i,s);return p(z,Object.assign({},n,{renderProps:{num:l,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:va,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function va(n){return n.text}const dt=10;class ba extends T{constructor(){super(...arguments),this.state={titleId:We()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&U(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=Ln(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return $r(p("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),p("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},p("span",{className:"fc-popover-title",id:i.titleId},r.title),p("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),p("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:r}=this.props,{rootEl:i}=this,s=xl(t);if(s){let l=i.getBoundingClientRect(),a=r?x(t,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,dt),o=Math.min(o,document.documentElement.clientWidth-dt-l.width),o=Math.max(o,dt);let c=i.offsetParent.getBoundingClientRect();ge(i,{top:a-c.top,left:o-c.left})}}}class Ea extends se{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:l}=r,a=t.format(i,e.dayPopoverFormat);return p(wr,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(o,c,d)=>p(ba,{elRef:d.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Rr(e)&&p(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,t,r,i){let{rootEl:s,props:l}=this;return e>=0&&e<r&&t>=0&&t<i?{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class ya extends T{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:We()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&U(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:r}=this,{moreLinkClick:i}=r.options,s=Dn(t).start;function l(a){let{def:o,instance:c,range:d}=a.eventRange;return{event:new R(r,o,c),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!t.allDayDate,allSegs:t.allSegs.map(l),hiddenSegs:t.hiddenSegs.map(l),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return p(re.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:a}=s,{moreCnt:o}=e,c=Dn(e),d=typeof a=="function"?a.call(l,o):`+${o} ${a}`,u=pe(s.moreLinkHint,[o],d),h={num:o,shortText:`+${o}`,text:d,view:i};return p(N,null,!!e.moreCnt&&p(z,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Un(this.handleClick)),{title:u,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Aa,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),t.isPopoverOpen&&p(Ea,{id:t.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=x(this.linkEl,".fc-view-harness"))}}function Aa(n){return n.text}function Dn(n){if(n.allDayDate)return{start:n.allDayDate,end:k(n.allDayDate,1)};let{hiddenSegs:e}=n;return{start:Sa(e),end:Ca(e)}}function Sa(n){return n.reduce(Da).eventRange.range.start}function Da(n,e){return n.eventRange.range.start<e.eventRange.range.start?n:e}function Ca(n){return n.reduce(wa).eventRange.range.end}function wa(n,e){return n.eventRange.range.end>e.eventRange.range.end?n:e}const Ra=[],Tr={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Ir=Object.assign(Object.assign({},Tr),{buttonHints:{prev:"Previous $0",next:"Next $0",today(n,e){return e==="day"?"Today":`This ${n}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(n){return`Show ${n} more event${n===1?"":"s"}`}});function Ta(n){let e=n.length>0?n[0].code:"en",t=Ra.concat(n),r={en:Ir};for(let i of t)r[i.code]=i;return{map:r,defaultCode:e}}function Mr(n,e){return typeof n=="object"&&!Array.isArray(n)?xr(n.code,[n.code],n):Ia(n,e)}function Ia(n,e){let t=[].concat(n||[]),r=Ma(t,e)||Ir;return xr(n,t,r)}function Ma(n,e){for(let t=0;t<n.length;t+=1){let r=n[t].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function xr(n,e,t){let r=kt([Tr,t],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:n,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(n),options:r}}function Y(n){return{id:te(),name:n.name,premiumReleaseDate:n.premiumReleaseDate?new Date(n.premiumReleaseDate):void 0,deps:n.deps||[],reducers:n.reducers||[],isLoadingFuncs:n.isLoadingFuncs||[],contextInit:[].concat(n.contextInit||[]),eventRefiners:n.eventRefiners||{},eventDefMemberAdders:n.eventDefMemberAdders||[],eventSourceRefiners:n.eventSourceRefiners||{},isDraggableTransformers:n.isDraggableTransformers||[],eventDragMutationMassagers:n.eventDragMutationMassagers||[],eventDefMutationAppliers:n.eventDefMutationAppliers||[],dateSelectionTransformers:n.dateSelectionTransformers||[],datePointTransforms:n.datePointTransforms||[],dateSpanTransforms:n.dateSpanTransforms||[],views:n.views||{},viewPropsTransformers:n.viewPropsTransformers||[],isPropsValid:n.isPropsValid||null,externalDefTransforms:n.externalDefTransforms||[],viewContainerAppends:n.viewContainerAppends||[],eventDropTransformers:n.eventDropTransformers||[],componentInteractions:n.componentInteractions||[],calendarInteractions:n.calendarInteractions||[],themeClasses:n.themeClasses||{},eventSourceDefs:n.eventSourceDefs||[],cmdFormatter:n.cmdFormatter,recurringTypes:n.recurringTypes||[],namedTimeZonedImpl:n.namedTimeZonedImpl,initialView:n.initialView||"",elementDraggingImpl:n.elementDraggingImpl,optionChangeHandlers:n.optionChangeHandlers||{},scrollGridImpl:n.scrollGridImpl||null,listenerRefiners:n.listenerRefiners||{},optionRefiners:n.optionRefiners||{},propSetHandlers:n.propSetHandlers||{}}}function xa(n,e){let t={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(s){for(let l of s){const a=l.name,o=t[a];o===void 0?(t[a]=l.id,i(l.deps),r=Oa(r,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return n&&i(n),i(e),r}function ka(){let n=[],e=[],t;return(r,i)=>((!t||!G(r,n)||!G(i,e))&&(t=xa(r,i)),n=r,e=i,t)}function Oa(n,e){return{premiumReleaseDate:Na(n.premiumReleaseDate,e.premiumReleaseDate),reducers:n.reducers.concat(e.reducers),isLoadingFuncs:n.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:n.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},n.eventRefiners),e.eventRefiners),eventDefMemberAdders:n.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},n.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:n.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:n.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:n.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:n.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:n.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:n.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},n.views),e.views),viewPropsTransformers:n.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||n.isPropsValid,externalDefTransforms:n.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:n.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:n.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:n.calendarInteractions.concat(e.calendarInteractions),componentInteractions:n.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},n.themeClasses),e.themeClasses),eventSourceDefs:n.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||n.cmdFormatter,recurringTypes:n.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||n.namedTimeZonedImpl,initialView:n.initialView||e.initialView,elementDraggingImpl:n.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},n.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||n.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},n.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},n.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},n.propSetHandlers),e.propSetHandlers)}}function Na(n,e){return n===void 0?e:e===void 0?n:new Date(Math.max(n.valueOf(),e.valueOf()))}class q extends Ae{}q.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};q.prototype.baseIconClass="fc-icon";q.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"};q.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};q.prototype.iconOverrideOption="buttonIcons";q.prototype.iconOverrideCustomButtonOption="icon";q.prototype.iconOverridePrefix="fc-icon-";function Ha(n,e){let t={},r;for(r in n)At(r,t,n,e);for(r in e)At(r,t,n,e);return t}function At(n,e,t,r){if(e[n])return e[n];let i=Pa(n,e,t,r);return i&&(e[n]=i),i}function Pa(n,e,t,r){let i=t[n],s=r[n],l=d=>i&&i[d]!==null?i[d]:s&&s[d]!==null?s[d]:null,a=l("component"),o=l("superType"),c=null;if(o){if(o===n)throw new Error("Can't have a custom view type that references itself");c=At(o,e,t,r)}return!a&&c&&(a=c.component),a?{type:n,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function Cn(n){return ne(n,Ba)}function Ba(n){let e=typeof n=="function"?{component:n}:n,{component:t}=e;return e.content?t=wn(e):t&&!(t.prototype instanceof T)&&(t=wn(Object.assign(Object.assign({},e),{content:t}))),{superType:e.type,component:t,rawOptions:e}}function wn(n){return e=>p(re.Consumer,null,t=>p(z,{elTag:"div",elClasses:qn(t.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:t.options.nextDayThreshold}),generatorName:void 0,customGenerator:n.content,classNameGenerator:n.classNames,didMount:n.didMount,willUnmount:n.willUnmount}))}function ja(n,e,t,r){let i=Cn(n),s=Cn(e.views),l=Ha(i,s);return ne(l,a=>La(a,s,e,t,r))}function La(n,e,t,r,i){let s=n.overrides.duration||n.defaults.duration||r.duration||t.duration,l=null,a="",o="",c={};if(s&&(l=_a(s),l)){let h=gt(l);a=h.unit,h.value===1&&(o=a,c=e[a]?e[a].rawOptions:{})}let d=h=>{let f=h.buttonText||{},b=n.defaults.buttonTextKey;return b!=null&&f[b]!=null?f[b]:f[n.type]!=null?f[n.type]:f[o]!=null?f[o]:null},u=h=>{let f=h.buttonHints||{},b=n.defaults.buttonTextKey;return b!=null&&f[b]!=null?f[b]:f[n.type]!=null?f[n.type]:f[o]!=null?f[o]:null};return{type:n.type,component:n.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:n.defaults,optionOverrides:Object.assign(Object.assign({},c),n.overrides),buttonTextOverride:d(r)||d(t)||n.overrides.buttonText,buttonTextDefault:d(i)||n.defaults.buttonText||d(me)||n.type,buttonTitleOverride:u(r)||u(t)||n.overrides.buttonHint,buttonTitleDefault:u(i)||n.defaults.buttonHint||u(me)}}let Rn={};function _a(n){let e=JSON.stringify(n),t=Rn[e];return t===void 0&&(t=D(n),Rn[e]=t),t}function Ua(n,e){switch(e.type){case"CHANGE_VIEW_TYPE":n=e.viewType}return n}function za(n,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},n),{[e.optionName]:e.rawOptionValue});default:return n}}function Fa(n,e,t,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||t);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(n,t),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(n,t),i.isValid)return i;break}return n}function Va(n,e,t){let r=e?e.activeRange:null;return Or({},Xa(n,t),r,t)}function Wa(n,e,t,r){let i=t?t.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Or(n,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Qa(n,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return t?Nr(n,i,r):n;case"FETCH_EVENT_SOURCES":return qt(n,e.sourceIds?Vn(e.sourceIds):Hr(n,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Za(n,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return n}}function Ga(n,e,t){let r=e?e.activeRange:null;return qt(n,Hr(n,t),r,!0,t)}function kr(n){for(let e in n)if(n[e].isFetching)return!0;return!1}function Or(n,e,t,r){let i={};for(let s of e)i[s.sourceId]=s;return t&&(i=Nr(i,t,r)),Object.assign(Object.assign({},n),i)}function Qa(n,e){return K(n,t=>t.sourceId!==e)}function Nr(n,e,t){return qt(n,K(n,r=>Ya(r,e,t)),e,!1,t)}function Ya(n,e,t){return Pr(n,t)?!t.options.lazyFetching||!n.fetchRange||n.isFetching||e.start<n.fetchRange.start||e.end>n.fetchRange.end:!n.latestFetchId}function qt(n,e,t,r,i){let s={};for(let l in n){let a=n[l];e[l]?s[l]=qa(a,t,r,i):s[l]=a}return s}function qa(n,e,t,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[n.sourceDefId],a=te();return l.fetch({eventSource:n,range:e,isRefetch:t,context:r},o=>{let{rawEvents:c}=o;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(s,c,o.response)||c),n.success&&(c=n.success.call(s,c,o.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},o=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,o),c=!0),n.failure&&(n.failure(o),c=!0),c||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},n),{isFetching:!0,latestFetchId:a})}function Za(n,e,t,r){let i=n[e];return i&&t===i.latestFetchId?Object.assign(Object.assign({},n),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):n}function Hr(n,e){return K(n,t=>Pr(t,e))}function Xa(n,e){let t=nr(e),r=[].concat(n.eventSources||[]),i=[];n.initialEvents&&r.unshift(n.initialEvents),n.events&&r.unshift(n.events);for(let s of r){let l=tr(s,e,t);l&&i.push(l)}return i}function Pr(n,e){return!e.pluginHooks.eventSourceDefs[n.sourceDefId].ignoreRange}function $a(n,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return n}}function Ja(n,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return n}}function Ka(n,e){let t;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return n}}function eo(n,e){let t;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return n}}function to(n,e,t,r,i){let s=n.headerToolbar?Tn(n.headerToolbar,n,e,t,r,i):null,l=n.footerToolbar?Tn(n.footerToolbar,n,e,t,r,i):null;return{header:s,footer:l}}function Tn(n,e,t,r,i,s){let l={},a=[],o=!1;for(let c in n){let d=n[c],u=no(d,e,t,r,i,s);l[c]=u.widgets,a.push(...u.viewsWithButtons),o=o||u.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function no(n,e,t,r,i,s){let l=e.direction==="rtl",a=e.customButtons||{},o=t.buttonText||{},c=e.buttonText||{},d=t.buttonHints||{},u=e.buttonHints||{},h=n?n.split(" "):[],f=[],b=!1;return{widgets:h.map(v=>v.split(",").map(E=>{if(E==="title")return b=!0,{buttonName:E};let y,A,S,P,B,O;if(y=a[E])S=I=>{y.click&&y.click.call(I.target,I,I.target)},(P=r.getCustomButtonIconClass(y))||(P=r.getIconClass(E,l))||(B=y.text),O=y.hint||y.text;else if(A=i[E]){f.push(E),S=()=>{s.changeView(E)},(B=A.buttonTextOverride)||(P=r.getIconClass(E,l))||(B=A.buttonTextDefault);let I=A.buttonTextOverride||A.buttonTextDefault;O=pe(A.buttonTitleOverride||A.buttonTitleDefault||e.viewHint,[I,E],I)}else if(s[E])if(S=()=>{s[E]()},(B=o[E])||(P=r.getIconClass(E,l))||(B=c[E]),E==="prevYear"||E==="nextYear"){let I=E==="prevYear"?"prev":"next";O=pe(d[I]||u[I],[c.year||"year","year"],c[E])}else O=I=>pe(d[E]||u[E],[c[I]||I,I],c[E]);return{buttonName:E,buttonClick:S,buttonIcon:P,buttonText:B,buttonHint:O}})),viewsWithButtons:f,hasTitle:b}}class ro{constructor(e,t,r){this.type=e,this.getCurrentData=t,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let io={ignoreRange:!0,parseMeta(n){return Array.isArray(n.events)?n.events:null},fetch(n,e){e({rawEvents:n.eventSource.meta})}};const so=Y({name:"array-event-source",eventSourceDefs:[io]});let lo={parseMeta(n){return typeof n.events=="function"?n.events:null},fetch(n,e,t){const{dateEnv:r}=n.context,i=n.eventSource.meta;fl(i.bind(null,dr(n.range,r)),s=>e({rawEvents:s}),t)}};const ao=Y({name:"func-event-source",eventSourceDefs:[lo]}),oo={method:String,extraParams:g,startParam:String,endParam:String,timeZoneParam:String};let co={parseMeta(n){return n.url&&(n.format==="json"||!n.format)?{url:n.url,format:"json",method:(n.method||"GET").toUpperCase(),extraParams:n.extraParams,startParam:n.startParam,endParam:n.endParam,timeZoneParam:n.timeZoneParam}:null},fetch(n,e,t){const{meta:r}=n.eventSource,i=fo(r,n.range,n.context);hl(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},t)}};const uo=Y({name:"json-event-source",eventSourceRefiners:oo,eventSourceDefs:[co]});function fo(n,e,t){let{dateEnv:r,options:i}=t,s,l,a,o,c={};return s=n.startParam,s==null&&(s=i.startParam),l=n.endParam,l==null&&(l=i.endParam),a=n.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof n.extraParams=="function"?o=n.extraParams():o=n.extraParams||{},Object.assign(c,o),c[s]=r.formatIso(e.start),c[l]=r.formatIso(e.end),r.timeZone!=="local"&&(c[a]=r.timeZone),c}const ho={daysOfWeek:g,startTime:D,endTime:D,duration:D,startRecur:g,endRecur:g};let go={parse(n,e){if(n.daysOfWeek||n.startTime||n.endTime||n.startRecur||n.endRecur){let t={daysOfWeek:n.daysOfWeek||null,startTime:n.startTime||null,endTime:n.endTime||null,startRecur:n.startRecur?e.createMarker(n.startRecur):null,endRecur:n.endRecur?e.createMarker(n.endRecur):null},r;return n.duration&&(r=n.duration),!r&&n.startTime&&n.endTime&&(r=Si(n.endTime,n.startTime)),{allDayGuess:!n.startTime&&!n.endTime,duration:r,typeData:t}}return null},expand(n,e,t){let r=de(e,{start:n.startRecur,end:n.endRecur});return r?mo(n.daysOfWeek,n.startTime,r,t):[]}};const po=Y({name:"simple-recurring-event",recurringTypes:[go],eventRefiners:ho});function mo(n,e,t,r){let i=n?Vn(n):null,s=w(t.start),l=t.end,a=[];for(;s<l;){let o;(!i||i[s.getUTCDay()])&&(e?o=r.add(s,e):o=s,a.push(o)),s=k(s,1)}return a}const vo=Y({name:"change-handler",optionChangeHandlers:{events(n,e){In([n],e)},eventSources:In}});function In(n,e){let t=Ot(e.getCurrentData().eventSources);if(t.length===1&&n.length===1&&Array.isArray(t[0]._raw)&&Array.isArray(n[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:t[0].sourceId,rawEvents:n[0]});return}let r=[];for(let i of n){let s=!1;for(let l=0;l<t.length;l+=1)if(t[l]._raw===i){t.splice(l,1),s=!0;break}s||r.push(i)}for(let i of t)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function bo(n,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},dr(n.activeRange,e.dateEnv)),{view:e.viewApi}))}function Eo(n,e){let{emitter:t}=e;t.hasHandlers("eventsSet")&&t.trigger("eventsSet",J(n,e))}const yo=[so,ao,uo,po,vo,Y({name:"misc",isLoadingFuncs:[n=>kr(n.eventSources)],propSetHandlers:{dateProfile:bo,eventStore:Eo}})];class Ao{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Ct(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t=[],r;for(;r=e.shift();)this.runTask(r),t.push(r);this.drained(t)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function So(n,e,t){let r;return/^(year|month)$/.test(n.currentRangeUnit)?r=n.currentRange:r=n.activeRange,t.formatRange(r.start,r.end,M(e.titleFormat||Do(n)),{isEndExclusive:n.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Do(n){let{currentRangeUnit:e}=n;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let t=He(n.currentRange.start,n.currentRange.end);return t!==null&&t>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Co{constructor(e){this.computeCurrentViewData=C(this._computeCurrentViewData),this.organizeRawLocales=C(Ta),this.buildLocale=C(Mr),this.buildPluginHooks=ka(),this.buildDateEnv=C(wo),this.buildTheme=C(Ro),this.parseToolbars=C(to),this.buildViewSpecs=C(ja),this.buildDateProfileGenerator=Oe(To),this.buildViewApi=C(Io),this.buildViewUiProps=Oe(ko),this.buildEventUiBySource=C(Mo,L),this.buildEventUiBases=C(xo),this.parseContextBusinessHours=Oe(Oo),this.buildTitle=C(So),this.emitter=new qe,this.actionRunner=new Ao(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let t={},r=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=Cs(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(l);W(a.activeRange,l)||(l=a.currentRange.start);let o={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of r.pluginHooks.contextInit)h(o);let c=Va(r.calendarOptions,a,o),d={dynamicOptionOverrides:t,currentViewType:i,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:c,eventUiBases:{},eventStore:j(),renderableEventStore:j(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},u=Object.assign(Object.assign({},o),d);for(let h of r.pluginHooks.reducers)Object.assign(d,h(null,null,u));ut(d,o)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:r}=this;t===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(t===void 0||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:r,emitter:i}=this,s=za(r.dynamicOptionOverrides,e),l=this.computeOptionsData(t.optionOverrides,s,t.calendarApi),a=Ua(r.currentViewType,e),o=this.computeCurrentViewData(a,l,t.optionOverrides,s);t.calendarApi.currentDataManager=this,i.setThisContext(t.calendarApi),i.setOptions(o.options);let c={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:u}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(u=o.dateProfileGenerator.build(d)),d=Ds(d,e),u=Fa(u,e,d,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!W(u.currentRange,d))&&(d=u.currentRange.start);let h=Wa(r.eventSources,e,u,c),f=Ls(r.eventStore,e,h,u,c),m=kr(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:v,selectionConfig:E}=this.buildViewUiProps(c),y=this.buildEventUiBySource(h),A=this.buildEventUiBases(m.defs,v,y),S={dynamicOptionOverrides:s,currentViewType:a,currentDate:d,dateProfile:u,eventSources:h,eventStore:f,renderableEventStore:m,selectionConfig:E,eventUiBases:A,businessHours:this.parseContextBusinessHours(c),dateSelection:$a(r.dateSelection,e),eventSelection:Ja(r.eventSelection,e),eventDrag:Ka(r.eventDrag,e),eventResize:eo(r.eventResize,e)},P=Object.assign(Object.assign({},c),S);for(let I of l.pluginHooks.reducers)Object.assign(S,I(r,e,P));let B=ut(r,c),O=ut(S,c);!B&&O?i.trigger("loading",!0):B&&!O&&i.trigger("loading",!1),this.state=S,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),t),a=i.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,c=i.calendarOptions;if(o&&o!==c){o.timeZone!==c.timeZone&&(t.eventSources=l.eventSources=Ga(l.eventSources,t.dateProfile,l),t.eventStore=l.eventStore=gn(l.eventStore,r.dateEnv,l.dateEnv),t.renderableEventStore=l.renderableEventStore=gn(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let d in a)(this.optionsForHandling.indexOf(d)!==-1||o[d]!==c[d])&&a[d](c[d],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,t,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,t);Mn(o);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),d=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),u=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,u,d,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:c,viewSpecs:d,theme:u,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,t){let{locales:r,locale:i}=rt([me,e,t]),s=this.organizeRawLocales(r),l=s.map,a=this.buildLocale(i||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],yo),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ln),an),on),o.listenerRefiners),o.optionRefiners),d={},u=rt([me,a,e,t]),h={},f=this.currentCalendarOptionsInput,b=this.currentCalendarOptionsRefined,m=!1;for(let v in u)this.optionsForRefining.indexOf(v)===-1&&(u[v]===f[v]||Z[v]&&v in f&&Z[v](f[v],u[v]))?h[v]=b[v]:c[v]?(h[v]=c[v](u[v]),m=!0):d[v]=f[v];return m&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:a,extra:d}}_computeCurrentViewData(e,t,r,i){let s=t.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:a}=this.processRawViewOptions(s,t.pluginHooks,t.localeDefaults,r,i);Mn(a);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:c}}processRawViewOptions(e,t,r,i,s){let l=rt([me,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ln),an),on),es),t.listenerRefiners),t.optionRefiners),o={},c=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,u=!1,h={};for(let f in l)l[f]===c[f]||Z[f]&&Z[f](l[f],c[f])?o[f]=d[f]:(l[f]===this.currentCalendarOptionsInput[f]||Z[f]&&Z[f](l[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):a[f]?o[f]=a[f](l[f]):h[f]=l[f],u=!0);return u&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function wo(n,e,t,r,i,s,l,a){let o=Mr(e||l.defaultCode,l.map);return new ds({calendarSystem:"gregory",timeZone:n,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:t,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Ro(n,e){let t=e.themeClasses[n.themeSystem]||q;return new t(n)}function To(n){let e=n.dateProfileGeneratorClass||$n;return new e(n)}function Io(n,e,t){return new ro(n,e,t)}function Mo(n){return ne(n,e=>e.ui)}function xo(n,e,t){let r={"":e};for(let i in n){let s=n[i];s.sourceId&&t[s.sourceId]&&(r[i]=t[s.sourceId])}return r}function ko(n){let{options:e}=n;return{eventUiSingleBase:_e({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},n),selectionConfig:_e({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},n)}}function ut(n,e){for(let t of e.pluginHooks.isLoadingFuncs)if(t(n))return!0;return!1}function Oo(n){return Ys(n.options.businessHours,n)}function Mn(n,e){for(let t in n)console.warn(`Unknown option '${t}'`+(e?` for view '${e}'`:""))}class No extends T{render(){let e=this.props.widgetGroups.map(t=>this.renderWidgetGroup(t));return p("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:r}=this.context,i=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:c,buttonIcon:d,buttonHint:u}=l;if(a==="title")s=!1,i.push(p("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let h=a===t.activeButton,f=!t.isTodayEnabled&&a==="today"||!t.isPrevEnabled&&a==="prev"||!t.isNextEnabled&&a==="next",b=[`fc-${a}-button`,r.getClass("button")];h&&b.push(r.getClass("buttonActive")),i.push(p("button",{type:"button",title:typeof u=="function"?u(t.navUnit):u,disabled:f,"aria-pressed":h,className:b.join(" "),onClick:o},c||(d?p("span",{className:d,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return p("div",{className:l},...i)}return i[0]}}class xn extends T{render(){let{model:e,extraClassName:t}=this.props,r=!1,i,s,l=e.sectionWidgets,a=l.center;return l.left?(r=!0,i=l.left):i=l.start,l.right?(r=!0,s=l.right):s=l.end,p("div",{className:[t||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,t){let{props:r}=this;return p(No,{key:e,widgetGroups:t,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class Ho extends T{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,U(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return r?t.availableWidth!==null?s=t.availableWidth/r:l=`${1/r*100}%`:s=e.height||"",p("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Po extends he{constructor(e){super(e),this.handleSegClick=(t,r)=>{let{component:i}=this,{context:s}=i,l=ue(r);if(l&&i.isValidSegDownEl(t.target)){let a=x(t.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new R(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:t,view:s.viewApi}),o&&!t.defaultPrevented&&(window.location.href=o)}},this.destroy=_n(e.el,"click",".fc-event",this.handleSegClick)}}class Bo extends he{constructor(e){super(e),this.handleEventElRemove=t=>{t===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(t,r)=>{ue(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",t,r))},this.handleSegLeave=(t,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",t,r))},this.removeHoverListeners=ai(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,r){let{component:i}=this,{context:s}=i,l=ue(r);(!t||i.isValidSegDownEl(t.target))&&s.emitter.trigger(e,{el:r,event:new R(s,l.eventRange.def,l.eventRange.instance),jsEvent:t,view:s.viewApi})}}class jo extends ie{constructor(){super(...arguments),this.buildViewContext=C(hs),this.buildViewPropTransformers=C(_o),this.buildToolbarProps=C(Lo),this.headerRef=_(),this.footerRef=_(),this.interactionsStore={},this.state={viewLabelId:We()},this.registerInteractiveComponent=(e,t)=>{let r=ml(e,t),l=[Po,Bo].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=l,Et[e.uid]=r},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let r of t)r.destroy();delete this.interactionsStore[e.uid]}delete Et[e.uid]},this.resizeRunner=new Ct(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:t,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Se(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",a;e.isHeightAuto||e.forPrint?l="":r.height!=null?s=!0:r.contentHeight!=null?l=r.contentHeight:a=Math.max(r.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=t.header&&t.header.hasTitle?this.state.viewLabelId:"";return p(re.Provider,{value:o},t.header&&p(xn,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:t.header,titleId:c},i)),p(Ho,{liquid:s,height:l,aspectRatio:a,labeledById:c},this.renderView(e),this.buildAppendContent()),t.footer&&p(xn,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:t.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let r in t)t[r](e[r],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:r}=t.pluginHooks;for(let i in r)t[i]!==e[i]&&r[i](t[i],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map(r=>r(e));return p(N,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:r}=e,i={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},s=this.buildViewPropTransformers(t.viewPropsTransformers);for(let a of s)Object.assign(i,a.transform(i,e));let l=r.component;return p(l,Object.assign({},i))}}function Lo(n,e,t,r,i,s){let l=t.build(i,void 0,!1),a=t.buildPrev(e,r,!1),o=t.buildNext(e,r,!1);return{title:s,activeButton:n.type,navUnit:n.singleUnit,isTodayEnabled:l.isValid&&!W(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function _o(n){return n.map(e=>new e)}class Nc extends vl{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;cn(()=>{ft(p(pl,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,a)=>(this.setClassNames(i),this.setHeight(s),p(Yn.Provider,{value:this.customContentRenderId},p(jo,Object.assign({isHeightAuto:l,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ft(null,this.el),this.setClassNames([]),this.setHeight(""))},Jr(e),this.el=e,this.renderRunner=new Ct(this.handleRenderRequest),new Co({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){cn(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!G(e,this.currentClassNames)){let{classList:t}=this.el;for(let r of this.currentClassNames)t.remove(r);for(let r of e)t.add(r);this.currentClassNames=e}}setHeight(e){jn(this.el,"height",e)}}Gt.touchMouseIgnoreWait=500;let St=0,Fe=0,Dt=!1;class Br{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=t=>{if(!this.shouldIgnoreMouse()&&Uo(t)&&this.tryStart(t)){let r=this.createEventFromMouse(t,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=t=>{let r=this.createEventFromMouse(t);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=t=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(t)),this.cleanup()},this.handleTouchStart=t=>{if(this.tryStart(t)){this.isTouchDragging=!0;let r=this.createEventFromTouch(t,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=t.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=t=>{let r=this.createEventFromTouch(t);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=t=>{if(this.isDragging){let r=t.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(t)),this.cleanup(),this.isTouchDragging=!1,zo()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=t=>{if(!this.shouldIgnoreMove){let r=window.pageXOffset-this.prevScrollX+this.prevPageX,i=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:t,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new qe,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Fo()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Vo()}tryStart(e){let t=this.querySubjectEl(e),r=e.target;return t&&(!this.handleSelector||x(r,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Dt=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?x(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return St||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Dt=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let r=0,i=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,t){let r=e.touches,i,s,l=0,a=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),t?(this.origPageX=i,this.origPageY=s):(l=i-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:l,deltaY:a}}}function Uo(n){return n.button===0&&!n.ctrlKey}function zo(){St+=1,setTimeout(()=>{St-=1},Gt.touchMouseIgnoreWait)}function Fo(){Fe+=1,Fe===1&&window.addEventListener("touchmove",jr,{passive:!1})}function Vo(){Fe-=1,Fe||window.removeEventListener("touchmove",jr,{passive:!1})}function jr(n){Dt&&n.preventDefault()}class Wo{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=r-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(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)}stop(e,t){let r=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,t){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+t+"ms,left "+t+"ms",ge(r,{left:i.left,top:i.top}),oi(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(wt(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&ge(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.classList.add("fc-event-dragging"),ge(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}}class Lr extends Wt{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class _r extends Lr{constructor(e,t){super(new kl(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Ml(this.scrollController.el)}}class Go extends Lr{constructor(e){super(new Ol,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const kn=typeof performance=="function"?performance.now:Date.now;class Qo{constructor(){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=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let t=kn();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let r=e-window.pageXOffset,i=t-window.pageYOffset,s=this.pointerScreenY===null?0:i-this.pointerScreenY,l=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(kn()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,l=s*s/(i*i)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+l*a);break}}computeBestEdge(e,t){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,c=a.right-e,d=t-a.top,u=a.bottom-t;o>=0&&c>=0&&d>=0&&u>=0&&(d<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"top",distance:d}),u<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"bottom",distance:u}),o<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:l,name:"left",distance:o}),c<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"right",distance:c}))}return i}buildCaches(e){return this.queryScrollEls(e).map(t=>t===window?new Go(!1):new _r(t,!1))}queryScrollEls(e){let t=[];for(let r of this.scrollQuery)typeof r=="object"?t.push(r):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return t}}class De extends Hl{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,ci(document.body),ui(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=i;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,di(document.body),fi(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new Br(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),t&&(r.selector=t),this.mirror=new Wo,this.autoScroller=new Qo}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Yo{constructor(e){this.origRect=Vt(e),this.scrollCaches=mr(e).map(t=>new _r(t,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let r={left:e,top:t};for(let i of this.scrollCaches)if(!qo(i.getEventTarget())&&!bl(r,i.clientRect))return!1;return!0}}function qo(n){let e=n.tagName;return e==="HTML"||e==="BODY"}class Ze{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},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 qe}processFirstCoord(e){let t={left:e.pageX,top:e.pageY},r=t,i=e.subjectEl,s;i instanceof HTMLElement&&(s=Vt(i),r=El(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let a=hr(s,l.rect);a&&(r=yl(a))}this.coordAdjust=Al(r,t)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!Xe(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=ne(this.droppableStore,e=>(e.component.prepareHits(),new Yo(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let l in r){let a=r[l].component,o=i[l];if(o&&o.isWithinClipping(e,t)){let c=o.computeLeft(),d=o.computeTop(),u=e-c,h=t-d,{origRect:f}=o,b=f.right-f.left,m=f.bottom-f.top;if(u>=0&&u<b&&h>=0&&h<m){let v=a.queryHit(u,h,b,m);v&&Qe(v.dateProfile.activeRange,v.dateSpan.range)&&(!s||v.layer>s.layer)&&(v.componentId=l,v.context=a.context,v.rect.left+=c,v.rect.right+=c,v.rect.top+=d,v.rect.bottom+=d,s=v)}}}return s}}function Xe(n,e){return!n&&!e?!0:!!n!=!!e?!1:ol(n.dateSpan,e.dateSpan)}function Ur(n,e){let t={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(t,r(n,e));return Object.assign(t,Zo(n,e.dateEnv)),t}function Zo(n,e){return{date:e.toDate(n.range.start),dateStr:e.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay}}class Xo extends he{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&Xe(l,a)){let{context:o}=i,c=Object.assign(Object.assign({},Ur(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",c)}}},this.dragging=new De(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new Ze(this.dragging,zt(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class $o extends he{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:c}=a.context,d=c.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!d),o.delay=l.isTouch?Jo(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,c=null,d=!1;if(l){let u=this.hitDragging.initialHit;l.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,l)||(c=Ko(u,l,o.pluginHooks.dateSelectionTransformers)),(!c||!Wl(c,l.dateProfile,o))&&(d=!0,c=null)}c?o.dispatch({type:"SELECT_DATES",selection:c}):a||o.dispatch({type:"UNSELECT_DATES"}),d?Rt():Tt(),a||(this.dragSelection=c)},this.handlePointerUp=l=>{this.dragSelection&&(sr(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:r}=t.context,i=this.dragging=new De(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Ze(this.dragging,zt(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Jo(n){let{options:e}=n.context,t=e.selectLongPressDelay;return t==null&&(t=e.longPressDelay),t}function Ko(n,e,t){let r=n.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(vi);let l={};for(let a of t){let o=a(n,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class Ce extends he{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let a=l.origEvent.target,{component:o,dragging:c}=this,{mirror:d}=c,{options:u}=o.context,h=o.context;this.subjectEl=l.subjectEl;let f=this.subjectSeg=ue(l.subjectEl),m=(this.eventRange=f.eventRange).instance.instanceId;this.relevantEvents=jt(h.getCurrentData().eventStore,m),c.minDistance=l.isTouch?0:u.eventDragMinDistance,c.delay=l.isTouch&&m!==o.props.eventSelection?tc(o):null,u.fixedMirrorParent?d.parentNode=u.fixedMirrorParent:d.parentNode=x(a,".fc"),d.revertDuration=u.dragRevertDuration;let v=o.isValidSegDownEl(a)&&!x(a,".fc-event-resizer");c.setIgnoreMove(!v),this.isDragging=v&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,c=o.instance.instanceId;l.isTouch?c!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new R(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,c=this.hitDragging.initialHit,d=this.component.context,u=null,h=null,f=null,b=!1,m={affectedEvents:o,mutatedEvents:j(),isEvent:!0};if(l){u=l.context;let v=u.options;d===u||v.editable&&v.droppable?(h=ec(c,l,u.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(f=Ut(o,u.getCurrentData().eventUiBases,h,u),m.mutatedEvents=f,yr(m,l.dateProfile,u)||(b=!0,h=null,f=null,m.mutatedEvents=j()))):u=null}this.displayDrag(u,m),b?Rt():Tt(),a||(d===u&&Xe(c,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=u,this.validMutation=h,this.mutatedRelevantEvents=f)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:c,validMutation:d}=this,u=this.eventRange.def,h=this.eventRange.instance,f=new R(a,u,h),b=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:v}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:f,jsEvent:l.origEvent,view:o}),d){if(c===a){let E=new R(a,m.defs[u.defId],h?m.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:m});let y={oldEvent:f,event:E,relatedEvents:J(m,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:b})}},A={};for(let S of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(A,S(d,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},y),A),{el:l.subjectEl,delta:d.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",y)}else if(c){let E={event:f,relatedEvents:J(b,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:b})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},E),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:b}),a.emitter.trigger("eventRemove",E);let y=m.defs[u.defId],A=m.instances[h.instanceId],S=new R(c,y,A);c.dispatch({type:"MERGE_EVENTS",eventStore:m});let P={event:S,relatedEvents:J(m,c,A),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};c.emitter.trigger("eventAdd",P),l.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},Ur(v.dateSpan,c)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:v.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},P),{draggedEl:l.subjectEl,view:v.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:r}=t.context,i=this.dragging=new De(e.el);i.pointer.selector=Ce.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Ze(this.dragging,Et);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:j(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}Ce.SELECTOR=".fc-event-draggable, .fc-event-resizable";function ec(n,e,t){let r=n.dateSpan,i=e.dateSpan,s=r.range.start,l=i.range.start,a={};r.allDay!==i.allDay&&(a.allDay=i.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,i.allDay&&(s=w(s)));let o=ae(s,l,n.context.dateEnv,n.componentId===e.componentId?n.largeUnit:null);o.milliseconds&&(a.allDay=!1);let c={datesDelta:o,standardProps:a};for(let d of t)d(c,n,e);return c}function tc(n){let{options:e}=n.context,t=e.eventLongPressDelay;return t==null&&(t=e.longPressDelay),t}class nc extends he{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,a=this.querySegEl(s),o=ue(a),c=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=jt(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=ue(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new R(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,c=this.relevantEvents,d=this.hitDragging.initialHit,u=this.eventRange.instance,h=null,f=null,b=!1,m={affectedEvents:c,mutatedEvents:j(),isEvent:!0};s&&(s.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,s)||(h=rc(d,s,a.subjectEl.classList.contains("fc-event-resizer-start"),u.range))),h&&(f=Ut(c,o.getCurrentData().eventUiBases,h,o),m.mutatedEvents=f,yr(m,s.dateProfile,o)||(b=!0,h=null,f=null,m.mutatedEvents=null)),f?o.dispatch({type:"SET_EVENT_RESIZE",state:m}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),b?Rt():Tt(),l||(h&&Xe(d,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,c=new R(l,a,o),d=this.relevantEvents,u=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new R(l,u.defs[a.defId],o?u.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:u});let f={oldEvent:c,event:h,relatedEvents:J(u,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:d})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||D(0),endDelta:this.validMutation.endDelta||D(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",f)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,r=this.dragging=new De(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=t.context.options.dragScroll;let i=this.hitDragging=new Ze(this.dragging,zt(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return x(e.subjectEl,".fc-event")}}function rc(n,e,t,r){let i=n.context.dateEnv,s=n.dateSpan.range.start,l=e.dateSpan.range.start,a=ae(s,l,i,n.largeUnit);if(t){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}class ic{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=Ln(r.origEvent);this.matchesCancel=!!x(s,i),this.matchesEvent=!!x(s,Ce.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,l=i.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=i.options.unselectAuto;a&&(!a||!this.matchesCancel)&&i.calendarApi.unselect(r)}l.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Br(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const sc={fixedMirrorParent:g},lc={dateClick:g,eventDragStart:g,eventDragStop:g,eventDrop:g,eventResizeStart:g,eventResizeStop:g,eventResize:g,drop:g,eventReceive:g,eventLeave:g};Gt.dataAttrPrefix="";var Hc=Y({name:"@fullcalendar/interaction",componentInteractions:[Xo,$o,Ce,nc],calendarInteractions:[ic],elementDraggingImpl:De,optionRefiners:sc,listenerRefiners:lc});class ac extends se{constructor(){super(...arguments),this.headerElRef=_()}renderSimpleLayout(e,t){let{props:r,context:i}=this,s=[],l=Sn(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),p(dn,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},p(Cr,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,t,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&Sn(a.options),c=!l.forPrint&&aa(a.options),d=[];return e&&d.push({type:"header",key:"header",isSticky:o,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}]}),c&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:la}]}),p(dn,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},p(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:d}))}}function xe(n,e){let t=[];for(let r=0;r<e;r+=1)t[r]=[];for(let r of n)t[r.row].push(r);return t}function ke(n,e){let t=[];for(let r=0;r<e;r+=1)t[r]=[];for(let r of n)t[r.firstCol].push(r);return t}function On(n,e){let t=[];if(n){for(let r=0;r<e;r+=1)t[r]={affectedInstances:n.affectedInstances,isEvent:n.isEvent,segs:[]};for(let r of n.segs)t[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)t[r]=null;return t}const zr=M({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Fr(n){let{display:e}=n.eventRange.ui;return e==="list-item"||e==="auto"&&!n.eventRange.def.allDay&&n.firstCol===n.lastCol&&n.isStart&&n.isEnd}class Vr extends T{render(){let{props:e}=this;return p(ca,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:zr,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Wr extends T{render(){let{props:e,context:t}=this,{options:r}=t,{seg:i}=e,s=r.eventTimeFormat||zr,l=or(i,s,t,!0,e.defaultDisplayEventEnd);return p(Yt,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:cr(e.seg,t),defaultGenerator:oc,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function oc(n){return p(N,null,p("div",{className:"fc-daygrid-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}}),n.timeText&&p("div",{className:"fc-event-time"},n.timeText),p("div",{className:"fc-event-title"},n.event.title||p(N,null," ")))}class cc extends T{constructor(){super(...arguments),this.compileSegs=C(dc)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return p(ya,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return p(N,null,t.map(s=>{let l=s.eventRange.instance.instanceId;return p("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},Fr(s)?p(Wr,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},ve(s,e.todayRange))):p(Vr,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},ve(s,e.todayRange))))}))}})}}function dc(n){let e=[],t=[];for(let r of n)e.push(r.seg),r.isVisible||t.push(r.seg);return{allSegs:e,invisibleSegs:t}}const uc=M({week:"narrow"});class fc extends se{constructor(){super(...arguments),this.rootElRef=_(),this.state={dayNumberId:We()},this.handleRootEl=e=>{U(this.rootElRef,e),U(this.props.elRef,e)}}render(){let{context:e,props:t,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=t;const c=t.showDayNumber&&gc(a,o.currentRange,l);return p(wr,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:hc,date:a,dateProfile:o,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:c,extraRenderProps:t.extraRenderProps},(d,u)=>p("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&p(ma,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:yt(e,a,"week"),date:a,defaultFormat:uc}),!u.isDisabled&&(t.showDayNumber||Rr(s)||t.forceDayTop)?p("div",{className:"fc-daygrid-day-top"},p(d,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},yt(e,a)),{id:r.dayNumberId})})):t.showDayNumber?p("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},p("a",{className:"fc-daygrid-day-number"}," ")):void 0,p("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,p("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},p(cc,{allDayDate:a,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:i,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),p("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}}function hc(n){return n.dayNumberText||p(N,null," ")}function gc(n,e,t){const{start:r,end:i}=e,s=Q(i,-1),l=t.getYear(r),a=t.getMonth(r),o=t.getYear(s),c=t.getMonth(s);return!(l===o&&a===c)&&(n.valueOf()===r.valueOf()||t.getDay(n)===1&&n.valueOf()<i.valueOf())}function Gr(n){return n.eventRange.instance.instanceId+":"+n.firstCol}function Qr(n){return Gr(n)+":"+n.lastCol}function pc(n,e,t,r,i,s,l){let a=new bc(E=>{let y=n[E.index].eventRange.instance.instanceId+":"+E.span.start+":"+(E.span.end-1);return i[y]});a.allowReslicing=!0,a.strictOrder=r,e===!0||t===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof t=="number"&&(a.maxStackCnt=t,a.hiddenConsumes=!0);let o=[],c=[];for(let E=0;E<n.length;E+=1){let y=n[E],A=Qr(y);i[A]!=null?o.push({index:E,span:{start:y.firstCol,end:y.lastCol+1}}):c.push(y)}let d=a.addSegs(o),u=a.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:b}=mc(u,n,l),m=[],v=[];for(let E of c){f[E.firstCol].push({seg:E,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let y=E.firstCol;y<=E.lastCol;y+=1)h[y].push({seg:ce(E,y,y+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let E=0;E<l.length;E+=1)m.push(0);for(let E of d){let y=n[E.index],A=E.span;f[A.start].push({seg:ce(y,A.start,A.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let S=A.start;S<A.end;S+=1)m[S]+=1,h[S].push({seg:ce(y,S,S+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let E=0;E<l.length;E+=1)v.push(b[E]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:m,moreMarginTops:v}}function mc(n,e,t){let r=vc(n,t.length),i=[],s=[],l=[];for(let a=0;a<t.length;a+=1){let o=r[a],c=[],d=0,u=0;for(let f of o){let b=e[f.index];c.push({seg:ce(b,a,a+1,t),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-d}),d=f.levelCoord+f.thickness}let h=[];d=0,u=0;for(let f of o){let b=e[f.index],m=f.span.end-f.span.start>1,v=f.span.start===a;u+=f.levelCoord-d,d=f.levelCoord+f.thickness,m?(u+=f.thickness,v&&h.push({seg:ce(b,f.span.start,f.span.end,t),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):v&&(h.push({seg:ce(b,f.span.start,f.span.end,t),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:u}),u=0)}i.push(c),s.push(h),l.push(u)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function vc(n,e){let t=[];for(let r=0;r<e;r+=1)t.push([]);for(let r of n)for(let i=r.span.start;i<r.span.end;i+=1)t[i].push(r);return t}function ce(n,e,t,r){if(n.firstCol===e&&n.lastCol===t-1)return n;let i=n.eventRange,s=i.range,l=de(s,{start:r[e].date,end:k(r[t-1].date,1)});return Object.assign(Object.assign({},n),{firstCol:e,lastCol:t-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:l},isStart:n.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:n.isEnd&&l.end.valueOf()===s.end.valueOf()})}class bc extends Nl{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[be(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return t}handleInvalidInsertion(e,t,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:l,touchingLevel:a,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const c=be(l);if(!s[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},l),{span:vr(l.span,t.span)}),u=be(d);s[u]=!0,i[a][o]=d,this.splitEntry(l,t,r)}else s[c]=!0,r.push(l)}return super.handleInvalidInsertion(e,t,r)}}class Yr extends se{constructor(){super(...arguments),this.cellElRefs=new $,this.frameElRefs=new $,this.fgElRefs=new $,this.segHarnessRefs=new $,this.rootElRef=_(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:r}=this,{options:i}=r,s=e.cells.length,l=ke(e.businessHourSegs,s),a=ke(e.bgEventSegs,s),o=ke(this.getHighlightSegs(),s),c=ke(this.getMirrorSegs(),s),{singleColPlacements:d,multiColPlacements:u,moreCnts:h,moreMarginTops:f}=pc(Js(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),b=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return p("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((m,v)=>{let E=this.renderFgSegs(v,e.forPrint?d[v]:u[v],e.todayRange,b),y=this.renderFgSegs(v,Ec(c[v],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return p(fc,{key:m.key,elRef:this.cellElRefs.createRef(m.key),innerElRef:this.frameElRefs.createRef(m.key),dateProfile:e.dateProfile,date:m.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,moreCnt:h[v],moreMarginTop:f[v],singlePlacements:d[v],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:p(N,null,p(N,null,E),p(N,null,y)),bgContent:p(N,null,this.renderFillSegs(o[v],"highlight"),this.renderFillSegs(l[v],"non-business"),this.renderFillSegs(a[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let r=this.props;this.updateSizing(!L(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,r,i,s,l,a){let{context:o}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,u=this.props.cells.length===1,h=s||l||a,f=[];if(d)for(let b of t){let{seg:m}=b,{instanceId:v}=m.eventRange.instance,E=b.isVisible&&!i[v],y=b.isAbsolute,A="",S="";y&&(o.isRtl?(S=0,A=d.lefts[m.lastCol]-d.lefts[m.firstCol]):(A=0,S=d.rights[m.firstCol]-d.rights[m.lastCol])),f.push(p("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:Gr(m),ref:h?null:this.segHarnessRefs.createRef(Qr(m)),style:{visibility:E?"":"hidden",marginTop:y?"":b.marginTop,top:y?b.absoluteTop:"",left:A,right:S}},Fr(m)?p(Wr,Object.assign({seg:m,isDragging:s,isSelected:v===c,defaultDisplayEventEnd:u},ve(m,r))):p(Vr,Object.assign({seg:m,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:v===c,defaultDisplayEventEnd:u},ve(m,r)))))}return f}renderFillSegs(e,t){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=r?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(p("div",{key:il(a.eventRange),className:"fc-daygrid-bg-harness",style:o},t==="bg-event"?p(ha,Object.assign({seg:a},ve(a,i))):pa(t)))}return p(N,{},...l)}updateSizing(e){let{props:t,state:r,frameElRefs:i}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let o=t.cells.map(c=>i.currentMap[c.key]);if(o.length){let c=this.rootElRef.current,d=new ze(c,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new ze(c,o,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),a=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);t[r]=Math.max(t[r]||0,i)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}}Yr.addStateEquality({segHeights:L});function Ec(n,e){if(!n.length)return[];let t=yc(e);return n.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:t[r.eventRange.instance.instanceId],marginTop:0}))}function yc(n){let e={};for(let t of n)for(let r of t)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class Ac extends se{constructor(){super(...arguments),this.splitBusinessHourSegs=C(xe),this.splitBgEventSegs=C(xe),this.splitFgEventSegs=C(xe),this.splitDateSelectionSegs=C(xe),this.splitEventDrag=C(On),this.splitEventResize=C(On),this.rowRefs=new $}render(){let{props:e,context:t}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),c=this.splitEventResize(e.eventResize,r),d=r>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return p(Qt,{unit:"day"},(u,h)=>p(N,null,e.cells.map((f,b)=>p(Yr,{ref:this.rowRefs.createRef(b),key:f.length?f[0].date.toISOString():b,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:i[b],eventSelection:e.eventSelection,bgEventSegs:s[b].filter(Sc),fgEventSegs:l[b],dateSelectionSegs:a[b],eventDrag:o[b],eventResize:c[b],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:d,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new ze(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new ze(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),l=i.topToIndex(t);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let r=this.props.cells[e][t].date,i=k(r,1);return{start:r,end:i}}}function Sc(n){return n.eventRange.def.allDay}class Dc extends se{constructor(){super(...arguments),this.elRef=_(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:r,expandRows:i}=e,s=r===!0||t===!0;s&&!i&&(s=!1,t=null,r=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return p("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,p("tbody",{role:"presentation"},p(Ac,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Cc(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),r=t.closest(".fc-scroller"),i=e.getBoundingClientRect().top-t.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function Cc(n,e){let t;return e.currentRangeUnit.match(/year|month/)&&(t=n.querySelector(`[data-date="${Li(e.currentDate)}-01"]`)),t||(t=n.querySelector(`[data-date="${It(e.currentDate)}"]`)),t}class wc extends Vl{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class Rc extends se{constructor(){super(...arguments),this.slicer=new wc,this.tableRef=_()}render(){let{props:e,context:t}=this;return p(Dc,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Tc extends ac{constructor(){super(...arguments),this.buildDayTableModel=C(Ic),this.headerRef=_(),this.tableRef=_()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,t),s=e.dayHeaders&&p(_l,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=a=>p(Rc,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function Ic(n,e){let t=new zl(n.renderRange,e);return new Fl(t,/year|month|week/.test(n.currentRangeUnit))}class Mc extends $n{buildRenderRange(e,t,r){let i=super.buildRenderRange(e,t,r),{props:s}=this;return xc({currentRange:i,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function xc(n){let{dateEnv:e,currentRange:t}=n,{start:r,end:i}=t,s;if(n.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=Kt(s,1))),n.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(k(t.end,-1))),a=Math.ceil(Ri(l,i));i=Kt(i,6-a)}return{start:r,end:i}}var kc=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';Hn(kc);var Pc=Y({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Tc,dateProfileGeneratorClass:Mc},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});export{Nc as C,Pc as a,Hc as i};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment