fullcalendar 7.0.0-beta.4 → 7.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/{index.cjs → cjs/index.cjs} +14 -9
- package/{index.d.ts → esm/index.d.ts} +1 -0
- package/esm/index.js +12 -0
- package/{index.global.js → global.js} +7853 -7267
- package/global.min.js +6 -0
- package/package.json +27 -20
- package/skeleton.css +477 -0
- package/skeleton.min.css +1 -0
- package/skeleton.styles.js +30 -0
- package/index.global.min.js +0 -6
- package/index.js +0 -10
package/global.min.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
FullCalendar Standard Bundle v7.0.0-beta.5
|
|
3
|
+
Docs & License: https://fullcalendar.io/docs/initialize-globals
|
|
4
|
+
(c) 2025 Adam Shaw
|
|
5
|
+
*/
|
|
6
|
+
var FullCalendar=function(e){"use strict";var t,n,r,s,i,a,o,l,d,c,u,h,g={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function S(e,n,r){var s,i,a,o={};for(a in n)"key"==a?s=n[a]:"ref"==a?i=n[a]:o[a]=n[a];if(arguments.length>2&&(o.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]);return E(e,o,s,i,null)}function E(e,t,s,i,a){var o={type:e,props:t,key:s,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=n.vnode&&n.vnode(o),o}function b(){return{current:null}}function D(e){return e.children}function w(e,t){this.props=e,this.context=t}function R(e,t){if(null==t)return e.__?R(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?R(e):null}function C(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return C(e)}}function _(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!T.__r++||a!==n.debounceRendering)&&((a=n.debounceRendering)||o)(T)}function T(){var e,t,r,s,a,o,d,c;for(i.sort(l);e=i.shift();)e.__d&&(t=i.length,s=void 0,o=(a=(r=e).__v).__e,d=[],c=[],r.__P&&((s=m({},a)).__v=a.__v+1,n.vnode&&n.vnode(s),W(r.__P,s,a,r.__n,r.__P.namespaceURI,32&a.__u?[o]:null,d,null==o?R(a):o,!!(32&a.__u),c),s.__v=a.__v,s.__.__k[s.__i]=s,A(d,s,c),s.__e!=o&&C(s)),i.length>t&&i.sort(l));T.__r=0}function M(e,t,n,r,s,i,a,o,l,d,c){var u,h,p,v,m,y=r&&r.__k||f,S=t.length;for(n.__d=l,I(n,t,y),l=n.__d,u=0;u<S;u++)null!=(p=n.__k[u])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?g:y[p.__i]||g,p.__i=u,W(e,p,h,s,i,a,o,l,d,c),v=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&L(h.ref,null,p),c.push(p.ref,p.__c||v,p)),null==m&&null!=v&&(m=v),65536&p.__u||h.__k===p.__k?l=x(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:v&&(l=v.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function I(e,t,n){var r,s,i,a,o,l=t.length,d=n.length,c=d,u=0;for(e.__k=[],r=0;r<l;r++)a=r+u,null!=(s=e.__k[r]=null==(s=t[r])||"boolean"==typeof s||"function"==typeof s?null:"string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?E(null,s,null,null,null):v(s)?E(D,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?E(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)?(s.__=e,s.__b=e.__b+1,o=N(s,n,a,c),s.__i=o,i=null,-1!==o&&(c--,(i=n[o])&&(i.__u|=131072)),null==i||null===i.__v?(-1==o&&u--,"function"!=typeof s.type&&(s.__u|=65536)):o!==a&&(o==a-1?u--:o==a+1?u++:o>a?c>l-a?u+=o-a:u--:o<a&&(o==a-u?u-=o-a:u++),o!==r+u&&(s.__u|=65536))):(i=n[a])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=R(i)),B(i,i,!1),n[a]=null,c--);if(c)for(r=0;r<d;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=R(i)),B(i,i))}function x(e,t,n){var r,s;if("function"==typeof e.type){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=x(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=R(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function H(e,t){return t=t||[],null==e||"boolean"==typeof e||(v(e)?e.some((function(e){H(e,t)})):t.push(e)),t}function N(e,t,n,r){var s=e.key,i=e.type,a=n-1,o=n+1,l=t[n];if(null===l||l&&s==l.key&&i===l.type&&0==(131072&l.__u))return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||o<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&s==l.key&&i===l.type)return a;a--}if(o<t.length){if((l=t[o])&&0==(131072&l.__u)&&s==l.key&&i===l.type)return o;o++}}return-1}function k(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function O(e,t,n,r,s){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||k(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||k(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=d,e.addEventListener(t,i?u:c,i)):e.removeEventListener(t,i?u:c,i);else{if("http://www.w3.org/2000/svg"==s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function P(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function W(e,t,r,s,i,a,o,l,d,c){var u,h,g,f,p,y,S,E,b,R,C,_,T,I,x,H,N=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(d=!!(32&r.__u),a=[l=t.__e=r.__e]),(u=n.__b)&&u(t);e:if("function"==typeof N)try{if(E=t.props,b="prototype"in N&&N.prototype.render,R=(u=N.contextType)&&s[u.__c],C=u?R?R.props.value:u.__:s,r.__c?S=(h=t.__c=r.__c).__=h.__E:(b?t.__c=h=new N(E,C):(t.__c=h=new w(E,C),h.constructor=N,h.render=U),R&&R.sub(h),h.props=E,h.state||(h.state={}),h.context=C,h.__n=s,g=h.__d=!0,h.__h=[],h._sb=[]),b&&null==h.__s&&(h.__s=h.state),b&&null!=N.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=m({},h.__s)),m(h.__s,N.getDerivedStateFromProps(E,h.__s))),f=h.props,p=h.state,h.__v=t,g)b&&null==N.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),b&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(b&&null==N.getDerivedStateFromProps&&E!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(E,C),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(E,h.__s,C)||t.__v===r.__v)){for(t.__v!==r.__v&&(h.props=E,h.state=h.__s,h.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[],h.__h.length&&o.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(E,h.__s,C),b&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(f,p,y)}))}if(h.context=C,h.props=E,h.__P=e,h.__e=!1,T=n.__r,I=0,b){for(h.state=h.__s,h.__d=!1,T&&T(t),u=h.render(h.props,h.state,h.context),x=0;x<h._sb.length;x++)h.__h.push(h._sb[x]);h._sb=[]}else do{h.__d=!1,T&&T(t),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(s=m(m({},s),h.getChildContext())),b&&!g&&null!=h.getSnapshotBeforeUpdate&&(y=h.getSnapshotBeforeUpdate(f,p)),M(e,v(H=null!=u&&u.type===D&&null==u.key?u.props.children:u)?H:[H],t,r,s,i,a,o,l,d,c),h.base=t.__e,t.__u&=-161,h.__h.length&&o.push(h),S&&(h.__E=h.__=null)}catch(e){if(t.__v=null,d||null!=a){for(t.__u|=d?160:32;l&&8===l.nodeType&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,t.__e=l}else t.__e=r.__e,t.__k=r.__k;n.__e(e,t,r)}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=j(r.__e,t,r,s,i,a,o,d,c);(u=n.diffed)&&u(t)}function A(e,t,r){t.__d=void 0;for(var s=0;s<r.length;s++)L(r[s],r[++s],r[++s]);n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function j(e,n,r,s,i,a,o,l,d){var c,u,h,f,p,m,S,E=r.props,b=n.props,D=n.type;if("svg"===D?i="http://www.w3.org/2000/svg":"math"===D?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(c=0;c<a.length;c++)if((p=a[c])&&"setAttribute"in p==!!D&&(D?p.localName===D:3===p.nodeType)){e=p,a[c]=null;break}if(null==e){if(null===D)return document.createTextNode(b);e=document.createElementNS(i,D,b.is&&b),a=null,l=!1}if(null===D)E===b||l&&e.data===b||(e.data=b);else{if(a=a&&t.call(e.childNodes),E=r.props||g,!l&&null!=a)for(E={},c=0;c<e.attributes.length;c++)E[(p=e.attributes[c]).name]=p.value;for(c in E)if(p=E[c],"children"==c);else if("dangerouslySetInnerHTML"==c)h=p;else if("key"!==c&&!(c in b)){if("value"==c&&"defaultValue"in b||"checked"==c&&"defaultChecked"in b)continue;O(e,c,null,p,i)}for(c in b)p=b[c],"children"==c?f=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?m=p:"checked"==c?S=p:"key"===c||l&&"function"!=typeof p||E[c]===p||O(e,c,p,E[c],i);if(u)l||h&&(u.__html===h.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),n.__k=[];else if(h&&(e.innerHTML=""),M(e,v(f)?f:[f],n,r,s,"foreignObject"===D?"http://www.w3.org/1999/xhtml":i,a,o,a?a[0]:r.__k&&R(r,0),l,d),null!=a)for(c=a.length;c--;)null!=a[c]&&y(a[c]);l||(c="value",void 0!==m&&(m!==e[c]||"progress"===D&&!m||"option"===D&&m!==E[c])&&O(e,c,m,E[c],i),c="checked",void 0!==S&&S!==e[c]&&O(e,c,S,E[c],i))}return e}function L(e,t,r){try{if("function"==typeof e){var s="function"==typeof e.__u;s&&e.__u(),s&&null==t||(e.__u=e(t))}else e.current=t}catch(e){n.__e(e,r)}}function B(e,t,r){var s,i;if(n.unmount&&n.unmount(e),(s=e.ref)&&(s.current&&s.current!==e.__e||L(s,null,t)),null!=(s=e.__c)){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(e){n.__e(e,t)}s.base=s.__P=null}if(s=e.__k)for(i=0;i<s.length;i++)s[i]&&B(s[i],t,r||"function"!=typeof e.type);r||null==e.__e||y(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function V(e,r,s){var i,a,o,l;n.__&&n.__(e,r),a=(i="function"==typeof s)?null:s&&s.__k||r.__k,o=[],l=[],W(r,e=(!i&&s||r).__k=S(D,null,[e]),a||g,g,r.namespaceURI,!i&&s?[s]:a?null:r.firstChild?t.call(r.childNodes):null,o,!i&&s?s:a?a.__e:r.firstChild,i,l),A(o,e,l)}t=f.slice,n={__e:function(e,t,n,r){for(var s,i,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&null!=i.getDerivedStateFromError&&(s.setState(i.getDerivedStateFromError(e)),a=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,r||{}),a=s.__d),a)return s.__E=s}catch(t){e=t}throw e}},r=0,s=function(e){return null!=e&&null==e.constructor},w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},w.prototype.render=D,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,d=0,c=P(!1),u=P(!0),h=0;var F,z,G,Y=[],q=n,X=q.__b,Z=q.__r,$=q.diffed,K=q.__c,J=q.unmount,Q=q.__;function ee(){for(var e;e=Y.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(se),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){F=null,X&&X(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Q&&Q(e,t)},q.__r=function(e){Z&&Z(e);var t=(F=e.__c).__H;t&&(z===F?(t.__h=[],F.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(re),t.__h.forEach(se),t.__h=[])),z=F},q.diffed=function(e){$&&$(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Y.push(t)&&G===q.requestAnimationFrame||((G=q.requestAnimationFrame)||ne)(ee)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),z=F=null},q.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||se(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],q.__e(n,e.__v)}})),K&&K(e,t)},q.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{re(e)}catch(e){t=e}})),n.__H=void 0,t&&q.__e(t,n.__v))};var te="function"==typeof requestAnimationFrame;function ne(e){var t,n=function(){clearTimeout(r),te&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);te&&(t=requestAnimationFrame(n))}function re(e){var t=F,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),F=t}function se(e){var t=F;e.__c=e.__(),F=t}function ie(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ae(e,t){this.props=e,this.context=t}(ae.prototype=new w).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,t){return ie(this.props,e)||ie(this.state,t)};var oe=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),oe&&oe(e)};var le=n.__e;n.__e=function(e,t,n,r){if(e.then)for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t);le(e,t,n,r)};var de=n.unmount;function ce(){this.__u=0,this.t=null,this.__b=null}function ue(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function he(){this.u=null,this.o=null}n.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),de&&de(e)},(ce.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var s=ue(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,s?s(o):o())};n.__R=a;var o=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},ce.prototype.componentWillUnmount=function(){this.t=[]},ce.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&S(D,null,e.fallback);return s&&(s.__u&=-33),[S(D,null,t.__a?null:e.children),s]};var ge=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function fe(e){return this.getChildContext=function(){return e.context},e.children}function pe(e){var t=this,n=e.i;t.componentWillUnmount=function(){V(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),V(S(fe,{context:t.context},e.__v),t.l)}function ve(e,t){var n=S(pe,{__v:e,i:t});return n.containerInfo=t,n}(he.prototype=new w).__a=function(e){var t=this,n=ue(t.__v),r=t.o.get(e);return r[0]++,function(s){var i=function(){t.props.revealOrder?(r.push(s),ge(t,e,r)):s()};n?n(i):i()}},he.prototype.render=function(e){this.u=null,this.o=new Map;var t=H(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},he.prototype.componentDidUpdate=he.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ge(e,n,t)}))};var me="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ye=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Se=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ee=/[A-Z0-9]/g,be="undefined"!=typeof document,De=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var we=n.event;function Re(){}function Ce(){return this.cancelBubble}function _e(){return this.defaultPrevented}n.event=function(e){return we&&(e=we(e)),e.persist=Re,e.isPropagationStopped=Ce,e.isDefaultPrevented=_e,e.nativeEvent=e};var Te={enumerable:!1,configurable:!0,get:function(){return this.class}},Me=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},s=-1===n.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||be&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var o=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===o&&"no"===a?a=!1:"o"===o[0]&&"n"===o[1]?"ondoubleclick"===o?i="ondblclick":"onchange"!==o||"input"!==n&&"textarea"!==n||De(t.type)?"onfocus"===o?i="onfocusin":"onblur"===o?i="onfocusout":Se.test(i)&&(i=o):o=i="oninput":s&&ye.test(i)?i=i.replace(Ee,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===o&&r[i=o]&&(i="oninputCapture"),r[i]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=H(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=H(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Te)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=me,Me&&Me(e)};var Ie=n.__r;n.__r=function(e){Ie&&Ie(e),e.__c};var xe=n.diffed;n.diffed=function(e){xe&&xe(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};class He{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(),null==e?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:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1,n[e]<=0&&delete n[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 Ne(...e){const t=[];for(const n of e)Array.isArray(n)?t.push(...n):t.push(n);return ke(...t)}function ke(...e){return e.filter(Boolean).join(" ")}function Oe(e){return 100*e+"%"}function Pe(e){e.preventDefault()}function We(e,t,n,r){let s=function(e,t){return n=>{let r=n.target.closest(e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,s),()=>{e.removeEventListener(t,s)}}const Ae=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function je(e,t){let n=r=>{t(r),Ae.forEach(t=>{e.removeEventListener(t,n)})};Ae.forEach(t=>{e.addEventListener(t,n)})}function Le(e){return Object.assign({onClick:e},Be(e))}function Be(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var Ue="fc-nG",Ve="fc-Yb",Fe="fc-5K",ze="fc-ja",Ge="fc-K0",Ye="fc-Ed",qe="fc-gS",Xe="fc-XH",Ze="fc-GT",$e="fc-mY",Ke="fc-Uq",Je="fc-GP",Qe="fc-Ux",et="fc-xb",tt="fc-gb",nt="fc-t3",rt="fc-3T",st="fc-e5",it="fc-Zl",at="fc-7t",ot="fc-7F",lt="fc-dA",dt="fc-aP",ct="fc-Tq",ut="fc-b7",ht="fc-ST",gt="fc-Cm",ft="fc-K7",pt="fc-s5",vt="fc-Rb",mt="fc-wC",yt="fc-Vz",St="fc-HP",Et="fc-WG",bt="fc-XC",Dt="fc-BY",wt="fc-cd",Rt="fc-uj",Ct="fc-hA",_t="fc-Er",Tt="fc-73",Mt="fc-QO",It="fc-me",xt="fc-MX",Ht="fc-oh",Nt="fc-Ge",kt="fc-fu",Ot="fc-HO",Pt="fc-oq",Wt="fc-yx",At="fc-OK",jt="fc-yj",Lt="fc-Kj",Bt="fc-fS",Ut="fc-v8",Vt="fc-4G",Ft="fc-Bz",zt="fc-zI",Gt="fc-5H",Yt="fc-Tf",qt="fc-jM",Xt="fc-YU",Zt="fc-pv",$t="fc-0o",Kt="fc-4f",Jt="fc-5y",Qt="fc-0D",en="fc-E4",tn="fc-bZ",nn="fc-al",rn="fc-90",sn="fc-zk",an="fc-p2",on="fc-Ji",ln="fc-3m",dn="fc-VB";let cn=0;function un(){return cn+=1,String(cn)}function hn(){document.body.classList.add(ze)}function gn(){document.body.classList.remove(ze)}function fn(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Pe)}function pn(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Pe)}function vn(e){e.addEventListener("contextmenu",Pe)}function mn(e){e.removeEventListener("contextmenu",Pe)}function yn(e){let t,n,r=[],s=[];for("string"==typeof e?s=e.split(/\s*,\s*/):"function"==typeof e?s=[e]:Array.isArray(e)&&(s=e),t=0;t<s.length;t+=1)n=s[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function Sn(e,t,n){let r,s;for(r=0;r<n.length;r+=1)if(s=En(e,t,n[r]),s)return s;return 0}function En(e,t,n){return n.func?n.func(e,t):bn(e[n.field],t[n.field])*(n.order||1)}function bn(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function Dn(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function wn(e,t){return e-t}function Rn(e,t){return e===t}const{hasOwnProperty:Cn}=Object.prototype;function _n(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Tn(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function Mn(e){let t=[];for(let n in e)t.push(e[n]);return t}function In(e){let t={};for(let n of e)t[n]=!0;return t}function xn(e,t,n){if(e===t)return!0;for(let n in e)if(Cn.call(e,n)&&!(n in t))return!1;for(let r in t)if(Cn.call(t,r)&&(!(r in e)||!n(e[r],t[r],r)))return!1;return!0}function Hn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Nn(e,t):e===t}function Nn(e,t){return xn(e,t,Rn)}function kn(e,t,n){return xn(e,t,(e,t,r)=>{const s=n[r];return s?s(e,t):e===t})}function On(e,t){let n=[];for(let r in e)Cn.call(e,r)&&(r in t||n.push(r));for(let r in t)Cn.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Pn(e,t){return"object"==typeof e&&e&&"object"==typeof t&&t?Wn(e,t):void 0===t?e:t}function Wn(e,t){return Object.assign({},e,t)}const An=/(^c|C)lass(Name)?$/,jn=/Content$/,Ln=/(DidMount|WillUnmount)$/,Bn=/^on[A-Z]/,Un={headerToolbar:Pn,footerToolbar:Pn,buttons:function(e,t){return e?function(e,t,n){const r={};for(let n in e)Cn.call(e,n)&&(n in t||(r[n]=e[n]));for(let s in t)Cn.call(t,s)&&(r[s]=s in e?n(e[s],t[s]):t[s]);return r}(e,t,Wn):t}};function Vn(...e){const t={};for(const n of e)for(const e in n){const r=n[e];t[e]?t[e]=Fn(t[e],r):t[e]=r}return t}function Fn(...e){let t={};for(const n of e)for(let e in n)if(e in t){const r=Un[e]||(An.test(e)?zn:jn.test(e)?Gn:Ln.test(e)?Yn:void 0);t[e]=r?r(t[e],n[e]):n[e]}else t[e]=n[e];return t}function zn(e,t){const n="function"==typeof e,r="function"==typeof t;if(n||r){const s=s=>Ne(n?e(s):e,r?t(s):t);return s.parts=[e,t],s}return Ne(e,t)}function Gn(e,t){if("function"==typeof t){const n=(n,r)=>{const s=t(n,r);return!0===s?"function"==typeof e?e(n,r):e:s};return n.parts=[e,t],n}return null!=t?t:e}function Yn(e,t){if(e&&t){const n=(...n)=>{e(...n),t(...n)};return n.parts=[e,t],n}return e||t}function qn(e,t){return Array.isArray(e)&&Array.isArray(t)?Xn(e,t):e===t}function Xn(e,t,n=Rn){if(e===t)return!0;let r,s=e.length;if(s!==t.length)return!1;for(r=0;r<s;r+=1)if(!n(e[r],t[r]))return!1;return!0}function Zn(e,t,n){let r,s;return function(...i){if(r){if(!Xn(r,i)){n&&n(s);let r=e.apply(this,i);t&&t(r,s)||(s=r)}}else s=e.apply(this,i);return r=i,s}}function $n(e,t,n){let r,s;return i=>{if(r){if(!Nn(r,i)){n&&n(s);let r=e.call(this,i);t&&t(r,s)||(s=r)}}else s=e.call(this,i);return r=i,s}}function Kn(e,t){let n=cr(e);return n[2]+=7*t,ur(n)}function Jn(e,t){let n=cr(e);return n[2]+=t,ur(n)}function Qn(e,t){let n=cr(e);return n[6]+=t,ur(n)}function er(e,t){return tr(e,t)/7}function tr(e,t){return(t.valueOf()-e.valueOf())/864e5}function nr(e,t){let n=ir(e),r=ir(t);return{years:0,months:0,days:Math.round(tr(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function rr(e,t){let n=sr(e,t);return null!==n&&n%7==0?n/7:null}function sr(e,t){return gr(e)===gr(t)?Math.round(tr(e,t)):null}function ir(e){return ur([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function ar(e,t,n,r){let s=ur([t,0,1+or(t,n,r)]),i=ir(e),a=Math.round(tr(s,i));return Math.floor(a/7)+1}function or(e,t,n){let r=7+t-n;return-((7+ur([e,0,r]).getUTCDay()-t)%7)+r-1}function lr(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function dr(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function cr(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ur(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function hr(e){return!isNaN(e.valueOf())}function gr(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}let fr={};var pr,vr;function mr(e,t){let n,r,s=[],{start:i}=t;for(e.sort(yr),n=0;n<e.length;n+=1)r=e[n],r.start>i&&s.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&s.push({start:i,end:t.end}),s}function yr(e,t){return e.start.valueOf()-t.start.valueOf()}function Sr(e,t){let{start:n,end:r}=e,s=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(s={start:n,end:r}),s}function Er(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function br(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Dr(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function wr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Rr(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Cr(e,t,n,r){let s=Rr(e,n.calendarSystem);return{date:s,start:s,end:t?Rr(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}function _r(e){return e%1==0}function Tr(e){return e.replace(/\s+$/,"")}function Mr(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}pr="gregory",vr=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return ur(e)}markerToArray(e){return cr(e)}},fr[pr]=vr;const Ir=["years","months","days","milliseconds"],xr=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Hr(e,t){return"string"==typeof e?function(e){let t=xr.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?Nr(e):"number"==typeof e?Nr({[t||"milliseconds"]:e}):null}function Nr(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function kr(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Or(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Pr(e){return Wr(e)/864e5}function Wr(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Ar(e,t){let n=null;for(let r=0;r<Ir.length;r+=1){let s=Ir[r];if(t[s]){let r=e[s]/t[s];if(!_r(r)||null!==n&&n!==r)return null;n=r}else if(e[s])return null}return n}function jr(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Lr(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Fr(t,!0)))),r}function Br(e){return e.toISOString().replace(/T.*$/,"")}function Ur(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Vr(e){return Mr(e.getUTCHours(),2)+":"+Mr(e.getUTCMinutes(),2)+":"+Mr(e.getUTCSeconds(),2)}function Fr(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),s=Math.floor(r/60),i=Math.round(r%60);return t?`${n+Mr(s,2)}:${Mr(i,2)}`:`GMT${n}${s}${i?":"+Mr(i,2):""}`}function zr(e){let t="";for(const n of e)t+=n.value;return t}const Gr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Yr(e){let t=Gr.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(hr(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}class qr{constructor(e){var t;let n=this.timeZone=e.timeZone,r="local"!==n&&"UTC"!==n;e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new fr[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText,this.weekTextShort=null!==(t=e.weekTextShort)&&void 0!==t?t:e.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):ur(lr(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=ur(e)),null!==t&&hr(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=Yr(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}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 n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return gr(e)===gr(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return gr(e)===gr(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=rr(e,t),null!==n?{unit:"week",value:n}:(n=sr(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),_r(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),_r(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),_r(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(Pr(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return Pr(e)/30}(n):n.days&&(r=sr(e,t),null!==r)?r/Pr(n):(t.valueOf()-e.valueOf())/Wr(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?ir(e):"hour"===t?function(e){return ur([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return ur([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return ur([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(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)):function(e,t,n){let r=e.getUTCFullYear(),s=ar(e,r,t,n);if(s<1)return ar(e,r-1,t,n);let i=ar(e,r+1,t,n);return i>=1?Math.min(s,i):s}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=Qn(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Lr(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?ur(lr(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ur(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-dr(cr(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(cr(e)):null}toDate(e,t){return"local"===this.timeZone?dr(cr(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(cr(e))*60):new Date(e.valueOf()-(t||0))}}class Xr{constructor(e){this.cmdStr=e}format(e,t,n){const r=t.cmdFormatter(this.cmdStr,Cr(e,null,t,n));return"object"==typeof r?[zr(r),r]:[r,[{type:"literal",value:r}]]}formatRange(e,t,n,r){const s=n.cmdFormatter(this.cmdStr,Cr(e,t,n,r));return"object"==typeof s?zr(s):s}}class Zr{constructor(e){this.func=e}format(e,t,n){const r=this.func(Cr(e,null,t,n));return[r,[{type:"literal",value:r}]]}formatRange(e,t,n,r){return this.func(Cr(e,t,n,r))}}function $r(){let e=n.debounceRendering,t=[];for(n.debounceRendering=function(e){t.push(e)},V(S(Jr,{}),document.createElement("div"));t.length;)t.shift()();n.debounceRendering=e}function Kr(e){e(),$r()}class Jr extends w{render(){return S("div",{})}componentDidMount(){this.setState({})}}const Qr=function(e,t){var n={__c:t="__cC"+h++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},es=n,ts=Qr({});function ns(e,t,n,r,s,i,a,o,l,d,c,u){return{dateEnv:s,options:n,pluginHooks:i,emitter:l,dispatch:a,getCurrentData:o,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,registerInteractiveComponent:c,unregisterInteractiveComponent:u}}class rs extends w{shouldComponentUpdate(e,t){return this.debug&&console.log(On(e,this.props),On(t,this.state)),!kn(this.props,e,this.propEquality)||!kn(this.state,t,this.stateEquality)}}rs.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},rs.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},rs.contextType=ts,rs.prototype.propEquality={},rs.prototype.stateEquality={};class ss extends rs{}function is(e,t){"function"==typeof e?e(t):e&&(e.current=t)}ss.contextType=ts;class as extends ss{constructor(){super(...arguments),this.id=un(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&os(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&is(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:i,renderProps:a}=e,o=ls(e,"",this.handleEl);let l,d,c=!1,u=[];if(null!=r){const e="function"==typeof r?r(a,S):r;if(!0===e)c=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?o.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?u=Array.prototype.slice.call(e.domNodes):(t?s(e):"function"!=typeof e)?l=e:d=e}}else c=!os(e.generatorName,n);return c&&i&&(l=i(a)),this.queuedDomNodes=u,this.currentGeneratorMeta=d,S(e.tag,o,l)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:s,customRenderingMetaMap:i}=r.options;if(s){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==i?void 0:i[n.generatorName];r&&s(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!Xn(e,t)){for(const e of t)e.remove();for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function os(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function ls(e,t,n){const r=Object.assign(Object.assign({},e.attrs),{ref:n});return(e.className||t)&&(r.className=ke(t,e.className,r.className)),e.style&&(r.style=e.style),r}as.addPropsEquality({renderProps:Nn,attrs:function(e,t){const n=On(e,t);for(let e of n)if(!Bn.test(e))return!1;return!0},style:Nn});const ds=Qr(0);class cs extends w{constructor(){super(...arguments),this.InnerContent=us.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(is(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=hs(e.classNameGenerator,e.renderProps);if(e.children){const n=ls(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.tag?S(e.tag,n,r):r}return S(as,Object.assign(Object.assign({},e),{elRef:this.handleEl,tag:e.tag||"div",className:ke(e.className,t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function us(e,t){const n=e.props;return S(as,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function hs(e,t){return Ne("function"==typeof e?e(t):e||[])}function gs(e){return e.text}function fs(e){let t=Math.floor(tr(e.start,e.end))||1,n=ir(e.start);return{start:n,end:Jn(n,t)}}function ps(e,t=Hr(0)){let n=null,r=null;if(e.end){r=ir(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=Wr(t)&&(r=Jn(r,1))}return e.start&&(n=ir(e.start),r&&r<=n&&(r=Jn(n,1))),{start:n,end:r}}function vs(e,t,n,r){return"year"===r?Hr(n.diffWholeYears(e,t),"year"):"month"===r?Hr(n.diffWholeMonths(e,t),"month"):nr(e,t)}function ms(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}cs.contextType=ds;class ys{constructor(e){this.props=e,this.nowDate=ms(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,s=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,s=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,n)}build(e,t,n=!0){let r,s,i,a,o,l,{props:d}=this;var c,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(c=e,e=null!=(u=r).start&&c<u.start?u.start:null!=u.end&&c>=u.end?new Date(u.end.valueOf()-1):c),s=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(s.unit),a=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,i),a=this.trimHiddenDays(a),o=a,d.showNonCurrentDates||(o=Sr(o,s.range)),o=this.adjustActiveRange(o),o=Sr(o,r),l=br(s.range,r),wr(a,e)||(e=a.start),{currentDate:e,validRange:r,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:i,activeRange:o,renderRange:a,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(s.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,s=null,i=null,a=null;return r.duration?(s=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,s,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(s=this.getFallbackDuration(),i=jr(s).unit,a=this.buildRangeFromDuration(e,t,s,i)),{duration:s,unit:i,range:a}}getFallbackDuration(){return Hr({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:s}=this.props,{start:i,end:a}=e;return n&&(Pr(r)<0&&(i=ir(i),i=t.add(i,r)),Pr(s)>1&&(a=ir(a),a=Jn(a,-1),a=t.add(a,s))),{start:i,end:a}}buildRangeFromDuration(e,t,n,r){let s,i,a,{dateEnv:o,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&Wr(e)<Wr(n)?jr(e).unit:r}function d(){s=o.startOf(e,l),i=o.add(s,n),a={start:s,end:i}}return Pr(n)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,t),s=ir(s)),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a}buildRangeFromDayCount(e,t,n){let r,{dateEnv:s,dateAlignment:i}=this.props,a=0,o=e;i&&(o=s.startOf(o,i)),o=ir(o),o=this.skipHiddenDays(o,t),r=o;do{r=Jn(r,1),this.isHiddenDay(r)||(a+=1)}while(a<n);return{start:o,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,s=this.refineRange(r);return!s||null!=s.start&&null!=s.end?s:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?Hr(1,t):e||Hr({days:1}))}refineRange(e){if(e){let t=function(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=ps(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=Jn(e,t);return e}}function Ss(e,t){const{currentRange:n}=e;if("year"===e.currentRangeUnit)return t.diffWholeYears(n.start,n.end)>1?"year":"month";if("month"===e.currentRangeUnit){if(t.diffWholeMonths(n.start,n.end)>1)return"month"}else if("week"===e.currentRangeUnit){if(rr(n.start,n.end)>1)return"week"}else if("day"===e.currentRangeUnit&&sr(n.start,n.end)>1)return"day"}function Es(e,t,n){if(e.valueOf()===ir(e).valueOf()){if("year"===t)return!n.getMonth(e)&&1===n.getDay(e);if("month"===t)return 1===n.getDay(e);if("week"===t)return e.getUTCDay()===n.weekDow;if("day"===t)return!0}return!1}function bs(e,t,n,r){return{instanceId:un(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function Ds(e,t,n){let{dateEnv:r,pluginHooks:s,options:i}=n,{defs:a,instances:o}=e;o=_n(o,e=>!a[e.defId].recurringDef);for(let e in a){let n=a[e];if(n.recurringDef){let{duration:a}=n.recurringDef;a||(a=n.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let l=ws(n,a,t,r,s.recurringTypes);for(let t of l){let n=bs(e,{start:t,end:r.add(t,a)});o[n.instanceId]=n}}}return{defs:a,instances:o}}function ws(e,t,n,r,s){let i=s[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(ir)),i}const Rs={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0,forceCommas:0,weekdayJustify:0},Cs={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},_s=/([ap])\.?m\.?/i,Ts=/,/g,Ms=/\s+/g,Is=/\u200e/g;class xs{constructor(e){let t={},n={},r=7;for(let s in e)if(s in Rs){n[s]=e[s];const t=Rs[s];t&&(r=Math.min(t,r))}else if(t[s]=e[s],s in Cs){const e=Cs[s];e&&(r=Math.min(e,r))}this.standardDateProps=t,this.extendedSettings=n,this.minSeverity=r,this.buildFormattingFunc=Zn(Hs)}format(e,t){const n=this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e);return[zr(n),n]}formatRange(e,t,n,r){let{standardDateProps:s,extendedSettings:i}=this,a=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(gr(e)!==gr(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n)[0];let o=a;!(o>1)||"numeric"!==s.year&&"2-digit"!==s.year||"numeric"!==s.month&&"2-digit"!==s.month||"numeric"!==s.day&&"2-digit"!==s.day||(o=1);let[l]=this.format(e,n),[d]=this.format(t,n);if(l===d)return l;let c=Hs(function(e,t){let n={};for(let r in e)(!(r in Cs)||Cs[r]<=t)&&(n[r]=e[r]);return n}(s,o),i,n),u=c(e),h=c(t),g=function(e,t,n,r){let s=0;for(;s<e.length;){let i=e.indexOf(t,s);if(-1===i)break;let a=e.substr(0,i);s=i+t.length;let o=e.substr(s),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let s=n.substr(l);if(a===t&&o===s)return{before:a,after:o}}}return null}(l,u,d,h),f=i.separator||r||n.defaultSeparator||"";return g?g.before+u+f+h+g.after:l+f+d}getSmallestUnit(){switch(this.minSeverity){case 2:return"day";case 3:return"week";case 4:return"month";case 5:case 6:return"year";default:return"time"}}}function Hs(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>[{type:"timeZoneName",value:Fr(e.timeZoneOffset)}]:0===r&&t.week?e=>function(e,t,n,r,s){let i=[];"long"===s?i.push({type:"literal",value:t}):"short"!==s&&"narrow"!==s||i.push({type:"literal",value:n});"long"!==s&&"short"!==s||i.push({type:"literal",value:" "});i.push({type:"week",value:r.simpleNumberFormat.format(e)}),"rtl"===r.options.direction&&i.reverse();return i}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextShort,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";let r,s=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return i=>{let a,{marker:o}=i;return a=r&&!o.getUTCMinutes()?r:s,function(e,t,n,r,s){let i,a="short"===n.timeZoneName&&("UTC"===s.timeZone||null==t.timeZoneOffset?"UTC":Fr(t.timeZoneOffset)),o=!1;for(const t of e){const e="literal"===t.type;if(e||"dayPeriod"===t.type){let n=t.value;if(n=n.replace(Is,""),r.omitCommas&&(n=n.replace(Ts,"")),!e){const{meridiem:e}=r;!1===e?n=n.replace(_s,""):"narrow"===e?n=n.replace(_s,(e,t)=>t.toLocaleLowerCase()):"short"===e?n=n.replace(_s,(e,t)=>t.toLocaleLowerCase()+"m"):"lowercase"===e&&(n=n.replace(_s,e=>e.toLocaleLowerCase())),i&&(i.value=Tr(i.value))}n=n.replace(Ms," "),t.value=n}else"timeZoneName"===t.type&&a&&(t.value=a,o=!0);i=e?t:void 0}a&&!o&&(i?i.value+=" ":e.push({type:"literal",value:" "}),e.push({type:"timeZoneName",value:a}));r.weekdayJustify&&3===e.length&&" "===e[1].value&&"weekday"===e["start"===r.weekdayJustify?2:0].type&&e.reverse();r.forceCommas&&(e=e.map(e=>" "===e.value?Object.assign(Object.assign({},e),{value:", "}):e));return e.filter(e=>e.value)}(a.formatToParts(o),i,e,t,n)}}(e,t,n)}function Ns(e){return"object"==typeof e&&e?new xs(e):"string"==typeof e?new Xr(e):"function"==typeof e?new Zr(e):null}const ks={navLinkDayClick:Bs,navLinkWeekClick:Bs,duration:Hr,buttons:Bs,toolbarElements:Bs,prevText:String,nextText:String,prevYearText:String,nextYearText:String,todayText:String,yearText:String,monthText:String,weekText:String,weekTextShort:String,dayText:String,listText:Bs,todayHint:Bs,prevHint:Bs,nextHint:Bs,buttonDisplay:Bs,buttonGroupClass:Bs,buttonClass:Bs,defaultAllDayEventDuration:Hr,defaultTimedEventDuration:Hr,nextDayThreshold:Hr,scrollTime:Hr,scrollTimeReset:Boolean,slotMinTime:Hr,slotMaxTime:Hr,dayPopoverFormat:Ns,slotDuration:Hr,snapDuration:Hr,headerToolbar:Bs,footerToolbar:Bs,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayLaneClass:Bs,dayLaneInnerClass:Bs,dayLaneDidMount:Bs,dayLaneWillUnmount:Bs,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Bs,weekNumbers:Boolean,weekNumberHeaderClass:Bs,weekNumberHeaderInnerClass:Bs,weekNumberHeaderContent:Bs,weekNumberHeaderDidMount:Bs,weekNumberHeaderWillUnmount:Bs,inlineWeekNumberClass:Bs,inlineWeekNumberContent:Bs,inlineWeekNumberDidMount:Bs,inlineWeekNumberWillUnmount:Bs,editable:Boolean,controller:Bs,viewClass:Bs,viewDidMount:Bs,viewWillUnmount:Bs,nowIndicator:Boolean,nowIndicatorHeaderClass:Bs,nowIndicatorHeaderContent:Bs,nowIndicatorHeaderDidMount:Bs,nowIndicatorHeaderWillUnmount:Bs,nowIndicatorDotClass:Bs,nowIndicatorLineClass:Bs,nowIndicatorLineContent:Bs,nowIndicatorLineDidMount:Bs,nowIndicatorLineWillUnmount:Bs,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Bs,locale:Bs,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Bs,eventOrder:yn,eventOrderStrict:Boolean,eventSlicing:Boolean,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Bs,contentHeight:Bs,direction:String,weekNumberFormat:Ns,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,progressiveEventRendering:Boolean,businessHours:Bs,initialDate:Bs,now:Bs,eventDataTransform:Bs,stickyHeaderDates:Bs,stickyFooterScrollbar:Bs,defaultAllDay:Boolean,eventSourceFailure:Bs,eventSourceSuccess:Bs,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Bs,eventConstraint:Bs,eventAllow:Bs,eventColor:String,eventContrastColor:String,eventDidMount:Bs,eventWillUnmount:Bs,eventContent:Bs,backgroundEventColor:String,eventClass:Bs,eventInnerClass:Bs,eventTimeClass:Bs,eventTitleClass:Bs,eventBeforeClass:Bs,eventAfterClass:Bs,listItemEventClass:Bs,listItemEventInnerClass:Bs,listItemEventTimeClass:Bs,listItemEventTitleClass:Bs,listItemEventBeforeClass:Bs,listItemEventAfterClass:Bs,blockEventClass:Bs,blockEventInnerClass:Bs,blockEventTimeClass:Bs,blockEventTitleClass:Bs,blockEventBeforeClass:Bs,blockEventAfterClass:Bs,rowEventClass:Bs,rowEventInnerClass:Bs,rowEventTimeClass:Bs,rowEventTitleClass:Bs,rowEventTitleSticky:Boolean,rowEventBeforeClass:Bs,rowEventBeforeContent:Bs,rowEventAfterClass:Bs,rowEventAfterContent:Bs,columnEventClass:Bs,columnEventInnerClass:Bs,columnEventTimeClass:Bs,columnEventTitleClass:Bs,columnEventTitleSticky:Boolean,columnEventBeforeClass:Bs,columnEventAfterClass:Bs,backgroundEventClass:Bs,backgroundEventInnerClass:Bs,backgroundEventTitleClass:Bs,selectConstraint:Bs,selectOverlap:Bs,selectAllow:Bs,droppable:Boolean,unselectCancel:String,slotHeaderFormat:Bs,slotLaneClass:Bs,slotLaneDidMount:Bs,slotLaneWillUnmount:Bs,slotHeaderClass:Bs,slotHeaderInnerClass:Bs,slotHeaderContent:Bs,slotHeaderDidMount:Bs,slotHeaderWillUnmount:Bs,slotHeaderAlign:Bs,slotHeaderSticky:Bs,slotHeaderRowClass:Bs,slotHeaderDividerClass:Bs,dayMaxEvents:Bs,dayMaxEventRows:Bs,dayMinWidth:Number,slotHeaderInterval:Hr,dayHeaderClass:Bs,dayHeaderInnerClass:Bs,dayHeaderContent:Bs,dayHeaderDidMount:Bs,dayHeaderWillUnmount:Bs,dayHeaderAlign:Bs,dayHeaderSticky:Bs,dayHeaderRowClass:Bs,dayHeaderDividerClass:Bs,dayRowClass:Bs,dayCellDidMount:Bs,dayCellWillUnmount:Bs,dayCellClass:Bs,dayCellInnerClass:Bs,dayCellTopContent:Bs,dayCellTopClass:Bs,dayCellTopInnerClass:Bs,dayCellBottomClass:Bs,allDaySlot:Boolean,allDayText:String,allDayHeaderClass:Bs,allDayHeaderInnerClass:Bs,allDayHeaderContent:Bs,allDayHeaderDidMount:Bs,allDayHeaderWillUnmount:Bs,timedText:String,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ns,rerenderDelay:Number,moreLinkText:Bs,moreLinkHint:Bs,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Bs,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Hr,hiddenDays:Bs,fixedWeekCount:Boolean,validRange:Bs,visibleRange:Bs,titleFormat:Bs,eventInteractive:Boolean,noEventsText:String,viewHint:Bs,viewChangeHint:String,navLinkHint:Bs,closeHint:String,eventsHint:String,headingLevel:Number,moreLinkClick:Bs,moreLinkContent:Bs,moreLinkDidMount:Bs,moreLinkWillUnmount:Bs,moreLinkClass:Bs,moreLinkInnerClass:Bs,rowMoreLinkClass:Bs,rowMoreLinkInnerClass:Bs,columnMoreLinkClass:Bs,columnMoreLinkInnerClass:Bs,navLinkClass:Bs,monthStartFormat:Ns,dayCellFormat:Ns,handleCustomRendering:Bs,customRenderingMetaMap:Bs,customRenderingReplaces:Boolean,class:Bs,className:Bs,popoverClass:Bs,popoverCloseClass:Bs,popoverCloseContent:Bs,dayNarrowWidth:Number,borderless:Boolean,borderlessX:Boolean,borderlessTop:Boolean,borderlessBottom:Boolean,fillerClass:Bs,headerToolbarClass:Bs,footerToolbarClass:Bs,toolbarClass:Bs,toolbarSectionClass:Bs,toolbarTitleClass:Bs,tableClass:Bs,tableHeaderClass:Bs,tableBodyClass:Bs,nonBusinessClass:Bs,highlightClass:Bs},Os={buttonDisplay:"auto",eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",initialView:"",aspectRatio:1.35,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:"",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},dayCellFormat:{day:"numeric"},headingLevel:2,outerBorder:!0,dayNarrowWidth:80,eventOverlap:!0,slotHeaderAlign:"start",slotHeaderSticky:!0,dayHeaderAlign:"start",dayHeaderSticky:!0,rowEventTitleSticky:!0,columnEventTitleSticky:!0},Ps={datesSet:Bs,eventsSet:Bs,eventAdd:Bs,eventChange:Bs,eventRemove:Bs,eventClick:Bs,eventMouseEnter:Bs,eventMouseLeave:Bs,select:Bs,unselect:Bs,loading:Bs,_unmount:Bs,_beforeprint:Bs,_afterprint:Bs,_noEventDrop:Bs,_noEventResize:Bs,_timeScrollRequest:Bs},Ws={views:Bs,plugins:Bs,initialEvents:Bs,events:Bs,eventSources:Bs},As={type:String,component:Bs,buttonTextKey:String,dateProfileGeneratorClass:Bs,usesMinMaxTime:Boolean,class:Bs,className:Bs,content:Bs,didMount:Bs,willUnmount:Bs},js={headerToolbar:Hn,footerToolbar:Hn,dateIncrement:Hn,buttons:function(e,t){return"object"==typeof e&&e&&"object"==typeof t&&t?xn(e,t,Nn):e===t},plugins:qn,events:qn,eventSources:qn,resources:qn};function Ls(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function Bs(e){return e}const Us={id:String,groupId:String,title:String,url:String,interactive:Boolean},Vs={start:Bs,end:Bs,date:Bs,allDay:Boolean},Fs=Object.assign(Object.assign(Object.assign({},Us),Vs),{extendedProps:Bs});function zs(e,t,n,r,s=Ys(n),i,a){let{refined:o,extra:l}=Gs(e,n,s),d=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),c=function(e,t,n,r){for(let s=0;s<r.length;s+=1){let i=r[s].parse(e,n);if(i){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=i.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:i.duration,typeData:i.typeData,typeId:s}}}return null}(o,d,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let e=qs(o,l,t?t.sourceId:"",c.allDay,Boolean(c.duration),n,i);return e.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:e,instance:null}}let u=function(e,t,n,r){let s,i,{allDay:a}=e,o=null,l=!1,d=null,c=null!=e.start?e.start:e.date;if(s=n.dateEnv.createMarkerMeta(c),s)o=s.marker;else if(!r)return null;null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end));null==a&&(a=null!=t?t:(!s||s.isTimeUnspecified)&&(!i||i.isTimeUnspecified));a&&o&&(o=ir(o));i&&(d=i.marker,a&&(d=ir(d)),o&&d<=o&&(d=null));d?l=!0:r||(l=n.options.forceEventDuration||!1,d=n.dateEnv.add(o,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:l,range:{start:o,end:d},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(o,d,n,r);if(u){let e=qs(o,l,t?t.sourceId:"",u.allDay,u.hasEnd,n,i),r=bs(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return a&&e.publicId&&a[e.publicId]&&(r.instanceId=a[e.publicId]),{def:e,instance:r}}return null}function Gs(e,t,n=Ys(t)){return Ls(e,n)}function Ys(e){return Object.assign(Object.assign(Object.assign({},ei),Fs),e.pluginHooks.eventRefiners)}function qs(e,t,n,r,s,i,a){let o={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(a&&e.id?a[e.id]:"")||un(),sourceId:n,allDay:r,hasEnd:s,interactive:e.interactive,ui:ni(e,i),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of i.pluginHooks.eventDefMemberAdders)Object.assign(o,t(e));return Object.freeze(o.ui.className),Object.freeze(o.extendedProps),o}function Xs(e,t,n,r,s,i){let a={defs:{},instances:{}},o=Ys(n);for(let l of e){let e=zs(l,t,n,r,o,s,i);e&&Zs(e,a)}return a}function Zs(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function $s(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=Qs(e,e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r});return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function Ks(){return{defs:{},instances:{}}}function Js(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Qs(e,t){let n=_n(e.defs,t),r=_n(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}const ei={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Bs,overlap:Bs,allow:Bs,class:Bs,className:Bs,color:String,contrastColor:String},ti={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],color:"",contrastColor:"",className:""};function ni(e,t){var n;let r=function(e,t){return Array.isArray(e)?Xs(e,null,t,!0):"object"==typeof e&&e?Xs([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=r?[r]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],color:e.color||"",contrastColor:e.contrastColor||"",className:(null!==(n=e.class)&&void 0!==n?n:e.className)||""}}function ri(e){return e.reduce(si,ti)}function si(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),color:t.color||e.color,contrastColor:t.contrastColor||e.contrastColor,className:Ne(e.className,t.className)}}const ii={id:String,defaultAllDay:Boolean,url:String,format:String,events:Bs,eventDataTransform:Bs,success:Bs,failure:Bs};function ai(e,t,n=oi(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:s,extra:i}=Ls(r,n),a=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(s,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:s.defaultAllDay,eventDataTransform:s.eventDataTransform,success:s.success,failure:s.failure,publicId:s.id||"",sourceId:un(),sourceDefId:a.sourceDefId,meta:a.meta,ui:ni(s,t),extendedProps:i}}return null}function oi(e){return Object.assign(Object.assign(Object.assign({},ei),ii),e.pluginHooks.eventSourceRefiners)}function li(e,t,n,r,s){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,s,i){if(t&&n===t.latestFetchId){let n=Xs(di(s,t,i),t,i);return r&&(n=Ds(n,r,i)),Js(hi(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,s);case"RESET_RAW_EVENTS":return function(e,t,n,r,s){const{defIdMap:i,instanceIdMap:a}=function(e){const{defs:t,instances:n}=e,r={},s={};for(let e in t){const n=t[e],{publicId:s}=n;s&&(r[s]=e)}for(let e in n){const r=n[e],i=t[r.defId],{publicId:a}=i;a&&(s[a]=e)}return{defIdMap:r,instanceIdMap:s}}(e);return Ds(Xs(di(n,t,s),t,s,!1,i,a),r,s)}(e,n[t.sourceId],t.rawEvents,r.activeRange,s);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Ds(t,n,r));return Js(e,t)}(e,t.eventStore,r?r.activeRange:null,s);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Js(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ds(e,r.activeRange,s):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,s={},i={};for(let e in n)t.defs[e]||(s[e]=n[e]);for(let e in r)!t.instances[e]&&s[r[e].defId]&&(i[e]=r[e]);return{defs:s,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return hi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Qs(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function di(e,t,n){let r=n.options.eventDataTransform,s=t?t.eventDataTransform:null;return s&&(e=ci(e,s)),r&&(e=ci(e,r)),e}function ci(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function ui(e,t,n){let{defs:r}=e,s=Tn(e.instances,e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo}));return{defs:r,instances:s}}function hi(e,t){return Qs(e,e=>e.sourceId!==t)}class gi{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter(e=>e!==n)):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],s=[].concat(r||[],n);for(let e of s)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const fi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",className:"",groupId:"_businessHours"};function pi(e,t){return Xs(function(e){let t;t=!0===e?[{}]:Array.isArray(e)?e.filter(e=>e.daysOfWeek):"object"==typeof e&&e?[e]:[];return t=t.map(e=>Object.assign(Object.assign({},fi),e)),t}(e),null,t)}function vi(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},mi(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function mi(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,s;return Object.assign(n,(r=e,s=t.dateEnv,Object.assign(Object.assign({},Fi(r.range,s,r.allDay)),{allDay:r.allDay}))),n}function yi(e,t,n){let{dateEnv:r,options:s}=n,i=t;return e?(i=ir(i),i=r.add(i,s.defaultAllDayEventDuration)):i=r.add(i,s.defaultTimedEventDuration),i}function Si(e,t,n,r){let s=Hi(e.defs,t),i={defs:{},instances:{}};for(let t in e.defs){let a=e.defs[t];i.defs[t]=Ei(a,s[t],n,r)}for(let t in e.instances){let a=e.instances[t],o=i.defs[a.defId];i.instances[t]=bi(a,o,s[a.defId],n,r)}return i}function Ei(e,t,n,r){let s=n.standardProps||{};null==s.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(s.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},e),s),{ui:Object.assign(Object.assign({},e.ui),s.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function bi(e,t,n,r,s){let{dateEnv:i}=s,a=r.standardProps&&!0===r.standardProps.allDay,o=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return a&&(l.range=fs(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:i.add(l.range.start,r.datesDelta),end:i.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:i.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:i.add(l.range.end,r.endDelta)}),o&&(l.range={start:l.range.start,end:yi(t.allDay,l.range.start,s)}),t.allDay&&(l.range={start:ir(l.range.start),end:ir(l.range.end)}),l.range.end<l.range.start&&(l.range.end=yi(t.allDay,l.range.start,s)),l}class Di{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 wi{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Vs)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Us[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Us)t=Us[e](t),this.mutate({standardProps:{[e]:t}});else if(e in ei){let n=ei[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=vs(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=vs(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:s}=this._context,i={allDay:n.allDay},a=s.createMarker(e);var o,l;if(a&&((null==t||(r=s.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=fs(e));let t=vs(e.start,a,s,n.granularity);if(r){let a=vs(e.end,r,s,n.granularity);l=a,(o=t).years===l.years&&o.months===l.months&&o.days===l.days&&o.milliseconds===l.milliseconds?this.mutate({datesDelta:t,standardProps:i}):this.mutate({startDelta:t,endDelta:a,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:t,standardProps:i})}}moveStart(e){let t=Hr(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=Hr(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=Hr(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=Ns(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})[0]}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:s}=r.getCurrentData(),i=$s(s,t.instanceId);i=Si(i,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],color:"",contrastColor:"",className:""}},e,r);let a=new wi(r,n,t);this._def=i.defs[n.defId],this._instance=i.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:i}),r.emitter.trigger("eventChange",{oldEvent:a,event:this,relatedEvents:Ci(i,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,t=Ri(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 Di(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 color(){return this._def.ui.color}get contrastColor(){return this._def.ui.contrastColor}get className(){return this._def.ui.className}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:s}=this,i={allDay:t.allDay};return t.title&&(i.title=t.title),r&&(i.start=r),s&&(i.end=s),t.publicId&&(i.id=t.publicId),t.groupId&&(i.groupId=t.groupId),t.url&&(i.url=t.url),n.display&&"auto"!==n.display&&(i.display=n.display),n.color&&(i.color=n.color),n.contrastColor&&(i.contrastColor=n.contrastColor),n.className&&(i.className=n.className),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}toJSON(){return this.toPlainObject()}}function Ri(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Ci(e,t,n){let{defs:r,instances:s}=e,i=[],a=n?n.instanceId:"";for(let e in s){let n=s[e],o=r[n.defId];n.instanceId!==a&&i.push(new wi(t,o,n))}return i}function _i(e){return e.eventRange.instance.instanceId}function Ti(e,t,n,r){let s={},i={},a={},o=[],l=[],d=Hi(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===d[n.defId].display&&(n.groupId?(s[n.groupId]=[],a[n.groupId]||(a[n.groupId]=n)):i[t]=[])}for(let t in e.instances){let a=e.instances[t],c=e.defs[a.defId],u=d[c.defId],h=a.range,g=!c.allDay&&r?ps(h,r):h,f=Sr(g,n);f&&("inverse-background"===u.display?c.groupId?s[c.groupId].push(f):i[a.defId].push(f):"none"!==u.display&&("background"===u.display?o:l).push({def:c,ui:u,instance:a,range:f,isStart:g.start&&g.start.valueOf()===f.start.valueOf(),isEnd:g.end&&g.end.valueOf()===f.end.valueOf()}))}for(let e in s){let t=mr(s[e],n);for(let n of t){let t=a[e],r=d[t.defId];o.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in i){let r=mr(i[t],n);for(let n of r)o.push({def:e.defs[t],ui:d[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:o,fg:l}}function Mi(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function Ii(e,t){e.fcEventRange=t}function xi(e){return e.fcEventRange||e.parentNode.fcEventRange||null}function Hi(e,t){return Tn(e,e=>Ni(e,t))}function Ni(e,t){const n=[],r=t[""],s=t[e.defId];return r&&n.push(r),s&&n.push(s),n.push(e.ui),ri(n)}function ki(e,t){let n=e.map(Oi);return n.sort((e,n)=>Sn(e,n,t)),n.map(e=>e._seg)}function Oi(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,s=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:s,end:i,duration:i-s,allDay:Number(n.allDay),_seg:e})}function Pi(e,t,n,r,s,i,a,o=!0,l=!0){const{dateEnv:d,options:c}=a,{def:u,instance:h}=t;let{displayEventTime:g,displayEventEnd:f}=c;null==g&&(g=!1!==o),null==f&&(f=!1!==l);const p=!s&&n&&ir(n).valueOf()!==ir(t.instance.range.start).valueOf()?n:t.instance.range.start,v=!i&&r&&ir(Qn(r,-1)).valueOf()!==ir(Qn(t.instance.range.end,-1)).valueOf()?r:t.instance.range.end;if(g&&!u.allDay){if(f&&(s||i)&&u.hasEnd)return d.formatRange(p,v,e,{forcedStartTzo:s?h.forcedStartTzo:null,forcedEndTzo:i?h.forcedEndTzo:null});if(s)return d.format(p,e,{forcedTzo:h.forcedStartTzo})[0]}return""}function Wi(e,t,n){let r=e.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&wr(t,r.start)}}function Ai(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function ji(e,t){let{def:n,instance:r}=e,{url:s}=n;if(s)return["a",{href:s},!0];let i,{emitter:a,options:o}=t,{eventInteractive:l}=o;return null==l&&(l=n.interactive,null==l&&(l=Boolean(a.hasHandlers("eventClick")))),l&&(i=Be(e=>{a.trigger("eventClick",{el:e.target,event:new wi(t,n,r),jsEvent:e,view:t.viewApi})}),i=Object.assign({role:"button"},i)),["div",i,l]}const Li={start:Bs,end:Bs,allDay:Boolean};function Bi(e,t,n){let r=function(e,t){let{refined:n,extra:r}=Ls(e,Li),s=n.start?t.createMarkerMeta(n.start):null,i=n.end?t.createMarkerMeta(n.end):null,{allDay:a}=n;null==a&&(a=s&&s.isTimeUnspecified&&(!i||i.isTimeUnspecified));return Object.assign({range:{start:s?s.marker:null,end:i?i.marker:null},allDay:a},r)}(e,t),{range:s}=r;if(!s.start)return null;if(!s.end){if(null==n)return null;s.end=t.add(s.start,n)}return r}function Ui(e,t){return Er(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}(e,t)}function Vi(e,t,n){return Object.assign(Object.assign({},Fi(e,t,n)),{timeZone:t.timeZone})}function Fi(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function zi(e,t,n){let r=!1,s=function(e){r||(r=!0,t(e))},i=function(e){r||(r=!0,n(e))},a=e(s,i);a&&"function"==typeof a.then&&a.then(s,i)}class Gi extends Error{constructor(e,t){super(e),this.response=t}}function Yi(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(e=>{if(e.ok)return e.json().then(t=>[t,e],()=>{throw new Gi("Failure parsing JSON",e)});throw new Gi("Request failed",e)})}function qi(e,t){return null!=e&&(e===t||Math.abs(e-t)<.01)}const Xi=new Map,Zi=new Set;let $i=!1,Ki=!1;function Ji(e){Zi.add(e),$i||Ki||(Ki=!0,requestAnimationFrame(()=>{Ki=!1,Qi()}))}function Qi(){for(const e of Zi.values())e(),Zi.delete(e)}function ea(){let e=!0;if(!$i){$i=!0;const t=[];for(const[n,r]of Xi.entries()){const{width:s,height:i}=n.getBoundingClientRect();ta(r,s,i)&&(t.push(r),e=!0)}for(const e of t)e.callback(e.width,e.height);Qi(),$i=!1}return e}function ta(e,t,n){let r=!1;return qi(e.width,t)||(e.width=t,r=e.watchWidth),qi(e.height,n)||(e.height=n,r||(r=e.watchHeight)),r}const na=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ra={capture:!0,passive:!0};const sa=()=>{};const[ia,aa]="undefined"!=typeof ResizeObserver?function(){const e=new ResizeObserver(e=>{$i=!0;for(let t of e){const e=t.target,n=Xi.get(e);let r,s;if(t.borderBoxSize){const e=t.borderBoxSize[0]||t.borderBoxSize;r=e.inlineSize,s=e.blockSize}else({width:r,height:s}=e.getBoundingClientRect());ta(n,r,s)&&n.callback(r,s)}Qi(),$i=!1});return[function(t,n,r=!0,s=!0){return Xi.set(t,{callback:n,watchWidth:r,watchHeight:s}),e.observe(t,{box:"border-box"}),()=>{Xi.delete(t),e.unobserve(t)}},ea]}():function(){let e,t=!1;const[n,r]=function(e,t){let n,r,s;return[function(){s?r=Date.now()-n:function t(i){n=Date.now(),r=0,s=setTimeout(()=>{r?t(r):(s=void 0,e())},i)}(t)},function(){s&&(clearTimeout(s),s=void 0)}]}(ea,100);function s(){return r(),ea()}function i(){e.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function a(){e.disconnect()}function o(){t||(t=!0,Xi.size&&a())}function l(){t&&(t=!1,Xi.size&&i())}const d=es.__r||sa,c=es.__c||sa;let u=!1;return es.__r=function(){o(),d.apply(this,arguments)},es.__c=function(){u||(u=!0,requestAnimationFrame(()=>{s(),l(),u=!1})),c.apply(this,arguments)},[function(r,s,o=!0,l=!0){return Xi.size||function(){e=new MutationObserver(n),t||i();for(const e of na)window.addEventListener(e,n,ra)}(),Xi.set(r,{callback:s,watchWidth:o,watchHeight:l}),n(),()=>{Xi.delete(r),Xi.size||function(){t||a();for(const e of na)window.removeEventListener(e,n,ra)}()}},s]}();function oa(e,t){return ia(e,t,!0)}function la(e,t){return ia(e,(e,n)=>t(n),!1,!0)}class da extends ss{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0}),$r(),aa(),$r()},this.handleAfterPrint=()=>{this.setState({forPrint:!1}),$r()}}render(){var e,t,n;let{props:r,state:s}=this,{options:i}=r,{forPrint:a}=s,o=null!==(e=i.borderlessX)&&void 0!==e?e:i.borderless,l=null!==(t=i.borderlessTop)&&void 0!==t?t:i.borderless,d=null!==(n=i.borderlessBottom)&&void 0!==n?n:i.borderless,c=Ne(i.class,i.className,l&<,d&&dt,o&&ot,Fe,Ve,ht,a?Xe:Ye,(o||l||d)&&Rt);return r.children("rtl"===i.direction,c,i.height,a)}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 ca{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function ua(e){return{[e.component.uid]:e}}const ha={},ga=Ns({year:"numeric",month:"long",day:"numeric"}),fa=Ns({week:"long"}),pa=Ns({weekday:"long"});function va(e){for(const t of e)if("weekday"===t.type)return t.value;return""}function ma(e){for(const t of e)if("day"===t.type)return t.value;return""}function ya(e){for(const t of e)if("month"===t.type)return t.value;return""}function Sa(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Ea(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function ba(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Da(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function wa(e,t){return{left:e.left-t.left,top:e.top-t.top}}function Ra(e){const t=e.getRootNode();return t instanceof Document?t.body||t.documentElement:t}function Ca(e){return"rtl"===getComputedStyle(e).direction}const _a=/(top|left|right|bottom|width|height)$/i;function Ta(e,t){for(let n in t)Ma(e,n,t[n])}function Ma(e,t,n){null==n?e.style[t]="":"number"==typeof n&&_a.test(t)?e.style[t]=n+"px":e.style[t]=n}function Ia(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}let xa=0;function Ha(){return xa+=1,"fc-dom-"+xa}const Na={defs:{},instances:{}};class ka{constructor(){this.getKeysForEventDefs=Zn(this._getKeysForEventDefs),this.splitDateSelection=Zn(this._splitDateSpan),this.splitEventStore=Zn(this._splitEventStore),this.splitIndividualUi=Zn(this._splitIndividualUi),this.splitEventDrag=Zn(this._splitInteraction),this.splitEventResize=Zn(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,n),i=this.splitEventStore(e.eventStore,n),a=this.splitEventDrag(e.eventDrag),o=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=Tn(t,(e,t)=>this.eventUiBuilders[t]||Zn(Oa));for(let n in t){let d=t[n],c=i[n]||Na,u=this.eventUiBuilders[n];l[n]={businessHours:d.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:c,eventUiBases:u(e.eventUiBases[""],d.ui,s[n]),eventDrag:a[n]||null,eventResize:o[n]||null,eventSelection:c.instances[e.eventSelection]?e.eventSelection:""}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return Tn(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,s={};for(let e in n)for(let r of t[e])s[r]||(s[r]={defs:{},instances:{}}),s[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])s[r]&&(s[r].instances[e]=n)}return s}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let s of t[r])n[s]||(n[s]={}),n[s][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,r),i=r=>{t[r]||(t[r]={affectedEvents:n[r]||Na,mutatedEvents:s[r]||Na,isEvent:e.isEvent})};for(let e in n)i(e);for(let e in s)i(e)}return t}}function Oa(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let s={"":ri(r)};return n&&Object.assign(s,n),s}function Pa(e,t,n,r,s){const i=Boolean(n&&!wr(n.activeRange,e));return{date:t.toDate(e),dow:e.getUTCDay(),isDisabled:i,isOther:!i&&Boolean(n&&!wr(n.currentRange,e)),isToday:!i&&Boolean(r&&wr(r,e)),isPast:!i&&Boolean(s?e<s:!!r&&e<r.start),isFuture:!i&&Boolean(s?e>s:!!r&&e>=r.end)}}function Wa(e,t,n="day"){return e.dateEnv.format(t,"week"===n?fa:ga)[0]}function Aa(e,t,n="day",r=Wa(e,t,n),s=!0){const{dateEnv:i,options:a,calendarApi:o}=e,l=i.toDate(t),d=e=>{let r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof r?r.call(o,i.toDate(t),e):("string"==typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({role:"link","aria-label":Dn(a.navLinkHint,[r,l],r),className:Ne(a.navLinkClass,Ze,an)},s?Le(d):{onClick:d})}function ja(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,s=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,o=function(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}(e),l=o.y-r-s,d={borderLeft:r,borderRight:s,borderTop:i,borderBottom:a,scrollbarBottom:o.x-i-a,scrollbarLeft:0,scrollbarRight:0};return"rtl"===n.direction?d.scrollbarLeft=l:d.scrollbarRight=l,t&&(d.paddingLeft=parseInt(n.paddingLeft,10)||0,d.paddingRight=parseInt(n.paddingRight,10)||0,d.paddingTop=parseInt(n.paddingTop,10)||0,d.paddingBottom=parseInt(n.paddingBottom,10)||0),d}function La(e,t=!1,n){let r=n?e.getBoundingClientRect():Ba(e),s=ja(e,t),i={left:r.left+s.borderLeft+s.scrollbarLeft,right:r.right-s.borderRight-s.scrollbarRight,top:r.top+s.borderTop,bottom:r.bottom-s.borderBottom-s.scrollbarBottom};return t&&(i.left+=s.paddingLeft,i.right-=s.paddingRight,i.top+=s.paddingTop,i.bottom-=s.paddingBottom),i}function Ba(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function Ua(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function Va(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class Fa{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 za extends Fa{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 Ga extends Fa{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Ya extends ss{constructor(){super(...arguments),this.uid=un()}prepareHits(){}queryHit(e,t,n,r,s){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!e.closest("."+$t)}isValidDateDownEl(e){return!(e.closest(`.${Zt}:not(.${rn})`)||e.closest("."+sn)||e.closest("."+an)||e.closest("."+on))}}function qa(e,t){const n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);if(n<r)return{start:n,end:r,isStart:e.isStart&&n===e.start,isEnd:e.isEnd&&r===e.end}}function Xa(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Za(e){return e.end}function $a(e){return e.reduce(Ja).eventRange.range.start}function Ka(e){return e.reduce(Qa).eventRange.range.end}function Ja(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Qa(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class eo{constructor(e,t=(e=>1),n=!1,r,s,i=!1,a=!1){this.getSegThickness=t,this.strictOrder=n,this.maxCoord=r,this.maxDepth=s,this.hiddenConsumes=i,this.allowSlicing=a,this.placementsByLevel=[],this.levelCoords=[],this.hiddenSegs=[];for(const t of e)this.insertSeg(t,this.getSegThickness(t))}insertSeg(e,t,n){if(null!=t){const r=this.findInsertion(e,t);if(this.isInsertionValid(r,t))this.insertSegAt(e,r,t,n);else{const{touchingPlacement:n}=r;if(n){if(this.hiddenConsumes&&!n.isZombie&&(n.isZombie=!0,this.hiddenSegs.push(n),this.allowSlicing)){const t=Object.assign({},n);Object.assign(n,qa(n,e)),n.isSlice=!0,this.splitSeg(t,n.thickness,n)}this.allowSlicing?(this.hiddenSegs.push(Object.assign(Object.assign({},e),qa(e,n))),this.splitSeg(e,t,n)):this.hiddenSegs.push(e)}else this.hiddenSegs.push(e)}}}isInsertionValid(e,t){return(null==this.maxCoord||e.levelCoord+t<=this.maxCoord)&&(null==this.maxDepth||e.depth<this.maxDepth)}splitSeg(e,t,n){e.start<n.start&&this.insertSeg(Object.assign(Object.assign({},e),{end:n.start,isEnd:!1}),t,!0),e.end>n.end&&this.insertSeg(Object.assign(Object.assign({},e),{start:n.end,isStart:!1}),t,!0)}insertSegAt(e,t,n,r){const s=Object.assign(Object.assign({},e),{thickness:n,depth:t.depth,isSlice:r||e.isSlice||!1,isZombie:!1});-1===t.lateralIndex?(no(this.placementsByLevel,t.levelIndex,[s]),no(this.levelCoords,t.levelIndex,t.levelCoord)):no(this.placementsByLevel[t.levelIndex],t.lateralIndex,s)}findInsertion(e,t){let n,r,{placementsByLevel:s,levelCoords:i}=this,a=s.length,o=0,l=0;for(let d=0;d<a;d+=1){const a=i[d];if(!this.strictOrder&&a>=o+t)break;let c,u=s[d],[h,g]=ro(u,e.start,Za),f=h+g;for(;(c=u[f])&&c.start<e.end;){let e=a+c.thickness;e>o&&(o=e,n=c,r=d),e===o&&(l=Math.max(l,c.depth+1)),f+=1}}let d=0;if(n)for(d=r+1;d<a&&i[d]<o;)d+=1;let c=-1;return d<a&&i[d]===o&&([c]=ro(s[d],e.end,Za)),{touchingPlacement:n,levelCoord:o,levelIndex:d,lateralIndex:c,depth:l}}traverseSegs(e){const{placementsByLevel:t,levelCoords:n}=this;for(let r=0;r<t.length;r++){const s=t[r],i=n[r];for(const t of s)t.isZombie||e(t,i)}}}function to(e){let t=[];for(let s of e){let e=[],i={segs:[s],start:s.start,end:s.end};for(let s of t)r=i,(n=s).end>r.start&&n.start<r.end?i=Object.assign(Object.assign({},Xa(s,i)),{segs:s.segs.concat(i.segs)}):e.push(s);e.push(i),t=e}var n,r;return t.map(t=>Object.assign({key:Lr($a(e))},t))}function no(e,t,n){e.splice(t,0,n)}function ro(e,t,n){let r=0,s=e.length;if(!s||t<n(e[r]))return[0,0];if(t>n(e[s-1]))return[s,0];for(;r<s;){let i=Math.floor(r+(s-r)/2),a=n(e[i]);if(t<a)s=i;else{if(!(t>a))return[i,1];r=i+1}}return[r,0]}class so{constructor(e,t){this.emitter=new gi}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const io={},ao={startTime:Hr,duration:Hr,create:Boolean,sourceId:String};function oo(e){let{refined:t,extra:n}=Ls(e,ao);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}}class lo{constructor(e,t){let n=e.start,{end:r}=e,s=[],i=[],a=-1;for(;n<r;)t.isHiddenDay(n)?s.push(a+.5):(a+=1,s.push(a),i.push(n)),n=Jn(n,1);this.dates=i,this.indices=s,this.cnt=i.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Jn(e.end,-1)),r=Math.max(0,t),s=Math.min(this.cnt-1,n);return r=Math.ceil(r),s=Math.floor(s),r<=s?{start:r,end:s+1,isStart:t===r,isEnd:n===s}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(tr(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class co{constructor(e,t,n,r=""){this.dateEnv=n,this.majorUnit=r;let s,i,a,{dates:o}=e;if(t){for(i=o[0].getUTCDay(),s=1;s<o.length&&o[s].getUTCDay()!==i;s+=1);a=Math.ceil(o.length/s)}else a=1,s=o.length;this.rowCount=a,this.colCount=s,this.daySeries=e,this.cellRows=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCount;t+=1){let n=[];for(let e=0;e<this.colCount;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCount+t];return{key:n.toISOString(),date:n,isMajor:this.cellIsMajor(n)}}cellIsMajor(e){return!!this.majorUnit&&Es(e,this.majorUnit,this.dateEnv)}buildHeaderDates(){let e=[];for(let t=0;t<this.colCount;t+=1)e.push(this.cellRows[0][t].date);return e}sliceRange(e){let{colCount:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){const{start:e,end:s}=n;let i=e;for(;i<s;){let a=Math.floor(i/t),o=Math.min((a+1)*t,s);r.push({row:a,start:i%t,end:(o-1)%t+1,isStart:n.isStart&&i===e,isEnd:n.isEnd&&o===s}),i=o}}return r}}class uo{constructor(e){this.el=e,this.emitter=new gi,this.isScroll=!1,this.isScrollRecent=!1,this.isWheelRecent=!1,this.isMouseDown=!1,this.isTouchDown=!1,this.isMouse=!1,this.isTouch=!1,this.isWheel=!1,this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.getIsUser()),this.isScrollRecent=!0,this.isMouseDown&&(this.isMouse=!0),this.isTouchDown&&(this.isTouch=!0),this.isWheelRecent&&(this.isWheel=!0),this.scrollWaiter.request(500)},this.handleScrollWait=()=>{this.isScrollRecent=!1,this.isTouchDown||this.endScroll()},this.handleWheel=()=>{this.isWheelRecent=!0,this.wheelWaiter.request(500)},this.handleWheelWait=()=>{this.isWheelRecent=!1},this.handleMouseDown=()=>{this.isMouseDown=!0},this.handleMouseUp=()=>{this.isMouseDown=!1},this.handleTouchStart=()=>{this.isTouchDown=!0},this.handleTouchEnd=()=>{this.isTouchDown=!1,this.isScrollRecent||this.endScroll()},this.wheelWaiter=new He(this.handleWheelWait),this.scrollWaiter=new He(this.handleScrollWait),e.addEventListener("scroll",this.handleScroll),e.addEventListener("wheel",this.handleWheel,{passive:!0}),e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("mouseup",this.handleMouseUp),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("wheel",this.handleWheel,{passive:!0}),e.removeEventListener("mousedown",this.handleMouseDown),e.removeEventListener("mouseup",this.handleMouseUp),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd)}startScroll(){this.isScroll||(this.isScroll=!0,this.emitter.trigger("scrollStart",this.getIsUser()))}endScroll(){this.isScroll&&(this.scrollWaiter.clear(),this.wheelWaiter.clear(),this.isScroll=!1,this.isWheelRecent=!1,this.emitter.trigger("scrollEnd",this.getIsUser()),this.isMouse=!1,this.isTouch=!1,this.isWheel=!1)}getIsUser(){return this.isWheel||this.isMouse||this.isTouch}}class ho extends Ya{constructor(){super(...arguments),this.handleEl=e=>{this.el&&(this.el=null,this.listener.destroy()),e&&(this.el=e,this.listener=new uo(e))},this.handleHRuler=e=>{this.disconnectHRuler&&(this.disconnectHRuler(),this.disconnectHRuler=void 0,void 0!==this.clientWidth&&(this.clientWidth=void 0,is(this.props.clientWidthRef,null))),e&&(this.disconnectHRuler=oa(e,e=>{e!==this.clientWidth&&(this.clientWidth=e,is(this.props.clientWidthRef,e))}))},this.handleVRuler=e=>{this.disconnectVRuler&&(this.disconnectVRuler(),this.disconnectVRuler=void 0,void 0!==this.clientHeight&&(this.clientHeight=void 0,is(this.props.clientHeightRef,null))),e&&(this.disconnectVRuler=la(e,e=>{e!==this.clientHeight&&(this.clientHeight=e,is(this.props.clientHeightRef,e));const t=Math.round(this.el.getBoundingClientRect().height-e);t!==this.bottomScrollbarWidth&&(this.bottomScrollbarWidth=t,is(this.props.bottomScrollbarWidthRef,t))}))}}render(){const{props:e}=this,t=e.horizontal||e.vertical?"hidden":"";return S("div",{ref:this.handleEl,className:ke(e.className,St,Ct,e.hideScrollbars&&Ge,dn),style:Object.assign(Object.assign({},e.style),{overflowX:e.horizontal?"auto":t,overflowY:e.vertical?"auto":t})},e.children,Boolean(e.clientWidthRef)&&S("div",{ref:this.handleHRuler,className:It}),Boolean(e.clientHeightRef||e.bottomScrollbarWidthRef)&&S("div",{ref:this.handleVRuler,className:Nt}))}endScroll(){this.listener.endScroll()}get x(){const{el:e}=this;return e?go(e):0}get y(){const{el:e}=this;return e?e.scrollTop:0}scrollTo({x:e,y:t}){const{el:n}=this;n&&(null!=t&&(n.scrollTop=t),null!=e&&fo(n,e))}addScrollEndListener(e){this.listener.emitter.on("scrollEnd",e)}removeScrollEndListener(e){this.listener.emitter.off("scrollEnd",e)}}function go(e){const{scrollLeft:t}=e;return Ca(e)?function(e,t){switch(vo()){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(t,e):t}function fo(e,t){const n=Ca(e);e.scrollLeft=n?function(e,t){switch(vo()){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(t,e):t}let po;function vo(){return po||(po=function(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";let t,n=document.createElement("div");n.style.width="200px",n.style.height="200px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=50,t=e.scrollLeft>0?"reverse":"negative");return e.remove(),t}())}class mo{constructor(){this.sliceBusinessHours=Zn(this._sliceBusinessHours),this.sliceDateSelection=Zn(this._sliceDateSpan),this.sliceEventStore=Zn(this._sliceEventStore),this.sliceEventDrag=Zn(this._sliceInteraction),this.sliceEventResize=Zn(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...s){let{eventUiBases:i}=e,a=this.sliceEventStore(e.eventStore,i,t,n,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,i,r,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,i,t,n,...s),eventResize:this.sliceEventResize(e.eventResize,i,t,n,...s),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...s){return this._sliceDateSpan({range:{start:e,end:Qn(e,1)},allDay:!1},t,n,{},r,...s)}_sliceBusinessHours(e,t,n,r,...s){return e?this._sliceEventStore(Ds(e,yo(t,Boolean(n)),r),{},t,n,...s).bg:[]}_sliceEventStore(e,t,n,r,...s){if(e){let i=Ti(e,t,yo(n,Boolean(r)),r);return{bg:this.sliceEventRanges(i.bg,s),fg:this.sliceEventRanges(i.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...s){if(!e)return null;let i=Ti(e.mutatedEvents,t,yo(n,Boolean(r)),r);return{segs:this.sliceEventRanges(i.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,s,...i){if(!e)return[];let a=yo(t,Boolean(n)),o=Sr(e.range,a);if(o){let t=function(e,t,n){let r=Gs({editable:!1},n),s=qs(r.refined,r.extra,"",e.allDay,!0,n);return{def:s,ui:Ni(s,t),instance:bs(s.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:o}),r,s),n=this.sliceRange(e.range,...i);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:Jn(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function yo(e,t){let n=e.activeRange;return t?n:{start:Qn(n.start,e.slotMinTime.milliseconds),end:Qn(n.end,e.slotMaxTime.milliseconds-864e5)}}function So(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!Dr(t.validRange,r[e].range))return!1;return bo({eventDrag:e},n)}function Eo(e,t,n){return!!Dr(t.validRange,e.range)&&bo({dateSelection:e},n)}function bo(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Do)(r,t)}function Do(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let s=t.getCurrentData(),i=e.eventDrag,a=i.mutatedEvents,o=a.defs,l=a.instances,d=Hi(o,i.isEvent?e.eventUiBases:{"":s.selectionConfig});r&&(d=Tn(d,r));let c=(f=e.eventStore,p=i.affectedEvents.instances,{defs:f.defs,instances:_n(f.instances,e=>!p[e.instanceId])}),u=c.defs,h=c.instances,g=Hi(u,e.eventUiBases);var f,p;for(let r in l){let a=l[r],f=a.range,p=d[a.defId],v=o[a.defId];if(!wo(p.constraints,f,c,e.businessHours,t))return!1;let{eventOverlap:m}=t.options,y="function"==typeof m?m:null;for(let e in h){let n=h[e];if(br(f,n.range)){if(!1===g[n.defId].overlap&&i.isEvent)return!1;if(!1===p.overlap)return!1;if(y&&!y(new wi(t,u[n.defId],n),new wi(t,v,a)))return!1}}let S=s.eventStore;for(let e of p.allows){let s,i=Object.assign(Object.assign({},n),{range:a.range,allDay:v.allDay}),o=S.defs[v.defId],l=S.instances[r];if(s=o?new wi(t,o,l):new wi(t,v),!e(mi(i,t),s))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let s=e.eventStore,i=s.defs,a=s.instances,o=e.dateSelection,l=o.range,{selectionConfig:d}=t.getCurrentData();r&&(d=r(d));if(!wo(d.constraints,l,s,e.businessHours,t))return!1;let{selectOverlap:c}=t.options,u="function"==typeof c?c:null;for(let e in a){let n=a[e];if(br(l,n.range)){if(!1===d.overlap)return!1;if(u&&!u(new wi(t,i[n.defId],n),null))return!1}}for(let e of d.allows){let r=Object.assign(Object.assign({},n),o);if(!e(mi(r,t),null))return!1}return!0}(e,t,n,r))}function wo(e,t,n,r,s){for(let i of e)if(!_o(Ro(i,t,n,r,s),t))return!1;return!0}function Ro(e,t,n,r,s){return"businessHours"===e?Co(Ds(r,t,s)):"string"==typeof e?Co(Qs(n,t=>t.groupId===e)):"object"==typeof e&&e?Co(Ds(e,t,s)):[]}function Co(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function _o(e,t){for(let n of e)if(Dr(n,t))return!0;return!1}function To(e){return"auto"===e.height||"auto"===e.contentHeight}function Mo(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t=To(e)),t}function Io(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t=To(e)),t}function xo(e){const t=e.scrollerSyncerClass;if(!t)throw new RangeError("Must import @fullcalendar/scrollgrid");return t}class Ho extends ss{constructor(){super(...arguments),this.elRef={current:null}}render(){return S("div",{ref:this.elRef})}componentDidMount(){const{props:e}=this,t=this.elRef.current;this.disconnectWidth=oa(t,t=>{is(e.widthRef,t)})}componentWillUnmount(){this.disconnectWidth();const{props:e}=this;e.widthRef&&is(e.widthRef,null)}}class No{constructor(e){this.masterCallback=e,this.rev="",this.current=new Map,this.callbacks=new Map,this.handleValue=(e,t)=>{let{current:n,callbacks:r}=this;null===e?(n.delete(t),r.delete(t)):n.set(t,e),this.rev=un(),this.masterCallback&&this.masterCallback(e,t)}}createRef(e){let t=this.callbacks.get(e);return t||(t=t=>{this.handleValue(t,e)},this.callbacks.set(e,t)),t}}class ko extends w{constructor(e,t){super(e,t),this.initialNowDate=ms(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,n=Qn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),s=t.dateEnv.add(r,Hr(1,e.unit)),i=s.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:Oo(r)},nextState:{nowDate:s,todayRange:Oo(s)},waitMs:i}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function Oo(e){let t=ir(e);return{start:t,end:Jn(t,1)}}ko.contextType=ts;class Po extends ss{constructor(){super(...arguments),this.buildPublicEvent=Zn((e,t,n)=>new wi(e,t,n)),this.handleEl=e=>{this.el=e,e&&Ii(e,this.props.eventRange)}}render(){var e;const{props:t,context:n}=this,{options:r}=n,{eventRange:s}=t,i=s.ui,a=r.eventTimeFormat||t.defaultTimeFormat,o=null!==(e=t.forcedTimeText)&&void 0!==e?e:Pi(a,s,t.slicedStart,t.slicedEnd,t.isStart,t.isEnd,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd),[l,d,c]=ji(s,n),u=this.buildPublicEvent(n,s.def,s.instance),h=!t.disableDragging&&function(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:s,ui:i}=e,a=i.startEditable;for(let e of r)a=e(a,s,i,t);return a}(s,n),g=/row|column/.test(t.display),f={event:u,isNarrow:t.isNarrow||!1,isShort:t.isShort||!1,timeText:o},p={event:u,view:n.viewApi,timeText:o,color:i.color||r.eventColor,contrastColor:i.contrastColor||r.eventContrastColor,isDraggable:h,isStartResizable:!t.disableResizing&&t.isStart&&i.durationEditable&&r.eventResizableFromStart,isEndResizable:!t.disableResizing&&t.isEnd&&i.durationEditable,isMirror:t.isMirror,isStart:Boolean(t.isStart),isEnd:Boolean(t.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing),isInteractive:c,isNarrow:t.isNarrow||!1,isShort:t.isShort||!1,level:t.level||0,timeClass:ke(hs(r.eventTimeClass,f),g&&hs(r.blockEventTimeClass,f),"row"===t.display&&hs(r.rowEventTimeClass,f),"column"===t.display&&hs(r.columnEventTimeClass,f),"list-item"===t.display&&hs(r.listItemEventTimeClass,f)),titleClass:ke(hs(r.eventTitleClass,f),g&&hs(r.blockEventTitleClass,f),"row"===t.display&&hs(r.rowEventTitleClass,f),"column"===t.display&&hs(r.columnEventTitleClass,f),"list-item"===t.display&&hs(r.listItemEventTitleClass,f),"row"===t.display&&r.rowEventTitleSticky&&Pt,"column"===t.display&&r.columnEventTitleSticky&&Ot),options:{eventOverlap:Boolean(r.eventOverlap)}},v=Ne(g&&hs(r.blockEventClass,p),"row"===t.display&&hs(r.rowEventClass,p),"column"===t.display&&hs(r.columnEventClass,p),"list-item"===t.display&&hs(r.listItemEventClass,p),i.className,t.className,"column"===t.display?ht:ut,s.def.url&&Ut,(s.def.url||h)&&Ze,Zt,t.isMirror&&$t,h&&Kt,p.isSelected&&Jt,(p.isStartResizable||p.isEndResizable)&&Qt),m=ke(hs(r.eventBeforeClass,p),g&&hs(r.blockEventBeforeClass,p),"row"===t.display&&hs(r.rowEventBeforeClass,p),"column"===t.display&&hs(r.columnEventBeforeClass,p),"list-item"===t.display&&hs(r.listItemEventBeforeClass,p)),y=ke(hs(r.eventAfterClass,p),g&&hs(r.blockEventAfterClass,p),"row"===t.display&&hs(r.rowEventAfterClass,p),"column"===t.display&&hs(r.columnEventAfterClass,p),"list-item"===t.display&&hs(r.listItemEventAfterClass,p)),E=ke(hs(r.eventInnerClass,p),g&&hs(r.blockEventInnerClass,p),"row"===t.display&&hs(r.rowEventInnerClass,p),"column"===t.display&&hs(r.columnEventInnerClass,p),"list-item"===t.display&&hs(r.listItemEventInnerClass,p),!t.disableLiquid&&ft),b="row"===t.display&&r.rowEventBeforeContent,w="row"===t.display&&r.rowEventAfterContent;return S(cs,{tag:l,attrs:Object.assign(Object.assign(Object.assign({},t.attrs),d),{dir:t.isDragging&&"rtl"===r.direction?"rtl":void 0}),className:v,style:{"--fc-event-color":p.color,"--fc-event-contrast-color":p.contrastColor},elRef:this.handleEl,renderProps:p,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:Wo,classNameGenerator:r.eventClass,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e=>S(D,null,Boolean(p.isSelected&&g)&&S("div",{className:"column"===t.display?tt:nt}),(m||b)&&S("div",{className:ke(m,!t.disableZindexes&&qt,p.isStartResizable&&ke("column"===t.display?$e:Je,en,tn))},b&&S(cs,{tag:"div",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:p,generatorName:void 0,customGenerator:b}),Boolean(p.isStartResizable&&p.isSelected)&&S("div",{className:et})),S(e,{tag:"div",className:ke(E,!t.disableZindexes&&Yt)}),(y||w)&&S("div",{className:ke(y,!t.disableZindexes&&qt,p.isEndResizable&&ke("column"===t.display?Ke:Qe,en,nn))},w&&S(cs,{tag:"div",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:p,generatorName:void 0,customGenerator:w}),Boolean(p.isEndResizable&&p.isSelected)&&S("div",{className:et}))))}componentDidUpdate(e){this.el&&this.props.eventRange!==e.eventRange&&Ii(this.el,this.props.eventRange)}}function Wo(e){return S(D,null,e.timeText&&S("div",{className:e.timeClass},e.timeText),S("div",{className:e.titleClass},e.event.title||S(D,null," ")))}const Ao=e=>S(ts.Consumer,null,t=>{let{options:n}=t,r={date:t.dateEnv.toDate(e.date),view:t.viewApi};return S(cs,Object.assign({},e,{tag:e.tag||"div",renderProps:r,generatorName:"nowIndicatorHeaderContent",customGenerator:n.nowIndicatorHeaderContent,classNameGenerator:n.nowIndicatorHeaderClass,didMount:n.nowIndicatorHeaderDidMount,willUnmount:n.nowIndicatorHeaderWillUnmount}))}),jo=e=>S(ts.Consumer,null,t=>{let{options:n}=t,r={date:t.dateEnv.toDate(e.date),view:t.viewApi};return S(cs,Object.assign({},e,{tag:e.tag||"div",renderProps:r,generatorName:"nowIndicatorLineContent",customGenerator:n.nowIndicatorLineContent,classNameGenerator:n.nowIndicatorLineClass,didMount:n.nowIndicatorLineDidMount,willUnmount:n.nowIndicatorLineWillUnmount}))}),Lo=e=>S(ts.Consumer,null,t=>{let{options:n}=t;return S("div",{className:Ne(e.className,n.nowIndicatorDotClass),style:e.style})});class Bo extends ss{constructor(){super(...arguments),this.buildPublicEvent=Zn((e,t,n)=>new wi(e,t,n)),this.handleEl=e=>{this.el=e,e&&Ii(e,this.props.eventRange)}}render(){const{props:e,context:t}=this,{eventRange:n}=e,{options:r}=t,s=n.ui,i=this.buildPublicEvent(t,n.def,n.instance),a={event:i,isNarrow:e.isNarrow||!1,isShort:e.isShort||!1},o={event:i,view:t.viewApi,timeText:"",color:s.color||r.backgroundEventColor,contrastColor:s.contrastColor,isDraggable:!1,isStartResizable:!1,isEndResizable:!1,isMirror:!1,isStart:e.isStart,isEnd:e.isEnd,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:!1,isDragging:!1,isResizing:!1,isInteractive:!1,level:0,isNarrow:e.isNarrow||!1,isShort:e.isShort||!1,timeClass:"",titleClass:ke(hs(r.eventTitleClass,a),hs(r.backgroundEventTitleClass,a)),options:{eventOverlap:Boolean(r.eventOverlap)}},l=Ne(hs(r.backgroundEventClass,o),s.className,Mt,Zt,rn,e.isVertical?ht:ut),d=ke(hs(r.eventInnerClass,o),hs(r.backgroundEventInnerClass,o),ft);return S(cs,{tag:"div",className:l,style:{"--fc-event-color":o.color,"--fc-event-contrast-color":o.contrastColor},defaultGenerator:Uo,elRef:this.handleEl,renderProps:o,generatorName:"eventContent",customGenerator:r.eventContent,classNameGenerator:r.eventClass,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e=>S(e,{tag:"div",className:d}))}componentDidUpdate(e){this.el&&this.props.eventRange!==e.eventRange&&Ii(this.el,this.props.eventRange)}}function Uo(e){let{title:t}=e.event;return t&&S("div",{className:e.titleClass},e.event.title)}function Vo(e,t){return S("div",{className:Ne("non-business"===e?t.nonBusinessClass:"highlight"===e?t.highlightClass:void 0,Mt)})}class Fo extends Ya{constructor(){super(...arguments),this.getDateMeta=Zn(Pa),this.closeRef={current:null},this.focusStartRef={current:null},this.focusEndRef={current:null},this.titleId=Ha(),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)},this.handleDocumentMouseDown=e=>{const t=Ia(e);this.rootEl.contains(t)||this.handleClose()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleClose()},this.handleClose=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{props:e,context:t}=this,{options:n,dateEnv:r,viewApi:s}=t,{startDate:i,todayRange:a,dateProfile:o}=e,l=this.getDateMeta(i,r,o,a),[d,c]=r.format(i,n.dayPopoverFormat);const u=Object.assign(Object.assign({},l),{isMajor:!1,isNarrow:!1,isSticky:!1,inPopover:!0,level:0,hasNavLink:!1,text:d,textParts:c,get weekdayText(){return va(c)},get dayNumberText(){return ma(c)},view:s}),h=Object.assign(Object.assign({},l),{isMajor:!1,isNarrow:!1,inPopover:!0,hasNavLink:!1,get dayNumberText(){return ma(c)},get monthText(){return ya(c)},view:s,text:"",textParts:[],options:{businessHours:Boolean(n.businessHours)}}),g=Br(i),{dayHeaderAlign:f}=n,p="function"==typeof f?f({level:0,inPopover:!0,isNarrow:!1}):f,v=Ca(e.alignEl);return ve(S("div",{"data-date":g,id:e.id,role:"dialog","aria-labelledby":this.titleId,className:Ne(n.popoverClass,ht,Ue,_t,on),dir:v?"rtl":void 0,ref:this.handleRootEl},S("div",{tabIndex:0,style:{outline:"none"},ref:this.focusStartRef}),S("div",{className:ke(hs(n.dayHeaderClass,u),ht,it,"center"===p?jt:"end"===p?Bt:Lt)},S("div",null,S(cs,{tag:"div",attrs:{id:this.titleId},generatorName:"dayHeaderContent",renderProps:u,customGenerator:n.dayHeaderContent,defaultGenerator:zo,classNameGenerator:n.dayHeaderInnerClass,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount})),S(cs,{tag:"button",attrs:Object.assign({"aria-label":n.closeHint},Le(this.handleClose)),elRef:this.closeRef,className:Ne(n.popoverCloseClass,ut,Ze),renderProps:{},customGenerator:n.popoverCloseContent,generatorName:"popoverCloseContent"})),S("div",{className:ke(hs(n.dayCellClass,h),ht,rt)},S("div",{className:hs(n.dayCellInnerClass,h)},e.children)),S("div",{tabIndex:0,style:{outline:"none"},ref:this.focusEndRef})),Ra(e.alignEl))}queryHit(e,t,n,r,s){let{rootEl:i,props:a}=this;return t>=0&&t<r&&n>=0&&n<s?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.dateSpanProps),getDayEl:()=>i,rect:{left:0,top:0,right:r,bottom:s},layer:1}:null}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.focusStartRef.current.addEventListener("focus",this.handleClose),this.focusEndRef.current.addEventListener("focus",this.handleClose),this.closeRef.current.focus({preventScroll:!0}),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.focusStartRef.current.removeEventListener("focus",this.handleClose),this.focusEndRef.current.removeEventListener("focus",this.handleClose)}updateSize(){let{alignEl:e,alignParentTop:t}=this.props,{rootEl:n}=this;const r=Ca(e),s=function(e){let t=Ua(e),n=e.getBoundingClientRect();for(let e of t){let t=Ea(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(e);if(s){let i=n.getBoundingClientRect(),a=t?e.closest(t).getBoundingClientRect().top-1:s.top,o=r?s.right-i.width:s.left;a=Math.max(a,10),o=Math.min(o,document.documentElement.clientWidth-10-i.width),o=Math.max(o,10);let l=Ra(e),d=l.getBoundingClientRect?l.getBoundingClientRect():l.firstElementChild.getBoundingClientRect();Ta(n,{top:a-d.top,left:o-d.left})}}}function zo(e){return e.text}class Go extends ss{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ha()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&is(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{dateEnv:r,options:s}=n,{moreLinkClick:i}=s,a=qo(t).start;function o(e){let{def:t,instance:s,range:i}=e.eventRange;return{event:new wi(n,t,s),start:r.toDate(i.start),end:r.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof i&&(i=i({date:r.toDate(a),allDay:Boolean(t.allDayDate),allSegs:t.segs.map(o),hiddenSegs:t.hiddenSegs.map(o),jsEvent:e,view:n.viewApi})),i&&"popover"!==i?"string"==typeof i&&n.calendarApi.zoomTo(a,i):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.linkEl&&this.linkEl.focus(),this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return S(ts.Consumer,null,n=>{let{viewApi:r,options:s,calendarApi:i}=n,{moreLinkText:a}=s,o=e.hiddenSegs.length,l=qo(e),d="+"+o,c="function"==typeof a?a.call(i,o):`${d} ${a}`,u=Dn(s.moreLinkHint,[o],c),h={num:o,numericText:d,longText:c,text:e.isMicro||"column"===e.display?d:c,isNarrow:e.isNarrow,view:r};return S(D,null,Boolean(o)&&S(cs,{tag:"div",elRef:this.handleLinkEl,className:ke(hs("row"===e.display?s.rowMoreLinkClass:s.columnMoreLinkClass,h),e.className,"row"===e.display?ut:ht,sn,Ze),style:e.style,attrs:Object.assign(Object.assign(Object.assign({},e.attrs),Le(this.handleClick)),{title:u,role:"button","aria-haspopup":"dialog","aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:void 0}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:Yo,classNameGenerator:s.moreLinkClass,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},t=>S(t,{tag:"div",className:ke(hs(s.moreLinkInnerClass,h),hs("row"===e.display?s.rowMoreLinkInnerClass:s.columnMoreLinkInnerClass,h),"row"===e.display?Pt:Ot)})),t.isPopoverOpen&&S(Fo,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,dateSpanProps:e.dateSpanProps,alignEl:e.alignElRef?e.alignElRef.current:this.linkEl,alignParentTop:e.alignParentTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}}function Yo(e){return e.text}function qo(e){return e.allDayDate?{start:e.allDayDate,end:Jn(e.allDayDate,1)}:{start:$a(e.hiddenSegs),end:Ka(e.hiddenSegs)}}class Xo extends ss{render(){let{props:e,context:t}=this,{options:n}=t;return S(cs,Object.assign({},e,{tag:e.tag||"div",attrs:e.attrs,className:ke(e.className,e.borderlessX&&ot,e.borderlessTop&<,e.borderlessBottom&&dt,e.noEdgeEffects&&Rt),renderProps:{view:t.viewApi},classNameGenerator:n.viewClass,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}class Zo{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){let e=0;for(;e++<3&&aa();)$r()}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:n}=this;n.currentCalendarOptionsRefiners[e]?n.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:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:s}=this.getCurrentData(),i=[].concat(s.header?s.header.viewsWithButtons:[],s.footer?s.footer.viewsWithButtons:[]);for(let e in r)i.push(e);for(t=0;t<i.length;t+=1)if(n=r[i[t]],n&&n.singleUnit===e)return n;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:ms(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(),n=Hr(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),Ns(t))[0]}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),Ns(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),s=Bi(n,r.dateEnv,Hr({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),vi(s,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof wi){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Zs({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof Di)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=Mn(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let s=zs(e,n,r,!1);if(s){let e=new wi(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Zs(s)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Ri(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let s in n){let i=n[s];if(i.publicId===e){if(i.recurringDef)return new wi(t,i,null);for(let e in r){let n=r[e];if(n.defId===i.defId)return new wi(t,i,n)}}}return null}getEvents(){let e=this.getCurrentData();return Ci(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new Di(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new Di(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Di)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=ai(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Di(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Hr(e);t&&this.trigger("_timeScrollRequest",t)}}class $o extends ss{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return S("div",{ref:this.rootElRef,className:ke(Ft,e.isSticky&&Vt)},S(ho,{horizontal:!0,ref:e.scrollerRef},S("div",{style:{minWidth:e.canvasWidth}})))}componentDidMount(){this.disconnectHeight=la(this.rootElRef.current,e=>{is(this.props.scrollbarWidthRef,e)})}componentWillUnmount(){this.disconnectHeight(),is(this.props.scrollbarWidthRef,null)}}var Ko={__proto__:null,BASE_OPTION_DEFAULTS:Os,BaseComponent:ss,BgEvent:Bo,CalendarImpl:Zo,CalendarRoot:da,ContentContainer:cs,CustomRenderingStore:class extends class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}},DateComponent:Ya,DateEnv:qr,DateProfileGenerator:ys,DaySeriesModel:lo,DayTableModel:co,DelayedRunner:He,ElementDragging:so,ElementScrollController:za,Emitter:gi,EventImpl:wi,FULL_DATE_FORMAT:ga,FooterScrollbar:$o,Interaction:ca,MoreLinkContainer:Go,NamedTimeZoneImpl:class{constructor(e){this.timeZoneName=e}},NowIndicatorDot:Lo,NowIndicatorHeaderContainer:Ao,NowIndicatorLineContainer:jo,NowTimer:ko,PositionCache:class{constructor(e,t,n,r){this.els=t;let s=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(s.left),r&&this.buildElVerticals(s.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let s=r.getBoundingClientRect();t.push(s.left-e),n.push(s.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let s=r.getBoundingClientRect();t.push(s.top-e),n.push(s.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,s=n.length;for(t=0;t<s;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,s=n.length;for(t=0;t<s;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Va(this.tops||[],e.tops||[])&&Va(this.bottoms||[],e.bottoms||[])&&Va(this.lefts||[],e.lefts||[])&&Va(this.rights||[],e.rights||[])}},RefMap:No,Ruler:Ho,ScrollController:Fa,Scroller:ho,SegHierarchy:eo,Slicer:mo,Splitter:ka,StandardEvent:Po,ViewContainer:Xo,ViewContextType:ts,WEEKDAY_ONLY_FORMAT:pa,WindowScrollController:Ga,addDays:Jn,addDurations:kr,addMs:Qn,addWeeks:Kn,afterSize:Ji,allowContextMenu:mn,allowSelection:pn,applyMutationToEventStore:Si,applyStyle:Ta,asCleanDays:function(e){return e.years||e.months||e.milliseconds?0:e.days},asRoughMinutes:function(e){return Wr(e)/6e4},asRoughMs:Wr,asRoughSeconds:function(e){return Wr(e)/1e3},binarySearch:ro,buildDateStr:Wa,buildElAttrs:ls,buildEventApis:Ci,buildEventRangeKey:Ai,buildEventRangeTimeText:Pi,buildIsoString:Lr,buildNavLinkAttrs:Aa,combineEventUis:ri,compareByFieldSpecs:Sn,compareNumbers:wn,computeEarliestStart:$a,computeEdges:ja,computeElIsRtl:Ca,computeInnerRect:La,computeLatestEnd:Ka,computeMajorUnit:Ss,computeRect:Ba,computeVisibleDayRange:ps,config:io,constrainPoint:ba,createDuration:Hr,createEmptyEventStore:Ks,createEventInstance:bs,createEventUi:ni,createFormatter:Ns,diffDates:vs,diffDayAndTime:nr,diffDays:tr,diffPoints:wa,diffWeeks:er,diffWholeDays:sr,diffWholeWeeks:rr,disableCursor:hn,enableCursor:gn,eventTupleToStore:Zs,filterHash:_n,findDayNumberText:ma,findMonthText:ya,findWeekdayText:va,flexibleCompare:bn,formatDayString:Br,formatIsoMonthStr:Ur,formatIsoTimeString:Vr,fracToCssDim:Oe,generateClassName:hs,getAppendableRoot:Ra,getClippingParents:Ua,getCoordRangeEnd:Za,getDateMeta:Pa,getDefaultEventEnd:yi,getElEventRange:xi,getEventKey:_i,getEventRangeMeta:Wi,getEventTagAndAttrs:ji,getEventTargetViaRoot:Ia,getIsHeightAuto:To,getNormalizedScrollX:go,getRectCenter:Da,getRelevantEvents:$s,getScrollerSyncerClass:xo,getStickyFooterScrollbar:Io,getStickyHeaderDates:Mo,getUniqueDomId:Ha,greatestDurationDenominator:jr,groupIntersectingSegs:to,guid:un,hasBgRendering:Mi,identity:Bs,interactionSettingsStore:ha,interactionSettingsToStore:ua,intersectRanges:Sr,intersectRects:Ea,isArraysEqual:Xn,isDateSelectionValid:Eo,isDateSpansEqual:Ui,isDimsEqual:qi,isInt:_r,isInteractionValid:So,isMajorUnit:Es,isPropsEqualShallow:Nn,isPropsEqualWithMap:kn,isPropsValid:Do,isValidDate:hr,joinArrayishClassNames:Ne,joinFuncishClassNames:zn,mapHash:Tn,memoize:Zn,memoizeObjArg:$n,mergeCalendarOptions:Fn,mergeContentInjectors:Gn,mergeEventStores:Js,mergeLifecycleCallbacks:Yn,mergeViewOptionsMap:Vn,multiplyDuration:Or,padStart:Mr,parseBusinessHours:pi,parseDragMeta:oo,parseEventDef:qs,parseFieldSpecs:yn,parseMarker:Yr,pointInsideRect:Sa,preventContextMenu:vn,preventDefault:Pe,preventSelection:fn,rangeContainsMarker:wr,rangeContainsRange:Dr,rangesEqual:Er,rangesIntersect:br,refineEventDef:Gs,refineProps:Ls,removeExact:function(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n},renderFill:Vo,renderText:gs,requestJson:Yi,setNormalizedScrollX:fo,setRef:is,sliceEventStore:Ti,sortEventSegs:ki,startOfDay:ir,translateRect:function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},triggerDateSelect:vi,trimEnd:Tr,unpromisify:zi,watchHeight:la,watchSize:ia,watchWidth:oa,whenTransitionDone:je,wholeDivideDurations:Ar},Jo={__proto__:null,createPortal:ve,createContext:Qr,flushSync:Kr,flushUpdates:$r,preactOptions:es,Component:w,Fragment:D,cloneElement:function(e,n,r){var s,i,a,o,l=m({},e.props);for(a in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),n)"key"==a?s=n[a]:"ref"==a?i=n[a]:l[a]=void 0===n[a]&&void 0!==o?o[a]:n[a];return arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):r),E(e.type,l,s||e.key,i||e.ref,null)},createElement:S,createRef:b,h:S,hydrate:function e(t,n){V(t,n,e)},get isValidElement(){return s},get options(){return n},render:V,toChildArray:H};const Qo=[],el={code:"en",week:{dow:0,doy:4},direction:"ltr",todayText:"Today",prevText:"Prev",nextText:"Next",prevYearText:"Prev year",nextYearText:"Next year",yearText:"Year",monthText:"Month",weekText:"Week",dayText:"Day",listText:"List",closeHint:"Close",eventsHint:"Events",allDayText:"All-day",timedText:"Timed",moreLinkText:"more",noEventsText:"No events to display"},tl=Object.assign(Object.assign({},el),{weekTextShort:"W",todayHint:(e,t)=>"day"===t?"Today":"This "+e,prevHint:"Previous $0",nextHint:"Next $0",viewHint:"$0 view",viewChangeHint:"Change view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function nl(e){let t=e.length>0?e[0].code:"en",n=Qo.concat(e),r={en:tl};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function rl(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||tl;return sl(e,n,r)}(e,t):sl(e.code,[e.code],e)}function sl(e,t,n){let r=Fn(el,n);delete r.code;let{week:s}=r;return delete r.week,{codeArg:e,codes:t,week:s,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function il(e){return{id:un(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollerSyncerClass:e.scrollerSyncerClass||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},optionDefaults:e.optionDefaults?[e.optionDefaults]:[],propSetHandlers:e.propSetHandlers||{}}}function al(){let e,t=[],n=[];return(r,s)=>(e&&Xn(r,t)&&Xn(s,n)||(e=function(e,t){let n={},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:[],eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollerSyncerClass:null,listenerRefiners:{},optionRefiners:{},optionDefaults:[],propSetHandlers:{}};function s(e){for(let a of e){const e=a.name,o=n[e];void 0===o?(n[e]=a.id,s(a.deps),i=a,r={premiumReleaseDate:ol((t=r).premiumReleaseDate,i.premiumReleaseDate),reducers:t.reducers.concat(i.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(i.isLoadingFuncs),contextInit:t.contextInit.concat(i.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),i.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(i.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),i.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(i.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(i.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(i.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(i.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(i.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(i.dateSpanTransforms),views:Vn(t.views,i.views),viewPropsTransformers:t.viewPropsTransformers.concat(i.viewPropsTransformers),isPropsValid:i.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(i.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(i.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(i.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(i.calendarInteractions),componentInteractions:t.componentInteractions.concat(i.componentInteractions),eventSourceDefs:t.eventSourceDefs.concat(i.eventSourceDefs),cmdFormatter:i.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(i.recurringTypes),namedTimeZonedImpl:i.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||i.initialView,elementDraggingImpl:t.elementDraggingImpl||i.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),i.optionChangeHandlers),scrollerSyncerClass:t.scrollerSyncerClass||i.scrollerSyncerClass,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),i.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),i.optionRefiners),optionDefaults:t.optionDefaults.concat(i.optionDefaults),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),i.propSetHandlers)}):o!==a.id&&console.warn(`Duplicate plugin '${e}'`)}var t,i}return e&&s(e),s(t),r}(r,s)),t=r,n=s,e)}function ol(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}function ll(e,t,n,r){if(t[e])return t[e];let s=function(e,t,n,r){let s=n[e],i=r[e],a=e=>s&&null!==s[e]?s[e]:i&&null!==i[e]?i[e]:null,o=a("component"),l=a("superType"),d=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");d=ll(l,t,n,r)}!o&&d&&(o=d.component);if(!o)return null;return{type:e,component:o,defaults:Fn(d?d.defaults:{},s?s.rawOptions:{}),overrides:Fn(d?d.overrides:{},i?i.rawOptions:{})}}(e,t,n,r);return s&&(t[e]=s),s}function dl(e){return Tn(e,cl)}function cl(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=ul(t):!n||n.prototype instanceof ss||(n=ul(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function ul(e){return t=>S(ts.Consumer,null,n=>{var r;return S(cs,{tag:"div",className:hs(e.viewClass,{view:n.viewApi}),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:e.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:null!==(r=e.class)&&void 0!==r?r:e.className,didMount:e.didMount,willUnmount:e.willUnmount})})}function hl(e,t,n){let r=dl(e),s=dl(t.views);return Tn(function(e,t){let n,r={};for(n in e)ll(n,r,e,t);for(n in t)ll(n,r,e,t);return r}(r,s),e=>function(e,t,n,r){let s=e.overrides.duration||e.defaults.duration||r.duration||n.duration,i=null,a="",o="",l={};if(s&&(i=function(e){let t=JSON.stringify(e),n=gl[t];void 0===n&&(n=Hr(e),gl[t]=n);return n}(s),i)){let e=jr(i);a=e.unit,1===e.value&&(o=a,l=t[a]?t[a].rawOptions:{})}return{type:e.type,component:e.component,duration:i,durationUnit:a,singleUnit:o,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},l),e.overrides)}}(e,s,t,n))}let gl={};function fl(e,t,n){let r=t?t.activeRange:null;return ml({},function(e,t){let n=oi(t),r=[].concat(e.eventSources||[]),s=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(let e of r){let r=ai(e,t,n);r&&s.push(r)}return s}(e,n),r,n)}function pl(e,t,n,r){let s=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return ml(e,t.sources,s,r);case"REMOVE_EVENT_SOURCE":return i=e,a=t.sourceId,_n(i,e=>e.sourceId!==a);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?yl(e,s,r):e;case"FETCH_EVENT_SOURCES":return Sl(e,t.sourceIds?In(t.sourceIds):bl(e,r),s,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let s=e[t];if(s&&n===s.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},s),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var i,a}function vl(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function ml(e,t,n,r){let s={};for(let e of t)s[e.sourceId]=e;return n&&(s=yl(s,n,r)),Object.assign(Object.assign({},e),s)}function yl(e,t,n){return Sl(e,_n(e,e=>function(e,t,n){if(!Dl(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)),t,!1,n)}function Sl(e,t,n,r,s){let i={};for(let a in e){let o=e[a];t[a]?i[a]=El(o,n,r,s):i[a]=o}return i}function El(e,t,n,r){let{options:s,calendarApi:i}=r,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],o=un();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},n=>{let{rawEvents:a}=n;s.eventSourceSuccess&&(a=s.eventSourceSuccess.call(i,a,n.response)||a),e.success&&(a=e.success.call(i,a,n.response)||a),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:o,fetchRange:t,rawEvents:a})},n=>{let a=!1;s.eventSourceFailure&&(s.eventSourceFailure.call(i,n),a=!0),e.failure&&(e.failure(n),a=!0),a||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:o,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:o})}function bl(e,t){return _n(e,e=>Dl(e,t))}function Dl(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function wl(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Rl(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function Cl(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function _l(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Tl(e,t,n){return{header:e.headerToolbar?Ml(e.headerToolbar,e,t,n):null,footer:e.footerToolbar?Ml(e.footerToolbar,e,t,n):null}}function Ml(e,t,n,r){let s="rtl"===t.direction,i=[],a=!1;function o(e){let s=function(e,t,n,r){let s=t.buttons||{},i=t.toolbarElements||{},a=e?e.split(" "):[],o=[],l=!1;return{widgets:a.map(e=>e.split(",").map(e=>{var a;if("title"===e)return l=!0,{name:e};if(i[e])return{name:e,customElement:i[e]};let d,c,u,h,g=s[e]||{};if(d=n[e]){o.push(e);const n=d.optionDefaults.buttonTextKey;c=g.text||(n?t[n]:"")||(d.singleUnit?t[d.singleUnit+"Text"]:"")||e,u=Dn(g.hint||t.viewHint,[c,e],c),h=t=>{var n;null===(n=null==g?void 0:g.click)||void 0===n||n.call(g,t),t.defaultPrevented||r.changeView(e)}}else c=g.text||t[e+"Text"]||e,u="prevYear"===e?Dn(g.hint||t.prevHint,[t.yearText,"year"],c):"nextYear"===e?Dn(g.hint||t.nextHint,[t.yearText,"year"],c):n=>Dn(g.hint||t[e+"Hint"],[t[n+"Text"],n],c),h=t=>{var n,s;null===(n=null==g?void 0:g.click)||void 0===n||n.call(g,t),t.defaultPrevented||null===(s=r[e])||void 0===s||s.call(r)};return{name:e,isView:Boolean(d),buttonText:c,buttonHint:u,buttonDisplay:g.display,buttonIconClass:g.iconClass,buttonIconContent:g.iconContent,buttonClick:h,buttonIsPrimary:g.isPrimary||!1,buttonClass:null!==(a=g.class)&&void 0!==a?a:g.className,buttonDidMount:g.didMount,buttonWillUnmount:g.willUnmount}})),viewsWithButtons:o,hasTitle:l}}(e,t,n,r);return i.push(...s.viewsWithButtons),a=a||s.hasTitle,s.widgets}return{sectionWidgets:{start:o(e[s?"right":"left"]||e.start||""),center:o(e.center||""),end:o(e[s?"left":"right"]||e.end||"")},viewsWithButtons:i,hasTitle:a}}class Il{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}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]}}function xl(e,t){let n=Mn(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const Hl=[il({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),il({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;zi(e.eventSource.meta.bind(null,Vi(e.range,r)),e=>t({rawEvents:e}),n)}}]}),il({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Bs,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){const{meta:r}=e.eventSource,s=function(e,t,n){let r,s,i,a,{dateEnv:o,options:l}=n,d={};r=e.startParam,null==r&&(r=l.startParam);s=e.endParam,null==s&&(s=l.endParam);i=e.timeZoneParam,null==i&&(i=l.timeZoneParam);a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(d,a),d[r]=o.formatIso(t.start),d[s]=o.formatIso(t.end),"local"!==o.timeZone&&(d[i]=o.timeZone);return d}(r,e.range,e.context);Yi(r.method,r.url,s).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),il({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let s,i={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(s=e.duration),!s&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,s={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:s,typeData:i}}var n,r;return null},expand(e,t,n){let r=Sr(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){let s=e?In(e):null,i=ir(n.start),a=n.end,o=[];for(;i<a;){let e;s&&!s[i.getUTCDay()]||(e=t?r.add(i,t):i,o.push(e)),i=Jn(i,1)}return o}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:Bs,startTime:Hr,endTime:Hr,duration:Hr,startRecur:Bs,endRecur:Bs}}),il({name:"change-handler",optionChangeHandlers:{controller(e,t){e._setApi(t.calendarApi)},events(e,t){xl([e],t)},eventSources:xl}}),il({name:"misc",isLoadingFuncs:[e=>vl(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Vi(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Ci(e,t))}}})];class Nl{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new He(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,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function kl(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,Ns(t.titleFormat||function(e,t){let{currentRangeUnit:n}=e;if("year"===n)return{year:"numeric"};if("month"===n)return{year:"numeric",month:"long"};let r=sr(e.currentRange.start,e.currentRange.end);if(null!==r&&r>1)return{year:"numeric",month:t.getMonth(e.activeRange.start)!==t.getMonth(e.activeRange.end)?"short":"long"};return{year:"numeric",month:"long",day:"numeric"}}(e,n)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class Ol{constructor(e){this.computeCurrentViewData=Zn(this._computeCurrentViewData),this.organizeRawLocales=Zn(nl),this.buildLocale=Zn(rl),this.buildPluginHooks=al(),this.buildDateEnv=Zn(Pl),this.parseToolbars=Zn(Tl),this.buildViewSpecs=Zn(hl),this.buildDateProfileGenerator=$n(Wl),this.buildViewApi=Zn(Al),this.buildViewUiProps=$n(Bl),this.buildEventUiBySource=Zn(jl,Nn),this.buildEventUiBases=Zn(Ll),this.parseContextBusinessHours=$n(Vl),this.buildTitle=Zn(kl),this.emitter=new gi,this.actionRunner=new Nl(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=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,s=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);const i=n.calendarOptions.controller;i&&i._setApi(e.calendarApi);let a=function(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):ms(e.now,t)}(n.calendarOptions,n.dateEnv),o=s.dateProfileGenerator.build(a);wr(o.activeRange,a)||(a=o.currentRange.start);let l={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(l);let d=fl(n.calendarOptions,o,l),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:a,dateProfile:o,businessHours:this.parseContextBusinessHours(l),eventSources:d,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},u=Object.assign(Object.assign({},l),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,u));Ul(c,l)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,s=function(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}(n.dynamicOptionOverrides,e),i=this.computeOptionsData(t.optionOverrides,s,t.calendarApi),a=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(n.currentViewType,e),o=this.computeCurrentViewData(a,i,t.optionOverrides,s);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(o.options);let l={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:c}=n;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(c=o.dateProfileGenerator.build(d)),d=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(d,e),c=function(e,t,n,r){let s;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(s=r.buildPrev(e,n),s.isValid)return s;break;case"NEXT":if(s=r.buildNext(e,n),s.isValid)return s}return e}(c,e,d,o.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&wr(c.currentRange,d)||(d=c.currentRange.start);let u=pl(n.eventSources,e,c,l),h=li(n.eventStore,e,u,c,l),g=vl(u)&&!o.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:f,selectionConfig:p}=this.buildViewUiProps(l),v=this.buildEventUiBySource(u),m={dynamicOptionOverrides:s,currentViewType:a,currentDate:d,dateProfile:c,eventSources:u,eventStore:h,renderableEventStore:g,selectionConfig:p,eventUiBases:this.buildEventUiBases(g.defs,f,v),businessHours:this.parseContextBusinessHours(l),dateSelection:wl(n.dateSelection,e),eventSelection:Rl(n.eventSelection,e),eventDrag:Cl(n.eventDrag,e),eventResize:_l(n.eventResize,e)},y=Object.assign(Object.assign({},l),m);for(let t of i.pluginHooks.reducers)Object.assign(m,t(n,e,y));let S=Ul(n,l),E=Ul(m,l);!S&&E?r.trigger("loading",!0):S&&!E&&r.trigger("loading",!1),this.state=m,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),i=this.buildTitle(t.dateProfile,s.options,r.dateEnv),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:i,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),s),t),o=r.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,d=r.calendarOptions;if(l&&l!==d){l.timeZone!==d.timeZone&&(t.eventSources=a.eventSources=function(e,t,n){let r=t?t.activeRange:null;return Sl(e,bl(e,n),r,!0,n)}(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=ui(a.eventStore,n.dateEnv,a.dateEnv),t.renderableEventStore=a.renderableEventStore=ui(a.renderableEventStore,n.dateEnv,a.dateEnv));for(let e in o)-1===this.optionsForHandling.indexOf(e)&&l[e]===d[e]||o[e](d[e],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:s,localeDefaults:i,availableLocaleData:a}=this.processRawCalendarOptions(e,t),o=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,r.weekTextShort,s,a,r.defaultRangeSeparator),l=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides),d=this.parseToolbars(r,l,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:s,dateEnv:o,viewSpecs:l,toolbarConfig:d,localeDefaults:i,availableRawLocales:a.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Fn(Os,e,t),s=this.organizeRawLocales(n),i=s.map,a=this.buildLocale(r||s.defaultCode,i).options,o=this.buildPluginHooks(e.plugins||[],Hl),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ks),Ps),Ws),o.listenerRefiners),o.optionRefiners),d=Fn(Os,...o.optionDefaults,a,Fl(Fn(e,t),l)),c={},u=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,g=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===u[e]||js[e]&&e in u&&js[e](u[e],d[e])||u[e]&&u[e].parts&&d[e]&&d[e].parts&&Xn(u[e].parts,d[e].parts))?c[e]=h[e]:l[e]&&(c[e]=l[e](d[e]),g=!0);return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=c,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}}_computeCurrentViewData(e,t,n,r){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:i}=this.processRawViewOptions(s,t.pluginHooks,t.localeDefaults,n,r);return{viewSpec:s,options:i,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,showNonCurrentDates:i.showNonCurrentDates,dayCount:i.dayCount,dateAlignment:i.dateAlignment,dateIncrement:i.dateIncrement,hiddenDays:i.hiddenDays,weekends:i.weekends,nowInput:i.now,validRangeInput:i.validRange,visibleRangeInput:i.visibleRange,fixedWeekCount:i.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,s){let i=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ks),Ps),Ws),As),t.listenerRefiners),t.optionRefiners),a=Fn(Os,...t.optionDefaults,e.optionDefaults,n,Fl(Fn(r,e.optionOverrides,s),i)),o={},l=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,c=!1;for(let e in a)a[e]===l[e]||js[e]&&js[e](a[e],l[e])||l[e]&&l[e].parts&&a[e]&&a[e].parts&&Xn(l[e].parts,a[e].parts)?o[e]=d[e]:(a[e]===this.currentCalendarOptionsInput[e]||js[e]&&js[e](a[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(o[e]=this.currentCalendarOptionsRefined[e]):i[e]&&(o[e]=i[e](a[e])),c=!0);return c&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined}}}function Pl(e,t,n,r,s,i,a,o,l){let d=rl(t||o.defaultCode,o.map);return new qr({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:d,weekNumberCalculation:n,firstDay:r,weekText:s,weekTextShort:i,cmdFormatter:a.cmdFormatter,defaultSeparator:l})}function Wl(e){return new(e.dateProfileGeneratorClass||ys)(e)}function Al(e,t,n){return new Il(e,t,n)}function jl(e){return Tn(e,e=>e.ui)}function Ll(e,t,n){let r={"":t};for(let t in e){let s=e[t];s.sourceId&&n[s.sourceId]&&(r[t]=n[s.sourceId])}return r}function Bl(e){const{options:t}=e;return{eventUiSingleBase:ni({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow},e),selectionConfig:ni({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Ul(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Vl(e){return pi(e.options.businessHours,e)}function Fl(e,t){const n={};for(const r in e)t[r]&&(n[r]=e[r]);return n}class zl extends ca{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,s=xi(t);s&&n.isValidSegDownEl(e.target)&&r.emitter.trigger("eventClick",{el:t,event:new wi(n.context,s.def,s.instance),jsEvent:e,view:r.viewApi})},this.destroy=We(e.el,"click","."+Zt,this.handleSegClick)}}class Gl extends ca{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{xi(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let s;return We(e,"mouseover",t,(e,t)=>{if(t!==s){s=t,n(e,t);let i=e=>{s=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}})}(e.el,"."+Zt,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:s}=r,i=xi(n);t&&!r.isValidSegDownEl(t.target)||s.emitter.trigger(e,{el:n,event:new wi(s,i.def,i.instance),jsEvent:t,view:s.viewApi})}}class Yl extends ss{render(){const{contentGenerator:e,className:t}=this.props;return e?S(cs,{tag:"span",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:{},generatorName:void 0,customGenerator:e}):void 0!==t?S("span",{"aria-hidden":!0,className:t}):void 0}}class ql extends ss{render(){let{props:e}=this,{options:t}=this.context,n=e.widgetGroups.map(e=>this.renderWidgetGroup(e));return S("div",{className:hs(t.toolbarSectionClass,{name:e.name})},...n)}renderWidgetGroup(e){var t;let{props:n,context:r}=this,{options:s}=r,i=[],a=!0,o=!0;for(const t of e){const{name:e,isView:n}=t;"title"===e?a=!1:n||(o=!1)}for(let r of e){let{name:l,customElement:d,buttonHint:c}=r;if("title"===l)i.push(S("div",{role:"heading","aria-level":s.headingLevel,id:n.titleId,className:Ne(s.toolbarTitleClass)},n.title));else if(d)i.push(S(cs,{tag:"span",style:{display:"contents"},renderProps:{},generatorName:void 0,customGenerator:d}));else{let d,u=l===n.selectedButton,h=!n.isTodayEnabled&&"today"===l||!n.isPrevEnabled&&"prev"===l||!n.isNextEnabled&&"next"===l,g=null!==(t=r.buttonDisplay)&&void 0!==t?t:s.buttonDisplay;"auto"===g&&(g=r.buttonIconContent||r.buttonIconClass?"icon":"text"),"text"!==g&&(d=S(Yl,{className:r.buttonIconClass,contentGenerator:r.buttonIconContent}));let f=e.length>1&&a,p=f&&o,v={name:l,text:r.buttonText,isPrimary:r.buttonIsPrimary,isSelected:u,isDisabled:h,isIconOnly:"icon"===g,inGroup:f,inSelectGroup:p};i.push(S(cs,{tag:"button",attrs:Object.assign(Object.assign({type:"button",disabled:h},a&&o?{role:"tab","aria-selected":u}:{"aria-pressed":u}),{"aria-label":"function"==typeof c?c(n.navUnit):c,onClick:r.buttonClick}),className:ke(hs(s.buttonClass,v),!h&&Ze,f&&ke(u?qt:Yt,Xt)),renderProps:v,generatorName:void 0,classNameGenerator:r.buttonClass,didMount:r.buttonDidMount,willUnmount:r.buttonWillUnmount},()=>"text"===g?r.buttonText:"icon"===g?d:"icon-text"===g?S(D,null,d,r.buttonText):S(D,null,r.buttonText,d)))}}return i.length>1?S("div",{role:a&&o?"tablist":void 0,"aria-label":a&&o?s.viewChangeHint:void 0,className:ke(hs(s.buttonGroupClass,{isSelectGroup:o}),Ve)},...i):i[0]}}class Xl extends ss{render(){let{props:e}=this,t=this.context.options,{sectionWidgets:n}=e.model;return S("div",{className:ke(e.className,hs(t.toolbarClass,{borderlessX:e.borderlessX}))},this.renderSection("start",n.start),this.renderSection("center",n.center),this.renderSection("end",n.end))}renderSection(e,t){let{props:n}=this;return S(ql,{key:e,name:e,widgetGroups:t,title:n.title,titleId:n.titleId,navUnit:n.navUnit,selectedButton:n.selectedButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})}}class Zl extends rs{constructor(){super(...arguments),this.buildViewContext=Zn(ns),this.buildViewPropTransformers=Zn($l),this.interactionsStore={},this.viewTitleId=Ha(),this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[zl,Gl];t.disableHits||(r=r.concat(this.props.pluginHooks.componentInteractions));let s=r.map(e=>new e(n));this.interactionsStore[e.uid]=s,ha[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete ha[e.uid]}}render(){var e;let t,n,{props:r}=this,{toolbarProps:s,toolbarConfig:i,options:a}=r,o=!1;r.forPrint||To(a)||(null!=a.height?o=!0:null!=a.contentHeight?t=a.contentHeight:n=Math.max(a.aspectRatio,.5));let l=this.buildViewContext(r.viewSpec,r.viewApi,r.options,r.dateProfileGenerator,r.dateEnv,r.pluginHooks,r.dispatch,r.getCurrentData,r.emitter,r.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),d=null!==(e=a.borderlessX)&&void 0!==e?e:a.borderless;return S(ts.Provider,{value:l},i.header&&S(Xl,Object.assign({className:hs(a.headerToolbarClass,{borderlessX:d}),model:i.header,borderlessX:d,titleId:this.viewTitleId},s)),S("div",{className:ke(ht,Ct,o&&ft),style:{height:t,paddingBottom:null!=n?1/n*100+"%":void 0}},this.renderView(ke((o||t)&&ft,null!=n&&Mt,ln),s.title),this.buildAppendContent()),i.footer&&S(Xl,Object.assign({className:hs(a.footerToolbarClass,{borderlessX:d}),model:i.footer,borderlessX:d},s)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e));let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return S(D,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e,t){var n,r,s;let{props:i}=this,{pluginHooks:a,viewSpec:o,toolbarConfig:l,options:d}=i,{borderless:c}=d,u=null!==(n=d.borderlessX)&&void 0!==n?n:c,h=null!==(r=d.borderlessTop)&&void 0!==r?r:c,g=null!==(s=d.borderlessBottom)&&void 0!==s?s:c,f={className:e,dateProfile:i.dateProfile,businessHours:i.businessHours,eventStore:i.renderableEventStore,eventUiBases:i.eventUiBases,dateSelection:i.dateSelection,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,forPrint:i.forPrint,labelId:l.header&&l.header.hasTitle?this.viewTitleId:void 0,labelStr:l.header&&l.header.hasTitle?void 0:t,borderlessX:u,borderlessTop:!l.header&&h,borderlessBottom:!l.footer&&g,noEdgeEffects:u||h||g},p=this.buildViewPropTransformers(a.viewPropsTransformers);for(let e of p)Object.assign(f,e.transform(f,i));return S(o.component,Object.assign({},f))}}function $l(e){return e.map(e=>new e)}function Kl(e,t,n,r,s,i){let a=n.build(s,void 0,!1),o=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:i,selectedButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!wr(t.currentRange,s),isPrevEnabled:o.isValid,isNextEnabled:l.isValid}}const Jl={text:"",hint:"",isDisabled:!1};function Ql(e){let t=rl(e.locale||"en",nl([]).map);return new qr(Object.assign(Object.assign({timeZone:Os.timeZone,calendarSystem:"gregory"},e),{locale:t}))}io.touchMouseIgnoreWait=500;let ed=0,td=0,nd=!1;class rd{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=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{if(this.isDragging){let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)}},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,ed+=1,setTimeout(()=>{ed-=1},io.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new gi,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),td+=1,1===td&&window.addEventListener("touchmove",sd,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),td-=1,td||window.removeEventListener("touchmove",sd,{passive:!1})}cancel(){this.isDragging&&this.cleanup()}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!n.closest(this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){nd=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?e.target.closest(this.selector):this.containerEl}shouldIgnoreMouse(){return ed||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(nd=!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.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,s=e.touches,i=0,a=0;return s&&s.length?(n=s[0].pageX,r=s[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(i=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:i,deltaY:a}}}function sd(e){nd&&e.preventDefault()}class id{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,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&this.mirrorEl.style.setProperty("display","","important"),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&this.mirrorEl.style.setProperty("display","none","important"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",Ta(n,{left:r.left,top:r.top}),je(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&(this.mirrorEl.remove(),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Ta(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.style.pointerEvents="none",Ta(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 ad extends Fa{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 od extends ad{constructor(e,t){super(new za(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return La(this.scrollController.el)}}class ld extends ad{constructor(e){super(new Ga,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 dd="function"==typeof performance?performance.now:Date.now;class cd{constructor(){this.isEnabled=!0,this.scrollQuery=[window,"."+dn],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.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=dd();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),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 n=e-window.scrollX,r=t-window.scrollY,s=null===this.pointerScreenY?0:r-this.pointerScreenY,i=null===this.pointerScreenX?0:n-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(dd()))}}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:n}=e,{edgeThreshold:r}=this,s=r-e.distance,i=s*s/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+i*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+i*a)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,s=this.scrollCaches||[];for(let i of s){let s=i.clientRect,a=e-s.left,o=s.right-e,l=t-s.top,d=s.bottom-t;a>=0&&o>=0&&l>=0&&d>=0&&(l<=n&&this.everMovedUp&&i.canScrollUp()&&(!r||r.distance>l)&&(r={scrollCache:i,name:"top",distance:l}),d<=n&&this.everMovedDown&&i.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:i,name:"bottom",distance:d}),a<=n&&this.everMovedLeft&&i.canScrollLeft()&&(!r||r.distance>a)&&(r={scrollCache:i,name:"left",distance:a}),o<=n&&this.everMovedRight&&i.canScrollRight()&&(!r||r.distance>o)&&(r={scrollCache:i,name:"right",distance:o}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new ld(!1):new od(e,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class ud extends so{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=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.emitter.trigger("pointerdown",e),this.isInteracting&&(fn(document.body),vn(document.body),e.isTouch||e.origEvent.preventDefault(),this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t,n=this.minDistance,{deltaX:r,deltaY:s}=e;t=r*r+s*s,t>=n*n&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,pn(document.body),mn(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new rd(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new id,this.autoScroller=new cd}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?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),!1===this.touchScrollAllowed&&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)}cancel(){this.isInteracting&&(this.isInteracting=!1,this.pointer.cancel())}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class hd{constructor(e){this.el=e,this.origRect=Ba(e),this.isRtl=Ca(e),this.scrollCaches=Ua(e).map(e=>new od(e,!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 n={left:e,top:t};for(let e of this.scrollCaches)if(!gd(e.getEventTarget())&&!Sa(n,e.clientRect))return!1;return!0}}function gd(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class fd{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?this.emitter.trigger("pointerdown",e):t.cancel()},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new gi}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,s=e.subjectEl;s instanceof HTMLElement&&(t=Ba(s),r=ba(r,t));let i=this.initialHit=this.queryHitForOffset(r.left,r.top);if(i){if(this.useSubjectCenter&&t){let e=Ea(t,i.rect);e&&(r=Da(e))}this.coordAdjust=wa(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&pd(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=Tn(this.droppableStore,e=>(e.component.prepareHits(),new hd(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,s=null;for(let i in n){let a=n[i].component,o=r[i];if(o&&o.isWithinClipping(e,t)){let n=o.computeLeft(),r=o.computeTop(),l=e-n,d=t-r,{origRect:c}=o,u=c.right-c.left,h=c.bottom-c.top;if(l>=0&&l<u&&d>=0&&d<h){let e=a.queryHit(o.isRtl,l,d,u,h);e&&Dr(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(l+n-window.scrollX,d+r-window.scrollY)))&&(!s||e.layer>s.layer)&&(e.componentId=i,e.context=a.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,s=e)}}}return s}}function pd(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Ui(e.dateSpan,t.dateSpan)}function vd(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));var r,s;return Object.assign(n,(r=e,{date:(s=t.dateEnv).toDate(r.range.start),dateStr:s.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),n}class md extends ca{constructor(e){super(e),this.subjectEl=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:s}=r,{options:i}=n.context,a=n.context;this.subjectEl=e.subjectEl;let o=(this.eventRange=xi(e.subjectEl)).instance.instanceId;this.relevantEvents=$s(a.getCurrentData().eventStore,o),r.minDistance=e.isTouch?0:i.eventDragMinDistance,r.delay=e.isTouch&&o!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,s.parentNode=Ra(t),s.revertDuration=i.dragRevertDuration,n.isValidSegDownEl(t)&&!t.closest("."+en)?this.isDragging=e.subjectEl.classList.contains(Kt):r.cancel()},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new wi(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,s=this.component.context,i=null,a=null,o=null,l=!1,d={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){i=e.context;let t=i.options;s===i||t.editable&&t.droppable?(a=function(e,t,n,r){let s=e.dateSpan,i=t.dateSpan,a=s.range.start,o=i.range.start,l={};s.allDay!==i.allDay&&(l.allDay=i.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,a=i.allDay?ir(n):n);let d=vs(a,o,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);d.milliseconds&&(l.allDay=!1);let c={datesDelta:d,standardProps:l};for(let n of r)n(c,e,t);return c}(r,e,this.eventRange.instance.range.start,i.getCurrentData().pluginHooks.eventDragMutationMassagers),a&&(o=Si(n,i.getCurrentData().eventUiBases,a,i),d.mutatedEvents=o,So(d,e.dateProfile,i)||(l=!0,a=null,o=null,d.mutatedEvents={defs:{},instances:{}}))):i=null}this.displayDrag(i,d),l?hn():gn(),t||(s===i&&pd(r,e)&&(a=null),this.dragging.setMirrorNeedsRevert(!a),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector("."+$t)),this.receivingContext=i,this.validMutation=a,this.mutatedRelevantEvents=o)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:s}=this,i=this.eventRange.def,a=this.eventRange.instance,o=new wi(t,i,a),l=this.relevantEvents,d=this.mutatedRelevantEvents,{finalHit:c}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:o,jsEvent:e.origEvent,view:n}),s){if(r===t){let r=new wi(t,d.defs[i.defId],a?d.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:d});let c={oldEvent:o,event:r,relatedEvents:Ci(d,t,a),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},u={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(u,e(s,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},c),u),{el:e.subjectEl,delta:s.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",c)}else if(r){let s={event:o,relatedEvents:Ci(l,t,a),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},s),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:l}),t.emitter.trigger("eventRemove",s);let u=d.defs[i.defId],h=d.instances[a.instanceId],g=new wi(r,u,h);r.dispatch({type:"MERGE_EVENTS",eventStore:d});let f={event:g,relatedEvents:Ci(d,r,h),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:d})}};r.emitter.trigger("eventAdd",f),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},vd(c.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:c.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},f),{draggedEl:e.subjectEl,view:c.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new ud(e.el);r.pointer.selector=md.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let s=this.hitDragging=new fd(this.dragging,ha);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 n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.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.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}md.SELECTOR=`.${Kt}, .${Qt}`;const yd={dateClick:Bs,eventDragStart:Bs,eventDragStop:Bs,eventDrop:Bs,eventResizeStart:Bs,eventResizeStop:Bs,eventResize:Bs,drop:Bs,eventReceive:Bs,eventLeave:Bs};class Sd{constructor(e,t){this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=e=>{this.dragMeta=this.buildDragMeta(e.subjectEl)},this.handleHitUpdate=(e,t,n)=>{let{dragging:r}=this.hitDragging,s=null,i=null,a=!1,o={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:this.dragMeta.create};e&&(s=e.context,this.canDropElOnCalendar(n.subjectEl,s)&&(i=function(e,t,n){let r=Object.assign({},t.leftoverProps);for(let s of n.pluginHooks.externalDefTransforms)Object.assign(r,s(e,t));let{refined:s,extra:i}=Gs(r,n),a=qs(s,i,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),o=e.range.start;e.allDay&&t.startTime&&(o=n.dateEnv.add(o,t.startTime));let l=t.duration?n.dateEnv.add(o,t.duration):yi(e.allDay,o,n),d=bs(a.defId,{start:o,end:l});return{def:a,instance:d}}(e.dateSpan,this.dragMeta,s),o.mutatedEvents=Zs(i),a=!So(o,e.dateProfile,s),a&&(o.mutatedEvents={defs:{},instances:{}},i=null))),this.displayDrag(s,o),r.setMirrorIsVisible(t||!i||!document.querySelector("."+$t)),a?hn():gn(),t||(r.setMirrorNeedsRevert(!i),this.receivingContext=s,this.droppableEvent=i)},this.handleDragEnd=e=>{let{receivingContext:t,droppableEvent:n}=this;if(this.clearDrag(),t&&n){let r=this.hitDragging.finalHit,s=r.context.viewApi,i=this.dragMeta;if(t.emitter.trigger("drop",Object.assign(Object.assign({},vd(r.dateSpan,t)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:s})),i.create){let r=Zs(n);t.dispatch({type:"MERGE_EVENTS",eventStore:r}),e.isTouch&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:n.instance.instanceId}),t.emitter.trigger("eventReceive",{event:new wi(t,n.def,n.instance),relatedEvents:[],revert(){t.dispatch({type:"REMOVE_EVENTS",eventStore:r})},draggedEl:e.subjectEl,view:s})}}this.receivingContext=null,this.droppableEvent=null};let n=this.hitDragging=new fd(e,ha);n.requireInitial=!1,n.emitter.on("dragstart",this.handleDragStart),n.emitter.on("hitupdate",this.handleHitUpdate),n.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}buildDragMeta(e){return"object"==typeof this.suppliedDragMeta?oo(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?oo(this.suppliedDragMeta(e)):function(e){let t=function(e,t){let n=io.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}(e,"event");return oo(t?JSON.parse(t):{create:!1})}(e)}displayDrag(e,t){let n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})}canDropElOnCalendar(e,t){let n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||e.matches(n)}}io.dataAttrPrefix="";class Ed extends so{constructor(e){super(e),this.shouldIgnoreMove=!1,this.mirrorSelector="",this.currentMirrorEl=null,this.handlePointerDown=e=>{this.emitter.trigger("pointerdown",e),this.shouldIgnoreMove||this.emitter.trigger("dragstart",e)},this.handlePointerMove=e=>{this.shouldIgnoreMove||this.emitter.trigger("dragmove",e)},this.handlePointerUp=e=>{this.emitter.trigger("pointerup",e),this.shouldIgnoreMove||this.emitter.trigger("dragend",e)};let t=this.pointer=new rd(e);t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("pointermove",this.handlePointerMove),t.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.pointer.destroy()}cancel(){this.shouldIgnoreMove=!0}setMirrorIsVisible(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{let e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;e&&(this.currentMirrorEl=e,e.style.visibility="hidden")}}}var bd=il({name:"@fullcalendar/interaction",componentInteractions:[class extends ca{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;this.component.context.emitter.hasHandlers("dateClick")&&this.component.isValidDateDownEl(n)||t.cancel()},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&pd(n,r)){let{context:r}=t,s=Object.assign(Object.assign({},vd(n.dateSpan,r)),{dayEl:n.getDayEl(),jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",s)}}},this.dragging=new ud(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new fd(this.dragging,ua(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends ca{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context;r.selectable&&t.isValidDateDownEl(e.origEvent.target)?n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null:n.cancel()},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,s=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,s=t.dateSpan,i=[r.range.start,r.range.end,s.range.start,s.range.end];i.sort(wn);let a={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(a,n)}return a.range={start:i[0],end:i[3]},a.allDay=r.allDay,a}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&Eo(r,e.dateProfile,n)||(s=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),s?hn():gn(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(vi(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new ud(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let s=this.hitDragging=new fd(this.dragging,ua(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()}},md,class extends ca{constructor(e){super(e),this.draggingSegEl=null,this.draggingEventRange=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=this.querySegEl(e),r=this.eventRange=xi(n);this.dragging.minDistance=t.context.options.eventDragMinDistance;this.component.isValidSegDownEl(e.origEvent.target)&&!(e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)||this.dragging.cancel()},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=$s(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingEventRange=xi(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new wi(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,s=this.relevantEvents,i=this.hitDragging.initialHit,a=this.eventRange.instance,o=null,l=null,d=!1,c={affectedEvents:s,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){e.componentId===i.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(i,e)||(o=function(e,t,n,r){let s=e.context.dateEnv,i=e.dateSpan.range.start,a=t.dateSpan.range.start,o=vs(i,a,s,e.largeUnit);if(n){if(s.add(r.start,o)<r.end)return{startDelta:o}}else if(s.add(r.end,o)>r.start)return{endDelta:o};return null}(i,e,n.subjectEl.classList.contains(tn),a.range))}o&&(l=Si(s,r.getCurrentData().eventUiBases,o,r),c.mutatedEvents=l,So(c,e.dateProfile,r)||(d=!0,o=null,l=null,c.mutatedEvents=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:c}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),d?hn():gn(),t||(o&&pd(i,e)&&(o=null),this.validMutation=o,this.mutatedRelevantEvents=l)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,s=new wi(t,n,r),i=this.relevantEvents,a=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:s,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let o=new wi(t,a.defs[n.defId],r?a.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:a});let l={oldEvent:s,event:o,relatedEvents:Ci(a,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:i})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},l),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Hr(0),endDelta:this.validMutation.endDelta||Hr(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",l)}else t.emitter.trigger("_noEventResize");this.draggingEventRange=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new ud(e.el);n.pointer.selector="."+en,n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new fd(this.dragging,ua(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return e.subjectEl.closest("."+Zt)}}],calendarInteractions:[class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=Ia(e.origEvent);this.matchesCancel=!!n.closest(t),this.matchesEvent=!!n.closest(md.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new rd(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()}}],elementDraggingImpl:ud,optionRefiners:{},listenerRefiners:yd});class Dd extends mo{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}const wd=new Date(2592e5);function Rd(e,t,n,r,s,i){const a=Cd(e,t,n,r,s,i),o=Ss(n,i.dateEnv);if(t)for(const e of a.dataConfigs)Es(e.dateMarker,o,i.dateEnv)&&(e.renderProps.isMajor=!0);return[a]}function Cd(e,t,n,r,s,i,a,o){return{isDateRow:!0,renderConfig:_d(i),dataConfigs:Md(e,t,n,r,s,i,a,void 0,void 0,void 0,void 0,o)}}function _d(e){const{options:t}=e;return{generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,classNameGenerator:t.dayHeaderClass,innerClassNameGenerator:t.dayHeaderInnerClass,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount,align:t.dayHeaderAlign,sticky:t.dayHeaderSticky}}const Td=[];for(let e=0;e<7;e++)Td.push(Jn(new Date(2592e5),e));function Md(e,t,n,r,s,i,a=1,o="",l={},d={},c="",u){const{dateEnv:h,viewApi:g,options:f}=i;return t?e.map((p,v)=>{const m=Pa(p,h,n,r),y=null!=u&&!(v%u),[S,E]=h.format(p,s),b=f.navLinks&&!m.isDisabled&&e.length>1,D=Object.assign(Object.assign(Object.assign({},m),l),{text:S,textParts:E,get weekdayText(){return va(E)},get dayNumberText(){return t?ma(E):""},isMajor:y,isNarrow:!1,isSticky:!1,inPopover:!1,level:0,hasNavLink:b,view:g}),w=Wa(i,p);return{key:o+p.toUTCString(),dateMarker:p,renderProps:D,attrs:Object.assign(Object.assign(Object.assign({"aria-label":w},m.isToday?{"aria-current":"date"}:{}),{"data-date":Br(p)}),d),innerAttrs:b?Aa(i,p,void 0,w):{"aria-hidden":!0},colSpan:a,hasNavLink:b,className:c}}):e.map((e,n)=>{const r=e.getUTCDay(),i=Jn(wd,r),f={date:h.toDate(e),dow:r,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},p=null!=u&&!(n%u),[v,m]=h.format(i,s),y=Object.assign(Object.assign(Object.assign({},f),{date:Td[r],isMajor:p,isNarrow:!1,isSticky:!1,inPopover:!1,hasNavLink:!1,level:0,view:g,text:v,textParts:m,get weekdayText(){return va(m)},get dayNumberText(){return t?ma(m):""}}),l),S=h.format(i,pa)[0];return{key:o+String(r),dateMarker:e,renderProps:y,attrs:Object.assign({"aria-label":S},d),innerAttrs:{"aria-hidden":!0},colSpan:a,className:c}})}function Id(e){return _i(e)+":"+e.start+(e.standinFor?":standin":e.isSlice?":slice":"")}function xd(e,t){const n=[];for(let e=0;e<t;e++)n[e]=[];for(const t of e)n[t.row].push(t);return n}function Hd(e,t){const n=[];if(e){for(let r=0;r<t;r++)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(const t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e++)n[e]=null;return n}function Nd(e,t){return Object.assign(Object.assign({},e),{start:t,end:t+1,isStart:e.isStart&&e.start===t,isEnd:e.isEnd&&e.end-1===t,standinFor:e})}const kd=Ns({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Od(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.end-e.start==1&&e.isStart&&e.isEnd}class Pd extends ss{render(){let{props:e}=this;return S(Go,{display:"row",className:e.className,isNarrow:e.isNarrow,isMicro:e.isMicro,dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,segs:e.segs,hiddenSegs:e.hiddenSegs,alignElRef:e.alignElRef,alignParentTop:e.alignParentTop,dateSpanProps:e.dateSpanProps,popoverContent:()=>S(D,null,e.segs.map(t=>{let{eventRange:n}=t,{instanceId:r}=n.instance,s=Boolean(e.eventDrag&&e.eventDrag.affectedInstances[r]),i=Boolean(e.eventResize&&e.eventResize.affectedInstances[r]);return S("div",{key:r,style:{visibility:s||i?"hidden":void 0}},S(Po,Object.assign({display:Od(t)?"list-item":"row",eventRange:n,isStart:t.isStart,isEnd:t.isEnd,isDragging:s,isResizing:i,isMirror:!1,isSelected:r===e.eventSelection,defaultTimeFormat:kd,defaultDisplayEventEnd:!1},Wi(n,e.todayRange))))}))})}}class Wd extends Ya{constructor(){super(...arguments),this.getDateMeta=Zn(Pa),this.refineRenderProps=$n(jd),this.rootElRef={current:null},this.handleBodyEl=e=>{this.disconnectBodyHeight&&(this.disconnectBodyHeight(),this.disconnectBodyHeight=void 0,is(this.props.headerHeightRef,null),is(this.props.mainHeightRef,null)),e&&(this.disconnectBodyHeight=ia(e,(t,n)=>{const{props:r}=this,s=e.getBoundingClientRect(),i=this.rootElRef.current.getBoundingClientRect(),a=s.top-i.top;qi(this.headerHeight,a)||(this.headerHeight=a,is(r.headerHeightRef,a)),r.fgLiquidHeight&&is(r.mainHeightRef,n)}))}}render(){let{props:e,context:t}=this,{options:n,dateEnv:r}=t;const s=e.showDayNumber&&function(e,t,n){const{start:r,end:s}=t,i=Qn(s,-1),a=n.getYear(r),o=n.getMonth(r),l=n.getYear(i),d=n.getMonth(i);return!(a===l&&o===d)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<s.valueOf())}(e.date,e.dateProfile.currentRange,r),i=this.getDateMeta(e.date,r,e.dateProfile,e.todayRange),a=ke(e.borderStart?at:rt,null!=e.width?"":ft,ht),o=n.navLinks,l=this.refineRenderProps({date:e.date,isMajor:e.isMajor,isNarrow:e.isNarrow,dateMeta:i,hasLabel:e.showDayNumber,hasMonthLabel:s,hasNavLink:o,renderProps:e.renderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat,dayCellFormat:n.dayCellFormat,businessHours:Boolean(n.businessHours)});if(i.isDisabled)return S("div",{role:"gridcell","aria-disabled":!0,className:Ne(hs(n.dayCellClass,l),e.className,a),style:{width:e.width}});const d=Wa(t,e.date);return S(cs,{tag:"div",elRef:this.rootElRef,className:ke(e.className,a),attrs:Object.assign(Object.assign(Object.assign(Object.assign({},e.attrs),{role:"gridcell","aria-label":d}),l.isToday?{"aria-current":"date"}:{}),{"data-date":Br(e.date)}),style:{width:e.width},renderProps:l,generatorName:"dayCellTopContent",customGenerator:n.dayCellTopContent,defaultGenerator:Ad,classNameGenerator:n.dayCellClass,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},r=>S(D,null,S("div",{className:ke(Ct,hs(n.dayCellTopClass,l))},e.showDayNumber&&S(r,{tag:"div",attrs:o?Aa(t,e.date,void 0,d):{"aria-hidden":!0},className:hs(n.dayCellTopInnerClass,l)})),S("div",{className:ke(ht,e.fgLiquidHeight?ft:gt),ref:this.handleBodyEl},S("div",{className:hs(n.dayCellInnerClass,l),style:{minHeight:e.fgHeight}},e.fg),S(Pd,{className:Ct,allDayDate:e.date,segs:e.segs,hiddenSegs:e.hiddenSegs,alignElRef:this.rootElRef,alignParentTop:e.showDayNumber?"[role=row]":"."+ln,dateSpanProps:e.dateSpanProps,dateProfile:e.dateProfile,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,isNarrow:e.isNarrow,isMicro:e.isMicro})),S("div",{className:ke(Ct,hs(n.dayCellBottomClass,l))})))}}function Ad(e){return e.text||S(D,null," ")}function jd(e){let{date:t,dateEnv:n,hasLabel:r,hasMonthLabel:s,hasNavLink:i,businessHours:a}=e,[o,l]=r?n.format(t,s?e.monthStartFormat:e.dayCellFormat):["",[]];return Object.assign(Object.assign(Object.assign({},e.dateMeta),e.renderProps),{text:o,textParts:l,isMajor:e.isMajor,isNarrow:e.isNarrow,inPopover:!1,hasNavLink:i,get dayNumberText(){return ma(l)},get monthText(){return ya(l)},options:{businessHours:a},view:e.viewApi})}function Ld(e,t){let n=e.get(t.eventRange);n||e.set(t.eventRange,n=[]),n.push(t)}function Bd(e,t,n){const r=new lo(e.renderRange,t),s=/year|month|week/.test(e.currentRangeUnit),i=!s&&Ss(e,n);return new co(r,s,n,i)}function Ud(e,t,n){if(null==n)return[void 0,void 0];return n/e<t?[t*e,t]:[n,void 0]}function Vd(e,t,n){let r,s;if(null!=t)r=e.start*t,s=(n-e.end)*t;else{const t=1/n;r=Oe(e.start*t),s=Oe(1-e.end*t)}return{insetInlineStart:r,insetInlineEnd:s}}function Fd(e,t,n,r,s){const i=null!=n?n:t/r,a=Math.floor(e/i),o=a*i;return{col:s?r-a-1:a,left:o,right:o+i}}function zd(e,t){return e.querySelectorAll("[role=gridcell]")[t]}const Gd=Ns({weekday:"narrow"});function Yd(e,t,n){return e||function(e,t){if(!e)return Ns({weekday:"short"});if(t>1)return Ns({weekday:"short",weekdayJustify:"start",day:"numeric",omitCommas:!0});return Ns({weekday:"long",weekdayJustify:"start",day:"numeric",omitCommas:!0})}(t,n)}class qd extends w{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return S("div",{className:ke(e.className,_t),style:e.style,ref:this.rootElRef},e.children)}componentDidMount(){const e=this.rootElRef.current;this.disconnectHeight=la(e,e=>{is(this.props.heightRef,e)})}componentWillUnmount(){this.disconnectHeight(),is(this.props.heightRef,null)}}const Xd=Ns({week:"narrow"});class Zd extends ss{constructor(){super(...arguments),this.headerHeightRefMap=new No(()=>{Ji(this.handleSegPositioning)}),this.mainHeightRefMap=new No(()=>{(!0===this.props.dayMaxEvents||!0===this.props.dayMaxEventRows)&&Ji(this.handleSegPositioning)}),this.segHeightRefMap=new No(()=>{Ji(this.handleSegPositioning)}),this.buildWeekNumberRenderProps=Zn($d),this.handleRootEl=e=>{this.rootEl=e,is(this.props.rootElRef,e)},this.handleSegPositioning=()=>{this.forceUpdate()}}render(){const{props:e,context:t,headerHeightRefMap:n,mainHeightRefMap:r}=this,{cells:s}=e,{options:i}=t,a=e.cells[0].date,o=!0===e.dayMaxEvents||!0===e.dayMaxEventRows,l=ki(e.fgEventSegs,i.eventOrder),[d,c]=this.computeFgDims(),[u,h,g,f,p]=function(e,t,n,r,s,i=!0,a,o){let l,d,c;!0===a||!0===o?(l=r,c=!0):"number"==typeof a?(d=a,c=!1):"number"==typeof o&&(d=o,c=!0);const u=new Map,h=new Map,g=new Map,f=new Map;let p=new eo(e,e=>t.get(Id(e)),s,l,d,c,i);p.traverseSegs((e,t)=>{Ld(u,e),g.set(Id(e),t),e.isSlice&&f.set(e.eventRange,!0)});for(const e of p.hiddenSegs)Ld(h,e);if(f.size){g.clear(),p=new eo(function(e,t){const n=[];for(const r of e)n.push(...t.get(r.eventRange)||[]);return n}(e,u),e=>t.get(Id(e)),s,l,d,c),p.traverseSegs((e,t)=>{g.set(Id(e),t)});for(const e of p.hiddenSegs)Ld(h,e)}const v=[],m=[],y=[],S=[];for(let e=0;e<n.length;e++)v.push([]),m.push([]),y.push([]),S.push(0);for(const n of e){const{eventRange:e}=n,r=u.get(e)||[],s=h.get(e)||[],i=f.get(e)||!1;if(y[n.start].push(n),i)for(const e of r)y[e.start].push(e);for(const e of r){for(let t=e.start;t<e.end;t++){const n=Nd(e,t);v[t].push(n)}const n=Id(e),r=g.get(n);if(null!=r){const s=t.get(n);for(let t=e.start;t<e.end;t++)S[t]=Math.max(S[t],r+s)}}for(const e of s)for(let t=e.start;t<e.end;t++){const n=Nd(e,t);v[t].push(n),m[t].push(n)}}return[v,m,y,g,S]}(l,this.segHeightRefMap.current,s,o?c:void 0,i.eventOrderStrict,i.eventSlicing,e.dayMaxEvents,e.dayMaxEventRows),v=[];if(null!=d){let e=0;for(const t of s){const r=n.current.get(t.key),s=d-r;v.push(p[e++]+s)}}const m=this.getHighlightSegs(),y=this.getMirrorSegs(),E=i.navLinks,b=Wa(t,a,"week"),w=this.buildWeekNumberRenderProps(a,t,e.cellIsNarrow,E);return S("div",{role:e.role,"aria-label":"row"===e.role?b:void 0,className:Ne(i.dayRowClass,e.className,ut,Ct,Ve,e.forPrint&&void 0!==e.basis&&Gt),style:{"flex-basis":e.basis},ref:this.handleRootEl},e.showWeekNumbers&&!e.cellIsMicro&&S(cs,{tag:"div",attrs:Object.assign(Object.assign({},E?Aa(t,a,"week",b,!1):{}),{role:void 0,"aria-hidden":!0}),className:qt,renderProps:w,generatorName:"inlineWeekNumberContent",customGenerator:i.inlineWeekNumberContent,defaultGenerator:gs,classNameGenerator:i.inlineWeekNumberClass,didMount:i.inlineWeekNumberDidMount,willUnmount:i.inlineWeekNumberWillUnmount}),this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(m,"highlight"),e.cells.map((t,s)=>{const i=this.renderFgSegs(d,g[s],f,e.todayRange,!1);return S(Wd,{key:t.key,dateProfile:e.dateProfile,todayRange:e.todayRange,date:t.date,isMajor:t.isMajor,showDayNumber:e.showDayNumbers,isNarrow:e.cellIsNarrow,isMicro:e.cellIsMicro,borderStart:Boolean(s),segs:u[s],hiddenSegs:h[s],fgLiquidHeight:o,fg:S(D,null,i),eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,renderProps:t.renderProps,dateSpanProps:t.dateSpanProps,attrs:t.attrs,className:t.className,fgHeight:v[s],width:e.colWidth,headerHeightRef:n.createRef(t.key),mainHeightRef:r.createRef(t.key)})}),this.renderFgSegs(d,y,f,e.todayRange,!0))}renderFgSegs(e,t,n,r,s){var i;const{props:a,segHeightRefMap:o}=this,{colWidth:l,eventSelection:d,cellIsMicro:c}=a,u=a.cells.length,h=1===a.cells.length,g=[];for(const f of t){const t=Id(f),{standinFor:p,eventRange:v}=f,{instanceId:m}=v.instance;if(p)continue;const{insetInlineStart:y,insetInlineEnd:E}=Vd(f,l,u),b=null!==(i=n.get(p?Id(p):t))&&void 0!==i?i:s?0:void 0,D=null!=e&&null!=b?e+b:void 0,w=Boolean(a.eventDrag&&a.eventDrag.affectedInstances[m]),R=Boolean(a.eventResize&&a.eventResize.affectedInstances[m]),C=!s&&(w||R||p||null==D),_=Od(f);g.push(S(qd,{key:t,className:f.start?ct:"",style:{visibility:C?"hidden":void 0,top:D,insetInlineStart:y,insetInlineEnd:E,zIndex:0},heightRef:p||s?null:o.createRef(t)},S(Po,Object.assign({display:_?"list-item":"row",eventRange:v,isStart:f.isStart,isEnd:f.isEnd,isDragging:w,isResizing:R,isMirror:s,isSelected:m===d,isNarrow:a.cellIsNarrow,defaultTimeFormat:kd,defaultDisplayEventEnd:h,disableResizing:_,forcedTimeText:c?"":void 0},Wi(v,r)))))}return g}renderFillSegs(e,t){const{props:n,context:r}=this,{todayRange:s,colWidth:i}=n,a=n.cells.length,o=[];for(const l of e){const e=Ai(l.eventRange),{insetInlineStart:d,insetInlineEnd:c}=Vd(l,i,a),u=!l.standinFor;o.push(S("div",{key:e,className:Ht,style:{visibility:u?"":"hidden",insetInlineStart:d,insetInlineEnd:c}},"bg-event"===t?S(Bo,Object.assign({eventRange:l.eventRange,isStart:l.isStart,isEnd:l.isEnd,isNarrow:n.cellIsNarrow,isVertical:!1},Wi(l.eventRange,s))):Vo(t,r.options)))}return S(D,{},...o)}componentDidMount(){const{rootEl:e}=this;this.disconnectHeight=la(e,e=>{is(this.props.heightRef,e)})}componentWillUnmount(){this.disconnectHeight(),is(this.props.heightRef,null)}computeFgDims(){const{cells:e}=this.props,t=this.headerHeightRefMap.current,n=this.mainHeightRefMap.current;let r,s;for(const i of e){const e=t.get(i.key),a=n.get(i.key);if(null!=e&&((void 0===r||e>r)&&(r=e),null!=a)){const t=e+a;(void 0===s||t<s)&&(s=t)}}return[r,null!=s&&null!=r?s-r:void 0]}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}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}}function $d(e,t,n,r){const{dateEnv:s,options:i}=t,a=s.computeWeekNumber(e),[o,l]=s.format(e,i.weekNumberFormat||Xd);return{num:a,text:o,textParts:l,date:s.toDate(e),isNarrow:n,hasNavLink:r}}class Kd extends Ya{constructor(){super(...arguments),this.splitBusinessHourSegs=Zn(xd),this.splitBgEventSegs=Zn(xd),this.splitFgEventSegs=Zn(xd),this.splitDateSelectionSegs=Zn(xd),this.splitEventDrag=Zn(Hd),this.splitEventResize=Zn(Hd),this.rowHeightRefMap=new No((e,t)=>{const{rowHeightRefMap:n}=this.props;n&&n.handleValue(e,t)}),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t,rowHeightRefMap:n}=this,{options:r}=t,s=e.cellRows.length,i=this.splitFgEventSegs(e.fgEventSegs,s),a=this.splitBgEventSegs(e.bgEventSegs,s),o=this.splitBusinessHourSegs(e.businessHourSegs,s),l=this.splitDateSelectionSegs(e.dateSelectionSegs,s),d=this.splitEventDrag(e.eventDrag,s),c=this.splitEventResize(e.eventResize,s),u=To(r),h=!e.forPrint&&!u,g=function(e,t,n,r){if(null!=e){const s=e/r.aspectRatio/6;return t>6||n?s:0}return 0}(e.visibleWidth,s,u,r);return S("div",{role:"rowgroup",className:ke(e.className,!e.forPrint&&ht),style:{width:e.width},ref:this.handleRootEl},e.cellRows.map((t,u)=>S(Zd,{key:t[0].key,role:"row",dateProfile:e.dateProfile,todayRange:e.todayRange,cells:t,cellIsNarrow:e.cellIsNarrow,cellIsMicro:e.cellIsMicro,showDayNumbers:s>1,showWeekNumbers:s>1&&r.weekNumbers,forPrint:e.forPrint,className:ke(h&>,s>1&&zt,u<s-1?it:rt),fgEventSegs:i[u],bgEventSegs:a[u].filter(Jd),businessHourSegs:o[u],dateSelectionSegs:l[u],eventSelection:e.eventSelection,eventDrag:d[u],eventResize:c[u],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,colWidth:e.colWidth,basis:g,heightRef:n.createRef(t[0].key)})))}queryHit(e,t,n,r){const{props:s}=this,i=s.cellRows[0].length,{col:a,left:o,right:l}=Fd(t,r,s.colWidth,i,e),{row:d,top:c,bottom:u}=function(e,t,n){let r=0,s=0,i=0;for(const a of t){const t=a[0].key;if(s=i,i=s+n.get(t),e<i)break;r++}return{row:r,top:s,bottom:i}}(n,s.cellRows,this.rowHeightRefMap.current),h=s.cellRows[d][a],g=h.date,f=Jn(g,1);return{dateProfile:s.dateProfile,dateSpan:Object.assign({range:{start:g,end:f},allDay:!0},h.dateSpanProps),getDayEl:()=>zd(function(e,t){return e.querySelectorAll("[role=row]")[t]}(this.rootEl,d),a),rect:{left:o,right:l,top:c,bottom:u},layer:0}}}function Jd(e){return e.eventRange.def.allDay}class Qd extends ss{constructor(){super(...arguments),this.handleInnerEl=e=>{this.disconnectSize&&(this.disconnectSize(),this.disconnectSize=void 0),e?this.disconnectSize=ia(e,(e,t)=>{is(this.props.innerHeightRef,t),"center"===this.align&&this.isSticky&&this.setState({innerWidth:e})}):is(this.props.innerHeightRef,null)}}render(){const{props:e,state:t,context:n}=this,{renderConfig:r,dataConfig:s}=e,i=s.renderProps.isDisabled,a=Object.assign(Object.assign({},s.renderProps),{isNarrow:e.cellIsNarrow,level:e.rowLevel});if(e.cellIsMicro){const[e,t]=n.dateEnv.format(s.dateMarker,Gd);a.text=a.weekdayText=e,a.textParts=t}const o=r.align,l=this.align="function"==typeof o?o({level:e.rowLevel,inPopover:s.renderProps.inPopover,isNarrow:e.cellIsNarrow}):o,d=r.sticky,c=this.isSticky=e.rowLevel&&!1!==d;let u;return c&&("center"===l?null!=t.innerWidth&&(u=`calc(50% - ${t.innerWidth/2}px)`):u="number"==typeof d||"string"==typeof d?d:0),S(cs,{tag:"div",attrs:Object.assign({role:"columnheader","aria-colspan":s.colSpan},s.attrs),className:ke(s.className,yt,ht,e.borderStart?at:rt,"center"===l?jt:"end"===l?Bt:Lt,null==e.colWidth&&ft,!c&&wt),style:{width:null!=e.colWidth?e.colWidth*(s.colSpan||1):void 0},renderProps:a,generatorName:r.generatorName,customGenerator:r.customGenerator,defaultGenerator:gs,classNameGenerator:i?void 0:r.classNameGenerator,didMount:r.didMount,willUnmount:r.willUnmount},e=>S("div",{ref:this.handleInnerEl,className:ke(ht,Dt,c&&kt),style:{left:u,right:u}},S(e,{tag:"div",attrs:s.innerAttrs,className:hs(r.innerClassNameGenerator,a)})))}}class ec extends ss{constructor(){super(...arguments),this.innerHeightRefMap=new No(()=>{Ji(this.handleInnerHeights)}),this.handleInnerHeights=()=>{const e=this.innerHeightRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);this.currentInnerHeight!==t&&(this.currentInnerHeight=t,is(this.props.innerHeightRef,t))}}render(){const{props:e,context:t}=this,{options:n}=t;return S("div",{role:e.role,"aria-rowindex":null!=e.rowIndex?1+e.rowIndex:void 0,className:Ne(n.dayHeaderRowClass,e.className,ut,At,e.borderBottom?it:rt),style:{height:e.height}},e.dataConfigs.map((t,n)=>S(Qd,{key:t.key,renderConfig:e.renderConfig,dataConfig:t,borderStart:Boolean(n),colWidth:e.colWidth,innerHeightRef:this.innerHeightRefMap.createRef(t.key),cellIsNarrow:e.cellIsNarrow,cellIsMicro:e.cellIsMicro,rowLevel:e.rowLevel})))}componentWillUnmount(){is(this.props.innerHeightRef,null)}}class tc extends ss{render(){const{props:e}=this,{headerTiers:t}=e;return S("div",{role:"rowgroup",className:ke(e.className,ht,null==e.width&&ft),style:{width:e.width}},t.map((n,r)=>S(ec,Object.assign({},n,{key:r,role:"row",borderBottom:r<t.length-1,colWidth:e.colWidth,cellIsNarrow:e.cellIsNarrow,cellIsMicro:e.cellIsMicro,rowLevel:t.length-r-1}))))}}class nc extends ss{constructor(){super(...arguments),this.handleScroller=e=>{is(this.props.scrollerRef,e)},this.handleTotalWidth=e=>{this.setState({totalWidth:e})},this.handleClientWidth=e=>{this.setState({clientWidth:e})}}render(){const{props:e,state:t,context:n}=this,{options:r}=n,{totalWidth:s,clientWidth:i}=t;let a=null!=s&&null!=i?s-i:void 0;a<3&&(a=0);const o=!e.forPrint&&!To(r),l=!e.forPrint&&Mo(r),d=e.cellRows[0].length,c=null!=i?i/d:void 0,u=null!=c&&c<=50,h=u||null!=c&&c<=r.dayNarrowWidth;return S(D,null,r.dayHeaders&&S("div",{className:ke(hs(r.tableHeaderClass,{isSticky:l}),e.borderlessX&&ot,mt,l&&Wt)},S("div",{className:ut},S(tc,{headerTiers:e.headerTiers,cellIsNarrow:h,cellIsMicro:u}),Boolean(a)&&S("div",{className:Ne(hs(r.fillerClass,{isHeader:!0}),at),style:{minWidth:a}})),S("div",{className:hs(r.dayHeaderDividerClass,{isSticky:l,options:{allDaySlot:Boolean(r.allDaySlot)}})})),S(ho,{vertical:o,className:Ne(r.tableBodyClass,e.borderlessX&&ot,l&<,(l||e.noEdgeEffects)&&Rt,!e.forPrint&&ht,o&&ft),ref:this.handleScroller,clientWidthRef:this.handleClientWidth},S(Kd,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:e.cellRows,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:gt,dayMaxEvents:e.forPrint?void 0:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,visibleWidth:s,cellIsNarrow:h,cellIsMicro:u,rowHeightRefMap:e.rowHeightRefMap})),S(Ho,{widthRef:this.handleTotalWidth}))}}class rc extends ss{constructor(){super(...arguments),this.headerScrollerRef={current:null},this.bodyScrollerRef={current:null},this.footerScrollerRef={current:null},this.handleTotalWidth=e=>{this.setState({totalWidth:e})},this.handleClientWidth=e=>{this.setState({clientWidth:e})}}render(){const{props:e,state:t,context:n}=this,{options:r}=n,{totalWidth:s,clientWidth:i}=t,a=null!=s&&null!=i?s-i:void 0,o=!e.forPrint&&!To(r),l=!e.forPrint&&Mo(r),d=!e.forPrint&&Io(r),c=e.cellRows[0].length,[u,h]=Ud(c,e.dayMinWidth,i),g=null!=h&&h<=50,f=g||null!=h&&h<=r.dayNarrowWidth;return S(D,null,r.dayHeaders&&S("div",{className:ke(hs(r.tableHeaderClass,{isSticky:l}),e.borderlessX&&ot,mt,l&&Wt)},S(ho,{horizontal:!0,hideScrollbars:!0,className:ut,ref:this.headerScrollerRef},S(tc,{headerTiers:e.headerTiers,colWidth:h,width:u,cellIsNarrow:f,cellIsMicro:g}),Boolean(a)&&S("div",{className:Ne(hs(r.fillerClass,{isHeader:!0}),at),style:{minWidth:a}})),S("div",{className:hs(r.dayHeaderDividerClass,{isSticky:l,options:{allDaySlot:Boolean(r.allDaySlot)}})})),S(ho,{vertical:o,horizontal:!0,hideScrollbars:d||e.forPrint,className:Ne(r.tableBodyClass,e.borderlessX&&ot,l&<,(l||e.noEdgeEffects)&&Rt,!e.forPrint&&ht,o&&ft),ref:this.bodyScrollerRef,clientWidthRef:this.handleClientWidth},S(Kd,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:e.cellRows,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:gt,dayMaxEvents:e.forPrint?void 0:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,colWidth:h,width:u,visibleWidth:s,cellIsNarrow:f,cellIsMicro:g,rowHeightRefMap:e.rowHeightRefMap})),Boolean(d)&&S($o,{isSticky:!0,canvasWidth:u,scrollerRef:this.footerScrollerRef}),S(Ho,{widthRef:this.handleTotalWidth}))}componentDidMount(){const e=xo(this.context.pluginHooks);this.syncedScroller=new e(!0),is(this.props.scrollerRef,this.syncedScroller),this.updateSyncedScroller()}componentDidUpdate(){this.updateSyncedScroller()}componentWillUnmount(){this.syncedScroller.destroy()}updateSyncedScroller(){this.syncedScroller.handleChildren([this.headerScrollerRef.current,this.bodyScrollerRef.current,this.footerScrollerRef.current])}}class sc extends ss{constructor(){super(...arguments),this.scrollerRef={current:null},this.rowHeightRefMap=new No(()=>{Ji(this.updateScrollY)}),this.scrollDate=null,this.updateScrollY=()=>{const e=this.rowHeightRefMap.current,t=this.scrollerRef.current;if(t&&this.scrollDate){let n=function(e,t,n,r=0){let s=0;for(const i of t){const t=i[0].date,a=i[i.length-1].date,o=t.toISOString();if(e>=t&&e<=a)return s;const l=n.get(o);if(null==l)return;s+=l+r}return s}(this.scrollDate,this.props.cellRows,e,1);null!=n&&(n&&n++,t.scrollTo({y:n}))}},this.handleScrollEnd=e=>{e&&(this.scrollDate=null)}}render(){const{props:e,context:t}=this,{options:n}=t,r=Object.assign(Object.assign({},e),{scrollerRef:this.scrollerRef,rowHeightRefMap:this.rowHeightRefMap});return S(Xo,{viewSpec:t.viewSpec,attrs:{role:"grid","aria-rowcount":e.headerTiers.length+e.cellRows.length,"aria-colcount":e.cellRows[0].length,"aria-labelledby":e.labelId,"aria-label":e.labelStr},className:Ne(e.className,vt,n.tableClass),borderlessX:e.borderlessX,borderlessTop:e.borderlessTop,borderlessBottom:e.borderlessBottom,noEdgeEffects:e.noEdgeEffects},n.dayMinWidth?S(rc,Object.assign({},r,{dayMinWidth:n.dayMinWidth})):S(nc,Object.assign({},r)))}componentDidMount(){this.resetScroll(),this.scrollerRef.current.addScrollEndListener(this.handleScrollEnd)}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset&&this.resetScroll()}componentWillUnmount(){this.scrollerRef.current.removeScrollEndListener(this.handleScrollEnd)}resetScroll(){this.scrollDate=this.props.dateProfile.currentDate,this.updateScrollY();this.scrollerRef.current.scrollTo({x:0})}}class ic extends ys{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:s}=this;return ac({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function ac(e){let t,{dateEnv:n,currentRange:r}=e,{start:s,end:i}=r;if(e.snapToWeek&&(s=n.startOfWeek(s),t=n.startOfWeek(i),t.valueOf()!==i.valueOf()&&(i=Kn(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(Jn(r.end,-1)));i=Kn(i,6-Math.ceil(er(e,i)))}return{start:s,end:i}}var oc=il({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",optionRefiners:{dayHeaders:Boolean,dayHeaderFormat:Ns},optionDefaults:{dayHeaders:!0},views:{dayGrid:{component:class extends ss{constructor(){super(...arguments),this.buildDayTableModel=Zn(Bd),this.buildDateRowConfigs=Zn(Rd),this.createDayHeaderFormatter=Zn(Yd),this.slicer=new Dd}render(){const{props:e,context:t}=this,{dateProfile:n}=e,{options:r,dateEnv:s}=t,i=this.buildDayTableModel(n,t.dateProfileGenerator,s),a=1===i.rowCount,o=this.createDayHeaderFormatter(t.options.dayHeaderFormat,a,i.colCount),l=this.slicer.sliceProps(e,n,r.nextDayThreshold,t,i);return S(ko,{unit:"day"},(r,s)=>{const d=this.buildDateRowConfigs(i.headerDates,a,n,s,o,t);return S(sc,{labelId:e.labelId,labelStr:e.labelStr,dateProfile:n,todayRange:s,cellRows:i.cellRows,forPrint:e.forPrint,className:e.className,headerTiers:d,fgEventSegs:l.fgEventSegs,bgEventSegs:l.bgEventSegs,businessHourSegs:l.businessHourSegs,dateSelectionSegs:l.dateSelectionSegs,eventDrag:l.eventDrag,eventResize:l.eventResize,eventSelection:l.eventSelection,borderlessX:e.borderlessX,borderlessTop:e.borderlessTop,borderlessBottom:e.borderlessBottom,noEdgeEffects:e.noEdgeEffects})})}},dateProfileGeneratorClass:ic},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}}}});class lc extends ka{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Mi(e)?["timed","allDay"]:["allDay"]:["timed"]}}class dc extends mo{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let s=Sr(e,t[r]);s&&n.push({startDate:s.start,endDate:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:r})}return n}}function cc(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function uc(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}const hc=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function gc(e,t,n,r,s){let i=new Date(0),a=e,o=Hr(0),l=n||function(e){let t,n,r;for(t=hc.length-1;t>=0;t-=1)if(n=Hr(hc[t]),r=Ar(n,e),null!==r&&r>1)return n;return e}(r),d=[],c=0;for(;Wr(a)<Wr(t);){let e=s.add(i,a),t=null!==Ar(o,l);d.push({date:e,time:a,key:e.toISOString(),isoTimeStr:Vr(e),isLabeled:t,isFirst:0===c}),a=kr(a,r),o=kr(o,r),c+=1}return d}class fc extends ss{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e}=this,{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n,isNarrow:e.isNarrow};return S(cs,{tag:"div",attrs:{role:"rowheader"},className:ke(ut,yt,At),style:{width:e.width},renderProps:r,generatorName:"allDayHeaderContent",customGenerator:t.allDayHeaderContent,defaultGenerator:pc,classNameGenerator:t.allDayHeaderClass,didMount:t.allDayHeaderDidMount,willUnmount:t.allDayHeaderWillUnmount},e=>S(e,{tag:"div",className:ke(hs(t.allDayHeaderInnerClass,r),Dt),elRef:this.innerElRef}))}componentDidMount(){const{props:e}=this,t=this.innerElRef.current;this.disconnectInnerWidth=oa(t,t=>{is(e.innerWidthRef,t)})}componentWillUnmount(){this.disconnectInnerWidth(),is(this.props.innerWidthRef,null)}}function pc(e){return e.text}class vc extends Ya{constructor(){super(...arguments),this.heightRef={current:null},this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){return S(Zd,Object.assign({},this.props,{rootElRef:this.handleRootEl,heightRef:this.heightRef}))}queryHit(e,t,n,r){const{props:s,heightRef:i}=this,a=s.cells.length,{col:o,left:l,right:d}=Fd(t,r,s.colWidth,a,e),c=s.cells[o],u=c.date,h=Jn(u,1);return{dateProfile:s.dateProfile,dateSpan:Object.assign({range:{start:u,end:h},allDay:!0},c.dateSpanProps),getDayEl:()=>zd(this.rootEl,o),rect:{left:l,right:d,top:0,bottom:i.current},layer:0}}}function mc(e,t,n){let r=new lo(e.renderRange,t);return new co(r,!1,n)}function yc(e,t,n){let r=[];for(let s of e.headerDates)r.push({start:n.add(s,t.slotMinTime),end:n.add(s,t.slotMaxTime)});return r}function Sc(e,t,n,r){if(!n||!r)return[void 0,!1];const s=n+1,i=r/t;let a,o;return e&&i>=s?(a=!0,o=i):(a=!1,o=s),[o,a]}function Ec(e,t,n){return n||(n=ir(e)),bc(Hr(e.valueOf()-n.valueOf()),t)}function bc(e,t){const n=Wr(t.slotMinTime),r=Wr(t.slotMaxTime);let s=(e.milliseconds-n)/(r-n);return s=Math.max(0,s),s=Math.min(1,s),s}function Dc(e,t,n,r,s,i,a){const o=[];if(null!=s){const l=s*r;for(const r of e){const e=Ec(r.startDate,t,n)*l;let s=Ec(r.endDate,t,n)*l,d=s-e;null!=i&&d<i&&(d=i,s=e+d),o.push({start:e,end:s,size:d,isShort:d<=a})}}return o}function wc(e,t,n,r){const s=[];for(let n=0;n<e.length;n++){const r=t[n];r&&s.push(Object.assign(Object.assign({},e[n]),{start:r.start,end:r.end}))}const i=new eo(s,void 0,n,void 0,r);let a=function(e){const{placementsByLevel:t}=e,n=Tc((e,t)=>e+":"+t,(r,s)=>{let i=function(e,t,n){let{levelCoords:r,placementsByLevel:s}=e,i=s[t][n],a=r[t]+i.thickness,o=r.length,l=t;for(;l<o&&r[l]<a;l+=1);for(;l<o;l+=1){let e,t=s[l],n=ro(t,i.start,Za),r=n[0]+n[1],a=r;for(;(e=t[a])&&e.start<i.end;)a+=1;if(r<a)return{level:l,lateralStart:r,lateralEnd:a}}return null}(e,r,s),[a,o]=Rc(i,n),l=t[r][s];return[Object.assign(Object.assign({},l),{nextLevelNodes:a}),l.thickness+o]}),[r]=Rc(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n);return r}(i);a=function(e,t){const n=Tc((e,t,n)=>_i(e),(e,r,s)=>{let i,{nextLevelNodes:a,thickness:o}=e,l=o+s,d=o/l,c=[];if(a.length)for(let e of a)if(void 0===i){let t=n(e,r,l);i=t[0],c.push(t[1])}else{let t=n(e,i,0);c.push(t[1])}else i=t;let u=(i-r)*d;return[i-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:c})]});return e.map(e=>n(e,0,0)[1])}(a,1);return[function(e){let t=new Map;const n=Tc((e,t,n)=>_i(e),(e,n,s)=>{let i=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:s,stackForward:0});return t.set(i.eventRange.instance.instanceId,i),i.stackForward=r(e.nextLevelNodes,n+e.thickness,s+1)});function r(e,t,r){let s=0;for(let i of e)s=Math.max(n(i,t,r)+1,s);return s}return r(e,0,0),t}(a),to(i.hiddenSegs)]}function Rc(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:s}=e,i=r,a=[];for(;i<s;)a.push(t(n,i)),i+=1;return a.sort(Cc),[a.map(_c),a[0][1]]}function Cc(e,t){return t[1]-e[1]}function _c(e){return e[0]}function Tc(e,t){const n={};return(...r)=>{let s=e(...r);return s in n?n[s]:n[s]=t(...r)}}const Mc=Ns({hour:"numeric",minute:"2-digit",meridiem:!1});class Ic extends ss{render(){const{props:e}=this;return S(Po,Object.assign({},e,{display:"column",level:e.level,isNarrow:e.isNarrow,isShort:e.isShort,className:e.isLiquid?ft:"",disableLiquid:!e.isLiquid,defaultTimeFormat:Mc}))}}class xc extends ss{render(){let{props:e}=this;return S("div",{className:ke(_t,ht),style:{top:e.top,height:e.height,insetInlineEnd:0,zIndex:9999}},S(Go,{className:ft,display:"column",allDayDate:null,segs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,dateSpanProps:e.dateSpanProps,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Oc(e.hiddenSegs,e,!1),forceTimed:!0,isNarrow:e.isNarrow,isMicro:e.isMicro}))}}function Hc(e){const t=null!=e.totalHeight?e.totalHeight*Ec(e.nowDate,e.dateProfile,e.dayDate):void 0;return S("div",{className:Mt,style:{zIndex:2,pointerEvents:"none"}},S(jo,{className:ke(xt,bt,ot),style:{top:t},date:e.nowDate}),S(Lo,{className:ke(_t,Tt),style:{top:t}}))}const Nc="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes("firefox");class kc extends ss{constructor(){super(...arguments),this.sortEventSegs=Zn(ki),this.getDateMeta=Zn(Pa)}render(){let{props:e,context:t}=this,{options:n,dateEnv:r}=t,s=n.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||s&&e.dateSelectionSegs||[],a=this.getDateMeta(e.date,r,e.dateProfile,e.todayRange);const o=ke(e.borderStart?at:rt,null==e.width&&ft,Ct),l={width:e.width,zIndex:1},d=e.forPrint&&Nc,c=Object.assign(Object.assign(Object.assign({},a),e.renderProps),{isStack:d,isNarrow:e.isNarrow,isMajor:e.isMajor,view:t.viewApi});if(a.isDisabled)return S("div",{role:"gridcell","aria-disabled":!0,className:ke(hs(n.dayLaneClass,c),o),style:l});const u=ke(hs(n.dayLaneInnerClass,c),!d&&Mt),h=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return S(cs,{tag:"div",attrs:Object.assign(Object.assign(Object.assign(Object.assign({},e.attrs),{role:"gridcell"}),a.isToday?{"aria-current":"date"}:{}),{"data-date":Br(e.date)}),className:o,style:l,renderProps:c,generatorName:void 0,classNameGenerator:n.dayLaneClass,didMount:n.dayLaneDidMount,willUnmount:n.dayLaneWillUnmount},()=>S(D,null,this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight"),S("div",{className:u,style:{zIndex:1}},this.renderFgSegs(h,!1)),Boolean(i.length)&&S("div",{className:u,style:{zIndex:1}},this.renderFgSegs(i,!0)),this.renderNowIndicator(e.nowIndicatorSegs)))}renderFgSegs(e,t){const{props:n}=this;return n.forPrint&&Nc?Oc(e,n,t):this.renderPositionedFgSegs(e,t)}renderPositionedFgSegs(e,t){let{props:n,context:r}=this,{date:s,dateProfile:i,eventSelection:a,todayRange:o,nowDate:l}=n,{eventMaxStack:d,eventShortHeight:c,eventOrderStrict:u,eventMinHeight:h}=r.options,g=Dc(e,i,s,n.slatCnt,n.slatHeight,h,c),[f,p]=wc(e,g,u,d);return S(D,null,e.map((e,r)=>{let{eventRange:s}=e,{instanceId:i}=s.instance,d=g[r]||{},c=f.get(i),u=!t&&c?this.computeSegHStyle(c):{left:0,right:0},h=Boolean(n.eventDrag&&n.eventDrag.affectedInstances[i]),p=Boolean(n.eventResize&&n.eventResize.affectedInstances[i]),v=!t&&(h||p||!c);return S("div",{className:ke(_t,ht),key:i,style:Object.assign({visibility:v?"hidden":void 0,top:d.start,height:d.size},u)},S(Ic,Object.assign({eventRange:s,slicedStart:e.startDate,slicedEnd:e.endDate,isStart:e.isStart,isEnd:e.isEnd,isDragging:h,isResizing:p,isMirror:t,isSelected:i===a,level:c?c.stackDepth:0,isNarrow:n.isNarrow,isShort:d.isShort||!1,isLiquid:!0},Wi(s,o,l))))}),this.renderHiddenGroups(p))}renderHiddenGroups(e){let{dateSpanProps:t,dateProfile:n,todayRange:r,nowDate:s,eventSelection:i,eventDrag:a,eventResize:o,isNarrow:l,isMicro:d}=this.props;return S(D,null,e.map(e=>S(xc,{key:e.key,hiddenSegs:e.segs,top:e.start,height:e.end-e.start,isNarrow:l,isMicro:d,dateSpanProps:t,dateProfile:n,todayRange:r,nowDate:s,eventSelection:i,eventDrag:a,eventResize:o})))}renderFillSegs(e,t){let{props:n,context:r}=this,s=Dc(e,n.dateProfile,n.date,n.slatCnt,n.slatHeight,r.options.eventMinHeight,r.options.eventShortHeight);return S(D,null,e.map((e,i)=>{const{eventRange:a}=e,o=s[i]||{};return S("div",{key:Ai(a),className:xt,style:{top:o.start,height:o.size,marginInlineStart:-1}},"bg-event"===t?S(Bo,Object.assign({eventRange:a,isStart:e.isStart,isEnd:e.isEnd,isNarrow:n.isNarrow,isShort:o.isShort||!1,isVertical:!0},Wi(a,n.todayRange,n.nowDate))):Vo(t,r.options))}))}renderNowIndicator(e){let{props:t}=this;if(!t.forPrint||!Nc)return e.map(e=>S(Hc,{nowDate:e.startDate,dayDate:t.date,dateProfile:t.dateProfile,totalHeight:null!=t.slatHeight?t.slatHeight*t.slatCnt:void 0}))}computeSegHStyle(e){let{options:t}=this.context,n=t.slotEventOverlap,r=e.levelCoord,s=e.levelCoord+e.thickness;n&&(s=Math.min(1,r+2*(s-r)));let i={zIndex:e.stackDepth+1,insetInlineStart:Oe(r),insetInlineEnd:Oe(1-s),marginInlineEnd:void 0};return n&&e.stackForward&&(i.marginInlineEnd=20),i}}function Oc(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:s,eventResize:i},a){return S(D,null,e.map(e=>{let{eventRange:o}=e,{instanceId:l}=o.instance,d=Boolean(s&&s.affectedInstances[l]),c=Boolean(i&&i.affectedInstances[l]);return S("div",{key:l,className:zt,style:{visibility:d||c?"hidden":void 0}},S(Ic,Object.assign({eventRange:o,slicedStart:e.startDate,slicedEnd:e.endDate,isStart:e.isStart,isEnd:e.isEnd,isDragging:d,isResizing:c,isMirror:a,isSelected:l===r,level:0,isShort:!1,isNarrow:!1,disableResizing:!0},Wi(o,t,n))))}))}class Pc extends Ya{constructor(){super(...arguments),this.processSlotOptions=Zn(Wc),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){const{props:e}=this;return S("div",{role:e.role,className:ke(e.className,ut),ref:this.handleRootEl},e.cells.map((t,n)=>S(kc,{key:t.key,dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,date:t.date,isMajor:t.isMajor,slatCnt:e.slatCnt,renderProps:t.renderProps,attrs:t.attrs,dateSpanProps:t.dateSpanProps,forPrint:e.forPrint,borderStart:Boolean(n),isNarrow:e.cellIsNarrow,isMicro:e.cellIsMicro,fgEventSegs:e.fgEventSegsByCol[n],bgEventSegs:e.bgEventSegsByCol[n],businessHourSegs:e.businessHourSegsByCol[n],nowIndicatorSegs:e.nowIndicatorSegsByCol[n],dateSelectionSegs:e.dateSelectionSegsByCol[n],eventDrag:e.eventDragByCol[n],eventResize:e.eventResizeByCol[n],eventSelection:e.eventSelection,width:e.colWidth,slatHeight:e.slatHeight})))}queryHit(e,t,n,r){const{dateProfile:s,cells:i,colWidth:a,slatHeight:o}=this.props,{dateEnv:l,options:d}=this.context,{snapDuration:c,snapsPerSlot:u}=this.processSlotOptions(d.slotDuration,d.snapDuration),h=i.length,{col:g,left:f,right:p}=Fd(t,r,a,h,e),v=i[g],m=Math.floor(n/o),y=m*o,S=(n-y)/o,E=m+Math.floor(S*u)*u,b=kr(s.slotMinTime,Or(c,E)),D=l.add(v.date,b),w=l.add(D,c);return{dateProfile:s,dateSpan:Object.assign({range:{start:D,end:w},allDay:!1},v.dateSpanProps),getDayEl:()=>zd(this.rootEl,g),rect:{left:f,right:p,top:y,bottom:y+o},layer:0}}}function Wc(e,t){let n=t||e,r=Ar(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}function Ac(e){return S("div",{className:ke(Mt,wt),style:{zIndex:2,pointerEvents:"none"}},S(Ao,{className:_t,style:{top:null!=e.totalHeight?e.totalHeight*Ec(e.nowDate,e.dateProfile):void 0},date:e.nowDate}))}Pc.addPropsEquality({style:Nn});const jc=Ns({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});class Lc extends ss{constructor(){super(...arguments),this.createRenderProps=Zn(Bc),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{options:n}=t,r=null==n.slotHeaderFormat?jc:Array.isArray(n.slotHeaderFormat)?Ns(n.slotHeaderFormat[0]):Ns(n.slotHeaderFormat),s=this.createRenderProps(e.date,e.time,!e.isLabeled,e.isNarrow,e.isFirst,r,t),i=ke(e.liquidHeight&&ft,ut,Lt,yt,e.borderTop?st:rt);return e.isLabeled?S(cs,{tag:"div",attrs:{"data-time":e.isoTimeStr},style:{height:e.height},className:i,renderProps:s,generatorName:"slotHeaderContent",customGenerator:n.slotHeaderContent,defaultGenerator:Uc,classNameGenerator:n.slotHeaderClass,didMount:n.slotHeaderDidMount,willUnmount:n.slotHeaderWillUnmount},e=>S("div",{ref:this.innerElRef,className:ke(Dt,ut)},S(e,{tag:"div",className:hs(n.slotHeaderInnerClass,s)}))):S("div",{className:ke(hs(n.slotHeaderClass,s),i),style:{height:e.height}})}componentDidMount(){const{props:e}=this,t=this.innerElRef.current;t&&(this.disconnectInnerSize=ia(t,(t,n)=>{is(e.innerWidthRef,t),is(e.innerHeightRef,n)}))}componentWillUnmount(){const{props:e}=this;this.disconnectInnerSize&&(this.disconnectInnerSize(),is(e.innerWidthRef,null),is(e.innerHeightRef,null))}}function Bc(e,t,n,r,s,i,a){return Object.assign(Object.assign({},Pa(e,a.dateEnv)),{level:0,text:a.dateEnv.format(e,i)[0],time:t,isMajor:!1,isMinor:n,isTime:!0,isNarrow:r,hasNavLink:!1,isFirst:s,view:a.viewApi})}function Uc(e){return e.text}class Vc extends ss{constructor(){super(...arguments),this.getDateMeta=Zn(Pa)}render(){let{props:e,context:t}=this,{options:n}=t,r=Object.assign(Object.assign({},this.getDateMeta(e.date,t.dateEnv)),{time:e.time,isMajor:!1,isMinor:!e.isLabeled,view:t.viewApi});return S(cs,{tag:"div",attrs:{"data-time":e.isoTimeStr},className:ke(yt,ft,e.borderTop?st:rt),renderProps:r,generatorName:void 0,classNameGenerator:n.slotLaneClass,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount})}}const Fc=Ns({week:"short"});class zc extends ss{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{options:n,dateEnv:r}=t,s=e.dateProfile.renderRange,i=1===tr(s.start,s.end)&&n.navLinks,a=s.start,o=Wa(t,a,"week"),l=r.computeWeekNumber(a),[d,c]=r.format(a,n.weekNumberFormat||Fc);const u={num:l,text:d,textParts:c,date:r.toDate(a),isNarrow:e.isNarrow,hasNavLink:i,options:{dayMinWidth:n.dayMinWidth}};return S(cs,{tag:"div",attrs:{role:"gridcell","aria-label":o},className:ke(ut,yt,e.isLiquid?ft:At),style:{width:e.width},renderProps:u,generatorName:"weekNumberHeaderContent",customGenerator:n.weekNumberHeaderContent,defaultGenerator:gs,classNameGenerator:n.weekNumberHeaderClass,didMount:n.weekNumberHeaderDidMount,willUnmount:n.weekNumberHeaderWillUnmount},e=>S("div",{ref:this.innerElRef,className:ke(ut,Dt)},S(e,{tag:"div",attrs:i?Aa(t,s.start,"week",o):{"aria-label":o},className:hs(n.weekNumberHeaderInnerClass,u)})))}componentDidMount(){const{props:e}=this,t=this.innerElRef.current;this.disconnectInnerSize=ia(t,(t,n)=>{is(e.innerWidthRef,t),is(e.innerHeightRef,n)})}componentWillUnmount(){const{props:e}=this;this.disconnectInnerSize(),is(e.innerWidthRef,null),is(e.innerHeightRef,null)}}function Gc(e){return S("div",{role:"gridcell",className:e.isLiquid?ft:At,style:{width:e.width}})}class Yc extends ss{constructor(){super(...arguments),this.state={headerTierHeights:[]},this.headerLabelInnerWidthRefMap=new No(()=>{Ji(this.handleAxisWidths)}),this.headerLabelInnerHeightRefMap=new No(()=>{Ji(this.handleHeaderHeights)}),this.headerMainInnerHeightRefMap=new No(()=>{Ji(this.handleHeaderHeights)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,Ji(this.handleAxisWidths)},this.slatLabelInnerWidthRefMap=new No(()=>{Ji(this.handleAxisWidths)}),this.slatLabelInnerHeightRefMap=new No(()=>{Ji(this.handleSlatInnerHeights)}),this.headerScrollerRef={current:null},this.allDayScrollerRef={current:null},this.mainScrollerRef={current:null},this.footScrollerRef={current:null},this.axisScrollerRef={current:null},this.handleTotalWidth=e=>{this.setState({totalWidth:e})},this.handleBodyHeight=e=>{this.setState({bodyHeight:e})},this.handleClientWidth=e=>{this.setState({clientWidth:e})},this.handleClientHeight=e=>{this.setState({clientHeight:e})},this.handleStickyBottomScrollbarWidth=e=>{this.setState({sticykBottomScrollbarWidth:e})},this.handleHeaderHeights=()=>{const e=this.headerLabelInnerHeightRefMap.current,t=this.headerMainInnerHeightRefMap.current,n=[];for(const[r,s]of t.entries())n[r]=Math.max(e.get(r)||0,s);const{headerTierHeights:r}=this.state;Xn(r,n)||this.setState({headerTierHeights:n})},this.handleSlatInnerHeights=()=>{const e=this.slatLabelInnerHeightRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);this.state.slatInnerHeight!==t&&this.setState({slatInnerHeight:t})},this.handleAxisWidths=()=>{const e=this.headerLabelInnerWidthRefMap.current,t=this.slatLabelInnerWidthRefMap.current;let n=this.allDayLabelInnerWidth||0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.axisWidth!==n&&this.setState({axisWidth:n})}}render(){const{props:e,state:t,context:n,headerLabelInnerWidthRefMap:r,headerLabelInnerHeightRefMap:s,headerMainInnerHeightRefMap:i,slatLabelInnerWidthRefMap:a,slatLabelInnerHeightRefMap:o}=this,{nowDate:l,headerTiers:d,forPrint:c}=e,{axisWidth:u,totalWidth:h,clientWidth:g,clientHeight:f,bodyHeight:p,sticykBottomScrollbarWidth:v}=t,{options:m}=n,y=null!=h&&null!=g&&null!=u?h-g-(u+1):void 0,E=!c&&!To(m),b=!c&&Mo(m),w=!c&&Io(m),R=c&&!Nc,C=c&&Nc,_=e.cells.length,[T,M]=Ud(_,e.dayMinWidth,g),I=null!=M&&M<=50,x=I||null!=M&&M<=m.dayNarrowWidth,H=e.slatMetas.length,[N,k]=Sc(E&&m.expandRows,H,t.slatInnerHeight,f);this.slatHeight=N;const O=(N||0)*H,P=R?O:void 0,W=E&&!m.expandRows&&null!=f&&f>O,A=m.dayHeaders?d.length+1:1,j=w?v:null!=p&&null!=f?p-f:void 0;return S(D,null,m.dayHeaders&&S("div",{className:ke(hs(m.tableHeaderClass,{isSticky:b}),e.borderlessX&&ot,ht,b&&Wt),style:{zIndex:1}},S("div",{className:ut},S("div",{role:"rowgroup",className:At,style:{width:u}},d.map((n,i)=>S("div",{key:i,role:"row","aria-rowindex":i+1,className:Ne(m.dayHeaderRowClass,ut,At,i<e.headerTiers.length-1?it:rt),style:{height:t.headerTierHeights[i]}},m.weekNumbers&&n.isDateRow?S(zc,{dateProfile:e.dateProfile,innerWidthRef:r.createRef(i),innerHeightRef:s.createRef(i),width:void 0,isLiquid:!0,isNarrow:x}):S(Gc,{width:void 0,isLiquid:!0})))),S("div",{className:hs(m.slotHeaderDividerClass,{isHeader:!0,options:{dayMinWidth:m.dayMinWidth}})}),S(ho,{horizontal:!0,hideScrollbars:!0,className:ke(ut,ft),ref:this.headerScrollerRef},S("div",{role:"rowgroup",className:null==T?ft:"",style:{width:T}},e.headerTiers.map((n,r)=>S(ec,Object.assign({},n,{key:r,role:"row",rowIndex:r,borderBottom:r<e.headerTiers.length-1,height:t.headerTierHeights[r],colWidth:M,innerHeightRef:i.createRef(r),cellIsNarrow:x,cellIsMicro:I,rowLevel:e.headerTiers.length-r-1})))),Boolean(y)&&S("div",{className:Ne(hs(m.fillerClass,{isHeader:!0}),at),style:{minWidth:y}}))),S("div",{className:hs(m.dayHeaderDividerClass,{isSticky:b,options:{allDaySlot:Boolean(m.allDaySlot)}})})),S("div",{role:"rowgroup",className:Ne(m.tableBodyClass,e.borderlessX&&ot,b&<,(b||e.noEdgeEffects)&&Rt,ht,E&&ft,Ve),style:{zIndex:0}},m.allDaySlot&&S(D,null,S("div",{role:"row","aria-rowindex":A,className:ut,style:{zIndex:1}},S(fc,{width:u,innerWidthRef:this.handleAllDayLabelInnerWidth,isNarrow:x}),S("div",{className:hs(m.slotHeaderDividerClass,{isHeader:!1,options:{dayMinWidth:m.dayMinWidth}})}),S(ho,{horizontal:!0,hideScrollbars:!0,className:ke(ut,pt),ref:this.allDayScrollerRef},S("div",{className:ut,style:{width:T}},S(vc,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:c,isHitComboAllowed:e.isHitComboAllowed,className:ke(rt,pt),cellIsNarrow:x,cellIsMicro:I,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,colWidth:M})),Boolean(y)&&S("div",{className:Ne(hs(m.fillerClass,{isHeader:!1}),at),style:{minWidth:y}}))),S("div",{className:Ne(m.allDayDividerClass),style:{zIndex:2}})),S("div",{role:"row","aria-rowindex":A+(m.allDaySlot?1:0),className:ke(ut,Ct,E&&ft),style:{zIndex:0}},S(ho,{vertical:E,hideScrollbars:!0,className:ke(ht,At),style:{width:u},ref:this.axisScrollerRef,clientHeightRef:this.handleBodyHeight},!C&&S(D,null,S("div",{role:"rowheader","aria-label":m.timedText,className:ke(ht,gt,Ct),style:{height:P}},S("div",{"aria-hidden":!0,className:ke(ht,E&&m.expandRows&>,R&&xt)},e.slatMetas.map((e,t)=>S(Lc,Object.assign({},e,{key:e.key,innerWidthRef:a.createRef(e.key),innerHeightRef:o.createRef(e.key),borderTop:Boolean(t),isNarrow:x,height:k?void 0:N,liquidHeight:k})))),m.nowIndicator&&wr(e.dateProfile.currentRange,l)&&S(Ac,{nowDate:l,dateProfile:e.dateProfile,totalHeight:null!=N?N*H:void 0}),Boolean(W||j)&&S("div",{class:Ne(hs(m.fillerClass,{isHeader:!1}),st,W&&ft),style:{minHeight:j}})))),S("div",{className:hs(m.slotHeaderDividerClass,{isHeader:!1,options:{dayMinWidth:m.dayMinWidth}})}),S("div",{className:ke(ht,ft)},S(ho,{vertical:E,horizontal:!0,hideScrollbars:w||c,className:ke(ht,Ct,E&&ft),ref:this.mainScrollerRef,clientWidthRef:this.handleClientWidth,clientHeightRef:this.handleClientHeight},S("div",{className:ke(ht,gt,Ct),style:{width:T,height:P}},S(Pc,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:H,forPrint:c,isHitComboAllowed:e.isHitComboAllowed,className:C?"":Mt,fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,colWidth:M,slatHeight:N,cellIsNarrow:x,cellIsMicro:I}),!C&&S(D,null,S("div",{"aria-hidden":!0,className:ke(ht,E&&m.expandRows&>,R?xt:Ct)},e.slatMetas.map((e,t)=>S("div",{key:e.key,className:ke(ut,k&&ft),style:{height:k?"":N}},S(Vc,Object.assign({},e,{borderTop:Boolean(t)}))))),W&&S("div",{class:Ne(hs(m.fillerClass,{isHeader:!1}),st,ft)})))),Boolean(w)&&S($o,{isSticky:!0,canvasWidth:T,scrollerRef:this.footScrollerRef,scrollbarWidthRef:this.handleStickyBottomScrollbarWidth})))),S(Ho,{widthRef:this.handleTotalWidth}))}componentDidMount(){this.initScrollers(),this.updateSlatHeight()}componentDidUpdate(){this.updateScrollers(),this.updateSlatHeight()}componentWillUnmount(){this.destroyScrollers(),is(this.props.slatHeightRef,null)}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&is(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}initScrollers(){const e=xo(this.context.pluginHooks);this.dayScroller=new e(!0),this.timeScroller=new e,is(this.props.dayScrollerRef,this.dayScroller),is(this.props.timeScrollerRef,this.timeScroller),this.updateScrollers()}updateScrollers(){this.dayScroller.handleChildren([this.headerScrollerRef.current,this.allDayScrollerRef.current,this.mainScrollerRef.current,this.footScrollerRef.current]),this.timeScroller.handleChildren([this.axisScrollerRef.current,this.mainScrollerRef.current])}destroyScrollers(){is(this.props.dayScrollerRef,null),is(this.props.timeScrollerRef,null)}}class qc extends ss{constructor(){super(...arguments),this.headerLabelInnerWidthRefMap=new No(()=>{Ji(this.handleAxisInnerWidths)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,Ji(this.handleAxisInnerWidths)},this.handleWeekNumberInnerWidth=e=>{this.weekNumberInnerWidth=e,Ji(this.handleAxisInnerWidths)},this.slatLabelInnerWidthRefMap=new No(()=>{Ji(this.handleAxisInnerWidths)}),this.slatLabelInnerHeightRefMap=new No(()=>{Ji(this.handleSlatInnerHeights)}),this.handleTotalWidth=e=>{requestAnimationFrame(()=>{this.setState({totalWidth:e})})},this.handleClientWidth=e=>{this.setState({clientWidth:e})},this.handleClientHeight=e=>{this.setState({clientHeight:e})},this.handleAxisInnerWidths=()=>{const e=this.headerLabelInnerWidthRefMap.current,t=this.slatLabelInnerWidthRefMap.current;let n=Math.max(this.weekNumberInnerWidth||0,this.allDayLabelInnerWidth||0);for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.axisWidth!==n&&this.setState({axisWidth:n})},this.handleSlatInnerHeights=()=>{const e=this.slatLabelInnerHeightRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);this.state.slatInnerHeight!==t&&this.setState({slatInnerHeight:t})}}render(){const{props:e,state:t,context:n,slatLabelInnerWidthRefMap:r,slatLabelInnerHeightRefMap:s,headerLabelInnerWidthRefMap:i}=this,{nowDate:a,forPrint:o}=e,{axisWidth:l,clientWidth:d,totalWidth:c}=t,{options:u}=n,h=null!=c&&null!=d?c-d:void 0,g=!o&&!To(u),f=!o&&Mo(u),p=e.slatMetas.length,[v,m]=Sc(g&&u.expandRows,p,t.slatInnerHeight,t.clientHeight);this.slatHeight=v;const y=(v||0)*p,E=g&&!u.expandRows&&null!=t.clientHeight&&t.clientHeight>y,b=o&&!Nc,w=o&&Nc,R=b?y:void 0,C=e.cells.length,_=null!=d?d/C:void 0,T=null!=_&&_<=50,M=T||null!=_&&_<=u.dayNarrowWidth;return S(D,null,u.dayHeaders&&S("div",{role:"rowgroup",className:ke(hs(u.tableHeaderClass,{isSticky:f}),e.borderlessX&&ot,ht,f&&Wt),style:{zIndex:1}},e.headerTiers.map((t,n)=>S("div",{key:n,role:"row",className:ut},S("div",{className:Ne(u.dayHeaderRowClass,ut,n<e.headerTiers.length-1?it:rt)},u.weekNumbers&&t.isDateRow?S(zc,{dateProfile:e.dateProfile,innerWidthRef:this.handleWeekNumberInnerWidth,innerHeightRef:i.createRef(n),width:l,isLiquid:!1,isNarrow:M}):S(Gc,{width:l,isLiquid:!1})),S("div",{className:hs(u.slotHeaderDividerClass,{isHeader:!0,options:{dayMinWidth:u.dayMinWidth}})}),S(ec,Object.assign({},t,{className:ft,borderBottom:n<e.headerTiers.length-1,cellIsNarrow:M,cellIsMicro:T,rowLevel:0})),Boolean(h)&&S("div",{className:Ne(hs(u.fillerClass,{isHeader:!0}),at),style:{minWidth:h}}))),S("div",{className:hs(u.dayHeaderDividerClass,{isSticky:f,options:{allDaySlot:Boolean(u.allDaySlot)}})})),S("div",{role:"rowgroup",className:Ne(u.tableBodyClass,e.borderlessX&&ot,f&<,(f||e.noEdgeEffects)&&Rt,ht,g&&ft,Ve),style:{zIndex:0}},u.allDaySlot&&S(D,null,S("div",{role:"row",className:ut,style:{zIndex:1}},S(fc,{width:l,innerWidthRef:this.handleAllDayLabelInnerWidth,isNarrow:M}),S("div",{className:hs(u.slotHeaderDividerClass,{isHeader:!1,options:{dayMinWidth:u.dayMinWidth}})}),S(vc,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:o,isHitComboAllowed:e.isHitComboAllowed,className:ke(pt,rt),cellIsNarrow:M,cellIsMicro:T,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows}),Boolean(h)&&S("div",{className:Ne(hs(u.fillerClass,{isHeader:!1}),at),style:{minWidth:h}})),S("div",{className:Ne(u.allDayDividerClass),style:{zIndex:2}})),S(ho,{vertical:g,className:ke(ht,Ct,g&&ft),style:{zIndex:0},ref:e.timeScrollerRef,clientWidthRef:this.handleClientWidth,clientHeightRef:this.handleClientHeight},S("div",{className:ke(ht,gt,Ct),style:{height:R}},S("div",{role:"row",className:ke(ut,!w&&Mt)},S("div",{role:"rowheader","aria-label":u.timedText,className:At,style:{width:l}}),S("div",{className:hs(u.slotHeaderDividerClass,{isHeader:!1,options:{dayMinWidth:u.dayMinWidth}})}),S(Pc,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:p,forPrint:o,isHitComboAllowed:e.isHitComboAllowed,className:ft,fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,slatHeight:v,cellIsNarrow:M,cellIsMicro:T})),!w&&S(D,null,S("div",{"aria-hidden":!0,className:ke(ht,g&&u.expandRows&>,b?xt:Ct)},e.slatMetas.map((e,t)=>S("div",{key:e.key,className:ke(m&&ft,ut),style:{height:m?void 0:v}},S("div",{className:ht,style:{width:l}},S(Lc,Object.assign({},e,{innerWidthRef:r.createRef(e.key),innerHeightRef:s.createRef(e.key),borderTop:Boolean(t),isNarrow:M}))),S("div",{className:hs(u.slotHeaderDividerClass,{isHeader:!1,options:{dayMinWidth:u.dayMinWidth}}),style:{visibility:"hidden"}}),S(Vc,Object.assign({},e,{borderTop:Boolean(t)}))))),E&&S("div",{class:Ne(hs(u.fillerClass,{isHeader:!1}),st,ft)}),u.nowIndicator&&wr(e.dateProfile.currentRange,a)&&S(Ac,{nowDate:a,dateProfile:e.dateProfile,totalHeight:null!=v?v*p:void 0}))))),S(Ho,{widthRef:this.handleTotalWidth}))}componentDidMount(){this.updateSlatHeight()}componentDidUpdate(){this.updateSlatHeight()}componentWillUnmount(){is(this.props.slatHeightRef,null)}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&is(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}}class Xc extends ss{constructor(){super(...arguments),this.buildSlatMetas=Zn(gc),this.dayScrollerRef={current:null},this.timeScrollerRef={current:null},this.scrollState={},this.handleSlatHeight=e=>{this.slatHeight=e,null!=e&&Ji(this.applyTimeScroll)},this.handleTimeScrollRequest=e=>{this.scrollState.time=e,this.scrollState.y=void 0,this.applyTimeScroll()},this.handleTimeScrollEnd=e=>{if(e){const e=this.timeScrollerRef.current.y;this.props.forPrint||(this.scrollState.y=e,this.scrollState.time=void 0)}},this.applyTimeScroll=()=>{const e=this.timeScrollerRef.current,{slatHeight:t,scrollState:n}=this;let{y:r,time:s}=n;null==r&&s&&null!=t&&e&&(r=bc(s,this.props.dateProfile)*(t*this.currentSlatCnt),r&&r++,n.y=r),null!=r&&e.scrollTo({y:r})}}render(){const{props:e,context:t}=this,{dateProfile:n}=e,{options:r,dateEnv:s}=t,{dayMinWidth:i}=r,a=this.buildSlatMetas(n.slotMinTime,n.slotMaxTime,r.slotHeaderInterval,r.slotDuration,s);this.currentSlatCnt=a.length;const o=Object.assign(Object.assign({dateProfile:n,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatMetas:a,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,headerTiers:e.headerTiers,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize},function(e){let{dayMaxEvents:t,dayMaxEventRows:n}=e;!0!==t&&!0!==n||(t=void 0,n=5);return{dayMaxEvents:t,dayMaxEventRows:n}}(r)),{fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,timeScrollerRef:this.timeScrollerRef,timeScrollState:this.scrollState,slatHeightRef:this.handleSlatHeight,borderlessX:e.borderlessX,noEdgeEffects:e.noEdgeEffects});return S(Xo,{attrs:{role:"grid","aria-colcount":e.cells.length,"aria-labelledby":e.labelId,"aria-label":e.labelStr},className:Ne(e.className,r.tableClass,!e.forPrint&&ht,Ve),viewSpec:t.viewSpec,borderlessX:e.borderlessX,borderlessTop:e.borderlessTop,borderlessBottom:e.borderlessBottom,noEdgeEffects:e.noEdgeEffects},i?S(Yc,Object.assign({},o,{dayMinWidth:i,dayScrollerRef:this.dayScrollerRef})):S(qc,Object.assign({},o)))}componentDidMount(){this.resetScroll(),this.context.emitter.on("_timeScrollRequest",this.handleTimeScrollRequest),this.timeScrollerRef.current.addScrollEndListener(this.handleTimeScrollEnd)}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset?this.resetScroll():e.forPrint&&!this.props.forPrint&&this.applyTimeScroll()}componentWillUnmount(){this.context.emitter.off("_timeScrollRequest",this.handleTimeScrollRequest),this.timeScrollerRef.current.removeScrollEndListener(this.handleTimeScrollEnd)}resetScroll(){this.handleTimeScrollRequest(this.context.options.scrollTime);const e=this.dayScrollerRef.current;e&&e.scrollTo({x:0})}}var Zc=il({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDayDividerClass:Bs},views:{timeGrid:{component:class extends Ya{constructor(){super(...arguments),this.createDayHeaderFormatter=Zn(Yd),this.buildTimeColsModel=Zn(mc),this.buildDayRanges=Zn(yc),this.buildDateRowConfigs=Zn(Rd),this.splitFgEventSegs=Zn(cc),this.splitBgEventSegs=Zn(cc),this.splitBusinessHourSegs=Zn(cc),this.splitNowIndicatorSegs=Zn(cc),this.splitDateSelectionSegs=Zn(cc),this.splitEventDrag=Zn(uc),this.splitEventResize=Zn(uc),this.allDaySplitter=new lc,this.dayTableSlicer=new Dd,this.dayTimeColsSlicer=new dc}render(){const{props:e,context:t}=this,{dateProfile:n}=e,{options:r,dateProfileGenerator:s}=t,i=this.buildTimeColsModel(n,s,t.dateEnv),a=this.buildDayRanges(i,n,t.dateEnv),o=this.allDaySplitter.splitProps(e),l=this.dayTableSlicer.sliceProps(o.allDay,n,r.nextDayThreshold,t,i),d=this.dayTimeColsSlicer.sliceProps(o.timed,n,null,t,a),c=this.createDayHeaderFormatter(t.options.dayHeaderFormat,!0,i.colCount);return S(ko,{unit:r.nowIndicator?"minute":"day"},(s,o)=>{const u=i.cellRows[0].length,h=r.nowIndicator&&this.dayTimeColsSlicer.sliceNowDate(s,n,r.nextDayThreshold,t,a),g=this.splitFgEventSegs(d.fgEventSegs,u),f=this.splitBgEventSegs(d.bgEventSegs,u),p=this.splitBusinessHourSegs(d.businessHourSegs,u),v=this.splitNowIndicatorSegs(h,u),m=this.splitDateSelectionSegs(d.dateSelectionSegs,u),y=this.splitEventDrag(d.eventDrag,u),E=this.splitEventResize(d.eventResize,u),b=this.buildDateRowConfigs(i.headerDates,!0,e.dateProfile,o,c,t);return S(Xc,{labelId:e.labelId,labelStr:e.labelStr,dateProfile:n,nowDate:s,todayRange:o,cells:i.cellRows[0],forPrint:e.forPrint,className:e.className,headerTiers:b,fgEventSegs:l.fgEventSegs,bgEventSegs:l.bgEventSegs,businessHourSegs:l.businessHourSegs,dateSelectionSegs:l.dateSelectionSegs,eventDrag:l.eventDrag,eventResize:l.eventResize,fgEventSegsByCol:g,bgEventSegsByCol:f,businessHourSegsByCol:p,nowIndicatorSegsByCol:v,dateSelectionSegsByCol:m,eventDragByCol:y,eventResizeByCol:E,eventSelection:e.eventSelection,borderlessX:e.borderlessX,borderlessTop:e.borderlessTop,borderlessBottom:e.borderlessBottom,noEdgeEffects:e.noEdgeEffects})})}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});class $c extends ss{render(){const{props:e,context:t}=this,{options:n}=t,[r,s]=t.dateEnv.format(e.dayDate,e.dayFormat),i=n.navLinks,a=Object.assign(Object.assign({},e.dateMeta),{view:t.viewApi,text:r,textParts:s,get dayNumberText(){return ma(s)},hasNavLink:i,level:e.level}),o=i?Aa(this.context,e.dayDate,void 0,r,this.props.isTabbable):{};return S(cs,{tag:"div",attrs:o,renderProps:a,generatorName:"listDayHeaderContent",customGenerator:n.listDayHeaderContent,defaultGenerator:gs,classNameGenerator:n.listDayHeaderInnerClass})}}class Kc extends ss{render(){var e,t;let{options:n,viewApi:r,viewSpec:s}=this.context,{dayDate:i,dateMeta:a}=this.props,o=!this.props.forPrint;const l=null!==(e=n.listDayFormat)&&void 0!==e?e:function({durationUnit:e,singleUnit:t}){return"day"===t||"day"===e||"week"===t?pa:ga}(s),d=null!==(t=n.listDaySideFormat)&&void 0!==t?t:function({durationUnit:e,singleUnit:t}){if("day"!==t)return"day"===e||"week"===t?ga:pa}(s);let c=Object.assign(Object.assign({},a),{view:r});return S(cs,{tag:"div",attrs:Object.assign({"data-date":Br(i)},a.isToday?{"aria-current":"date"}:{}),className:o?Ot:"",renderProps:c,generatorName:void 0,classNameGenerator:n.listDayHeaderClass,didMount:n.listDayHeaderDidMount,willUnmount:n.listDayHeaderWillUnmount},()=>S(D,null,Boolean(l)&&S($c,{dayDate:i,dayFormat:l,isTabbable:!0,dateMeta:a,level:0}),Boolean(d)&&S($c,{dayDate:i,dayFormat:d,isTabbable:!1,dateMeta:a,level:1})))}}const Jc=Ns({hour:"numeric",minute:"2-digit",meridiem:"short"});class Qc extends ss{render(){let{props:e,context:t}=this,{eventRange:n}=e,r=n.def.allDay||!e.isStart&&!e.isEnd?t.options.allDayText:void 0;return S(Po,Object.assign({},e,{attrs:{role:"listitem"},forcedTimeText:r,defaultTimeFormat:Jc,disableDragging:!0,disableResizing:!0,disableZindexes:!0,display:"list-item"}))}}class eu extends ss{constructor(){super(...arguments),this.getDateMeta=Zn(Pa),this.sortEventSegs=Zn(ki)}render(){const{props:e,context:t}=this,{nowDate:n,todayRange:r}=e,{options:s}=t,i=this.getDateMeta(e.dayDate,t.dateEnv,void 0,r),a=this.sortEventSegs(e.segs,s.eventOrder);return S("div",{role:"listitem","aria-label":Wa(this.context,e.dayDate),className:hs(s.listDayClass,Object.assign(Object.assign({},i),{view:t.viewApi}))},S(Kc,{dayDate:e.dayDate,dateMeta:i,forPrint:e.forPrint}),S("div",{role:"list","aria-label":s.eventsHint,className:ke(hs(s.listDayEventsClass,i),ht)},a.map(e=>{const t=_i(e);return S(Qc,Object.assign({key:t,eventRange:e.eventRange,slicedStart:e.slicedStart,slicedEnd:e.slicedEnd,isStart:e.isStart,isEnd:e.isEnd,isDragging:!1,isResizing:!1,isMirror:!1,isSelected:!1},Wi(e.eventRange,r,n)))})))}}function tu(e){return e.text}function nu(e){let t=ir(e.renderRange.start),n=e.renderRange.end,r=[],s=[];for(;t<n;)r.push(t),s.push({start:t,end:Jn(t,1)}),t=Jn(t,1);return{dayDates:r,dayRanges:s}}function ru(e){return!1===e?null:Ns(e)}var su=il({name:"@fullcalendar/list",optionRefiners:{listDaysClass:Bs,listDayClass:Bs,listDayFormat:ru,listDaySideFormat:ru,listDayHeaderDidMount:Bs,listDayHeaderWillUnmount:Bs,listDayHeaderClass:Bs,listDayHeaderInnerClass:Bs,listDayHeaderContent:Bs,listDayEventsClass:Bs,noEventsClass:Bs,noEventsInnerClass:Bs,noEventsContent:Bs,noEventsDidMount:Bs,noEventsWillUnmount:Bs},views:{list:{component:class extends Ya{constructor(){super(...arguments),this.computeDateVars=Zn(nu),this.eventStoreToSegs=Zn(this._eventStoreToSegs),this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,disableHits:!0}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{options:n}=t,{dayDates:r,dayRanges:s}=this.computeDateVars(e.dateProfile),i=this.eventStoreToSegs(e.eventStore,e.eventUiBases,s),a=!e.forPrint&&!To(n);return S(Xo,{viewSpec:t.viewSpec,className:ke(e.className,ht),elRef:this.setRootEl,borderlessX:e.borderlessX,borderlessTop:e.borderlessTop,borderlessBottom:e.borderlessBottom,noEdgeEffects:e.noEdgeEffects},i.length?S(ho,{vertical:a,className:ke(ht,a?ft:"")},this.renderSegList(i,r)):this.renderEmptyMessage())}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return S(cs,{tag:"div",attrs:{role:"status"},renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:tu,classNameGenerator:e.noEventsClass,className:gt,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},t=>S(t,{tag:"div",className:hs(e.noEventsInnerClass,n)}))}renderSegList(e,t){let{options:n}=this.context,r=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return S("div",{role:"list","aria-labelledby":this.props.labelId,"aria-label":this.props.labelStr,className:ke(ht,Ne(n.listDaysClass))},S(ko,{unit:"day"},(e,n)=>{const s=[];for(let i=0;i<r.length;i+=1){let a=r[i];if(a){const r=t[i],o=Br(r);s.push(S(eu,{key:o,dayDate:r,nowDate:e,todayRange:n,segs:a,forPrint:this.props.forPrint}))}}return S(D,null,s)}))}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(Ti(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r=e.range,s=[];for(n=0;n<t.length;n+=1){const i=Sr(r,t[n]);i&&s.push({eventRange:e,slicedStart:i.start,slicedEnd:i.end,isStart:e.isStart&&r.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===i.end.valueOf(),dayIndex:n})}return s}},buttonTextKey:"listText"},listDay:{type:"list",duration:{days:1}},listWeek:{type:"list",duration:{weeks:1}},listMonth:{type:"list",duration:{month:1}},listYear:{type:"list",duration:{year:1}}}});class iu extends Ya{constructor(){super(...arguments),this.buildDayTableModel=Zn(Bd),this.createDayHeaderFormatter=Zn(Yd),this.buildDateRowConfig=Zn(Cd),this.gridElRef={current:null},this.titleElRef={current:null},this.tableHeaderElRef={current:null},this.slicer=new Dd,this.titleId=Ha(),this.handleEl=e=>{var t;const{options:n}=this.context;e&&(this.rootEl=e,null===(t=n.singleMonthDidMount)||void 0===t||t.call(n,Object.assign({el:this.rootEl},this.renderProps)))}}render(){const{props:e,state:t,context:n}=this,{dateProfile:r,forPrint:s}=e,{options:i,dateEnv:a}=n,o=this.buildDayTableModel(r,n.dateProfileGenerator,a),l=this.slicer.sliceProps(e,r,i.nextDayThreshold,n,o),d=this.createDayHeaderFormatter(i.dayHeaderFormat,!1,o.colCount),c=this.buildDateRowConfig(o.headerDates,!1,r,e.todayRange,d,n),u=!s&&1===e.colCount,h=!s||e.hasLateralSiblings,g=1/i.aspectRatio,f=o.cellRows[0].length,p=null!=t.gridWidth?t.gridWidth/f:void 0,v=null!=p&&p<=50,m=v||null!=p&&p<=i.dayNarrowWidth,y=null!=t.gridWidth?g*t.gridWidth/6:void 0,E=u?y:void 0,b=u&&null!=y&&null!=t.tableHeaderHeight?y+t.tableHeaderHeight+1:void 0,D=i.navLinks&&e.colCount>1,w={colCount:e.colCount,isSticky:u,isNarrow:m,hasNavLink:D},R=e.dateProfile.currentRange.start,C=D?Aa(n,R,"month",e.isoDateStr):{};return S("div",{role:"listitem",style:{width:e.width}},S("div",{ref:this.gridElRef,role:"grid","aria-labelledby":this.titleId,"data-date":e.isoDateStr,className:ke(hs(i.singleMonthClass,{colCount:e.colCount||0}),e.borderlessX&&ot,e.borderlessTop&<,e.borderlessBottom&&dt,1===e.colCount&&Et,ht,e.hasLateralSiblings&&zt)},S("div",{id:this.titleId,ref:this.titleElRef,className:ke(hs(i.singleMonthHeaderClass,w),u&&Ot,ht),style:{zIndex:u?3:void 0,marginBottom:b}},S("div",Object.assign({},C,{className:ke(hs(i.singleMonthHeaderInnerClass,w),C.className)}),a.format(R,e.titleFormat))),S("div",{className:Ne(i.tableClass,e.borderlessX&&ot,u&<,e.borderlessBottom&&dt,ht),style:{marginTop:null!=b?-b:void 0}},S("div",{ref:this.tableHeaderElRef,className:ke(hs(i.tableHeaderClass,{isSticky:u}),e.borderlessX&&ot,ht,u&&kt),style:{zIndex:u?2:void 0,top:u?t.titleHeight:0,marginBottom:E}},S(ec,Object.assign({},c,{role:"row",borderBottom:!1,cellIsNarrow:m,cellIsMicro:v,rowLevel:0})),S("div",{className:hs(i.dayHeaderDividerClass,{isSticky:u,options:{allDaySlot:Boolean(i.allDaySlot)}})})),S("div",{className:Ne(i.tableBodyClass,ht,h&&Ct,e.borderlessX&&ot,u&<,(u||e.noEdgeEffects)&&Rt),style:{zIndex:u?1:void 0,marginTop:null!=E?-E:void 0,paddingBottom:h?Oe(g):void 0}},S(Kd,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:o.cellRows,className:h?Mt:"",forPrint:s&&!e.hasLateralSiblings,dayMaxEventRows:!s||!e.hasLateralSiblings||1,fgEventSegs:l.fgEventSegs,bgEventSegs:l.bgEventSegs,businessHourSegs:l.businessHourSegs,dateSelectionSegs:l.dateSelectionSegs,eventDrag:l.eventDrag,eventResize:l.eventResize,eventSelection:l.eventSelection,visibleWidth:t.gridWidth,cellIsNarrow:m,cellIsMicro:v})))))}componentDidMount(){this.disconnectGridWidth=oa(this.gridElRef.current,e=>{this.setState({gridWidth:e})}),this.disconnectTitleHeight=la(this.titleElRef.current,e=>{this.setState({titleHeight:e})}),this.disconnectTableHeaderHeight=la(this.tableHeaderElRef.current,e=>{this.setState({tableHeaderHeight:e})})}componentWillUnmount(){var e;const{options:t}=this.context;this.disconnectGridWidth(),this.disconnectTitleHeight(),this.disconnectTableHeaderHeight(),null===(e=t.singleMonthWillUnmount)||void 0===e||e.call(t,Object.assign({el:this.rootEl},this.renderProps))}}const au=Hr(1,"month");function ou(e,t,n,r,s){const{start:i,end:a}=t.currentRange;let o=i;const l=[];for(;o.valueOf()<a.valueOf();){const i=n.add(o,au),a={start:e.skipHiddenDays(o),end:e.skipHiddenDays(i,-1,!0)};let d=ac({currentRange:a,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});d={start:e.skipHiddenDays(d.start),end:e.skipHiddenDays(d.end,-1,!0)};const c=t.activeRange?Sr(t.activeRange,s?d:a):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:d,activeRange:c,currentRange:a,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),o=i}return l}const lu=Ns({year:"numeric",month:"long"}),du=Ns({month:"long"});function cu(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?lu:du)}var uu=il({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:{multiMonthMaxColumns:Number,singleMonthMinWidth:Number,singleMonthTitleFormat:Ns,singleMonthDidMount:Bs,singleMonthWillUnmount:Bs,singleMonthClass:Bs,singleMonthHeaderClass:Bs,singleMonthHeaderInnerClass:Bs},views:{multiMonth:{component:class extends Ya{constructor(){super(...arguments),this.splitDateProfileByMonth=Zn(ou),this.buildMonthFormat=Zn(cu),this.scrollerRef={current:null},this.innerElRef={current:null},this.scrollDate=null,this.handleScrollEnd=e=>{e&&(this.scrollDate=null)}}render(){const{context:e,props:t,state:n}=this,{options:r}=e,s=!t.forPrint&&!To(r),i=this.splitDateProfileByMonth(e.dateProfileGenerator,t.dateProfile,e.dateEnv,r.fixedWeekCount,r.showNonCurrentDates),a=this.buildMonthFormat(r.singleMonthTitleFormat,i),{multiMonthMaxColumns:o,singleMonthMinWidth:l}=r,{innerWidth:d}=n;let c,u,h=!1;return null!=d&&(c=Math.max(1,Math.min(o,Math.floor(d/l))),t.forPrint&&(c=Math.min(c,2)),u=Oe(1/c),h=c>1),S(ko,{unit:"day"},(n,r)=>S(Xo,{viewSpec:e.viewSpec,className:ke(!t.forPrint&&ht,t.className),borderlessX:t.borderlessX,borderlessTop:t.borderlessTop,borderlessBottom:t.borderlessBottom,noEdgeEffects:t.noEdgeEffects},S(ho,{vertical:s,className:s?ft:"",ref:this.scrollerRef},S("div",{role:"list","aria-labelledby":t.labelId,"aria-label":t.labelStr,className:qe,ref:this.innerElRef},i.map((e,n)=>{const s=Ur(e.currentRange.start);return S(iu,Object.assign({},t,{key:s,todayRange:r,isoDateStr:s,titleFormat:a,dateProfile:e,width:u,colCount:c,borderlessX:1===c,borderlessTop:1===c,borderlessBottom:1===c&&n===i.length-1,hasLateralSiblings:h}))})))))}componentDidMount(){this.resetScroll(),this.scrollerRef.current.addScrollEndListener(this.handleScrollEnd),this.disconnectInnerWidth=oa(this.innerElRef.current,e=>{Ji(()=>{this.setState({innerWidth:e})})})}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset?this.resetScroll():this.applyScroll()}componentWillUnmount(){this.scrollerRef.current.removeScrollEndListener(this.handleScrollEnd),this.disconnectInnerWidth()}resetScroll(){this.scrollDate=this.props.dateProfile.currentDate,this.applyScroll()}applyScroll(){if(null!=this.scrollDate&&null!=this.state.innerWidth){const e=this.scrollerRef.current,t=this.innerElRef.current,n=t.querySelector(`[data-date="${Ur(this.scrollDate)}"]`),r=Math.ceil(n.parentNode.getBoundingClientRect().top-t.getBoundingClientRect().top);e.scrollTo({y:r})}}},dateProfileGeneratorClass:ic,multiMonthMaxColumns:3,singleMonthMinWidth:350},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}});return Hl.push(bd,oc,Zc,su,uu),e.Calendar=class extends Zo{constructor(e,t={}){super(),this.buildToolbarProps=Zn(Kl),this.isRendering=!1,this.isRendered=!1,this.currentClassName="",this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;Kr(()=>{V(S(da,{options:e.calendarOptions,emitter:e.emitter},(t,n,r,s)=>{this.setIsRtl(t),this.setClassName(n),this.setHeight(r);const i=this.toolbarProps=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,ms(e.options.now,e.dateEnv),e.viewTitle);return S(ds.Provider,{value:this.customContentRenderId},S(Zl,Object.assign({forPrint:s,toolbarProps:i},e)))}),this.el)})}else this.isRendered&&(this.isRendered=!1,V(null,this.el),this.setIsRtl(!1),this.setClassName(""),this.setHeight(""))},this.el=e,this.renderRunner=new He(this.handleRenderRequest),new Ol({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())}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)}getButtonState(){var e;const{currentData:t,toolbarProps:n}=this,r=t.calendarOptions,s=r.buttons||{},i=t.viewSpecs,a={today:{text:r.todayText,hint:r.todayHint,isDisabled:!n.isTodayEnabled},prev:{text:r.prevText,hint:r.prevHint,isDisabled:!n.isPrevEnabled},next:{text:r.nextText,hint:r.nextHint,isDisabled:!n.isNextEnabled},prevYear:{text:r.prevYearText,hint:Dn(r.prevHint,[r.yearText,"year"],r.prevYearText),isDisabled:!1},nextYear:{text:r.prevYearText,hint:Dn(r.nextHint,[r.yearText,"year"],r.nextYearText),isDisabled:!1}};for(const t in i){const n=i[t],o=n.optionDefaults.buttonTextKey,l=(null===(e=s[t])||void 0===e?void 0:e.text)||(o?r[o]:"")||(n.singleUnit?r[n.singleUnit+"Text"]:"")||t,d=Dn(r.viewHint,[l,t],l);a[t]={text:l,hint:d}}return a}setClassName(e){if(e!==this.currentClassName){let{classList:t}=this.el;for(let e of this.currentClassName.split(" "))e&&t.remove(e);for(let n of e.split(" "))n&&t.add(n);this.currentClassName=e}}setHeight(e){Ma(this.el,"height",e)}setIsRtl(e){e?this.el.dir="rtl":this.el.removeAttribute("dir")}},e.CalendarController=class{constructor(e){this.handleDateChange=e}today(){var e;null===(e=this.calendarApi)||void 0===e||e.today()}prev(){var e;null===(e=this.calendarApi)||void 0===e||e.prev()}next(){var e;null===(e=this.calendarApi)||void 0===e||e.next()}prevYear(){var e;null===(e=this.calendarApi)||void 0===e||e.prevYear()}nextYear(){var e;null===(e=this.calendarApi)||void 0===e||e.nextYear()}gotoDate(e){var t;null===(t=this.calendarApi)||void 0===t||t.gotoDate(e)}incrementDate(e){var t;null===(t=this.calendarApi)||void 0===t||t.incrementDate(e)}changeView(e){var t;null===(t=this.calendarApi)||void 0===t||t.changeView(e)}get view(){var e;return null===(e=this.calendarApi)||void 0===e?void 0:e.view}getDate(){var e;return null===(e=this.calendarApi)||void 0===e?void 0:e.getDate()}getButtonState(){const{calendarApi:e}=this;return e&&e.getButtonState()||{today:Jl,prev:Jl,next:Jl,prevYear:Jl,nextYear:Jl}}_setApi(e){this.calendarApi!==e&&(this.calendarApi&&(this.calendarApi.off("datesSet",this.handleDateChange),this.calendarApi=void 0),e&&(this.calendarApi=e,e.on("datesSet",this.handleDateChange)))}},e.Draggable=class{constructor(e,t={}){this.handlePointerDown=e=>{let{dragging:t}=this,{minDistance:n,longPressDelay:r}=this.settings;t.minDistance=null!=n?n:e.isTouch?0:Os.eventDragMinDistance,t.delay=e.isTouch?null!=r?r:Os.longPressDelay:0},this.handleDragStart=e=>{e.isTouch&&this.dragging.delay&&e.subjectEl.classList.contains(Zt)&&this.dragging.mirror.getMirrorEl().classList.add(Jt)},this.settings=t;let n=this.dragging=new ud(e);n.touchScrollAllowed=!1,null!=t.itemSelector&&(n.pointer.selector=t.itemSelector),null!=t.appendTo&&(n.mirror.parentNode=t.appendTo),n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragstart",this.handleDragStart),new Sd(n,t.eventData)}destroy(){this.dragging.destroy()}},e.Internal=Ko,e.JsonRequestError=Gi,e.Preact=Jo,e.ThirdPartyDraggable=class{constructor(e,t){let n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};let r=this.dragging=new Ed(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new Sd(r,t.eventData).hitDragging.disablePointCheck=!0}destroy(){this.dragging.destroy()}},e.createPlugin=il,e.formatDate=function(e,t={}){let n=Ql(t),r=Ns(t),s=n.createMarkerMeta(e);return s?n.format(s.marker,r,{forcedTzo:s.forcedTzo})[0]:""},e.formatRange=function(e,t,n){let r=Ql("object"==typeof n&&n?n:{}),s=Ns(n),i=r.createMarkerMeta(e),a=r.createMarkerMeta(t);return i&&a?r.formatRange(i.marker,a.marker,s,{forcedStartTzo:i.forcedTzo,forcedEndTzo:a.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:Os.defaultRangeSeparator}):""},e.globalLocales=Qo,e.globalPlugins=Hl,e.joinClassNames=ke,e.sliceEvents=function(e,t){return Ti(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.version="7.0.0-beta.5",Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|