tocco-admin 3.10.33 → 3.10.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +0,0 @@
1
- (self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[840],{75508:(e,t,n)=>{var r=n(86152),i=n(38688),s=n(45336),o=n(12040),l=n(89165),a=n(30968),c=Math.min;e.exports=function(e,t,n){for(var d=n?s:i,u=e[0].length,h=e.length,f=h,p=Array(h),g=1/0,m=[];f--;){var v=e[f];f&&t&&(v=o(v,l(t))),g=c(v.length,g),p[f]=!n&&(t||u>=120&&v.length>=120)?new r(f&&v):void 0}v=e[0];var b=-1,y=p[0];e:for(;++b<u&&m.length<g;){var E=v[b],S=t?t(E):E;if(E=n||0!==E?E:0,!(y?a(y,S):d(m,S,n))){for(f=h;--f;){var w=p[f];if(!(w?a(w,S):d(e[f],S,n)))continue e}y&&y.push(S),m.push(E)}}return m}},77259:(e,t,n)=>{var r=n(2480);e.exports=function(e){return r(e)?e:[]}},40100:(e,t,n)=>{var r=n(73968),i=n(54900),s=n(95160);e.exports=function(e){return function(t,n,o){var l=Object(t);if(!i(t)){var a=r(n,3);t=s(t),n=function(e){return a(l[e],e,l)}}var c=e(t,n,o);return c>-1?l[a?t[c]:c]:void 0}}},67120:(e,t,n)=>{var r=n(40100)(n(22988));e.exports=r},22988:(e,t,n)=>{var r=n(64832),i=n(73968),s=n(4400),o=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var a=null==n?0:s(n);return a<0&&(a=o(l+a,0)),r(e,i(t,3),a)}},98704:(e,t,n)=>{var r=n(12040),i=n(75508),s=n(48292),o=n(77259),l=s((function(e){var t=r(e,o);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=l},16488:(e,t,n)=>{var r=n(12040),i=n(75508),s=n(73968),o=n(48292),l=n(77259),a=n(2008),c=o((function(e){var t=a(e),n=r(e,l);return t===a(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?i(n,s(t,2)):[]}));e.exports=c},71544:(e,t,n)=>{var r=n(86040);e.exports=function(e,t,n,i){return i="function"==typeof i?i:void 0,null==e?e:r(e,t,n,i)}},2668:(e,t,n)=>{var r=n(38108),i=n(73968),s=n(48292),o=n(13756),l=n(2480),a=n(2008),c=s((function(e){var t=a(e);return l(t)&&(t=void 0),o(r(e,1,l,!0),i(t,2))}));e.exports=c},79252:(e,t,n)=>{"use strict";n.d(t,{y2:()=>N});var r,i,s,o=n(64284),l=[],a=[],c=o.s1.__b,d=o.s1.__r,u=o.s1.diffed,h=o.s1.__c,f=o.s1.unmount;function p(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(v),e.__H.__h.forEach(b),e.__H.__h=[]}catch(t){e.__H.__h=[],o.s1.__e(t,e.__v)}}o.s1.__b=function(e){r=null,c&&c(e)},o.s1.__r=function(e){d&&d(e),0;var t=(r=e.__c).__H;t&&(i===r?(t.__h=[],r.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=a,e.__N=e.i=void 0}))):(t.__h.forEach(v),t.__h.forEach(b),t.__h=[])),i=r},o.s1.diffed=function(e){u&&u(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&s===o.s1.requestAnimationFrame||((s=o.s1.requestAnimationFrame)||m)(p)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==a&&(e.__=e.__V),e.i=void 0,e.__V=a}))),i=r=null},o.s1.__c=function(e,t){t.some((function(e){try{e.__h.forEach(v),e.__h=e.__h.filter((function(e){return!e.__||b(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.s1.__e(n,e.__v)}})),h&&h(e,t)},o.s1.unmount=function(e){f&&f(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{v(e)}catch(e){t=e}})),n.__H=void 0,t&&o.s1.__e(t,n.__v))};var g="function"==typeof requestAnimationFrame;function m(e){var t,n=function(){clearTimeout(r),g&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);g&&(t=requestAnimationFrame(n))}function v(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function b(e){var t=r;e.__c=e.__(),r=t}function y(e,t){for(var n in t)e[n]=t[n];return e}function E(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 S(e){this.props=e}(S.prototype=new o.Yl).isPureReactComponent=!0,S.prototype.shouldComponentUpdate=function(e,t){return E(this.props,e)||E(this.state,t)};var w=o.s1.__b;o.s1.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),w&&w(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var A=function(e,t){return null==e?null:(0,o.Iy)((0,o.Iy)(e).map(t))},C=(o.Iy,o.s1.__e);o.s1.__e=function(e,t,n,r){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);C(e,t,n,r)};var D=o.s1.unmount;function R(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=y({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return R(e,t,n)}))),e}function _(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return _(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function k(){this.__u=0,this.t=null,this.__b=null}function x(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function T(){this.u=null,this.o=null}o.s1.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),D&&D(e)},(k.prototype=new o.Yl).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=x(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(l):l())};n.__R=o;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=_(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},a=!0===t.__h;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},k.prototype.componentWillUnmount=function(){this.t=[]},k.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]=R(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&(0,o.kv)(o.ae,null,e.fallback);return i&&(i.__h=null),[(0,o.kv)(o.ae,null,t.__a?null:e.children),i]};var M=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 I(e){return this.getChildContext=function(){return e.context},e.children}function O(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,o.ai)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],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)}}),(0,o.ai)((0,o.kv)(I,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function N(e,t){var n=(0,o.kv)(O,{__v:e,i:t});return n.containerInfo=t,n}(T.prototype=new o.Yl).__a=function(e){var t=this,n=x(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),M(t,e,r)):i()};n?n(s):s()}},T.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,o.Iy)(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},T.prototype.componentDidUpdate=T.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){M(e,n,t)}))};var P="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,H=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,B="undefined"!=typeof document,U=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};o.Yl.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(o.Yl.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var L=o.s1.event;function W(){}function j(){return this.cancelBubble}function z(){return this.defaultPrevented}o.s1.event=function(e){return L&&(e=L(e)),e.persist=W,e.isPropagationStopped=j,e.isDefaultPrevented=z,e.nativeEvent=e};var G={configurable:!0,get:function(){return this.class}},V=o.s1.vnode;o.s1.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var s in r={},n){var l=n[s];B&&"children"===s&&"noscript"===t||"value"===s&&"defaultValue"in n&&null==l||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===l?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!U(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&H.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=l)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,o.Iy)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=(0,o.Iy)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(G.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",G))}e.$$typeof=P,V&&V(e)};var F=o.s1.__r;o.s1.__r=function(e){F&&F(e),e.__c};o.ae;o.kv,o.GY,o.Yn,o.ae,o.Yl},64284:(e,t,n)=>{"use strict";n.d(t,{GY:()=>F,Iy:()=>O,Yl:()=>D,Yn:()=>y,Yr:()=>V,ae:()=>E,ai:()=>z,kv:()=>v,s1:()=>i,ug:()=>G,ur:()=>o});var r,i,s,o,l,a,c,d,u,h={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function g(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var i,s,o,l={};for(o in t)"key"==o?i=t[o]:"ref"==o?s=t[o]:l[o]=t[o];if(arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===l[o]&&(l[o]=e.defaultProps[o]);return b(e,l,i,s,null)}function b(e,t,n,r,o){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++s:o};return null==o&&null!=i.vnode&&i.vnode(l),l}function y(){return{current:null}}function E(e){return e.children}function S(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 w(e,t,n,r,i){var s;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||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?C:A,s):e.removeEventListener(t,s?C:A,s);else if("dangerouslySetInnerHTML"!==t){if(i)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&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function A(e){l=!0;try{return this.l[e.type+!1](i.event?i.event(e):e)}finally{l=!1}}function C(e){l=!0;try{return this.l[e.type+!0](i.event?i.event(e):e)}finally{l=!1}}function D(e,t){this.props=e,this.context=t}function R(e,t){if(null==t)return e.__?R(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?R(e):null}function _(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 _(e)}}function k(e){l?setTimeout(e):d(e)}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!T.__r++||c!==i.debounceRendering)&&((c=i.debounceRendering)||k)(T)}function T(){var e,t,n,r,i,s,o,l;for(a.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=a.shift();)e.__d&&(t=a.length,r=void 0,i=void 0,o=(s=(n=e).__v).__e,(l=n.__P)&&(r=[],(i=g({},s)).__v=s.__v+1,H(l,s,i,n.__n,void 0!==l.ownerSVGElement,null!=s.__h?[o]:null,r,null==o?R(s):o,s.__h),B(r,s),s.__e!=o&&_(s)),a.length>t&&a.sort((function(e,t){return e.__v.__b-t.__v.__b})));T.__r=0}function M(e,t,n,r,i,s,o,l,a,c){var d,u,p,g,m,v,y,S=r&&r.__k||f,w=S.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?b(null,g,null,null,g):Array.isArray(g)?b(E,{children:g},null,null,null):g.__b>0?b(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(p=S[d])||p&&g.key==p.key&&g.type===p.type)S[d]=void 0;else for(u=0;u<w;u++){if((p=S[u])&&g.key==p.key&&g.type===p.type){S[u]=void 0;break}p=null}H(e,g,p=p||h,i,s,o,l,a,c),m=g.__e,(u=g.ref)&&p.ref!=u&&(y||(y=[]),p.ref&&y.push(p.ref,null,g),y.push(u,g.__c||m,g)),null!=m?(null==v&&(v=m),"function"==typeof g.type&&g.__k===p.__k?g.__d=a=I(g,a,e):a=N(e,g,p,S,m,a),"function"==typeof n.type&&(n.__d=a)):a&&p.__e==a&&a.parentNode!=e&&(a=R(p))}for(n.__e=v,d=w;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=P(r).nextSibling),W(S[d],S[d]));if(y)for(d=0;d<y.length;d++)L(y[d],y[++d],y[++d])}function I(e,t,n){for(var r,i=e.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=e,t="function"==typeof r.type?I(r,t,n):N(n,r,r,i,r.__e,t));return t}function O(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){O(e,t)})):t.push(e)),t}function N(e,t,n,r,i,s){var o,l,a;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||i!=s||null==i.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(i),o=null;else{for(l=s,a=0;(l=l.nextSibling)&&a<r.length;a+=1)if(l==i)break e;e.insertBefore(i,s),o=s}return void 0!==o?o:i.nextSibling}function P(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=P(n)))return r;return null}function H(e,t,n,r,s,o,l,a,c){var d,u,h,f,p,m,v,b,y,S,w,A,C,R,_,k=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(d=i.__b)&&d(t);try{e:if("function"==typeof k){if(b=t.props,y=(d=k.contextType)&&r[d.__c],S=d?y?y.props.value:d.__:r,n.__c?v=(u=t.__c=n.__c).__=u.__E:("prototype"in k&&k.prototype.render?t.__c=u=new k(b,S):(t.__c=u=new D(b,S),u.constructor=k,u.render=j),y&&y.sub(u),u.props=b,u.state||(u.state={}),u.context=S,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=k.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=g({},u.__s)),g(u.__s,k.getDerivedStateFromProps(b,u.__s))),f=u.props,p=u.state,u.__v=t,h)null==k.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==k.getDerivedStateFromProps&&b!==f&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(b,S),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(b,u.__s,S)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=b,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),w=0;w<u._sb.length;w++)u.__h.push(u._sb[w]);u._sb=[],u.__h.length&&l.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(b,u.__s,S),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(f,p,m)}))}if(u.context=S,u.props=b,u.__P=e,A=i.__r,C=0,"prototype"in k&&k.prototype.render){for(u.state=u.__s,u.__d=!1,A&&A(t),d=u.render(u.props,u.state,u.context),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[]}else do{u.__d=!1,A&&A(t),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++C<25);u.state=u.__s,null!=u.getChildContext&&(r=g(g({},r),u.getChildContext())),h||null==u.getSnapshotBeforeUpdate||(m=u.getSnapshotBeforeUpdate(f,p)),_=null!=d&&d.type===E&&null==d.key?d.props.children:d,M(e,Array.isArray(_)?_:[_],t,n,r,s,o,l,a,c),u.base=t.__e,t.__h=null,u.__h.length&&l.push(u),v&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=U(n.__e,t,n,r,s,o,l,c);(d=i.diffed)&&d(t)}catch(e){t.__v=null,(c||null!=o)&&(t.__e=a,t.__h=!!c,o[o.indexOf(a)]=null),i.__e(e,t,n)}}function B(e,t){i.__c&&i.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){i.__e(e,t.__v)}}))}function U(e,t,n,i,s,o,l,a){var c,d,u,f=n.props,p=t.props,g=t.type,v=0;if("svg"===g&&(s=!0),null!=o)for(;v<o.length;v++)if((c=o[v])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,o[v]=null;break}if(null==e){if(null===g)return document.createTextNode(p);e=s?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),o=null,a=!1}if(null===g)f===p||a&&e.data===p||(e.data=p);else{if(o=o&&r.call(e.childNodes),d=(f=n.props||h).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(null!=o)for(f={},v=0;v<e.attributes.length;v++)f[e.attributes[v].name]=e.attributes[v].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,r,i){var s;for(s in n)"children"===s||"key"===s||s in t||w(e,s,null,n[s],r);for(s in t)i&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||w(e,s,t[s],n[s],r)}(e,p,f,s,a),u)t.__k=[];else if(v=t.props.children,M(e,Array.isArray(v)?v:[v],t,n,i,s&&"foreignObject"!==g,o,l,o?o[0]:n.__k&&R(n,0),a),null!=o)for(v=o.length;v--;)null!=o[v]&&m(o[v]);a||("value"in p&&void 0!==(v=p.value)&&(v!==e.value||"progress"===g&&!v||"option"===g&&v!==f.value)&&w(e,"value",v,f.value,!1),"checked"in p&&void 0!==(v=p.checked)&&v!==e.checked&&w(e,"checked",v,f.checked,!1))}return e}function L(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,n)}}function W(e,t,n){var r,s;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||L(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&W(r[s],t,n||"function"!=typeof e.type);n||null==e.__e||m(e.__e),e.__=e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function z(e,t,n){var s,o,l;i.__&&i.__(e,t),o=(s="function"==typeof n)?null:n&&n.__k||t.__k,l=[],H(t,e=(!s&&n||t).__k=v(E,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!s&&n?[n]:o?null:t.firstChild?r.call(t.childNodes):null,l,!s&&n?n:o?o.__e:t.firstChild,s),B(l,e)}function G(e,t){z(e,t,G)}function V(e,t,n){var i,s,o,l=g({},e.props);for(o in t)"key"==o?i=t[o]:"ref"==o?s=t[o]:l[o]=t[o];return arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),b(e.type,l,i||e.key,s||e.ref,null)}function F(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,x(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,i={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},s=0,o=function(e){return null!=e&&void 0===e.constructor},l=!1,D.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),x(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},D.prototype.render=E,a=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,T.__r=0,u=0},16200:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(61936);function i(e,t,n){return i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var s=new(Function.bind.apply(e,i));return n&&(0,r.c)(s,n.prototype),s},i.apply(null,arguments)}},3292:(e,t,n)=>{"use strict";n.d(t,{c:()=>f});var r=n(64740),i=n(40456),s=n(8924),o=n(21468);s.EjX.COLLAPSIBLE_WIDTH_THRESHOLD=1200;let l=[],a=[];function c(){for(let e of l)e.emitter.trigger("_beforeprint");(0,o.Wi)((()=>{a.push(function(){let e=(0,s._yY)(document.body,".fc-scrollgrid");return e.forEach(u),()=>e.forEach(h)}())}))}function d(){for(let e of l)e.emitter.trigger("_afterprint");(0,o.Wi)((()=>{for(;a.length;)a.shift()()}))}function u(e){let t=e.getBoundingClientRect().width;(!e.classList.contains("fc-scrollgrid-collapsible")||t<s.EjX.COLLAPSIBLE_WIDTH_THRESHOLD)&&(e.style.width=t+"px")}function h(e){e.style.width=""}(0,s.Uf2)(".fc .fc-event,.fc .fc-scrollgrid table tr{-moz-column-break-inside:avoid;break-inside:avoid}.fc-media-print{display:block;max-width:100%}.fc-media-print .fc-bg-event,.fc-media-print .fc-non-business,.fc-media-print .fc-timegrid-axis-chunk,.fc-media-print .fc-timegrid-slots,.fc-media-print .fc-timeline-slots{display:none}.fc-media-print .fc-h-event,.fc-media-print .fc-toolbar button,.fc-media-print .fc-v-event{background:#fff!important;color:#000!important}.fc-media-print .fc-event,.fc-media-print .fc-event-main{color:#000!important}.fc-media-print .fc-timegrid-event{margin:.5em 0}");var f=(0,r.aS)({name:"@fullcalendar/adaptive",premiumReleaseDate:"2023-11-29",deps:[i.c],contextInit:function(e){l.length||(window.addEventListener("beforeprint",c),window.addEventListener("afterprint",d)),l.push(e),e.calendarApi.on("_unmount",(()=>{(0,s.QX5)(l,e),l.length||(window.removeEventListener("beforeprint",c),window.removeEventListener("afterprint",d))}))}})},64740:(e,t,n)=>{"use strict";n.d(t,{Yf:()=>le,aS:()=>u});var r=n(25756),i=n(64284);n(79252);const s=[],o={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},l=Object.assign(Object.assign({},o),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function a(e){let t=e.length>0?e[0].code:"en",n=s.concat(e),r={en:l};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function c(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)||l;return d(e,n,r)}(e,t):d(e.code,[e.code],e)}function d(e,t,n){let i=(0,r.m)([o,n],["buttonText"]);delete i.code;let{week:s}=i;return delete i.week,{codeArg:e,codes:t,week:s,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function u(e){return{id:(0,r.g)(),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||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function h(){let e,t=[],n=[];return(i,s)=>(e&&(0,r.i)(i,t)&&(0,r.i)(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:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let o of e){const e=o.name,l=n[e];void 0===l?(n[e]=o.id,i(o.deps),s=o,r={premiumReleaseDate:f((t=r).premiumReleaseDate,s.premiumReleaseDate),reducers:t.reducers.concat(s.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:t.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),s.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(s.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),s.views),viewPropsTransformers:t.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(s.calendarInteractions),componentInteractions:t.componentInteractions.concat(s.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),s.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||s.initialView,elementDraggingImpl:t.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),s.optionChangeHandlers),scrollGridImpl:s.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),s.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),s.propSetHandlers)}):l!==o.id&&console.warn(`Duplicate plugin '${e}'`)}var t,s}return e&&i(e),i(t),r}(i,s)),t=i,n=s,e)}function f(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class p extends r.T{}function g(e,t,n,r){if(t[e])return t[e];let i=function(e,t,n,r){let i=n[e],s=r[e],o=e=>i&&null!==i[e]?i[e]:s&&null!==s[e]?s[e]:null,l=o("component"),a=o("superType"),c=null;if(a){if(a===e)throw new Error("Can't have a custom view type that references itself");c=g(a,t,n,r)}!l&&c&&(l=c.component);if(!l)return null;return{type:e,component:l,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}}(e,t,n,r);return i&&(t[e]=i),i}function m(e){return(0,r.a)(e,v)}function v(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=b(t):!n||n.prototype instanceof r.B||(n=b(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function b(e){return t=>(0,i.kv)(r.V.Consumer,null,(n=>(0,i.kv)(r.C,{elTag:"div",elClasses:(0,r.b)(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function y(e,t,n,i){let s=m(e),o=m(t.views),l=function(e,t){let n,r={};for(n in e)g(n,r,e,t);for(n in t)g(n,r,e,t);return r}(s,o);return(0,r.a)(l,(e=>function(e,t,n,i,s){let o=e.overrides.duration||e.defaults.duration||i.duration||n.duration,l=null,a="",c="",d={};if(o&&(l=function(e){let t=JSON.stringify(e),n=E[t];void 0===n&&(n=(0,r.d)(e),E[t]=n);return n}(o),l)){let e=(0,r.c)(l);a=e.unit,1===e.value&&(c=a,d=t[a]?t[a].rawOptions:{})}let u=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null},h=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null};return{type:e.type,component:e.component,duration:l,durationUnit:a,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},d),e.overrides),buttonTextOverride:u(i)||u(n)||e.overrides.buttonText,buttonTextDefault:u(s)||e.defaults.buttonText||u(r.e)||e.type,buttonTitleOverride:h(i)||h(n)||e.overrides.buttonHint,buttonTitleDefault:h(s)||e.defaults.buttonHint||h(r.e)}}(e,o,t,n,i)))}p.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},p.prototype.baseIconClass="fc-icon",p.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},p.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},p.prototype.iconOverrideOption="buttonIcons",p.prototype.iconOverrideCustomButtonOption="icon",p.prototype.iconOverridePrefix="fc-icon-";let E={};function S(e,t,n){let i=t?t.activeRange:null;return C({},function(e,t){let n=(0,r.j)(t),i=[].concat(e.eventSources||[]),s=[];e.initialEvents&&i.unshift(e.initialEvents);e.events&&i.unshift(e.events);for(let e of i){let i=(0,r.p)(e,t,n);i&&s.push(i)}return s}(e,n),i,n)}function w(e,t,n,i){let s=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return C(e,t.sources,s,i);case"REMOVE_EVENT_SOURCE":return o=e,l=t.sourceId,(0,r.h)(o,(e=>e.sourceId!==l));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?D(e,s,i):e;case"FETCH_EVENT_SOURCES":return R(e,t.sourceIds?(0,r.f)(t.sourceIds):k(e,i),s,t.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var o,l}function A(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function C(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=D(i,n,r)),Object.assign(Object.assign({},e),i)}function D(e,t,n){return R(e,(0,r.h)(e,(e=>function(e,t,n){if(!x(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 R(e,t,n,r,i){let s={};for(let o in e){let l=e[o];t[o]?s[o]=_(l,n,r,i):s[o]=l}return s}function _(e,t,n,i){let{options:s,calendarApi:o}=i,l=i.pluginHooks.eventSourceDefs[e.sourceDefId],a=(0,r.g)();return l.fetch({eventSource:e,range:t,isRefetch:n,context:i},(n=>{let{rawEvents:r}=n;s.eventSourceSuccess&&(r=s.eventSourceSuccess.call(o,r,n.response)||r),e.success&&(r=e.success.call(o,r,n.response)||r),i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:r})}),(n=>{let r=!1;s.eventSourceFailure&&(s.eventSourceFailure.call(o,n),r=!0),e.failure&&(e.failure(n),r=!0),r||console.warn(n.message,n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function k(e,t){return(0,r.h)(e,(e=>x(e,t)))}function x(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function T(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function M(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function I(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 O(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 N(e,t,n,r,i){return{header:e.headerToolbar?P(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?P(e.footerToolbar,e,t,n,r,i):null}}function P(e,t,n,r,i,s){let o={},l=[],a=!1;for(let c in e){let d=H(e[c],t,n,r,i,s);o[c]=d.widgets,l.push(...d.viewsWithButtons),a=a||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:l,hasTitle:a}}function H(e,t,n,i,s,o){let l="rtl"===t.direction,a=t.customButtons||{},c=n.buttonText||{},d=t.buttonText||{},u=n.buttonHints||{},h=t.buttonHints||{},f=e?e.split(" "):[],p=[],g=!1;return{widgets:f.map((e=>e.split(",").map((e=>{if("title"===e)return g=!0,{buttonName:e};let n,f,m,v,b,y;if(n=a[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(e,l))||(b=n.text),y=n.hint||n.text;else if(f=s[e]){p.push(e),m=()=>{o.changeView(e)},(b=f.buttonTextOverride)||(v=i.getIconClass(e,l))||(b=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;y=(0,r.k)(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(o[e])if(m=()=>{o[e]()},(b=c[e])||(v=i.getIconClass(e,l))||(b=d[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=(0,r.k)(u[t]||h[t],[d.year||"year","year"],d[e])}else y=t=>(0,r.k)(u[e]||h[e],[d[t]||t,t],d[e]);return{buttonName:e,buttonClick:m,buttonIcon:v,buttonText:b,buttonHint:y}})))),viewsWithButtons:p,hasTitle:g}}class B{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 U(e,t){let n=(0,r.v)(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 i=[];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||i.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of i)t.calendarApi.addEventSource(e)}const L=[u({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),u({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:i}=e.context,s=e.eventSource.meta;(0,r.u)(s.bind(null,(0,r.l)(e.range,i)),(e=>t({rawEvents:e})),n)}}]}),u({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:r.n,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:i}=e.eventSource,s=function(e,t,n){let r,i,s,o,{dateEnv:l,options:a}=n,c={};r=e.startParam,null==r&&(r=a.startParam);i=e.endParam,null==i&&(i=a.endParam);s=e.timeZoneParam,null==s&&(s=a.timeZoneParam);o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(c,o),c[r]=l.formatIso(t.start),c[i]=l.formatIso(t.end),"local"!==l.timeZone&&(c[s]=l.timeZone);return c}(i,e.range,e.context);(0,r.r)(i.method,i.url,s).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}}]}),u({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n,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&&(n=e.duration),!n&&e.startTime&&e.endTime&&(n=(0,r.s)(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:n,typeData:i}}return null},expand(e,t,n){let i=(0,r.o)(t,{start:e.startRecur,end:e.endRecur});return i?function(e,t,n,i){let s=e?(0,r.f)(e):null,o=(0,r.q)(n.start),l=n.end,a=[];for(;o<l;){let e;s&&!s[o.getUTCDay()]||(e=t?i.add(o,t):o,a.push(e)),o=(0,r.t)(o,1)}return a}(e.daysOfWeek,e.startTime,i,n):[]}}],eventRefiners:{daysOfWeek:r.n,startTime:r.d,endTime:r.d,duration:r.d,startRecur:r.n,endRecur:r.n}}),u({name:"change-handler",optionChangeHandlers:{events(e,t){U([e],t)},eventSources:U}}),u({name:"misc",isLoadingFuncs:[e=>A(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},(0,r.l)(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",(0,r.w)(e,t))}}})];class W{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new r.D(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 j(e,t,n){let i;return i=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(i.start,i.end,(0,r.x)(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=(0,r.y)(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class z{constructor(e){this.computeCurrentViewData=(0,r.z)(this._computeCurrentViewData),this.organizeRawLocales=(0,r.z)(a),this.buildLocale=(0,r.z)(c),this.buildPluginHooks=h(),this.buildDateEnv=(0,r.z)(G),this.buildTheme=(0,r.z)(V),this.parseToolbars=(0,r.z)(N),this.buildViewSpecs=(0,r.z)(y),this.buildDateProfileGenerator=(0,r.A)(F),this.buildViewApi=(0,r.z)(Y),this.buildViewUiProps=(0,r.A)(Z),this.buildEventUiBySource=(0,r.z)(q,r.E),this.buildEventUiBases=(0,r.z)(Q),this.parseContextBusinessHours=(0,r.A)(K),this.buildTitle=(0,r.z)(j),this.emitter=new r.F,this.actionRunner=new W(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),i=n.calendarOptions.initialView||n.pluginHooks.initialView,s=this.computeCurrentViewData(i,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let o=(0,r.G)(n.calendarOptions,n.dateEnv),l=s.dateProfileGenerator.build(o);(0,r.H)(l.activeRange,o)||(o=l.currentRange.start);let d={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(d);let u=S(n.calendarOptions,l,d),f={dynamicOptionOverrides:t,currentViewType:i,currentDate:o,dateProfile:l,businessHours:this.parseContextBusinessHours(d),eventSources:u,eventUiBases:{},eventStore:(0,r.I)(),renderableEventStore:(0,r.I)(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(d).selectionConfig},p=Object.assign(Object.assign({},d),f);for(let e of n.pluginHooks.reducers)Object.assign(f,e(null,null,p));X(f,d)&&this.emitter.trigger("loading",!0),this.state=f,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:i}=this,s=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),o=this.computeOptionsData(t.optionOverrides,s,t.calendarApi),l=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(n.currentViewType,e),a=this.computeCurrentViewData(l,o,t.optionOverrides,s);t.calendarApi.currentDataManager=this,i.setThisContext(t.calendarApi),i.setOptions(a.options);let c={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(u=a.dateProfileGenerator.build(d)),d=(0,r.J)(d,e),u=function(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i}return e}(u,e,d,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&(0,r.H)(u.currentRange,d)||(d=u.currentRange.start);let h=w(n.eventSources,e,u,c),f=(0,r.K)(n.eventStore,e,h,u,c),p=A(h)&&!a.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:g,selectionConfig:m}=this.buildViewUiProps(c),v=this.buildEventUiBySource(h),b={dynamicOptionOverrides:s,currentViewType:l,currentDate:d,dateProfile:u,eventSources:h,eventStore:f,renderableEventStore:p,selectionConfig:m,eventUiBases:this.buildEventUiBases(p.defs,g,v),businessHours:this.parseContextBusinessHours(c),dateSelection:T(n.dateSelection,e),eventSelection:M(n.eventSelection,e),eventDrag:I(n.eventDrag,e),eventResize:O(n.eventResize,e)},y=Object.assign(Object.assign({},c),b);for(let t of o.pluginHooks.reducers)Object.assign(b,t(n,e,y));let E=X(n,c),S=X(b,c);!E&&S?i.trigger("loading",!0):E&&!S&&i.trigger("loading",!1),this.state=b,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides),o=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),t),l=i.pluginHooks.optionChangeHandlers,a=n&&n.calendarOptions,c=i.calendarOptions;if(a&&a!==c){a.timeZone!==c.timeZone&&(t.eventSources=o.eventSources=function(e,t,n){let r=t?t.activeRange:null;return R(e,k(e,n),r,!0,n)}(o.eventSources,t.dateProfile,o),t.eventStore=o.eventStore=(0,r.L)(o.eventStore,n.dateEnv,o.dateEnv),t.renderableEventStore=o.renderableEventStore=(0,r.L)(o.renderableEventStore,n.dateEnv,o.dateEnv));for(let e in l)-1===this.optionsForHandling.indexOf(e)&&a[e]===c[e]||l[e](c[e],o)}this.optionsForHandling=[],e.onData&&e.onData(o)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o,extra:l}=this.processRawCalendarOptions(e,t);$(l);let a=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),d=this.buildTheme(r,i),u=this.parseToolbars(r,this.stableOptionOverrides,d,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:a,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:i}=(0,r.M)([r.e,e,t]),s=this.organizeRawLocales(n),o=s.map,l=this.buildLocale(i||s.defaultCode,o).options,a=this.buildPluginHooks(e.plugins||[],L),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r.N),r.O),r.P),a.listenerRefiners),a.optionRefiners),d={},u=(0,r.M)([r.e,l,e,t]),h={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,g=!1;for(let e in u)-1===this.optionsForRefining.indexOf(e)&&(u[e]===f[e]||r.Q[e]&&e in f&&r.Q[e](f[e],u[e]))?h[e]=p[e]:c[e]?(h[e]=c[e](u[e]),g=!0):d[e]=f[e];return g&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:s,localeDefaults:l,extra:d}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:o}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);return $(o),{viewSpec:i,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,i,s){let o=(0,r.M)([r.e,e.optionDefaults,n,i,e.optionOverrides,s]),l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r.N),r.O),r.P),r.R),t.listenerRefiners),t.optionRefiners),a={},c=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,u=!1,h={};for(let e in o)o[e]===c[e]||r.Q[e]&&r.Q[e](o[e],c[e])?a[e]=d[e]:(o[e]===this.currentCalendarOptionsInput[e]||r.Q[e]&&r.Q[e](o[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(a[e]=this.currentCalendarOptionsRefined[e]):l[e]?a[e]=l[e](o[e]):h[e]=o[e],u=!0);return u&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function G(e,t,n,i,s,o,l,a){let d=c(t||l.defaultCode,l.map);return new r.S({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:d,weekNumberCalculation:n,firstDay:i,weekText:s,cmdFormatter:o.cmdFormatter,defaultSeparator:a})}function V(e,t){return new(t.themeClasses[e.themeSystem]||p)(e)}function F(e){return new(e.dateProfileGeneratorClass||r.U)(e)}function Y(e,t,n){return new B(e,t,n)}function q(e){return(0,r.a)(e,(e=>e.ui))}function Q(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function Z(e){let{options:t}=e;return{eventUiSingleBase:(0,r.W)({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:(0,r.W)({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function X(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function K(e){return(0,r.X)(e.options.businessHours,e)}function $(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class J extends r.B{render(){let e=this.props.widgetGroups.map((e=>this.renderWidgetGroup(e)));return(0,i.kv)("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],s=!0;for(let o of e){let{buttonName:e,buttonClick:l,buttonText:a,buttonIcon:c,buttonHint:d}=o;if("title"===e)s=!1,r.push((0,i.kv)("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let s=e===t.activeButton,o=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,u=[`fc-${e}-button`,n.getClass("button")];s&&u.push(n.getClass("buttonActive")),r.push((0,i.kv)("button",{type:"button",title:"function"==typeof d?d(t.navUnit):d,disabled:o,"aria-pressed":s,className:u.join(" "),onClick:l},a||(c?(0,i.kv)("span",{className:c,role:"img"}):"")))}}if(r.length>1){let e=s&&n.getClass("buttonGroup")||"";return(0,i.kv)("div",{className:e},...r)}return r[0]}}class ee extends r.B{render(){let e,t,{model:n,extraClassName:r}=this.props,s=!1,o=n.sectionWidgets,l=o.center;o.left?(s=!0,e=o.left):e=o.start,o.right?(s=!0,t=o.right):t=o.end;let a=[r||"","fc-toolbar",s?"fc-toolbar-ltr":""];return(0,i.kv)("div",{className:a.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",l||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return(0,i.kv)(J,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class te extends r.B{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,(0,r.Y)(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",o="";return n?null!==t.availableWidth?s=t.availableWidth/n:o=1/n*100+"%":s=e.height||"",(0,i.kv)("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:s,paddingBottom:o}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class ne extends r.Z{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:i}=n,s=(0,r._)(t);if(s&&n.isValidSegDownEl(e.target)){let o=(0,r.$)(e.target,".fc-event-forced-url"),l=o?o.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new r.a0(n.context,s.eventRange.def,s.eventRange.instance),jsEvent:e,view:i.viewApi}),l&&!e.defaultPrevented&&(window.location.href=l)}},this.destroy=(0,r.a1)(e.el,"click",".fc-event",this.handleSegClick)}}class re extends r.Z{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{(0,r._)(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=(0,r.a2)(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:i}=this,{context:s}=i,o=(0,r._)(n);t&&!i.isValidSegDownEl(t.target)||s.emitter.trigger(e,{el:n,event:new r.a0(s,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:s.viewApi})}}class ie extends r.a3{constructor(){super(...arguments),this.buildViewContext=(0,r.z)(r.a4),this.buildViewPropTransformers=(0,r.z)(oe),this.buildToolbarProps=(0,r.z)(se),this.headerRef=(0,i.Yn)(),this.footerRef=(0,i.Yn)(),this.interactionsStore={},this.state={viewLabelId:(0,r.a5)()},this.registerInteractiveComponent=(e,t)=>{let n=(0,r.a6)(e,t),i=[ne,re].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=i,r.a7[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 r.a7[e.uid]},this.resizeRunner=new r.D((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:s}=t,o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,(0,r.a8)(t.options.now,t.dateEnv),t.viewTitle),l=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=s.height?l=!0:null!=s.contentHeight?a=s.contentHeight:e=Math.max(s.aspectRatio,.5);let c=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),d=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return(0,i.kv)(r.V.Provider,{value:c},n.header&&(0,i.kv)(ee,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:d},o)),(0,i.kv)(te,{liquid:l,height:a,aspectRatio:e,labeledById:d},this.renderView(t),this.buildAppendContent()),n.footer&&(0,i.kv)(ee,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);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(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map((t=>t(e)));return(0,i.kv)(i.ae,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of s)Object.assign(r,t.transform(r,e));let o=n.component;return(0,i.kv)(o,Object.assign({},r))}}function se(e,t,n,i,s,o){let l=n.build(s,void 0,!1),a=n.buildPrev(t,i,!1),c=n.buildNext(t,i,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:l.isValid&&!(0,r.H)(t.currentRange,s),isPrevEnabled:a.isValid,isNextEnabled:c.isValid}}function oe(e){return e.map((e=>new e))}class le extends r.a9{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],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;(0,r.aa)((()=>{(0,i.ai)((0,i.kv)(r.ab,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,s,o)=>(this.setClassNames(t),this.setHeight(n),(0,i.kv)(r.ac.Provider,{value:this.customContentRenderId},(0,i.kv)(ie,Object.assign({isHeightAuto:s,forPrint:o},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,(0,i.ai)(null,this.el),this.setClassNames([]),this.setHeight(""))},(0,r.ad)(e),this.el=e,this.renderRunner=new r.D(this.handleRenderRequest),new z({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){(0,r.aa)((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!(0,r.i)(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){(0,r.ae)(this.el,"height",e)}}},25756:(e,t,n)=>{"use strict";n.d(t,{$:()=>p,A:()=>_e,B:()=>Rt,C:()=>Ot,D:()=>h,E:()=>lt,F:()=>kn,G:()=>Qt,H:()=>Gt,I:()=>un,J:()=>qt,K:()=>An,L:()=>Rn,M:()=>$e,N:()=>Ve,O:()=>Ye,P:()=>qe,Q:()=>Qe,R:()=>Ke,S:()=>vt,T:()=>bt,U:()=>Xt,V:()=>At,W:()=>vn,X:()=>Tn,Y:()=>_t,Z:()=>hr,_:()=>Gn,a:()=>it,a$:()=>kr,a0:()=>Un,a1:()=>D,a2:()=>R,a3:()=>Dt,a4:()=>Ct,a5:()=>A,a6:()=>fr,a7:()=>gr,a8:()=>Zt,a9:()=>mr,aA:()=>Yt,aB:()=>le,aC:()=>ke,aD:()=>xe,aE:()=>br,aF:()=>vr,aG:()=>Er,aH:()=>Sr,aI:()=>wr,aJ:()=>yr,aK:()=>dt,aL:()=>ht,aM:()=>m,aN:()=>v,aO:()=>f,aP:()=>y,aR:()=>S,aS:()=>pn,aT:()=>dr,aU:()=>hn,aV:()=>dn,aX:()=>bn,aY:()=>Cr,aZ:()=>_r,a_:()=>Rr,aa:()=>yt,ab:()=>ur,ac:()=>It,ad:()=>a,ae:()=>E,ai:()=>Je,am:()=>G,an:()=>Y,ao:()=>L,ap:()=>W,aq:()=>z,ar:()=>P,as:()=>H,at:()=>B,au:()=>U,av:()=>F,aw:()=>N,ax:()=>O,ay:()=>Ft,b:()=>Ht,b0:()=>Mr,b2:()=>k,b3:()=>Ur,b4:()=>Br,b5:()=>Wr,b6:()=>Lr,b7:()=>Wt,b8:()=>jt,b9:()=>zt,bA:()=>qr,bE:()=>Xr,bG:()=>pr,bH:()=>ei,bI:()=>ti,bL:()=>ni,bM:()=>si,bN:()=>li,bR:()=>Yn,bS:()=>Kn,bT:()=>Jn,bW:()=>di,bX:()=>Nn,bY:()=>gi,bZ:()=>hi,b_:()=>fi,ba:()=>jr,bb:()=>Gr,bc:()=>Vr,bd:()=>Fr,be:()=>Yr,bf:()=>rr,bg:()=>ue,bm:()=>Se,bn:()=>$,bo:()=>ee,bq:()=>ne,br:()=>re,bs:()=>ie,bt:()=>se,bv:()=>Ce,bw:()=>Ae,c:()=>oe,c0:()=>Ti,c1:()=>ki,c2:()=>Mi,c3:()=>Ii,c4:()=>Ci,c5:()=>Di,c6:()=>Ri,c7:()=>Ai,c8:()=>xi,c9:()=>_i,ca:()=>Oi,cb:()=>Pi,cc:()=>Ni,cd:()=>Si,ce:()=>Pr,cf:()=>wi,cg:()=>Nr,ch:()=>ai,cj:()=>Bi,ck:()=>Li,co:()=>Fi,cp:()=>Gi,cr:()=>Qi,cs:()=>Ki,ct:()=>Pt,cu:()=>Mn,cw:()=>l,cy:()=>ts,d:()=>X,e:()=>Fe,f:()=>st,g:()=>I,h:()=>rt,i:()=>ae,j:()=>wn,k:()=>V,l:()=>ir,m:()=>nt,n:()=>et,o:()=>Lt,p:()=>Sn,q:()=>pe,r:()=>ar,s:()=>J,t:()=>de,u:()=>or,v:()=>ot,w:()=>Wn,x:()=>Ge,y:()=>fe,z:()=>Re});var r=n(64284),i=n(79252);const s=[],o=new Map;function l(e){s.push(e),o.forEach((t=>{d(t,e)}))}function a(e){e.isConnected&&c(e.getRootNode())}function c(e){let t=o.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=function(){void 0===u&&(u=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return u}();n&&(t.nonce=n);const r=e===document?document.head:e,i=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,i)}o.set(e,t),function(e){for(const t of s)d(e,t)}(t)}}function d(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach(((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)}))}let u;"undefined"!=typeof document&&c(document);l(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');class h{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 f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(g(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function g(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function m(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].querySelectorAll(t);for(let e=0;e<i.length;e+=1)r.push(i[e])}return r}function v(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].children;for(let e=0;e<i.length;e+=1){let n=i[e];t&&!g(n,t)||r.push(n)}}return r}const b=/(top|left|right|bottom|width|height)$/i;function y(e,t){for(let n in t)E(e,n,t[n])}function E(e,t,n){null==n?e.style[t]="":"number"==typeof n&&b.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function S(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 w=0;function A(){return w+=1,"fc-dom-"+w}function C(e){e.preventDefault()}function D(e,t,n,r){let i=function(e,t){return n=>{let r=p(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function R(e,t,n,r){let i;return D(e,"mouseover",t,((e,t)=>{if(t!==i){i=t,n(e,t);let s=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",s)};t.addEventListener("mouseleave",s)}}))}const _=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function k(e,t){let n=r=>{t(r),_.forEach((t=>{e.removeEventListener(t,n)}))};_.forEach((t=>{e.addEventListener(t,n)}))}function x(e){return Object.assign({onClick:e},T(e))}function T(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let M=0;function I(){return M+=1,String(M)}function O(){document.body.classList.add("fc-not-allowed")}function N(){document.body.classList.remove("fc-not-allowed")}function P(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",C)}function H(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",C)}function B(e){e.addEventListener("contextmenu",C)}function U(e){e.removeEventListener("contextmenu",C)}function L(e){let t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)n=i[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 W(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=j(e,t,n[r]),i)return i;return 0}function j(e,t,n){return n.func?n.func(e,t):z(e[n.field],t[n.field])*(n.order||1)}function z(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 G(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function V(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function F(e,t){return e-t}function Y(e){return e%1==0}function q(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const Q=["years","months","days","milliseconds"],Z=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function X(e,t){return"string"==typeof e?function(e){let t=Z.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?K(e):"number"==typeof e?K({[t||"milliseconds"]:e}):null}function K(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 $(e){return e.years||e.months||e.milliseconds?0:e.days}function J(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function ee(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function te(e){return ie(e)/864e5}function ne(e){return ie(e)/6e4}function re(e){return ie(e)/1e3}function ie(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function se(e,t){let n=null;for(let r=0;r<Q.length;r+=1){let i=Q[r];if(t[i]){let r=e[i]/t[i];if(!Y(r)||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n}function oe(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 le(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n}function ae(e,t,n){if(e===t)return!0;let r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const ce=["sun","mon","tue","wed","thu","fri","sat"];function de(e,t){let n=ye(e);return n[2]+=t,Ee(n)}function ue(e,t){let n=ye(e);return n[6]+=t,Ee(n)}function he(e,t){return(t.valueOf()-e.valueOf())/864e5}function fe(e,t){return we(e)===we(t)?Math.round(he(e,t)):null}function pe(e){return Ee([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function ge(e,t,n,r){let i=Ee([t,0,1+me(t,n,r)]),s=pe(e),o=Math.round(he(i,s));return Math.floor(o/7)+1}function me(e,t,n){let r=7+t-n;return-((7+Ee([e,0,r]).getUTCDay()-t)%7)+r-1}function ve(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function be(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 ye(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Ee(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Se(e){return!isNaN(e.valueOf())}function we(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Ae(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",De(t,!0)))),r}function Ce(e){return e.toISOString().replace(/T.*$/,"")}function De(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+G(i,2)}:${G(s,2)}`:`GMT${n}${i}${s?`:${G(s,2)}`:""}`}function Re(e,t,n){let r,i;return function(...s){if(r){if(!ae(r,s)){n&&n(i);let r=e.apply(this,s);t&&t(r,i)||(i=r)}}else i=e.apply(this,s);return r=s,i}}function _e(e,t,n){let r,i;return s=>{if(r){if(!lt(r,s)){n&&n(i);let r=e.call(this,s);t&&t(r,i)||(i=r)}}else i=e.call(this,s);return r=s,i}}function ke(e,t,n){let r=[],i=[];return s=>{let o=r.length,l=s.length,a=0;for(;a<o;a+=1)if(s[a]){if(!ae(r[a],s[a])){n&&n(i[a]);let r=e.apply(this,s[a]);t&&t(r,i[a])||(i[a]=r)}}else n&&n(i[a]);for(;a<l;a+=1)i[a]=e.apply(this,s[a]);return r=s,i.splice(l),i}}function xe(e,t,n){let r={},i={};return s=>{let o={};for(let l in s)if(i[l])if(ae(r[l],s[l]))o[l]=i[l];else{n&&n(i[l]);let r=e.apply(this,s[l]);o[l]=t&&t(r,i[l])?i[l]:r}else o[l]=e.apply(this,s[l]);return r=s,i=o,o}}const Te={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Me={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ie=/\s*([ap])\.?m\.?/i,Oe=/,/g,Ne=/\s+/g,Pe=/\u200e/g,He=/UTC|GMT/;class Be{constructor(e){let t={},n={},r=0;for(let i in e)i in Te?(n[i]=e[i],r=Math.max(Te[i],r)):(t[i]=e[i],i in Me&&(r=Math.max(Me[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Re(Ue)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=this,o=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(we(e)!==we(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let l=o;!(l>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(l=1);let a=this.format(e,n),c=this.format(t,n);if(a===c)return a;let d=Ue(function(e,t){let n={};for(let r in e)(!(r in Me)||Me[r]<=t)&&(n[r]=e[r]);return n}(i,l),s,n),u=d(e),h=d(t),f=function(e,t,n,r){let i=0;for(;i<e.length;){let s=e.indexOf(t,i);if(-1===s)break;let o=e.substr(0,s);i=s+t.length;let l=e.substr(i),a=0;for(;a<n.length;){let e=n.indexOf(r,a);if(-1===e)break;let t=n.substr(0,e);a=e+r.length;let i=n.substr(a);if(o===t&&l===i)return{before:o,after:l}}}return null}(a,u,c,h),p=s.separator||r||n.defaultSeparator||"";return f?f.before+u+p+h+f.after:a+p+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Ue(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>De(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,i){let s=[];"long"===i?s.push(n):"short"!==i&&"narrow"!==i||s.push(t);"long"!==i&&"short"!==i||s.push(" ");s.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&s.reverse();return s.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,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,i=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 s=>{let o,{marker:l}=s;return o=r&&!l.getUTCMinutes()?r:i,function(e,t,n,r,i){e=e.replace(Pe,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace(He,(()=>(n=!0,t))),n||(e+=` ${t}`);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":De(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Oe,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Ie,"").trim():"narrow"===r.meridiem?e=e.replace(Ie,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(Ie,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(Ie,(e=>e.toLocaleLowerCase())));return e=e.replace(Ne," "),e=e.trim(),e}(o.format(l),s,e,t,n)}}(e,t,n)}function Le(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 We(e,t,n,r){let i=Le(e,n.calendarSystem);return{date:i,start:i,end:t?Le(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class je{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,We(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,We(e,t,n,r))}}class ze{constructor(e){this.func=e}format(e,t,n){return this.func(We(e,null,t,n))}formatRange(e,t,n,r){return this.func(We(e,t,n,r))}}function Ge(e){return"object"==typeof e&&e?new Be(e):"string"==typeof e?new je(e):"function"==typeof e?new ze(e):null}const Ve={navLinkDayClick:et,navLinkWeekClick:et,duration:X,bootstrapFontAwesome:et,buttonIcons:et,customButtons:et,defaultAllDayEventDuration:X,defaultTimedEventDuration:X,nextDayThreshold:X,scrollTime:X,scrollTimeReset:Boolean,slotMinTime:X,slotMaxTime:X,dayPopoverFormat:Ge,slotDuration:X,snapDuration:X,headerToolbar:et,footerToolbar:et,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ge,dayHeaderClassNames:et,dayHeaderContent:et,dayHeaderDidMount:et,dayHeaderWillUnmount:et,dayCellClassNames:et,dayCellContent:et,dayCellDidMount:et,dayCellWillUnmount:et,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:et,weekNumbers:Boolean,weekNumberClassNames:et,weekNumberContent:et,weekNumberDidMount:et,weekNumberWillUnmount:et,editable:Boolean,viewClassNames:et,viewDidMount:et,viewWillUnmount:et,nowIndicator:Boolean,nowIndicatorClassNames:et,nowIndicatorContent:et,nowIndicatorDidMount:et,nowIndicatorWillUnmount:et,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:et,locale:et,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:et,eventOrder:L,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:et,contentHeight:et,direction:String,weekNumberFormat:Ge,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:et,initialDate:et,now:et,eventDataTransform:et,stickyHeaderDates:et,stickyFooterScrollbar:et,viewHeight:et,defaultAllDay:Boolean,eventSourceFailure:et,eventSourceSuccess:et,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:et,eventConstraint:et,eventAllow:et,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:et,eventContent:et,eventDidMount:et,eventWillUnmount:et,selectConstraint:et,selectOverlap:et,selectAllow:et,droppable:Boolean,unselectCancel:String,slotLabelFormat:et,slotLaneClassNames:et,slotLaneContent:et,slotLaneDidMount:et,slotLaneWillUnmount:et,slotLabelClassNames:et,slotLabelContent:et,slotLabelDidMount:et,slotLabelWillUnmount:et,dayMaxEvents:et,dayMaxEventRows:et,dayMinWidth:Number,slotLabelInterval:X,allDayText:String,allDayClassNames:et,allDayContent:et,allDayDidMount:et,allDayWillUnmount:et,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ge,rerenderDelay:Number,moreLinkText:et,moreLinkHint:et,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:et,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:X,hiddenDays:et,fixedWeekCount:Boolean,validRange:et,visibleRange:et,titleFormat:et,eventInteractive:Boolean,noEventsText:String,viewHint:et,navLinkHint:et,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:et,moreLinkClassNames:et,moreLinkContent:et,moreLinkDidMount:et,moreLinkWillUnmount:et,monthStartFormat:Ge,handleCustomRendering:et,customRenderingMetaMap:et,customRenderingReplaces:Boolean},Fe={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},Ye={datesSet:et,eventsSet:et,eventAdd:et,eventChange:et,eventRemove:et,windowResize:et,eventClick:et,eventMouseEnter:et,eventMouseLeave:et,select:et,unselect:et,loading:et,_unmount:et,_beforeprint:et,_afterprint:et,_noEventDrop:et,_noEventResize:et,_resize:et,_scrollRequest:et},qe={buttonText:et,buttonHints:et,views:et,plugins:et,initialEvents:et,events:et,eventSources:et},Qe={headerToolbar:Ze,footerToolbar:Ze,buttonText:Ze,buttonHints:Ze,buttonIcons:Ze,dateIncrement:Ze,plugins:Xe,events:Xe,eventSources:Xe,resources:Xe};function Ze(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?lt(e,t):e===t}function Xe(e,t){return Array.isArray(e)&&Array.isArray(t)?ae(e,t):e===t}const Ke={type:String,component:et,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:et,usesMinMaxTime:Boolean,classNames:et,content:et,didMount:et,willUnmount:et};function $e(e){return nt(e,Qe)}function Je(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 et(e){return e}const{hasOwnProperty:tt}=Object.prototype;function nt(e,t){let n={};if(t)for(let r in t)if(t[r]===Ze){let t=[];for(let i=e.length-1;i>=0;i-=1){let s=e[i][r];if("object"==typeof s&&s)t.unshift(s);else if(void 0!==s){n[r]=s;break}}t.length&&(n[r]=nt(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function rt(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function it(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function st(e){let t={};for(let n of e)t[n]=!0;return t}function ot(e){let t=[];for(let n in e)t.push(e[n]);return t}function lt(e,t){if(e===t)return!0;for(let n in e)if(tt.call(e,n)&&!(n in t))return!1;for(let n in t)if(tt.call(t,n)&&e[n]!==t[n])return!1;return!0}const at=/^on[A-Z]/;function ct(e,t){let n=[];for(let r in e)tt.call(e,r)&&(r in t||n.push(r));for(let r in t)tt.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function dt(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!ut(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function ut(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function ht(e,t=0,n,r=1){let i=[];null==n&&(n=Object.keys(e).length);for(let s=t;s<n;s+=r){let t=e[s];void 0!==t&&i.push(t)}return i}let ft={};var pt,gt;pt="gregory",gt=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Ee(e)}markerToArray(e){return ye(e)}},ft[pt]=gt;const mt=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class vt{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new ft[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=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.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()):Ee(ve(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=Ee(e)),null!==t&&Se(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=mt.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(Se(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}(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 we(e)===we(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 we(e)===we(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=function(e,t){let n=fe(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:(n=fe(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),Y(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),Y(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),Y(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/(te(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return te(e)/30}(n):n.days&&(r=fe(e,t),null!==r)?r/te(n):(t.valueOf()-e.valueOf())/ie(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?pe(e):"hour"===t?function(e){return Ee([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return Ee([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return Ee([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(),i=ge(e,r,t,n);if(i<1)return ge(e,r-1,t,n);let s=ge(e,r+1,t,n);return s>=1?Math.min(i,s):i}(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=ue(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)),Ae(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Ee(ve(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Ee(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-be(ye(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ye(e)):null}toDate(e,t){return"local"===this.timeZone?be(ye(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ye(e))*60):new Date(e.valueOf()-(t||0))}}class bt{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function yt(e){e();let t=r.s1.debounceRendering,n=[];for(r.s1.debounceRendering=function(e){n.push(e)},r.ai(r.kv(Et,{}),document.createElement("div"));n.length;)n.shift()();r.s1.debounceRendering=t}bt.prototype.classes={},bt.prototype.iconClasses={},bt.prototype.baseIconClass="",bt.prototype.iconOverridePrefix="";class Et extends r.Yl{render(){return r.kv("div",{})}componentDidMount(){this.setState({})}}function St(e){let t=r.GY(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class wt{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const At=St({});function Ct(e,t,n,r,i,s,o,l,a,c,d,u,h){return{dateEnv:i,options:n,pluginHooks:o,emitter:c,dispatch:l,getCurrentData:a,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder:e=>new wt(e,c,X(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:u,unregisterInteractiveComponent:h}}class Dt extends r.Yl{shouldComponentUpdate(e,t){return this.debug&&console.log(ct(e,this.props),ct(t,this.state)),!dt(this.props,e,this.propEquality)||!dt(this.state,t,this.stateEquality)}safeSetState(e){dt(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Dt.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Dt.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Dt.contextType=At,Dt.prototype.propEquality={},Dt.prototype.stateEquality={};class Rt extends Dt{}function _t(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Rt.contextType=At;class kt extends Rt{constructor(){super(...arguments),this.id=I(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&xt(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&_t(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:i,defaultGenerator:s,renderProps:o}=e,l=Tt(e,[],this.handleEl);let a,c,d=!1,u=[];if(null!=i){const e="function"==typeof i?i(o,r.kv):i;if(!0===e)d=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?l.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?u=Array.prototype.slice.call(e.domNodes):(t?(0,r.ur)(e):"function"!=typeof e)?a=e:c=e}}else d=!xt(e.generatorName,n);return d&&s&&(a=s(o)),this.queuedDomNodes=u,this.currentGeneratorMeta=c,(0,r.kv)(e.elTag,l,a)}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:i,customRenderingMetaMap:s}=r.options;if(i){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==s?void 0:s[n.generatorName];r&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(Mt)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!ae(e,t)){t.forEach(f);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function xt(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Tt(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function Mt(e){return Boolean(e)}kt.addPropsEquality({elClasses:ae,elStyle:lt,elAttrs:function(e,t){const n=ct(e,t);for(let e of n)if(!at.test(e))return!1;return!0},renderProps:lt});const It=St(0);class Ot extends r.Yl{constructor(){super(...arguments),this.InnerContent=Nt.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(_t(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=Tt(e,t,this.handleEl),i=e.children(this.InnerContent,e.renderProps,n);return e.elTag?(0,r.kv)(e.elTag,n,i):i}return(0,r.kv)(kt,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?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 Nt(e,t){const n=e.props;return(0,r.kv)(kt,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}Ot.contextType=It;class Pt extends Rt{render(){let{props:e,context:t}=this,{options:n}=t,i={view:t.viewApi};return(0,r.kv)(Ot,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Ht(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function Ht(e){return[`fc-${e.type}-view`,"fc-view"]}function Bt(e,t){let n,r,i=[],{start:s}=t;for(e.sort(Ut),n=0;n<e.length;n+=1)r=e[n],r.start>s&&i.push({start:s,end:r.start}),r.end>s&&(s=r.end);return s<t.end&&i.push({start:s,end:t.end}),i}function Ut(e,t){return e.start.valueOf()-t.start.valueOf()}function Lt(e,t){let{start:n,end:r}=e,i=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)&&(i={start:n,end:r}),i}function Wt(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 jt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function zt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Gt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Vt(e){let t=Math.floor(he(e.start,e.end))||1,n=pe(e.start);return{start:n,end:de(n,t)}}function Ft(e,t=X(0)){let n=null,r=null;if(e.end){r=pe(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=ie(t)&&(r=de(r,1))}return e.start&&(n=pe(e.start),r&&r<=n&&(r=de(n,1))),{start:n,end:r}}function Yt(e,t,n,r){return"year"===r?X(n.diffWholeYears(e,t),"year"):"month"===r?X(n.diffWholeMonths(e,t),"month"):function(e,t){let n=pe(e),r=pe(t);return{years:0,months:0,days:Math.round(he(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}function qt(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}function Qt(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):Zt(e.now,t)}function Zt(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class Xt{constructor(e){this.props=e,this.nowDate=Zt(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,s,o,l,a,{props:c}=this;var d,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(u=r).start&&d<u.start?u.start:null!=u.end&&d>=u.end?new Date(u.end.valueOf()-1):d),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),o=this.trimHiddenDays(o),l=o,c.showNonCurrentDates||(l=Lt(l,i.range)),l=this.adjustActiveRange(l),l=Lt(l,r),a=jt(i.range,r),Gt(o,e)||(e=o.start),{currentDate:e,validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:l,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:a,dateIncrement:this.buildDateIncrement(i.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,i=null,s=null,o=null;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=oe(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return X({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(te(r)<0&&(s=pe(s),s=t.add(s,r)),te(i)>1&&(o=pe(o),o=de(o,-1),o=t.add(o,i))),{start:s,end:o}}buildRangeFromDuration(e,t,n,r){let i,s,o,{dateEnv:l,dateAlignment:a}=this.props;if(!a){let{dateIncrement:e}=this.props;a=e&&ie(e)<ie(n)?oe(e).unit:r}function c(){i=l.startOf(e,a),s=l.add(i,n),o={start:i,end:s}}return te(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=pe(i)),c(),this.trimHiddenDays(o)||(e=this.skipHiddenDays(e,t),c()),o}buildRangeFromDayCount(e,t,n){let r,{dateEnv:i,dateAlignment:s}=this.props,o=0,l=e;s&&(l=i.startOf(l,s)),l=pe(l),l=this.skipHiddenDays(l,t),r=l;do{r=de(r,1),this.isHiddenDay(r)||(o+=1)}while(o<n);return{start:l,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?X(1,t):e||X({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=Ft(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=de(e,t);return e}}function Kt(e,t,n,r){return{instanceId:I(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function $t(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:l}=e;l=rt(l,(e=>!o[e.defId].recurringDef));for(let e in o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;o||(o=n.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let a=Jt(n,o,t,r,i.recurringTypes);for(let t of a){let n=Kt(e,{start:t,end:r.add(t,o)});l[n.instanceId]=n}}}return{defs:o,instances:l}}function Jt(e,t,n,r,i){let s=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(pe)),s}const en={id:String,groupId:String,title:String,url:String,interactive:Boolean},tn={start:et,end:et,date:et,allDay:Boolean},nn=Object.assign(Object.assign(Object.assign({},en),tn),{extendedProps:et});function rn(e,t,n,r,i=on(n),s,o){let{refined:l,extra:a}=sn(e,n,i),c=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),d=function(e,t,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(e,n);if(s){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=s.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}(l,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=ln(l,a,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,s);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let u=function(e,t,n,r){let i,s,{allDay:o}=e,l=null,a=!1,c=null,d=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(d),i)l=i.marker;else if(!r)return null;null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end));null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified));o&&l&&(l=pe(l));s&&(c=s.marker,o&&(c=pe(c)),l&&c<=l&&(c=null));c?a=!0:r||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:o,hasEnd:a,range:{start:l,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(l,c,n,r);if(u){let e=ln(l,a,t?t.sourceId:"",u.allDay,u.hasEnd,n,s),r=Kt(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function sn(e,t,n=on(t)){return Je(e,n)}function on(e){return Object.assign(Object.assign(Object.assign({},gn),nn),e.pluginHooks.eventRefiners)}function ln(e,t,n,r,i,s,o){let l={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||I(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:vn(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of s.pluginHooks.eventDefMemberAdders)Object.assign(l,t(e));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function an(e,t,n,r,i,s){let o={defs:{},instances:{}},l=on(n);for(let a of e){let e=rn(a,t,n,r,l,i,s);e&&cn(e,o)}return o}function cn(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function dn(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=fn(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 un(){return{defs:{},instances:{}}}function hn(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function fn(e,t){let n=rt(e.defs,t),r=rt(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function pn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const gn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:et,overlap:et,allow:et,className:pn,classNames:pn,color:String,backgroundColor:String,borderColor:String,textColor:String},mn={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function vn(e,t){let n=function(e,t){return Array.isArray(e)?an(e,null,t,!0):"object"==typeof e&&e?an([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!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function bn(e){return e.reduce(yn,mn)}function yn(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const En={id:String,defaultAllDay:Boolean,url:String,format:String,events:et,eventDataTransform:et,success:et,failure:et};function Sn(e,t,n=wn(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:i,extra:s}=Je(r,n),o=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}(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:I(),sourceDefId:o.sourceDefId,meta:o.meta,ui:vn(i,t),extendedProps:s}}return null}function wn(e){return Object.assign(Object.assign(Object.assign({},gn),En),e.pluginHooks.eventSourceRefiners)}function An(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=an(Cn(i,t,s),t,s);return r&&(n=$t(n,r,s)),hn(_n(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return function(e,t,n,r,i){const{defIdMap:s,instanceIdMap:o}=function(e){const{defs:t,instances:n}=e,r={},i={};for(let e in t){const n=t[e],{publicId:i}=n;i&&(r[i]=e)}for(let e in n){const r=t[n[e].defId],{publicId:s}=r;s&&(i[s]=e)}return{defIdMap:r,instanceIdMap:i}}(e);let l=an(Cn(n,t,i),t,i,!1,s,o);return $t(l,r,i)}(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=$t(t,n,r));return hn(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return hn(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?$t(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,i={},s={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(s[e]=r[e]);return{defs:i,instances:s}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return _n(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return fn(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Cn(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=Dn(e,i)),r&&(e=Dn(e,r)),e}function Dn(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 Rn(e,t,n){let{defs:r}=e,i=it(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:i}}function _n(e,t){return fn(e,(e=>e.sourceId!==t))}class kn{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],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const xn={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Tn(e,t){return an(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({},xn),e))),t}(e),null,t)}function Mn(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},In(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function In(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,i=t.dateEnv,Object.assign(Object.assign({},sr(r.range,i,r.allDay)),{allDay:r.allDay}))),n}function On(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=pe(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Nn(e,t,n,r){let i=Vn(e.defs,t),s={defs:{},instances:{}};for(let t in e.defs){let o=e.defs[t];s.defs[t]=Pn(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],l=s.defs[o.defId];s.instances[t]=Hn(o,l,i[o.defId],n,r)}return s}function Pn(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Hn(e,t,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&!0===r.standardProps.allDay,l=r.standardProps&&!1===r.standardProps.hasEnd,a=Object.assign({},e);return o&&(a.range=Vt(a.range)),r.datesDelta&&n.startEditable&&(a.range={start:s.add(a.range.start,r.datesDelta),end:s.add(a.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(a.range={start:s.add(a.range.start,r.startDelta),end:a.range.end}),r.endDelta&&n.durationEditable&&(a.range={start:a.range.start,end:s.add(a.range.end,r.endDelta)}),l&&(a.range={start:a.range.start,end:On(t.allDay,a.range.start,i)}),t.allDay&&(a.range={start:pe(a.range.start),end:pe(a.range.end)}),a.range.end<a.range.start&&(a.range.end=On(t.allDay,a.range.start,i)),a}class Bn{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 Un{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in tn)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=en[e](t),this.mutate({standardProps:{publicId:t}});else if(e in en)t=en[e](t),this.mutate({standardProps:{[e]:t}});else if(e in gn){let n=gn[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=Yt(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=Yt(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:i}=this._context,s={allDay:n.allDay},o=i.createMarker(e);var l,a;if(o&&((null==t||(r=i.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=Vt(e));let t=Yt(e.start,o,i,n.granularity);if(r){let o=Yt(e.end,r,i,n.granularity);a=o,(l=t).years===a.years&&l.months===a.months&&l.days===a.days&&l.milliseconds===a.milliseconds?this.mutate({datesDelta:t,standardProps:s}):this.mutate({startDelta:t,endDelta:o,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:t,standardProps:s})}}moveStart(e){let t=X(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=X(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=X(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=Ge(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})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),s=dn(i,t.instanceId);s=Nn(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let o=new Un(r,n,t);this._def=s.defs[n.defId],this._instance=s.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:s}),r.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Wn(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=Ln(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 Bn(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,s={allDay:t.allDay};return t.title&&(s.title=t.title),r&&(s.start=r),i&&(s.end=i),t.publicId&&(s.id=t.publicId),t.groupId&&(s.groupId=t.groupId),t.url&&(s.url=t.url),n.display&&"auto"!==n.display&&(s.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?s.color=n.backgroundColor:(n.backgroundColor&&(s.backgroundColor=n.backgroundColor),n.borderColor&&(s.borderColor=n.borderColor)),n.textColor&&(s.textColor=n.textColor),n.classNames.length&&(s.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(s,t.extendedProps):s.extendedProps=t.extendedProps),s}toJSON(){return this.toPlainObject()}}function Ln(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Wn(e,t,n){let{defs:r,instances:i}=e,s=[],o=n?n.instanceId:"";for(let e in i){let n=i[e],l=r[n.defId];n.instanceId!==o&&s.push(new Un(t,l,n))}return s}function jn(e,t,n,r){let i={},s={},o={},l=[],a=[],c=Vn(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(i[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):s[t]=[])}for(let t in e.instances){let o=e.instances[t],d=e.defs[o.defId],u=c[d.defId],h=o.range,f=!d.allDay&&r?Ft(h,r):h,p=Lt(f,n);p&&("inverse-background"===u.display?d.groupId?i[d.groupId].push(p):s[o.defId].push(p):"none"!==u.display&&("background"===u.display?l:a).push({def:d,ui:u,instance:o,range:p,isStart:f.start&&f.start.valueOf()===p.start.valueOf(),isEnd:f.end&&f.end.valueOf()===p.end.valueOf()}))}for(let e in i){let t=Bt(i[e],n);for(let n of t){let t=o[e],r=c[t.defId];l.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in s){let r=Bt(s[t],n);for(let n of r)l.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:l,fg:a}}function zn(e,t){e.fcSeg=t}function Gn(e){return e.fcSeg||e.parentNode.fcSeg||null}function Vn(e,t){return it(e,(e=>Fn(e,t)))}function Fn(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),bn(n)}function Yn(e,t){let n=e.map(qn);return n.sort(((e,n)=>W(e,n,t))),n.map((e=>e._seg))}function qn(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:e})}function Qn(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e.eventRange,o=s.startEditable;for(let e of r)o=e(o,i,s,t);return o}function Zn(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Xn(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Kn(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Gt(t,r.start)}}function $n(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Jn(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function er(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:o}=t,{eventInteractive:l}=o;return null==l&&(l=n.interactive,null==l&&(l=Boolean(s.hasHandlers("eventClick")))),l?T((e=>{s.trigger("eventClick",{el:e.target,event:new Un(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const tr={start:et,end:et,allDay:Boolean};function nr(e,t,n){let r=function(e,t){let{refined:n,extra:r}=Je(e,tr),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified));return Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function rr(e,t){return Wt(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 ir(e,t,n){return Object.assign(Object.assign({},sr(e,t,n)),{timeZone:t.timeZone})}function sr(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 or(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},s=function(e){r||(r=!0,n(e))},o=e(i,s);o&&"function"==typeof o.then&&o.then(i,s)}class lr extends Error{constructor(e,t){super(e),this.response=t}}function ar(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 lr("Failure parsing JSON",e)}));throw new lr("Request failed",e)}))}let cr;function dr(){return null==cr&&(cr=function(){if("undefined"==typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),cr}class ur extends Rt{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,s=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return dr()||s.push("fc-liquid-hack"),e.children(s,i,r,n)}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 hr{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function fr(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function pr(e){return{[e.component.uid]:e}}const gr={};class mr{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager: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:i}=this.getCurrentData(),s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let e in r)s.push(e);for(t=0;t<s.length;t+=1)if(n=r[s[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:Zt(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=X(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),Ge(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),Ge(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(),i=nr(n,r.dateEnv,X({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Mn(i,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 Un){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:cn({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof Bn)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=ot(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 i=rn(e,n,r,!1);if(i){let e=new Un(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:cn(i)}),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:Ln(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new Un(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new Un(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return Wn(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 Bn(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 Bn(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Bn)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=Sn(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Bn(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=X(e);t&&this.trigger("_scrollRequest",{time:t})}}function vr(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function br(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 yr(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function Er(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Sr(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function wr(e,t){return{left:e.left-t.left,top:e.top-t.top}}const Ar={defs:{},instances:{}};class Cr{constructor(){this.getKeysForEventDefs=Re(this._getKeysForEventDefs),this.splitDateSelection=Re(this._splitDateSpan),this.splitEventStore=Re(this._splitEventStore),this.splitIndividualUi=Re(this._splitIndividualUi),this.splitEventDrag=Re(this._splitInteraction),this.splitEventResize=Re(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),a={};this.eventUiBuilders=it(t,((e,t)=>this.eventUiBuilders[t]||Re(Dr)));for(let n in t){let c=t[n],d=s[n]||Ar,u=this.eventUiBuilders[n];a[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:d,eventUiBases:u(e.eventUiBases[""],c.ui,i[n]),eventSelection:d.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[n]||null,eventResize:l[n]||null}}return a}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return it(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]={defs:{},instances:{}}),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][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),i=this._splitEventStore(e.mutatedEvents,r),s=r=>{t[r]||(t[r]={affectedEvents:n[r]||Ar,mutatedEvents:i[r]||Ar,isEvent:e.isEvent})};for(let e in n)s(e);for(let e in i)s(e)}return t}}function Dr(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":bn(r)};return n&&Object.assign(i,n),i}function Rr(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Gt(r.activeRange,e)),isOther:Boolean(r&&!Gt(r.currentRange,e)),isToday:Boolean(t&&Gt(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function _r(e,t){let n=["fc-day",`fc-day-${ce[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function kr(e,t){let n=["fc-slot",`fc-slot-${ce[e.dow]}`];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}const xr=Ge({year:"numeric",month:"long",day:"numeric"}),Tr=Ge({week:"long"});function Mr(e,t,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=e;let l=i.format(t,"week"===n?Tr:xr);if(s.navLinks){let e=i.toDate(t);const a=e=>{let r="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"==typeof r?r.call(o,i.toDate(t),e):("string"==typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:V(s.navLinkHint,[l,e],l),"data-navlink":""},r?x(a):{onClick:a})}return{"aria-label":l}}let Ir,Or=null;function Nr(){return null===Or&&(Or=function(){let e=document.createElement("div");y(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return f(e),t}()),Or}function Pr(){return Ir||(Ir=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=Hr(e);return document.body.removeChild(e),t}()),Ir}function Hr(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Br(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,l=Hr(e),a=l.y-r-i,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:o,scrollbarBottom:l.x-s-o,scrollbarLeft:0,scrollbarRight:0};return Nr()&&"rtl"===n.direction?c.scrollbarLeft=a:c.scrollbarRight=a,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function Ur(e,t=!1,n){let r=n?e.getBoundingClientRect():Lr(e),i=Br(e,t),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function Lr(e){let t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function Wr(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}class jr{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,i=n.length;for(t=0;t<i;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 zr(this.tops||[],e.tops||[])&&zr(this.bottoms||[],e.bottoms||[])&&zr(this.lefts||[],e.lefts||[])&&zr(this.rights||[],e.rights||[])}}function zr(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 Gr{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 Vr extends Gr{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 Fr extends Gr{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Yr extends Rt{constructor(){super(...arguments),this.uid=I()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!p(e,".fc-event-mirror")}isValidDateDownEl(e){return!(p(e,".fc-event:not(.fc-bg-event)")||p(e,".fc-more-link")||p(e,"a[data-navlink]")||p(e,".fc-popover"))}}class qr{constructor(e=(e=>e.thickness)){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)}splitEntry(e,t,n){let r=0,i=[],s=e.span,o=t.span;return s.start<o.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.start,end:o.start}},i)),s.end>o.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:s.end}},i)),r?(n.push({index:e.index,thickness:e.thickness,span:Kr(o,s)},...i),r):(n.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?($r(r,t.level,t.levelCoord),$r(n,t.level,[e])):$r(n[t.level],t.lateral,e),this.stackCnts[Zr(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,s=t.length,o=0,l=-1,a=-1,c=null,d=0;for(let u=0;u<s;u+=1){let s=t[u];if(!r&&s>=o+this.getEntryThickness(e))break;let h,f=n[u],p=Jr(f,e.span.start,Qr),g=p[0]+p[1];for(;(h=f[g])&&h.span.start<e.span.end;){let e=s+this.getEntryThickness(h);e>o&&(o=e,c=h,l=u,a=g),e===o&&(d=Math.max(d,i[Zr(h)]+1)),g+=1}}let u=0;if(c)for(u=l+1;u<s&&t[u]<o;)u+=1;let h=-1;return u<s&&t[u]===o&&(h=Jr(n[u],e.span.end,Qr)[0]),{touchingLevel:l,touchingLateral:a,touchingEntry:c,stackCnt:d,levelCoord:o,level:u,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let n=e[i],s=t[i];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:s}))}return r}}function Qr(e){return e.span.end}function Zr(e){return e.index+":"+e.span.start}function Xr(e){let t=[];for(let i of e){let e=[],s={span:i.span,entries:[i]};for(let i of t)Kr(i.span,s.span)?s={entries:i.entries.concat(s.entries),span:(n=i.span,r=s.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(i);e.push(s),t=e}var n,r;return t}function Kr(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function $r(e,t,n){e.splice(t,0,n)}function Jr(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),o=n(e[s]);if(t<o)i=s;else{if(!(t>o))return[s,1];r=s+1}}return[r,0]}class ei{constructor(e,t){this.emitter=new kn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ti={};Boolean;function ni(e,t){return Ge(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}const ri="fc-col-header-cell";function ii(e){return e.text}class si extends Rt{render(){let{dateEnv:e,options:t,theme:n,viewApi:i}=this.context,{props:s}=this,{date:o,dateProfile:l}=s,a=Rr(o,s.todayRange,null,l),c=[ri].concat(_r(a,n)),d=e.format(o,s.dayHeaderFormat),u=!a.isDisabled&&s.colCnt>1?Mr(this.context,o):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(o),view:i},s.extraRenderProps),{text:d}),a);return(0,r.kv)(Ot,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":a.isDisabled?void 0:Ce(o)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:ii,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>(0,r.kv)("div",{className:"fc-scrollgrid-sync-inner"},!a.isDisabled&&(0,r.kv)(e,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]}))))}}const oi=Ge({weekday:"long"});class li extends Rt{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:i,options:s}=this.context,o=de(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},a=t.format(o,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:o},l),{view:i}),e.extraRenderProps),{text:a});return(0,r.kv)(Ot,{elTag:"th",elClasses:[ri,..._r(l,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:ii,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},(n=>(0,r.kv)("div",{className:"fc-scrollgrid-sync-inner"},(0,r.kv)(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(o,oi)}}))))}}class ai extends r.Yl{constructor(e,t){super(e,t),this.initialNowDate=Zt(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=ue(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,X(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:ci(r)},nextState:{nowDate:i,todayRange:ci(i)},waitMs:s}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function ci(e){let t=pe(e);return{start:t,end:de(t,1)}}ai.contextType=At;class di{constructor(){this.sliceBusinessHours=Re(this._sliceBusinessHours),this.sliceDateSelection=Re(this._sliceDateSpan),this.sliceEventStore=Re(this._sliceEventStore),this.sliceEventDrag=Re(this._sliceInteraction),this.sliceEventResize=Re(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:s}=e,o=this.sliceEventStore(e.eventStore,s,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,s,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,s,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...i){return this._sliceDateSpan({range:{start:e,end:ue(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore($t(e,ui(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=jn(e,t,ui(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let s=jn(e.mutatedEvents,t,ui(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...s){if(!e)return[];let o=ui(t,Boolean(n)),l=Lt(e.range,o);if(l){let t=function(e,t,n){let r=sn({editable:!1},n),i=ln(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:Fn(i,t),instance:Kt(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:l}),r,i),n=this.sliceRange(e.range,...s);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:de(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 ui(e,t){let n=e.activeRange;return t?n:{start:ue(n.start,e.slotMinTime.milliseconds),end:ue(n.end,e.slotMaxTime.milliseconds-864e5)}}function hi(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!zt(t.validRange,r[e].range))return!1;return pi({eventDrag:e},n)}function fi(e,t,n){return!!zt(t.validRange,e.range)&&pi({dateSelection:e},n)}function pi(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||gi)(r,t)}function gi(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let i=t.getCurrentData(),s=e.eventDrag,o=s.mutatedEvents,l=o.defs,a=o.instances,c=Vn(l,s.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(c=it(c,r));let d=(p=e.eventStore,g=s.affectedEvents.instances,{defs:p.defs,instances:rt(p.instances,(e=>!g[e.instanceId]))}),u=d.defs,h=d.instances,f=Vn(u,e.eventUiBases);var p,g;for(let r in a){let o=a[r],p=o.range,g=c[o.defId],m=l[o.defId];if(!mi(g.constraints,p,d,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,b="function"==typeof v?v:null;for(let e in h){let n=h[e];if(jt(p,n.range)){if(!1===f[n.defId].overlap&&s.isEvent)return!1;if(!1===g.overlap)return!1;if(b&&!b(new Un(t,u[n.defId],n),new Un(t,m,o)))return!1}}let y=i.eventStore;for(let e of g.allows){let i,s=Object.assign(Object.assign({},n),{range:o.range,allDay:m.allDay}),l=y.defs[m.defId],a=y.instances[r];if(i=l?new Un(t,l,a):new Un(t,m),!e(In(s,t),i))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let i=e.eventStore,s=i.defs,o=i.instances,l=e.dateSelection,a=l.range,{selectionConfig:c}=t.getCurrentData();r&&(c=r(c));if(!mi(c.constraints,a,i,e.businessHours,t))return!1;let{selectOverlap:d}=t.options,u="function"==typeof d?d:null;for(let e in o){let n=o[e];if(jt(a,n.range)){if(!1===c.overlap)return!1;if(u&&!u(new Un(t,s[n.defId],n),null))return!1}}for(let e of c.allows){if(!e(In(Object.assign(Object.assign({},n),l),t),null))return!1}return!0}(e,t,n,r))}function mi(e,t,n,r,i){for(let s of e)if(!yi(vi(s,t,n,r,i),t))return!1;return!0}function vi(e,t,n,r,i){return"businessHours"===e?bi($t(r,t,i)):"string"==typeof e?bi(fn(n,(t=>t.groupId===e))):"object"==typeof e&&e?bi($t(e,t,i)):[]}function bi(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function yi(e,t){for(let n of e)if(zt(n,t))return!0;return!1}const Ei=/^(visible|hidden)$/;class Si extends Rt{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,_t(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,i=t&&n,s=["fc-scroller"];return t&&(n?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),(0,r.kv)("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Ei.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().width>t)return!0}return!1}needsYScrolling(){if(Ei.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().height>t)return!0}return!1}getXScrollbarWidth(){return Ei.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Ei.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class wi{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,s=!1;null!==e?(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,s=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(t)),s&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return ht(this.currentMap,e,t,n)}getAll(){return ot(this.currentMap)}}function Ai(e){let t=m(e,".fc-scrollgrid-shrink"),n=0;for(let e of t)n=Math.max(n,q(e));return Math.ceil(n)}function Ci(e,t){return e.liquid&&t.liquid}function Di(e,t){return null!=t.maxHeight||Ci(e,t)}function Ri(e,t,n,i){let{expandRows:s}=n;return"function"==typeof t.content?t.content(n):(0,r.kv)("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:s?n.clientHeight:""}},n.tableColGroupNode,(0,r.kv)(i?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function _i(e,t){return ae(e,t,lt)}function ki(e,t){let n=[];for(let i of e){let e=i.span||1;for(let s=0;s<e;s+=1)n.push((0,r.kv)("col",{style:{width:"shrink"===i.width?xi(t):i.width||"",minWidth:i.minWidth||""}}))}return(0,r.kv)("colgroup",{},...n)}function xi(e){return null==e?4:e}function Ti(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function Mi(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function Ii(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Oi(e){return(0,r.kv)("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Ni(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function Pi(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}(class extends Rt{constructor(){super(...arguments),this.processCols=Re((e=>e),_i),this.renderMicroColGroup=Re(ki),this.scrollerRefs=new wi,this.scrollerElRefs=new wi(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,i=e.sections||[],s=this.processCols(e.cols),o=this.renderMicroColGroup(s,t.shrinkWidth),l=Mi(e.liquid,n);e.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");let a,c=i.length,d=0,u=[],h=[],f=[];for(;d<c&&"header"===(a=i[d]).type;)u.push(this.renderSection(a,o,!0)),d+=1;for(;d<c&&"body"===(a=i[d]).type;)h.push(this.renderSection(a,o,!1)),d+=1;for(;d<c&&"footer"===(a=i[d]).type;)f.push(this.renderSection(a,o,!0)),d+=1;let p=!dr();const g={role:"rowgroup"};return(0,r.kv)("table",{role:"grid",className:l.join(" "),style:{height:e.height}},Boolean(!p&&u.length)&&(0,r.kv)("thead",g,...u),Boolean(!p&&h.length)&&(0,r.kv)("tbody",g,...h),Boolean(!p&&f.length)&&(0,r.kv)("tfoot",g,...f),p&&(0,r.kv)("tbody",g,...u,...h,...f))}renderSection(e,t,n){return"outerContent"in e?(0,r.kv)(r.ae,{key:e.key},e.outerContent):(0,r.kv)("tr",{key:e.key,role:"presentation",className:Ii(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,i){if("outerContent"in n)return n.outerContent;let{props:s}=this,{forceYScrollbars:o,scrollerClientWidths:l,scrollerClientHeights:a}=this.state,c=Di(s,e),d=Ci(s,e),u=s.liquid?o?"scroll":c?"auto":"hidden":"visible",h=e.key,f=Ri(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:s.collapsibleWidth||void 0===l[h]?null:l[h],clientHeight:void 0!==a[h]?a[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return(0,r.kv)(i?"th":"td",{ref:n.elRef,role:"presentation"},(0,r.kv)("div",{className:"fc-scroller-harness"+(d?" fc-scroller-harness-liquid":"")},(0,r.kv)(Si,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:u,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&_t(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Ti(this.props.cols)?Ai(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Pr(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},s={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let o=t.key,l=n.currentMap[o];if(l){let t=l.parentNode;i[o]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),s[o]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:s}}}).addStateEquality({scrollerClientWidths:lt,scrollerClientHeights:lt});class Hi extends Rt{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&zn(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:i}=e,{eventRange:s}=i,{ui:o}=s,l={event:new Un(t,s.def,s.instance),view:t.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&Qn(i,t),isStartResizable:!e.disableResizing&&Zn(i,t),isEndResizable:!e.disableResizing&&Xn(i),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return(0,r.kv)(Ot,Object.assign({},e,{elRef:this.handleEl,elClasses:[...$n(l),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:l,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&zn(this.el,this.props.seg)}}class Bi extends Rt{render(){let{props:e,context:t}=this,{options:n}=t,{seg:i}=e,{ui:s}=i.eventRange,o=function(e,t,n,r,i,s,o){let{dateEnv:l,options:a}=n,{displayEventTime:c,displayEventEnd:d}=a,u=e.eventRange.def,h=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==i);let f=h.range.start,p=h.range.end,g=s||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,v=pe(f).valueOf()===pe(g).valueOf(),b=pe(ue(p,-1)).valueOf()===pe(ue(m,-1)).valueOf();return c&&!u.allDay&&(v||b)?(g=v?f:g,m=b?p:m,d&&u.hasEnd?l.formatRange(g,m,t,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:o?null:h.forcedEndTzo}):l.format(g,t,{forcedTzo:s?null:h.forcedStartTzo})):""}(i,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return(0,r.kv)(Hi,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:er(i,t),defaultGenerator:Ui,timeText:o}),((e,t)=>(0,r.kv)(r.ae,null,(0,r.kv)(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&(0,r.kv)("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&(0,r.kv)("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function Ui(e){return(0,r.kv)("div",{className:"fc-event-main-frame"},e.timeText&&(0,r.kv)("div",{className:"fc-event-time"},e.timeText),(0,r.kv)("div",{className:"fc-event-title-container"},(0,r.kv)("div",{className:"fc-event-title fc-sticky"},e.event.title||(0,r.kv)(r.ae,null," "))))}const Li=e=>(0,r.kv)(At.Consumer,null,(t=>{let{options:n}=t,i={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return(0,r.kv)(Ot,Object.assign({},e,{elTag:e.elTag||"div",renderProps:i,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))})),Wi=Ge({day:"numeric"});class ji extends Rt{constructor(){super(...arguments),this.refineRenderProps=_e(zi)}render(){let{props:e,context:t}=this,{options:n}=t,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return(0,r.kv)(Ot,Object.assign({},e,{elClasses:[..._r(i,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Ce(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function zi(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,s=Rr(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,i?e.monthStartFormat:Wi):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},s),{isMonthStart:i,dayNumberText:o}),e.extraRenderProps)}class Gi extends Rt{render(){let{props:e}=this,{seg:t}=e;return(0,r.kv)(Hi,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:Vi,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Vi(e){let{title:t}=e.event;return t&&(0,r.kv)("div",{className:"fc-event-title"},e.event.title)}function Fi(e){return(0,r.kv)("div",{className:`fc-${e}`})}class Yi extends Rt{constructor(){super(...arguments),this.state={titleId:A()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&_t(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=S(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:s}=this,o=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return(0,i.y2)((0,r.kv)("div",Object.assign({},n.extraAttrs,{id:n.id,className:o.join(" "),"aria-labelledby":s.titleId,ref:this.handleRootEl}),(0,r.kv)("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},(0,r.kv)("span",{className:"fc-popover-title",id:s.titleId},n.title),(0,r.kv)("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),(0,r.kv)("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=function(e){let t=Wr(e),n=e.getBoundingClientRect();for(let e of t){let t=br(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(i){let s=r.getBoundingClientRect(),o=n?p(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-s.width:i.left;o=Math.max(o,10),l=Math.min(l,document.documentElement.clientWidth-10-s.width),l=Math.max(l,10);let a=r.offsetParent.getBoundingClientRect();y(r,{top:o-a.top,left:l-a.left})}}}class qi extends Yr{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:i,todayRange:s,dateProfile:o}=n,l=t.format(i,e.dayPopoverFormat);return(0,r.kv)(ji,{elRef:this.handleRootEl,date:i,dateProfile:o,todayRange:s},((t,i,s)=>(0,r.kv)(Yi,{elRef:s.ref,id:n.id,title:l,extraClassNames:["fc-more-popover"].concat(s.className||[]),extraAttrs:s,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},function(e){return Boolean(e.dayCellContent||xt("dayCellContent",e))}(e)&&(0,r.kv)(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:i,props:s}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class Qi extends Rt{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:A()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&_t(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=Xi(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new Un(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:i,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(s),hiddenSegs:t.hiddenSegs.map(s),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(i,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return(0,r.kv)(At.Consumer,null,(n=>{let{viewApi:i,options:s,calendarApi:o}=n,{moreLinkText:l}=s,{moreCnt:a}=e,c=Xi(e),d="function"==typeof l?l.call(o,a):`+${a} ${l}`,u=V(s.moreLinkHint,[a],d),h={num:a,shortText:`+${a}`,text:d,view:i};return(0,r.kv)(r.ae,null,Boolean(e.moreCnt)&&(0,r.kv)(Ot,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),x(this.handleClick)),{title:u,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Zi,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),t.isPopoverOpen&&(0,r.kv)(qi,{id:t.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=p(this.linkEl,".fc-view-harness"))}}function Zi(e){return e.text}function Xi(e){if(e.allDayDate)return{start:e.allDayDate,end:de(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Ki(t),end:(n=t,n.reduce(Ji).eventRange.range.end)};var n}function Ki(e){return e.reduce($i).eventRange.range.start}function $i(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Ji(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class es{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)}}class ts extends es{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)}}},8924:(e,t,n)=>{"use strict";n.d(t,{A3m:()=>r.o,ADP:()=>r.aR,AIx:()=>r.aN,AbZ:()=>r.t,AfX:()=>r.aO,CKF:()=>r.ba,COk:()=>r.cg,C_g:()=>r.b7,Ced:()=>r.aP,Cid:()=>r.aJ,Cmx:()=>r.bw,E5h:()=>r.aF,EH0:()=>r.an,EjX:()=>r.bI,ErJ:()=>r.V,EtK:()=>r.X,G0N:()=>r.ct,GG8:()=>r.b2,GM1:()=>r.c6,GW3:()=>r.bo,Gaj:()=>r.am,Gi:()=>r.w,Grs:()=>r.r,I1q:()=>r.ao,IbT:()=>r.bN,Idc:()=>r.u,If$:()=>r.av,InL:()=>r.aH,K2e:()=>r.br,K3w:()=>r.Y,K4M:()=>r.b8,KMs:()=>r.aw,Kie:()=>r.cu,KkE:()=>r.bG,KmY:()=>r.cc,KwV:()=>r.B,MPE:()=>r.bX,MfZ:()=>r.b9,MxI:()=>r.c,OS_:()=>r.Z,Oc4:()=>r.au,Oov:()=>r._,Oud:()=>r.bb,Q5e:()=>r.d,QTN:()=>r.C,QX5:()=>r.aB,QXr:()=>r.aK,QjD:()=>r.c1,QrL:()=>r.aD,SMo:()=>r.aY,SSD:()=>r.E,SWh:()=>r.bR,S_z:()=>r.ck,Snw:()=>r.D,Sqy:()=>r.aV,UZg:()=>r.b_,UbQ:()=>r.bA,Uf2:()=>r.cw,UrK:()=>r.bH,Uti:()=>r.b0,WCC:()=>r.i,WCo:()=>r.aG,Wkr:()=>r.aC,XBo:()=>r.bs,Y1n:()=>r.bY,YF7:()=>r.g,YPQ:()=>r.I,YdG:()=>r.cf,Ydk:()=>r.$,ZXb:()=>r.n,_26:()=>r.c9,_C_:()=>r.y,_Oe:()=>r.bL,_WV:()=>r.a7,_gj:()=>r.bn,_wk:()=>r.bd,_yY:()=>r.aM,aMz:()=>r.bg,aSA:()=>r.cd,aa3:()=>r.bE,aoJ:()=>r.ap,c1B:()=>r.bZ,c9o:()=>r.ar,cDd:()=>r.ay,cDz:()=>r.a_,cGz:()=>r.q,cNZ:()=>r.c2,crH:()=>r.bW,ct2:()=>r.aS,czr:()=>r.b3,e8M:()=>r.bm,eGI:()=>r.b5,eIT:()=>r.aq,gTO:()=>r.a$,gr:()=>r.c3,hgK:()=>r.b4,i42:()=>r.be,i8o:()=>r.a,iAw:()=>r.b6,iKN:()=>r.bf,iSq:()=>r.x,i_b:()=>r.bT,icy:()=>r.ce,jY8:()=>r.at,kJf:()=>r.co,kXE:()=>r.aT,kr9:()=>r.a9,kzx:()=>r.bv,m0f:()=>r.c4,mGP:()=>r.cp,mKm:()=>r.aA,mci:()=>r.ca,mkq:()=>r.aE,mmZ:()=>r.bt,ocJ:()=>r.as,ot6:()=>r.bc,otN:()=>r.aU,q8M:()=>r.ax,qAf:()=>r.c8,qOs:()=>r.bq,qo9:()=>r.bS,qqF:()=>r.c5,qqM:()=>r.h,qqe:()=>r.c7,s3c:()=>r.aX,s7Y:()=>r.c0,sBp:()=>r.z,sH3:()=>r.H,sVq:()=>r.cy,slX:()=>r.F,u0H:()=>r.ai,u2c:()=>r.cb,uKW:()=>r.aL,uMw:()=>r.aZ,u_E:()=>r.bM,umU:()=>r.aI,uqH:()=>r.A,wFn:()=>r.cs,wln:()=>r.ch,wzc:()=>r.a0,yAt:()=>r.W,yky:()=>r.cr,yoP:()=>r.cj});var r=n(25756);n(64284),n(79252)},21468:(e,t,n)=>{"use strict";n.d(t,{Wi:()=>i.aa,Yn:()=>r.Yn,ae:()=>r.ae,kv:()=>r.kv});var r=n(64284),i=(n(79252),n(25756))},33666:(e,t,n)=>{"use strict";n.d(t,{cp:()=>k});var r=n(64740),i=n(8924);i.EjX.touchMouseIgnoreWait=500;let s=0,o=0,l=!1;class a{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=>{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,s+=1,setTimeout((()=>{s-=1}),i.EjX.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.pageXOffset-this.prevScrollX+this.prevPageX,n=window.pageYOffset-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 i.slX,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),o+=1,1===o&&window.addEventListener("touchmove",c,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),o-=1,o||window.removeEventListener("touchmove",c,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!(0,i.Ydk)(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){l=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?(0,i.Ydk)(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return s||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(l=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let 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,i=e.touches,s=0,o=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(s=n-this.origPageX,o=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:s,deltaY:o}}}function c(e){l&&e.preventDefault()}class d{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.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let 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",(0,i.Ced)(n,{left:r.left,top:r.top}),(0,i.GG8)(n,(()=>{n.style.transition="",e()}))}cleanup(){this.mirrorEl&&((0,i.AfX)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&(0,i.Ced)(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.classList.add("fc-event-dragging"),(0,i.Ced)(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 u extends i.Oud{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 h extends u{constructor(e,t){super(new i.ot6(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return(0,i.czr)(this.scrollController.el)}}class f extends u{constructor(e){super(new i._wk,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 p="function"==typeof performance?performance.now:Date.now;class g{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let t=p();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.pageXOffset,r=t-window.pageYOffset,i=null===this.pointerScreenY?0:r-this.pointerScreenY,s=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(p()))}}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,i=r-e.distance,s=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+s*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+s*o)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,i=this.scrollCaches||[];for(let s of i){let i=s.clientRect,o=e-i.left,l=i.right-e,a=t-i.top,c=i.bottom-t;o>=0&&l>=0&&a>=0&&c>=0&&(a<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>a)&&(r={scrollCache:s,name:"top",distance:a}),c<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:s,name:"left",distance:o}),l<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>l)&&(r={scrollCache:s,name:"right",distance:l}))}return r}buildCaches(e){return this.queryScrollEls(e).map((e=>e===window?new f(!1):new h(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 m extends i.UrK{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,(0,i.c9o)(document.body),(0,i.jY8)(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(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:i}=e;t=r*r+i*i,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,(0,i.ocJ)(document.body),(0,i.Oc4)(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 a(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 d,this.autoScroller=new g}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)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class v{constructor(e){this.origRect=(0,i.iAw)(e),this.scrollCaches=(0,i.eGI)(e).map((e=>new h(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(!b(e.getEventTarget())&&!(0,i.E5h)(n,e.clientRect))return!1;return!0}}function b(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class y{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,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?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},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 i.slX}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,s=e.subjectEl;s instanceof HTMLElement&&(t=(0,i.iAw)(s),r=(0,i.WCo)(r,t));let o=this.initialHit=this.queryHitForOffset(r.left,r.top);if(o){if(this.useSubjectCenter&&t){let e=(0,i.mkq)(t,o.rect);e&&(r=(0,i.InL)(e))}this.coordAdjust=(0,i.umU)(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&&E(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=(0,i.i8o)(this.droppableStore,(e=>(e.component.prepareHits(),new v(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 o in n){let l=n[o].component,a=r[o];if(a&&a.isWithinClipping(e,t)){let n=a.computeLeft(),r=a.computeTop(),c=e-n,d=t-r,{origRect:u}=a,h=u.right-u.left,f=u.bottom-u.top;if(c>=0&&c<h&&d>=0&&d<f){let e=l.queryHit(c,d,h,f);e&&(0,i.MfZ)(e.dateProfile.activeRange,e.dateSpan.range)&&(!s||e.layer>s.layer)&&(e.componentId=o,e.context=l.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,s=e)}}}return s}}function E(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&(0,i.iKN)(e.dateSpan,t.dateSpan)}function S(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,{date:(i=t.dateEnv).toDate(r.range.start),dateStr:i.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),n}class w extends i.OS_{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&E(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},S(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",i)}}},this.dragging=new m(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new y(this.dragging,(0,i.KkE)(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class A extends i.OS_{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null},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,o=[r.range.start,r.range.end,s.range.start,s.range.end];o.sort(i.If$);let l={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(l,n)}return l.range={start:o[0],end:o[3]},l.allDay=r.allDay,l}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&(0,i.UZg)(r,e.dateProfile,n)||(s=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),s?(0,i.q8M)():(0,i.KMs)(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&((0,i.Kie)(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new m(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let s=this.hitDragging=new y(this.dragging,(0,i.KkE)(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()}}class C extends i.OS_{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:s}=r,{options:o}=n.context,l=n.context;this.subjectEl=e.subjectEl;let a=this.subjectSeg=(0,i.Oov)(e.subjectEl),c=(this.eventRange=a.eventRange).instance.instanceId;this.relevantEvents=(0,i.Sqy)(l.getCurrentData().eventStore,c),r.minDistance=e.isTouch?0:o.eventDragMinDistance,r.delay=e.isTouch&&c!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,o.fixedMirrorParent?s.parentNode=o.fixedMirrorParent:s.parentNode=(0,i.Ydk)(t,".fc"),s.revertDuration=o.dragRevertDuration;let d=n.isValidSegDownEl(t)&&!(0,i.Ydk)(t,".fc-event-resizer");r.setIgnoreMove(!d),this.isDragging=d&&e.subjectEl.classList.contains("fc-event-draggable")},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 i.wzc(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,o=null,l=null,a=null,c=!1,d={affectedEvents:n,mutatedEvents:(0,i.YPQ)(),isEvent:!0};if(e){o=e.context;let t=o.options;s===o||t.editable&&t.droppable?(l=function(e,t,n){let r=e.dateSpan,s=t.dateSpan,o=r.range.start,l=s.range.start,a={};r.allDay!==s.allDay&&(a.allDay=s.allDay,a.hasEnd=t.context.options.allDayMaintainDuration,s.allDay&&(o=(0,i.cGz)(o)));let c=(0,i.mKm)(o,l,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(a.allDay=!1);let d={datesDelta:c,standardProps:a};for(let r of n)r(d,e,t);return d}(r,e,o.getCurrentData().pluginHooks.eventDragMutationMassagers),l&&(a=(0,i.MPE)(n,o.getCurrentData().eventUiBases,l,o),d.mutatedEvents=a,(0,i.c1B)(d,e.dateProfile,o)||(c=!0,l=null,a=null,d.mutatedEvents=(0,i.YPQ)()))):o=null}this.displayDrag(o,d),c?(0,i.q8M)():(0,i.KMs)(),t||(s===o&&E(r,e)&&(l=null),this.dragging.setMirrorNeedsRevert(!l),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=o,this.validMutation=l,this.mutatedRelevantEvents=a)},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,o=this.eventRange.def,l=this.eventRange.instance,a=new i.wzc(t,o,l),c=this.relevantEvents,d=this.mutatedRelevantEvents,{finalHit:u}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:a,jsEvent:e.origEvent,view:n}),s){if(r===t){let r=new i.wzc(t,d.defs[o.defId],l?d.instances[l.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:d});let u={oldEvent:a,event:r,relatedEvents:(0,i.Gi)(d,t,l),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}},h={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(h,e(s,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},u),h),{el:e.subjectEl,delta:s.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",u)}else if(r){let s={event:a,relatedEvents:(0,i.Gi)(c,t,l),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},s),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:c}),t.emitter.trigger("eventRemove",s);let h=d.defs[o.defId],f=d.instances[l.instanceId],p=new i.wzc(r,h,f);r.dispatch({type:"MERGE_EVENTS",eventStore:d});let g={event:p,relatedEvents:(0,i.Gi)(d,r,f),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:d})}};r.emitter.trigger("eventAdd",g),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:l.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},S(u.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:u.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},g),{draggedEl:e.subjectEl,view:u.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new m(e.el);r.pointer.selector=C.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let s=this.hitDragging=new y(this.dragging,i._WV);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:(0,i.YPQ)(),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.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}C.SELECTOR=".fc-event-draggable, .fc-event-resizable";class D extends i.OS_{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=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=(0,i.Oov)(n),s=this.eventRange=r.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==s.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=(0,i.Sqy)(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=(0,i.Oov)(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new i.wzc(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,s=this.relevantEvents,o=this.hitDragging.initialHit,l=this.eventRange.instance,a=null,c=null,d=!1,u={affectedEvents:s,mutatedEvents:(0,i.YPQ)(),isEvent:!0};if(e){e.componentId===o.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(o,e)||(a=function(e,t,n,r){let s=e.context.dateEnv,o=e.dateSpan.range.start,l=t.dateSpan.range.start,a=(0,i.mKm)(o,l,s,e.largeUnit);if(n){if(s.add(r.start,a)<r.end)return{startDelta:a}}else if(s.add(r.end,a)>r.start)return{endDelta:a};return null}(o,e,n.subjectEl.classList.contains("fc-event-resizer-start"),l.range))}a&&(c=(0,i.MPE)(s,r.getCurrentData().eventUiBases,a,r),u.mutatedEvents=c,(0,i.c1B)(u,e.dateProfile,r)||(d=!0,a=null,c=null,u.mutatedEvents=null)),c?r.dispatch({type:"SET_EVENT_RESIZE",state:u}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),d?(0,i.q8M)():(0,i.KMs)(),t||(a&&E(o,e)&&(a=null),this.validMutation=a,this.mutatedRelevantEvents=c)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,s=new i.wzc(t,n,r),o=this.relevantEvents,l=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:s,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let a=new i.wzc(t,l.defs[n.defId],r?l.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:l});let c={oldEvent:s,event:a,relatedEvents:(0,i.Gi)(l,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:o})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||(0,i.Q5e)(0),endDelta:this.validMutation.endDelta||(0,i.Q5e)(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new m(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new y(this.dragging,(0,i.KkE)(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(0,i.Ydk)(e.subjectEl,".fc-event")}}const R={fixedMirrorParent:i.ZXb},_={dateClick:i.ZXb,eventDragStart:i.ZXb,eventDragStop:i.ZXb,eventDrop:i.ZXb,eventResizeStart:i.ZXb,eventResizeStop:i.ZXb,eventResize:i.ZXb,drop:i.ZXb,eventReceive:i.ZXb,eventLeave:i.ZXb};i.EjX.dataAttrPrefix="";i.UrK;var k=(0,r.aS)({name:"@fullcalendar/interaction",componentInteractions:[w,A,C,D],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=(0,i.ADP)(e.origEvent);this.matchesCancel=!!(0,i.Ydk)(n,t),this.matchesEvent=!!(0,i.Ydk)(n,C.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 a(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:m,optionRefiners:R,listenerRefiners:_})},40456:(e,t,n)=>{"use strict";n.d(t,{c:()=>d});var r=n(64740),i=n(8924),s=n(21468);const o=372,l=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],a={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};const c={schedulerLicenseKey:String};var d=(0,r.aS)({name:"@fullcalendar/premium-common",premiumReleaseDate:"2023-11-29",optionRefiners:c,viewContainerAppends:[function(e){let t=e.options.schedulerLicenseKey,n="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(n)){let n=function(e,t){if(-1!==l.indexOf(e))return"valid";const n=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(n&&10===n[1].length){const e=new Date(1e3*parseInt(n[2],10)),r=i.EjX.mockSchedulerReleaseDate||t;if((0,i.e8M)(r)){return(0,i.AbZ)(r,-o)<e?"valid":"outdated"}}return"invalid"}(t,e.pluginHooks.premiumReleaseDate);if("valid"!==n)return(0,s.kv)("div",{className:"fc-license-message",style:a},"outdated"===n?(0,s.kv)(s.ae,null,"Your license key is too old to work with this version. ",(0,s.kv)("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):(0,s.kv)(s.ae,null,"Your license key is invalid. ",(0,s.kv)("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]})},65400:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(69624),i=n(42416),s=n(64740),o=n(8924);const l=parseInt(String(r.version).split(".")[0])<18;class a extends r.Component{constructor(){super(...arguments),this.elRef=(0,r.createRef)(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame((()=>{this.doResize()})))}}render(){const e=[];for(const t of this.state.customRenderingMap.values())e.push(r.createElement(c,{key:t.id,customRendering:t}));return r.createElement("div",{ref:this.elRef},e)}componentDidMount(){const e=new o.sVq;let t;this.handleCustomRendering=e.handle.bind(e),this.calendar=new s.Yf(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),e.subscribe((e=>{const n=Date.now(),r=!t;(l||r||this.isUpdating||this.isUnmounting||n-t<100?d:i.flushSync)((()=>{this.setState({customRenderingMap:e},(()=>{t=n,r?this.doResize():this.requestResize()}))}))}))}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){void 0!==this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}a.act=d;class c extends r.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:t}=e,n="function"==typeof t?t(e.renderProps):t;return(0,i.createPortal)(n,e.containerEl)}}function d(e){e()}},50972:(e,t,n)=>{"use strict";n.d(t,{c:()=>ct});var r=n(64740),i=n(40456),s=n(8924),o=n(21468);function l(e){let t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(d()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function a(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(d()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}let c;function d(){return c||(c=function(){let e,t=document.createElement("div");t.style.position="absolute",t.style.top="-1000px",t.style.width="1px",t.style.height="1px",t.style.overflow="scroll",t.style.direction="rtl",t.style.fontSize="100px",t.innerHTML="A",document.body.appendChild(t),t.scrollLeft>0?e="positive":(t.scrollLeft=1,e=t.scrollLeft>0?"reverse":"negative");return(0,s.AfX)(t),e}())}class u{constructor(e,t){this.scrollEl=e,this.isRtl=t,this.updateSize=()=>{let{scrollEl:e}=this,t=(0,s._yY)(e,".fc-sticky");!function(e,t,n){e.forEach(((e,r)=>{let i,{textAlign:o,elWidth:l,parentBound:a}=t[r],c=a.right-a.left;i="center"===o&&c>n?(n-l)/2:"",(0,s.Ced)(e,{left:i,right:i,top:0})}))}(t,this.queryElGeoms(t),e.clientWidth)}}queryElGeoms(e){let{scrollEl:t,isRtl:n}=this,r=function(e){let t=e.getBoundingClientRect(),n=(0,s.hgK)(e);return{left:t.left+n.borderLeft+n.scrollbarLeft-l(e),top:t.top+n.borderTop-e.scrollTop}}(t),i=[];for(let t of e){let e=(0,s.Cid)((0,s.czr)(t.parentNode,!0,!0),-r.left,-r.top),o=t.getBoundingClientRect(),l=window.getComputedStyle(t),a=window.getComputedStyle(t.parentNode).textAlign,c=null;"start"===a?a=n?"right":"left":"end"===a&&(a=n?"left":"right"),"sticky"!==l.position&&(c=(0,s.Cid)(o,-r.left-(parseFloat(l.left)||0),-r.top-(parseFloat(l.top)||0))),i.push({parentBound:e,naturalBound:c,elWidth:o.width,elHeight:o.height,textAlign:a})}return i}}class h extends s.KwV{constructor(){super(...arguments),this.elRef=(0,o.Yn)(),this.state={xScrollbarWidth:0,yScrollbarWidth:0},this.handleScroller=e=>{this.scroller=e,(0,s.K3w)(this.props.scrollerRef,e)},this.handleSizing=()=>{let{props:e}=this;"scroll-hidden"===e.overflowY&&this.setState({yScrollbarWidth:this.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&this.setState({xScrollbarWidth:this.scroller.getXScrollbarWidth()})}}render(){let{props:e,state:t,context:n}=this,r=n.isRtl&&(0,s.COk)(),i=0,l=0,a=0,{overflowX:c,overflowY:d}=e;return e.forPrint&&(c="visible",d="visible"),"scroll-hidden"===c&&(a=t.xScrollbarWidth),"scroll-hidden"===d&&null!=t.yScrollbarWidth&&(r?i=t.yScrollbarWidth:l=t.yScrollbarWidth),(0,o.kv)("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},(0,o.kv)(s.aSA,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===c?"scroll":c,overflowY:"scroll-hidden"===d?"scroll":d,overcomeLeft:i,overcomeRight:l,overcomeBottom:a,maxHeight:"number"==typeof e.maxHeight?e.maxHeight+("scroll-hidden"===c?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}getSnapshotBeforeUpdate(e){return this.props.forPrint&&!e.forPrint?{simulateScrollLeft:this.scroller.el.scrollLeft}:{}}componentDidUpdate(e,t,n){const{props:r,scroller:{el:i}}=this;if((0,s.SSD)(e,r)||this.handleSizing(),void 0!==n.simulateScrollLeft)i.style.left=-n.simulateScrollLeft+"px";else if(!r.forPrint&&e.forPrint){const e=-parseInt(i.style.left);i.style.left="",i.scrollLeft=e}}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}needsXScrolling(){return this.scroller.needsXScrolling()}needsYScrolling(){return this.scroller.needsYScrolling()}}const f="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class p{constructor(e){this.el=e,this.emitter=new s.slX,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new s.Snw(this._handleWheelWaited.bind(this)),this.scrollWaiter=new s.Snw(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of f)e.addEventListener(t,this.handleWheel)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of f)e.removeEventListener(t,this.handleWheel)}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class g{constructor(e,t){this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map((e=>this.bindScroller(e)))}destroy(){for(let e of this.scrollListeners)e.destroy()}bindScroller(e){let{scrollEls:t,isVertical:n}=this,r=new p(e);return r.emitter.on("scroll",((r,i)=>{if(!this.isPaused&&((!this.masterEl||this.masterEl!==e&&(r||i))&&this.assignMaster(e),this.masterEl===e))for(let r of t)r!==e&&(n?r.scrollTop=e.scrollTop:r.scrollLeft=e.scrollLeft)})),r.emitter.on("scrollEnd",(()=>{this.masterEl===e&&(this.masterEl=null)})),r}assignMaster(e){this.masterEl=e;for(let t of this.scrollListeners)t.el!==e&&t.endScroll()}forceScrollLeft(e){this.isPaused=!0;for(let t of this.scrollListeners)a(t.el,e);this.isPaused=!1}forceScrollTop(e){this.isPaused=!0;for(let t of this.scrollListeners)t.el.scrollTop=e;this.isPaused=!1}}s.EjX.SCROLLGRID_RESIZE_INTERVAL=500;class m extends s.KwV{constructor(){super(...arguments),this.compileColGroupStats=(0,s.Wkr)(E,A),this.renderMicroColGroups=(0,s.Wkr)(s.QjD),this.clippedScrollerRefs=new s.YdG,this.scrollerElRefs=new s.YdG(this._handleScrollerEl.bind(this)),this.chunkElRefs=new s.YdG(this._handleChunkEl.bind(this)),this.scrollSyncersBySection={},this.scrollSyncersByColumn={},this.rowUnstableMap=new Map,this.rowInnerMaxHeightMap=new Map,this.anyRowHeightsChanged=!1,this.recentSizingCnt=0,this.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},this.handleSizing=(e,t)=>{if(!this.allowSizing())return;t||(this.anyRowHeightsChanged=!0);let n={};(e||!t&&!this.rowUnstableMap.size)&&(n.sectionRowMaxHeights=this.computeSectionRowMaxHeights()),this.setState(Object.assign(Object.assign({shrinkWidths:this.computeShrinkWidths()},this.computeScrollerDims()),n),(()=>{this.rowUnstableMap.size||this.updateStickyScrolling()}))},this.handleRowHeightChange=(e,t)=>{let{rowUnstableMap:n,rowInnerMaxHeightMap:r}=this;if(t){n.delete(e);let t=b(e);r.has(e)&&r.get(e)===t||(r.set(e,t),this.anyRowHeightsChanged=!0),!n.size&&this.anyRowHeightsChanged&&(this.anyRowHeightsChanged=!1,this.setState({sectionRowMaxHeights:this.computeSectionRowMaxHeights()}))}else n.set(e,!0)}}render(){let{props:e,state:t,context:n}=this,{shrinkWidths:r}=t,i=this.compileColGroupStats(e.colGroups.map((e=>[e]))),l=this.renderMicroColGroups(i.map(((e,t)=>[e.cols,r[t]]))),a=(0,s.cNZ)(e.liquid,n);this.getDims();let c,d=e.sections,u=d.length,h=0,f=[],p=[],g=[];for(;h<u&&"header"===(c=d[h]).type;)f.push(this.renderSection(c,h,i,l,t.sectionRowMaxHeights,!0)),h+=1;for(;h<u&&"body"===(c=d[h]).type;)p.push(this.renderSection(c,h,i,l,t.sectionRowMaxHeights,!1)),h+=1;for(;h<u&&"footer"===(c=d[h]).type;)g.push(this.renderSection(c,h,i,l,t.sectionRowMaxHeights,!0)),h+=1;const m=!(0,s.kXE)(),v={role:"rowgroup"};return(0,o.kv)("table",{ref:e.elRef,role:"grid",className:a.join(" ")},function(e,t){let n=e.map(((e,n)=>{let r=e.width;return"shrink"===r&&(r=e.totalColWidth+(0,s.qAf)(t[n])+1),(0,o.kv)("col",{style:{width:r}})}));return(0,o.kv)("colgroup",{},...n)}(i,r),Boolean(!m&&f.length)&&(0,o.kv)("thead",v,...f),Boolean(!m&&p.length)&&(0,o.kv)("tbody",v,...p),Boolean(!m&&g.length)&&(0,o.kv)("tfoot",v,...g),m&&(0,o.kv)("tbody",v,...f,...p,...g))}renderSection(e,t,n,r,i,l){return"outerContent"in e?(0,o.kv)(o.ae,{key:e.key},e.outerContent):(0,o.kv)("tr",{key:e.key,role:"presentation",className:(0,s.gr)(e,this.props.liquid).join(" ")},e.chunks.map(((s,o)=>this.renderChunk(e,t,n[o],r[o],s,o,(i[t]||[])[o]||[],l))))}renderChunk(e,t,n,r,i,l,a,c){if("outerContent"in i)return(0,o.kv)(o.ae,{key:i.key},i.outerContent);let{state:d}=this,{scrollerClientWidths:u,scrollerClientHeights:f}=d,[p,g]=this.getDims(),m=t*g+l,v=l===(!this.context.isRtl||(0,s.COk)()?g-1:0),b=t===p-1,y=b&&d.forceXScrollbars,E=v&&d.forceYScrollbars,S=n&&n.allowXScrolling,w=(0,s.qqF)(this.props,e),A=(0,s.m0f)(this.props,e),C=e.expandRows&&A,D=n&&n.totalColMinWidth||"",R=(0,s.GM1)(e,i,{tableColGroupNode:r,tableMinWidth:D,clientWidth:void 0!==u[m]?u[m]:null,clientHeight:void 0!==f[m]?f[m]:null,expandRows:C,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:a,reportRowHeightChange:this.handleRowHeightChange},c),_=y?b?"scroll":"scroll-hidden":S?b?"auto":"scroll-hidden":"hidden",k=E?v?"scroll":"scroll-hidden":w?v?"auto":"scroll-hidden":"hidden";return R=(0,o.kv)(h,{ref:this.clippedScrollerRefs.createRef(m),scrollerElRef:this.scrollerElRefs.createRef(m),overflowX:_,overflowY:k,forPrint:this.props.forPrint,liquid:A,maxHeight:e.maxHeight},R),(0,o.kv)(c?"th":"td",{key:i.key,ref:this.chunkElRefs.createRef(m),role:"presentation"},R)}componentDidMount(){this.getStickyScrolling=(0,s.Wkr)(R),this.getScrollSyncersBySection=(0,s.QrL)(C.bind(this,!0),null,D),this.getScrollSyncersByColumn=(0,s.QrL)(C.bind(this,!1),null,D),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}allowSizing(){let e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+s.EjX.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}computeShrinkWidths(){let e=this.compileColGroupStats(this.props.colGroups.map((e=>[e]))),[t,n]=this.getDims(),r=t*n,i=[];return e.forEach(((e,t)=>{if(e.hasShrinkCol){let e=this.chunkElRefs.collect(t,r,n);i[t]=(0,s.qqe)(e)}})),i}computeSectionRowMaxHeights(){let e=new Map,[t,n]=this.getDims(),r=[];for(let i=0;i<t;i+=1){let t=this.props.sections[i],o=[];if(t&&t.syncRowHeights){let r=[];for(let t=0;t<n;t+=1){let o=i*n+t,l=[],a=this.chunkElRefs.currentMap[o];l=a?(0,s._yY)(a,".fc-scrollgrid-sync-table tr").map((t=>{let n=b(t);return e.set(t,n),n})):[],r.push(l)}let l=r[0].length,a=!0;for(let e=1;e<n;e+=1){if(!(t.chunks[e]&&void 0!==t.chunks[e].outerContent)&&r[e].length!==l){a=!1;break}}if(a){for(let e=0;e<n;e+=1)o.push([]);for(let e=0;e<l;e+=1){let t=[];for(let i=0;i<n;i+=1){let n=r[i][e];null!=n&&t.push(n)}let i=Math.max(...t);for(let e=0;e<n;e+=1)o[e].push(i)}}else{let e=[];for(let t=0;t<n;t+=1)e.push(v(r[t])+r[t].length);let t=Math.max(...e);for(let e=0;e<n;e+=1){let n=r[e].length,i=t-n,s=Math.floor(i/n),l=i-s*(n-1),a=[],c=0;for(c<n&&(a.push(l),c+=1);c<n;)a.push(s),c+=1;o.push(a)}}}r.push(o)}return this.rowInnerMaxHeightMap=e,r}computeScrollerDims(){let e=(0,s.icy)(),[t,n]=this.getDims(),r=!this.context.isRtl||(0,s.COk)()?n-1:0,i=t-1,o=this.clippedScrollerRefs.currentMap,l=this.scrollerElRefs.currentMap,a=!1,c=!1,d={},u={};for(let e=0;e<t;e+=1){let t=o[e*n+r];if(t&&t.needsYScrolling()){a=!0;break}}for(let e=0;e<n;e+=1){let t=o[i*n+e];if(t&&t.needsXScrolling()){c=!0;break}}for(let s=0;s<t;s+=1)for(let t=0;t<n;t+=1){let o=s*n+t,h=l[o];if(h){let n=h.parentNode;d[o]=Math.floor(n.getBoundingClientRect().width-(t===r&&a?e.y:0)),u[o]=Math.floor(n.getBoundingClientRect().height-(s===i&&c?e.x:0))}}return{forceYScrollbars:a,forceXScrollbars:c,scrollerClientWidths:d,scrollerClientHeights:u}}updateStickyScrolling(){let{isRtl:e}=this.context,t=this.scrollerElRefs.getAll().map((t=>[t,e]));this.getStickyScrolling(t).forEach((e=>e.updateSize()))}updateScrollSyncers(){let[e,t]=this.getDims(),n=e*t,r={},i={},o=this.scrollerElRefs.currentMap;for(let n=0;n<e;n+=1){let e=n*t,i=e+t;r[n]=(0,s.uKW)(o,e,i,1)}for(let e=0;e<t;e+=1)i[e]=this.scrollerElRefs.collect(e,n,t);this.scrollSyncersBySection=this.getScrollSyncersBySection(r),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(i)}destroyScrollSyncers(){(0,s.i8o)(this.scrollSyncersBySection,D),(0,s.i8o)(this.scrollSyncersByColumn,D)}getChunkConfigByIndex(e){let t=this.getDims()[1],n=Math.floor(e/t),r=e%t,i=this.props.sections[n];return i&&i.chunks[r]}forceScrollLeft(e,t){let n=this.scrollSyncersByColumn[e];n&&n.forceScrollLeft(t)}forceScrollTop(e,t){let n=this.scrollSyncersBySection[e];n&&n.forceScrollTop(t)}_handleChunkEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&(0,s.K3w)(n.elRef,e)}_handleScrollerEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&(0,s.K3w)(n.scrollerElRef,e)}getDims(){let e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]}}function v(e){let t=0;for(let n of e)t+=n;return t}function b(e){let t=(0,s._yY)(e,".fc-scrollgrid-sync-inner").map(y);return t.length?Math.max(...t):0}function y(e){return e.offsetHeight}function E(e){let t=S(e.cols,"width"),n=S(e.cols,"minWidth"),r=(0,s.s7Y)(e.cols);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:"shrink"!==e.width&&Boolean(t||n||r),cols:e.cols,width:e.width}}function S(e,t){let n=0;for(let r of e){let e=r[t];"number"==typeof e&&(n+=e*(r.span||1))}return n}m.addStateEquality({shrinkWidths:s.WCC,scrollerClientWidths:s.SSD,scrollerClientHeights:s.SSD});const w={cols:s._26};function A(e,t){return(0,s.QXr)(e,t,w)}function C(e,...t){return new g(e,t)}function D(e){e.destroy()}function R(e,t){return new u(e,t)}(0,s.Uf2)('.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}');const _=18,k=6,x=200;s.EjX.MAX_TIMELINE_SLOTS=1e3;const T=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function M(e,t,n,r){let i={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};!function(e,t,n){const{currentRange:r}=t;if(e.labelInterval){n.countDurationsBetween(r.start,r.end,e.labelInterval)>s.EjX.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),e.labelInterval=null)}if(e.slotDuration){n.countDurationsBetween(r.start,r.end,e.slotDuration)>s.EjX.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){const t=(0,s.mmZ)(e.labelInterval,e.slotDuration);(null===t||t<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}(i,e,t),N(i,e,t),function(e,t,n){const{currentRange:r}=t;let{slotDuration:i}=e;if(!i){const o=N(e,t,n);for(let e of T){const t=(0,s.Q5e)(e),n=(0,s.mmZ)(o,t);if(null!==n&&n>1&&n<=k){i=t;break}}if(i){n.countDurationsBetween(r.start,r.end,i)>x&&(i=null)}i||(i=o),e.slotDuration=i}}(i,e,t);let o=n.slotLabelFormat,l=Array.isArray(o)?o:null!=o?[o]:function(e,t,n,r){let i,o;const{labelInterval:l}=e;let a=(0,s.MxI)(l).unit;const c=r.weekNumbers;let d=i=o=null;"week"!==a||c||(a="day");switch(a){case"year":d={year:"numeric"};break;case"month":P("years",t,n)>1&&(d={year:"numeric"}),i={month:"short"};break;case"week":P("years",t,n)>1&&(d={year:"numeric"}),i={week:"narrow"};break;case"day":P("years",t,n)>1?d={year:"numeric",month:"long"}:P("months",t,n)>1&&(d={month:"long"}),c&&(i={week:"short"}),o={weekday:"narrow",day:"numeric"};break;case"hour":c&&(d={week:"short"}),P("days",t,n)>1&&(i={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),o={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":(0,s.qOs)(l)/60>=k?(d={hour:"numeric",meridiem:"short"},i=e=>":"+(0,s.Gaj)(e.date.minute,2)):d={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":(0,s.K2e)(l)/60>=k?(d={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},i=e=>":"+(0,s.Gaj)(e.date.second,2)):d={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":d={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},i=e=>"."+(0,s.Gaj)(e.millisecond,3)}return[].concat(d||[],i||[],o||[])}(i,e,t,n);i.headerFormats=l.map((e=>(0,s.iSq)(e))),i.isTimeScale=Boolean(i.slotDuration.milliseconds);let a=null;if(!i.isTimeScale){const e=(0,s.MxI)(i.slotDuration).unit;/year|month|week/.test(e)&&(a=e)}i.largeUnit=a,i.emphasizeWeeks=1===(0,s._gj)(i.slotDuration)&&P("weeks",e,t)>=2&&!n.businessHours;let c,d,u=n.snapDuration;u&&(c=(0,s.Q5e)(u),d=(0,s.mmZ)(i.slotDuration,c)),null==d&&(c=i.slotDuration,d=1),i.snapDuration=c,i.snapsPerSlot=d;let h=(0,s.XBo)(e.slotMaxTime)-(0,s.XBo)(e.slotMinTime),f=I(e.renderRange.start,i,t),p=I(e.renderRange.end,i,t);i.isTimeScale&&(f=t.add(f,e.slotMinTime),p=t.add((0,s.AbZ)(p,-1),e.slotMaxTime)),i.timeWindowMs=h,i.normalizedRange={start:f,end:p};let g=[],m=f;for(;m<p;)O(m,i,e,r)&&g.push(m),m=t.add(m,i.slotDuration);i.slotDates=g;let v=-1,b=0;const y=[],E=[];for(m=f;m<p;)O(m,i,e,r)?(v+=1,y.push(v),E.push(b)):y.push(v+.5),m=t.add(m,i.snapDuration),b+=1;return i.snapDiffToIndex=y,i.snapIndexToDiff=E,i.snapCnt=v+1,i.slotCnt=i.snapCnt/i.snapsPerSlot,i.isWeekStarts=function(e,t){let{slotDates:n,emphasizeWeeks:r}=e,i=null,s=[];for(let e of n){let n=t.computeWeekNumber(e),o=r&&null!==i&&i!==n;i=n,s.push(o)}return s}(i,t),i.cellRows=function(e,t){let n=e.slotDates,r=e.headerFormats,i=r.map((()=>[])),o=(0,s._gj)(e.slotDuration),l=7===o?"week":1===o?"day":null,a=r.map((e=>e.getLargestUnit?e.getLargestUnit():null));for(let o=0;o<n.length;o+=1){let c=n[o],d=e.isWeekStarts[o];for(let n=0;n<r.length;n+=1){let o=r[n],u=i[n],h=u[u.length-1],f=n===r.length-1,p=r.length>1&&!f,g=null,m=a[n]||(f?l:null);if(p){let e=t.format(c,o);h&&h.text===e?h.colspan+=1:g=H(c,e,m)}else if(!h||(0,s.EH0)(t.countDurationsBetween(e.normalizedRange.start,c,e.labelInterval))){g=H(c,t.format(c,o),m)}else h.colspan+=1;g&&(g.weekStart=d,u.push(g))}}return i}(i,t),i.slotsPerLabel=(0,s.mmZ)(i.labelInterval,i.slotDuration),i}function I(e,t,n){let r=e;return t.isTimeScale||(r=(0,s.cGz)(r),t.largeUnit&&(r=n.startOf(r,t.largeUnit))),r}function O(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){let r=(0,s.cGz)(e),i=e.valueOf()-r.valueOf()-(0,s.XBo)(n.slotMinTime);return i=(i%864e5+864e5)%864e5,i<t.timeWindowMs}return!0}function N(e,t,n){const{currentRange:r}=t;let{labelInterval:i}=e;if(!i){let t;if(e.slotDuration){for(t of T){const n=(0,s.Q5e)(t),r=(0,s.mmZ)(n,e.slotDuration);if(null!==r&&r<=k){i=n;break}}i||(i=e.slotDuration)}else for(t of T){i=(0,s.Q5e)(t);if(n.countDurationsBetween(r.start,r.end,i)>=_)break}e.labelInterval=i}return i}function P(e,t,n){let r=t.currentRange,i=null;return"years"===e?i=n.diffWholeYears(r.start,r.end):"months"===e||"weeks"===e?i=n.diffWholeMonths(r.start,r.end):"days"===e&&(i=(0,s._C_)(r.start,r.end)),i||0}function H(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}class B extends s.KwV{constructor(){super(...arguments),this.refineRenderProps=(0,s.uqH)(W),this.buildCellNavLinkAttrs=(0,s.sBp)(U)}render(){let{props:e,context:t}=this,{dateEnv:n,options:r}=t,{cell:i,dateProfile:l,tDateProfile:a}=e,c=(0,s.cDz)(i.date,e.todayRange,e.nowDate,l),d=this.refineRenderProps({level:e.rowLevel,dateMarker:i.date,text:i.text,dateEnv:t.dateEnv,viewApi:t.viewApi});return(0,o.kv)(s.QTN,{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",i.isWeekStart&&"fc-timeline-slot-em",..."time"===i.rowUnit?(0,s.gTO)(c,t.theme):(0,s.uMw)(c,t.theme)],elAttrs:{colSpan:i.colspan,"data-date":n.formatIso(i.date,{omitTime:!a.isTimeScale,omitTimeZoneOffset:!0})},renderProps:d,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:L,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(n=>(0,o.kv)("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},(0,o.kv)(n,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",e.isSticky&&"fc-sticky"],elAttrs:this.buildCellNavLinkAttrs(t,i.date,i.rowUnit)}))))}}function U(e,t,n){return n&&"time"!==n?(0,s.Uti)(e,t,n):{}}function L(e){return e.text}function W(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}class j extends s.KwV{render(){let{dateProfile:e,tDateProfile:t,rowInnerHeights:n,todayRange:r,nowDate:i}=this.props,{cellRows:s}=t;return(0,o.kv)(o.ae,null,s.map(((l,a)=>{let c=a===s.length-1,d=["fc-timeline-header-row",t.isTimeScale&&c?"fc-timeline-header-row-chrono":""];return(0,o.kv)("tr",{key:a,className:d.join(" ")},l.map((s=>(0,o.kv)(B,{key:s.date.toISOString(),cell:s,rowLevel:a,dateProfile:e,tDateProfile:t,todayRange:r,nowDate:i,rowInnerHeight:n&&n[a],isSticky:!c}))))})))}}class z{constructor(e,t,n,r,i,o){this.slatRootEl=e,this.dateProfile=n,this.tDateProfile=r,this.dateEnv=i,this.isRtl=o,this.outerCoordCache=new s.CKF(e,t,!0,!1),this.innerCoordCache=new s.CKF(e,(0,s.AIx)(t,"div"),!0,!1)}isDateInRange(e){return(0,s.sH3)(this.dateProfile.currentRange,e)}dateToCoord(e){let{tDateProfile:t}=this,n=this.computeDateSnapCoverage(e)/t.snapsPerSlot,r=Math.floor(n);r=Math.min(r,t.slotCnt-1);let i=n-r,{innerCoordCache:s,outerCoordCache:o}=this;return this.isRtl?o.originClientRect.width-(o.rights[r]-s.getWidth(r)*i):o.lefts[r]+s.getWidth(r)*i}rangeToCoords(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}durationToCoord(e){let{dateProfile:t,tDateProfile:n,dateEnv:r,isRtl:i}=this,o=0;if(t){let l=r.add(t.activeRange.start,e);n.isTimeScale||(l=(0,s.cGz)(l)),o=this.dateToCoord(l),!i&&o&&(o+=1)}return o}coordFromLeft(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}computeDateSnapCoverage(e){return G(e,this.tDateProfile,this.dateEnv)}}function G(e,t,n){let r=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(r<0)return 0;if(r>=t.snapDiffToIndex.length)return t.snapCnt;let i=Math.floor(r),o=t.snapDiffToIndex[i];return(0,s.EH0)(o)?o+=r-i:o=Math.ceil(o),o}function V(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function F(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}class Y extends s.KwV{constructor(){super(...arguments),this.rootElRef=(0,o.Yn)()}render(){let{props:e,context:t}=this,n=(0,s.MxI)(e.tDateProfile.slotDuration).unit,r=e.slatCoords&&e.slatCoords.dateProfile===e.dateProfile?e.slatCoords:null;return(0,o.kv)(s.wln,{unit:n},((n,i)=>(0,o.kv)("div",{className:"fc-timeline-header",ref:this.rootElRef},(0,o.kv)("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,(0,o.kv)("tbody",null,(0,o.kv)(j,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:n,todayRange:i,rowInnerHeights:e.rowInnerHeights}))),t.options.nowIndicator&&(0,o.kv)("div",{className:"fc-timeline-now-indicator-container"},r&&r.isDateInRange(n)&&(0,o.kv)(s.S_z,{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:V(r.dateToCoord(n),t.isRtl),isAxis:!0,date:n})))))}componentDidMount(){this.updateSize()}componentDidUpdate(){this.updateSize()}updateSize(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}computeMaxCushionWidth(){return Math.max(...(0,s._yY)(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map((e=>e.getBoundingClientRect().width)))}}class q extends s.KwV{render(){let{props:e,context:t}=this,{dateEnv:n,options:r,theme:i}=t,{date:l,tDateProfile:a,isEm:c}=e,d=(0,s.cDz)(e.date,e.todayRange,e.nowDate,e.dateProfile),u=Object.assign(Object.assign({date:n.toDate(e.date)},d),{view:t.viewApi});return(0,o.kv)(s.QTN,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",c&&"fc-timeline-slot-em",a.isTimeScale?(0,s.EH0)(n.countDurationsBetween(a.normalizedRange.start,e.date,a.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":"",...e.isDay?(0,s.uMw)(d,i):(0,s.gTO)(d,i)],elAttrs:{"data-date":n.formatIso(l,{omitTimeZoneOffset:!0,omitTime:!a.isTimeScale})},renderProps:u,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},(e=>(0,o.kv)(e,{elTag:"div"})))}}class Q extends s.KwV{render(){let{props:e}=this,{tDateProfile:t,cellElRefs:n}=e,{slotDates:r,isWeekStarts:i}=t,s=!t.isTimeScale&&!t.largeUnit;return(0,o.kv)("tbody",null,(0,o.kv)("tr",null,r.map(((r,l)=>{let a=r.toISOString();return(0,o.kv)(q,{key:a,elRef:n.createRef(a),date:r,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:i[l],isDay:s})}))))}}class Z extends s.KwV{constructor(){super(...arguments),this.rootElRef=(0,o.Yn)(),this.cellElRefs=new s.YdG,this.handleScrollRequest=e=>{let{onScrollLeftRequest:t}=this.props,{coords:n}=this;if(t&&n){if(e.time){t(n.coordFromLeft(n.durationToCoord(e.time)))}return!0}return null}}render(){let{props:e,context:t}=this;return(0,o.kv)("div",{className:"fc-timeline-slots",ref:this.rootElRef},(0,o.kv)("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,(0,o.kv)(Q,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}componentDidMount(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{props:e,context:t}=this;if(null!==e.clientWidth&&this.scrollResponder){this.rootElRef.current.offsetWidth&&(this.coords=new z(this.rootElRef.current,(n=this.cellElRefs.currentMap,e.tDateProfile.slotDates.map((e=>{let t=e.toISOString();return n[t]}))),e.dateProfile,e.tDateProfile,t.dateEnv,t.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))}var n}positionToHit(e){let{outerCoordCache:t}=this.coords,{dateEnv:n,isRtl:r}=this.context,{tDateProfile:i}=this.props,o=t.leftToIndex(e);if(null!=o){let l=t.getWidth(o),a=r?(t.rights[o]-e)/l:(e-t.lefts[o])/l,c=Math.floor(a*i.snapsPerSlot),d=n.add(i.slotDates[o],(0,s.GW3)(i.snapDuration,c));return{dateSpan:{range:{start:d,end:n.add(d,i.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[o],left:t.lefts[o],right:t.rights[o]}}return null}}function X(e,t,n){let r=[];if(n)for(let i of e){let e=n.rangeToCoords(i),s=Math.round(e.start),o=Math.round(e.end);o-s<t&&(o=s+t),r.push({start:s,end:o})}return r}class K extends s.KwV{render(){let{props:e}=this,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&(0,o.kv)("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))}renderSegs(e,t,n){let{todayRange:r,nowDate:i}=this.props,{isRtl:l}=this.context,a=X(e,0,t),c=e.map(((e,t)=>{let c=F(a[t],l);return(0,o.kv)("div",{key:(0,s.i_b)(e.eventRange),className:"fc-timeline-bg-harness",style:c},"bg-event"===n?(0,o.kv)(s.mGP,Object.assign({seg:e},(0,s.qo9)(e,r,i))):(0,s.kJf)(n))}));return(0,o.kv)(o.ae,null,c)}}class $ extends s.crH{sliceRange(e,t,n,r,i){let o=function(e,t,n){if(!t.isTimeScale&&(e=(0,s.cDd)(e),t.largeUnit)){let r=e;((e={start:n.startOf(e.start,t.largeUnit),end:n.startOf(e.end,t.largeUnit)}).end.valueOf()!==r.end.valueOf()||e.end<=e.start)&&(e={start:e.start,end:n.add(e.end,t.slotDuration)})}return e}(e,r,i),l=[];if(G(o.start,r,i)<G(o.end,r,i)){let e=(0,s.A3m)(o,r.normalizedRange);e&&l.push({start:e.start,end:e.end,isStart:e.start.valueOf()===o.start.valueOf()&&O(e.start,r,t,n),isEnd:e.end.valueOf()===o.end.valueOf()&&O((0,s.aMz)(e.end,-1),r,t,n)})}return l}}const J=(0,s.iSq)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});class ee extends s.KwV{render(){let{props:e}=this;return(0,o.kv)(s.yoP,Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:J,defaultDisplayEventTime:!e.isTimeScale}))}}class te extends s.KwV{render(){let{props:e,context:t}=this,{hiddenSegs:n,placement:r,resourceId:i}=e,{top:l,hcoords:a}=r,c=a&&null!==l,d=F(a,t.isRtl),u=i?{resourceId:i}:{};return(0,o.kv)(s.yky,{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:c?"":"hidden",top:l||0},d),allDayDate:null,moreCnt:n.length,allSegs:n,hiddenSegs:n,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:u,popoverContent:()=>(0,o.kv)(o.ae,null,n.map((t=>{let n=t.eventRange.instance.instanceId;return(0,o.kv)("div",{key:n,style:{visibility:e.isForcedInvisible[n]?"hidden":""}},(0,o.kv)(ee,Object.assign({isTimeScale:e.isTimeScale,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection},(0,s.qo9)(t,e.todayRange,e.nowDate))))})))},(e=>(0,o.kv)(e,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]})))}}class ne extends s.KwV{constructor(){super(...arguments),this.slicer=new $,this.sortEventSegs=(0,s.sBp)(s.SWh),this.harnessElRefs=new s.YdG,this.moreElRefs=new s.YdG,this.innerElRef=(0,o.Yn)(),this.state={eventInstanceHeights:{},moreLinkHeights:{}},this.handleResize=e=>{e&&this.updateSize()}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:i,tDateProfile:l}=e,a=this.slicer.sliceProps(e,i,l.isTimeScale?null:e.nextDayThreshold,n,i,n.dateProfileGenerator,l,n.dateEnv),c=(a.eventDrag?a.eventDrag.segs:null)||(a.eventResize?a.eventResize.segs:null)||[],d=this.sortEventSegs(a.fgEventSegs,r.eventOrder),u=X(d,r.eventMinWidth,e.timelineCoords),[h,f]=function(e,t,n,r,i,o){let l=[],a=[];for(let r=0;r<e.length;r+=1){let i=e[r],s=n[i.eventRange.instance.instanceId],o=t[r];s&&o?l.push({index:r,span:o,thickness:s}):a.push({seg:i,hcoords:o,top:null})}let c=new s.UbQ;null!=i&&(c.strictOrder=i),null!=o&&(c.maxStackCnt=o);let d=c.addSegs(l),u=d.map((t=>({seg:e[t.index],hcoords:t.span,top:null}))),h=(0,s.aa3)(d),f=[],p=[];const g=t=>e[t.index];for(let t=0;t<h.length;t+=1){let n=h[t],i=n.entries.map(g),o=r[(0,s.Cmx)((0,s.wFn)(i))];null!=o?f.push({index:e.length+t,thickness:o,span:n.span}):p.push({seg:i,hcoords:n.span,top:null})}c.maxStackCnt=-1,c.addSegs(f);let m=c.toRects(),v=[],b=0;for(let t of m){let n=t.index;v.push({seg:n<e.length?e[n]:h[n-e.length].entries.map(g),hcoords:t.span,top:t.levelCoord}),b=Math.max(b,t.levelCoord+t.thickness)}return[v.concat(a,u,p),b]}(d,u,t.eventInstanceHeights,t.moreLinkHeights,r.eventOrderStrict,r.eventMaxStack),p=(a.eventDrag?a.eventDrag.affectedInstances:null)||(a.eventResize?a.eventResize.affectedInstances:null)||{};return(0,o.kv)(o.ae,null,(0,o.kv)(K,{businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:a.eventResize?a.eventResize.segs:[],dateSelectionSegs:a.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),(0,o.kv)("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:f}},this.renderFgSegs(h,p,!1,!1,!1),this.renderFgSegs(function(e,t,n){if(!e.length||!t)return[];let r=function(e){let t={};for(let n of e){let{seg:e}=n;Array.isArray(e)||(t[e.eventRange.instance.instanceId]=n.top)}return t}(n);return e.map((e=>({seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]})))}(c,e.timelineCoords,h),{},Boolean(a.eventDrag),Boolean(a.eventResize),!1)))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateSize(){let{props:e}=this,{timelineCoords:t}=e;const n=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(n,!1),t&&this.setState({eventInstanceHeights:(0,s.i8o)(this.harnessElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height))),moreLinkHeights:(0,s.i8o)(this.moreElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height)))},(()=>{e.onHeightChange&&e.onHeightChange(n,!0)})),e.syncParentMinHeight&&(n.parentElement.style.minHeight=n.style.height)}renderFgSegs(e,t,n,r,i){let{harnessElRefs:l,moreElRefs:a,props:c,context:d}=this,u=n||r||i;return(0,o.kv)(o.ae,null,e.map((e=>{let{seg:h,hcoords:f,top:p}=e;if(Array.isArray(h)){let n=(0,s.Cmx)((0,s.wFn)(h));return(0,o.kv)(te,{key:"m:"+n,elRef:a.createRef(n),hiddenSegs:h,placement:e,dateProfile:c.dateProfile,nowDate:c.nowDate,todayRange:c.todayRange,isTimeScale:c.tDateProfile.isTimeScale,eventSelection:c.eventSelection,resourceId:c.resourceId,isForcedInvisible:t})}let g=h.eventRange.instance.instanceId,m=u||Boolean(!t[g]&&f&&null!==p),v=F(f,d.isRtl);return(0,o.kv)("div",{key:"e:"+g,ref:u?null:l.createRef(g),className:"fc-timeline-event-harness",style:Object.assign({visibility:m?"":"hidden",top:p||0},v)},(0,o.kv)(ee,Object.assign({isTimeScale:c.tDateProfile.isTimeScale,seg:h,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:g===c.eventSelection},(0,s.qo9)(h,c.todayRange,c.nowDate))))})))}}ne.addStateEquality({eventInstanceHeights:s.SSD,moreLinkHeights:s.SSD});class re extends s.i42{constructor(){super(...arguments),this.slatsRef=(0,o.Yn)(),this.state={coords:null},this.handeEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleCoords=e=>{this.setState({coords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:i,tDateProfile:l}=e,a=(0,s.MxI)(l.slotDuration).unit;return(0,o.kv)("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:e.tableMinWidth,height:e.clientHeight,width:e.clientWidth}},(0,o.kv)(s.wln,{unit:a},((a,c)=>(0,o.kv)(o.ae,null,(0,o.kv)(Z,{ref:this.slatsRef,dateProfile:i,tDateProfile:l,nowDate:a,todayRange:c,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleCoords,onScrollLeftRequest:e.onScrollLeftRequest}),(0,o.kv)(ne,{dateProfile:i,tDateProfile:e.tDateProfile,nowDate:a,todayRange:c,nextDayThreshold:r.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:t.coords,syncParentMinHeight:!0}),r.nowIndicator&&t.coords&&t.coords.isDateInRange(a)&&(0,o.kv)("div",{className:"fc-timeline-now-indicator-container"},(0,o.kv)(s.S_z,{elClasses:["fc-timeline-now-indicator-line"],elStyle:V(t.coords.dateToCoord(a),n.isRtl),isAxis:!1,date:a}))))))}queryHit(e,t,n,r){let i=this.slatsRef.current.positionToHit(e);return i?{dateProfile:this.props.dateProfile,dateSpan:i.dateSpan,rect:{left:i.left,right:i.right,top:0,bottom:r},dayEl:i.dayEl,layer:0}:null}}class ie extends s.i42{constructor(){super(...arguments),this.buildTimelineDateProfile=(0,s.sBp)(M),this.scrollGridRef=(0,o.Yn)(),this.state={slatCoords:null,slotCushionMaxWidth:null},this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleScrollLeftRequest=e=>{this.scrollGridRef.current.forceScrollLeft(0,e)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=!e.forPrint&&(0,s.KmY)(r),l=!e.forPrint&&(0,s.u2c)(r),a=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),{slotMinWidth:c}=r,d=se(a,c||this.computeFallbackSlotMinWidth(a)),u=[{type:"header",key:"header",isSticky:i,chunks:[{key:"timeline",content:n=>(0,o.kv)(Y,{dateProfile:e.dateProfile,clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,tDateProfile:a,slatCoords:t.slatCoords,onMaxCushionWidth:c?null:this.handleMaxCushionWidth})}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:t=>(0,o.kv)(re,Object.assign({},e,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:a,onSlatCoords:this.handleSlatCoords,onScrollLeftRequest:this.handleScrollLeftRequest}))}]}];return l&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:s.mci}]}),(0,o.kv)(s.G0N,{elClasses:["fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":""],viewSpec:n.viewSpec},(0,o.kv)(m,{ref:this.scrollGridRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:d}],sections:u}))}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}}function se(e,t){return[{span:e.slotCnt,minWidth:t||1}]}var oe=(0,r.aS)({name:"@fullcalendar/timeline",premiumReleaseDate:"2023-11-29",deps:[i.c],initialView:"timelineDay",views:{timeline:{component:ie,usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}});const le="_fc:",ae={id:String,parentId:String,children:s.ZXb,title:String,businessHours:s.ZXb,extendedProps:s.ZXb,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:s.ZXb,eventOverlap:Boolean,eventAllow:s.ZXb,eventClassNames:s.ct2,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function ce(e,t="",n,r){let{refined:i,extra:o}=(0,s.u0H)(e,ae),l={id:i.id||le+(0,s.YF7)(),parentId:i.parentId||t,title:i.title||"",businessHours:i.businessHours?(0,s.EtK)(i.businessHours,r):null,ui:(0,s.yAt)({editable:i.eventEditable,startEditable:i.eventStartEditable,durationEditable:i.eventDurationEditable,constraint:i.eventConstraint,overlap:i.eventOverlap,allow:i.eventAllow,classNames:i.eventClassNames,backgroundColor:i.eventBackgroundColor,borderColor:i.eventBorderColor,textColor:i.eventTextColor,color:i.eventColor},r),extendedProps:Object.assign(Object.assign({},o),i.extendedProps)};if(Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),n[l.id]);else if(n[l.id]=l,i.children)for(let e of i.children)ce(e,l.id,n,r);return l}function de(e){return 0===e.indexOf(le)?"":e}class ue{constructor(e,t){this._context=e,this._resource=t}setProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}setExtendedProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}sync(e){let t=this._context,n=e.id;this._resource=t.getCurrentData().resourceStore[n],t.emitter.trigger("resourceChange",{oldResource:new ue(t,e),resource:this,revert(){t.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:e}})}})}remove(){let e=this._context,t=this._resource,n=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),e.emitter.trigger("resourceRemove",{resource:this,revert(){e.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:t}})}})}getParent(){let e=this._context,t=this._resource.parentId;return t?new ue(e,e.getCurrentData().resourceStore[t]):null}getChildren(){let e=this._resource.id,t=this._context,{resourceStore:n}=t.getCurrentData(),r=[];for(let i in n)n[i].parentId===e&&r.push(new ue(t,n[i]));return r}getEvents(){let e=this._resource.id,t=this._context,{defs:n,instances:r}=t.getCurrentData().eventStore,i=[];for(let o in r){let l=r[o],a=n[l.defId];-1!==a.resourceIds.indexOf(e)&&i.push(new s.wzc(t,a,l))}return i}get id(){return de(this._resource.id)}get title(){return this._resource.title}get eventConstraint(){return this._resource.ui.constraints[0]||null}get eventOverlap(){return this._resource.ui.overlap}get eventAllow(){return this._resource.ui.allows[0]||null}get eventBackgroundColor(){return this._resource.ui.backgroundColor}get eventBorderColor(){return this._resource.ui.borderColor}get eventTextColor(){return this._resource.ui.textColor}get eventClassNames(){return this._resource.ui.classNames}get extendedProps(){return this._resource.extendedProps}toPlainObject(e={}){let t=this._resource,{ui:n}=t,r=this.id,i={};return r&&(i.id=r),t.title&&(i.title=t.title),e.collapseEventColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.eventColor=n.backgroundColor:(n.backgroundColor&&(i.eventBackgroundColor=n.backgroundColor),n.borderColor&&(i.eventBorderColor=n.borderColor)),n.textColor&&(i.eventTextColor=n.textColor),n.classNames.length&&(i.eventClassNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}toJSON(){return this.toPlainObject()}}function he(e){return{resource:new ue(e.context,e.resource)}}const fe=(0,s.I1q)("id,title");s.KwV;s.KwV;s.KwV;function pe(e,t,n,r,i,s){let o=function(e,t,n,r){let i=function(e,t){let n={};for(let t in e){let r=e[t];n[t]={resource:r,resourceFields:be(r),children:[]}}for(let r in e){let i=e[r];if(i.parentId){let e=n[i.parentId];e&&ve(n[r],e.children,t)}}return n}(e,r),s=[];for(let e in i){let o=i[e];o.resource.parentId||me(o,s,n,0,t,r)}return s}(e,r?-1:1,t,n),l=[];return ge(o,l,r,[],0,i,s),l}function ge(e,t,n,r,i,s,o){for(let l=0;l<e.length;l+=1){let a=e[l],c=a.group;if(c)if(n){let e=t.length,l=r.length;if(ge(a.children,t,n,r.concat(0),i,s,o),e<t.length){let n=t[e];(n.rowSpans=n.rowSpans.slice())[l]=t.length-e}}else{let e=c.spec.field+":"+c.value,l=null!=s[e]?s[e]:o;t.push({id:e,group:c,isExpanded:l}),l&&ge(a.children,t,n,r,i+1,s,o)}else if(a.resource){let e=a.resource.id,l=null!=s[e]?s[e]:o;t.push({id:e,rowSpans:r,depth:i,isExpanded:l,hasChildren:Boolean(a.children.length),resource:a.resource,resourceFields:a.resourceFields}),l&&ge(a.children,t,n,r,i+1,s,o)}}}function me(e,t,n,r,i,o){if(n.length&&(-1===i||r<=i)){let l=function(e,t,n){let r,i,o=e.resourceFields[n.field];if(n.order)for(i=0;i<t.length;i+=1){let e=t[i];if(e.group){let t=(0,s.eIT)(o,e.group.value)*n.order;if(0===t){r=e;break}if(t<0)break}}else for(i=0;i<t.length;i+=1){let e=t[i];if(e.group&&o===e.group.value){r=e;break}}r||(r={group:{value:o,spec:n},children:[]},t.splice(i,0,r));return r}(e,t,n[0]);me(e,l.children,n.slice(1),r+1,i,o)}else ve(e,t,o)}function ve(e,t,n){let r;for(r=0;r<t.length;r+=1){if((0,s.aoJ)(t[r].resourceFields,e.resourceFields,n)>0)break}t.splice(r,0,e)}function be(e){let t=Object.assign(Object.assign(Object.assign({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}class ye extends s.SMo{getKeyInfo(e){return Object.assign({"":{}},e.resourceStore)}getKeysForDateSpan(e){return[e.resourceId||""]}getKeysForEventDef(e){let t=e.resourceIds;return t.length?t:[""]}}function Ee(e,t){let{resourceEditable:n}=e;if(null==n){let r=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];r&&(n=r.extendedProps.resourceEditable),null==n&&(n=t.options.eventResourceEditable,null==n&&(n=t.options.editable))}return n}function Se(e,t,n,r){if(t){let t=function(e,t){return(0,s.qqM)(e,(e=>(0,s.K4M)(e.range,t)))}(n.instances,r),i=function(e,t){let n={};for(let r in e){let i=e[r];for(let e of t[i.defId].resourceIds)n[e]=!0}return n}(t,n.defs);return Object.assign(i,function(e,t){let n={};for(let r in e){let e;for(;(e=t[r])&&(r=e.parentId,r);)n[r]=!0}return n}(i,e)),(0,s.qqM)(e,((e,t)=>i[t]))}return e}function we(e){return(0,s.i8o)(e,(e=>e.ui))}function Ae(e,t,n){return(0,s.i8o)(e,((e,r)=>r?function(e,t,n){let r=[];for(let e of t.resourceIds)n[e]&&r.unshift(n[e]);return r.unshift(e),(0,s.s3c)(r)}(e,t[r],n):e))}let Ce=[];function De(e){Ce.push(e)}function Re(e){return Ce[e]}function _e(){return Ce}const ke={id:String,resources:s.ZXb,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:s.ZXb};function xe(e){let t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){let{refined:n,extra:r}=(0,s.u0H)(t,ke);!function(e){for(let t in e)console.warn(`Unknown resource prop '${t}'`)}(r);let i=function(e){let t=_e();for(let n=t.length-1;n>=0;n-=1){let r=t[n].parseMeta(e);if(r)return{meta:r,sourceDefId:n}}return null}(n);if(i)return{_raw:e,sourceId:(0,s.YF7)(),sourceDefId:i.sourceDefId,meta:i.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Te(e,t,n){let{options:r,dateProfile:i}=n;if(!e||!t)return Me(r.initialResources||r.resources,i.activeRange,r.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return Me(t.resourceSourceInput,i.activeRange,r.refetchResourcesOnNavigate,n);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return function(e,t,n,r){if(n&&!function(e){return Boolean(Re(e.sourceDefId).ignoreRange)}(e)&&(!e.fetchRange||!(0,s.C_g)(e.fetchRange,t)))return Ie(e,t,r);return e}(e,i.activeRange,r.refetchResourcesOnNavigate,n);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return function(e,t,n){if(t===e.latestFetchId)return Object.assign(Object.assign({},e),{isFetching:!1,fetchRange:n});return e}(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return Ie(e,i.activeRange,n);default:return e}}function Me(e,t,n,r){if(e){let i=xe(e);return i=Ie(i,n?t:null,r),i}return null}function Ie(e,t,n){let r=Re(e.sourceDefId),i=(0,s.YF7)();return r.fetch({resourceSource:e,range:t,context:n},(e=>{n.dispatch({type:"RECEIVE_RESOURCES",fetchId:i,fetchRange:t,rawResources:e.rawResources})}),(e=>{n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:i,fetchRange:t,error:e})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:i})}function Oe(e,t,n,r){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return function(e,t,n,r,i){if(r.latestFetchId===n){let e={};for(let n of t)ce(n,"",e,i);return e}return e}(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return i=e,s=t.resourceHash,Object.assign(Object.assign({},i),s);case"REMOVE_RESOURCE":return function(e,t){let n=Object.assign({},e);delete n[t];for(let e in n)n[e].parentId===t&&(n[e]=Object.assign(Object.assign({},n[e]),{parentId:""}));return n}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,n,r){let i=e[t];if(i)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{[n]:r})});return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,n,r){let i=e[t];if(i)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{extendedProps:Object.assign(Object.assign({},i.extendedProps),{[n]:r})})});return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var i,s}const Ne={resourceId:String,resourceIds:s.ZXb,resourceEditable:Boolean};function Pe(e,t){return Object.assign(Object.assign({},t),{constraints:He(e,t.constraints)})}function He(e,t){return t.map((t=>{let n=t.defs;if(n)for(let t in n){let r=n[t].resourceIds;if(r.length&&-1===r.indexOf(e))return!1}return t}))}s.kr9.prototype.addResource=function(e,t=!0){let n,r,i=this.getCurrentData();e instanceof ue?(r=e._resource,n={[r.id]:r}):(n={},r=ce(e,"",n,i)),this.dispatch({type:"ADD_RESOURCE",resourceHash:n}),t&&this.trigger("_scrollRequest",{resourceId:r.id});let s=new ue(i,r);return i.emitter.trigger("resourceAdd",{resource:s,revert:()=>{this.dispatch({type:"REMOVE_RESOURCE",resourceId:r.id})}}),s},s.kr9.prototype.getResourceById=function(e){e=String(e);let t=this.getCurrentData();if(t.resourceStore){let n=t.resourceStore[e];if(n)return new ue(t,n)}return null},s.kr9.prototype.getResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)n.push(new ue(e,t[r]));return n},s.kr9.prototype.getTopLevelResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)t[r].parentId||n.push(new ue(e,t[r]));return n},s.kr9.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};const Be={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}};const Ue={initialResources:s.ZXb,resources:s.ZXb,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:s.I1q,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:s.ZXb,resourceAreaColumns:s.ZXb,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:s.ZXb,resourceAreaHeaderContent:s.ZXb,resourceAreaHeaderDidMount:s.ZXb,resourceAreaHeaderWillUnmount:s.ZXb,resourceGroupLabelClassNames:s.ZXb,resourceGroupLabelContent:s.ZXb,resourceGroupLabelDidMount:s.ZXb,resourceGroupLabelWillUnmount:s.ZXb,resourceLabelClassNames:s.ZXb,resourceLabelContent:s.ZXb,resourceLabelDidMount:s.ZXb,resourceLabelWillUnmount:s.ZXb,resourceLaneClassNames:s.ZXb,resourceLaneContent:s.ZXb,resourceLaneDidMount:s.ZXb,resourceLaneWillUnmount:s.ZXb,resourceGroupLaneClassNames:s.ZXb,resourceGroupLaneContent:s.ZXb,resourceGroupLaneDidMount:s.ZXb,resourceGroupLaneWillUnmount:s.ZXb},Le={resourcesSet:s.ZXb,resourceAdd:s.ZXb,resourceChange:s.ZXb,resourceRemove:s.ZXb};s.wzc.prototype.getResources=function(){let{calendarApi:e}=this._context;return this._def.resourceIds.map((t=>e.getResourceById(t)))},s.wzc.prototype.setResources=function(e){let t=[];for(let n of e){let e=null;"string"==typeof n?e=n:"number"==typeof n?e=String(n):n instanceof ue?e=n.id:console.warn("unknown resource type: "+n),e&&t.push(e)}this.mutate({standardProps:{resourceIds:t}})},De({ignoreRange:!0,parseMeta:e=>Array.isArray(e.resources)?e.resources:null,fetch(e,t){t({rawResources:e.resourceSource.meta})}}),De({parseMeta:e=>"function"==typeof e.resources?e.resources:null,fetch(e,t,n){const r=e.context.dateEnv,i=e.resourceSource.meta,o=e.range?{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}:{};(0,s.Idc)(i.bind(null,o),(e=>t({rawResources:e})),n)}}),De({parseMeta:e=>e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null,fetch(e,t,n){const r=e.resourceSource.meta,i=function(e,t,n){let r,i,s,o,{dateEnv:l,options:a}=n,c={};t&&(r=e.startParam,null==r&&(r=a.startParam),i=e.endParam,null==i&&(i=a.endParam),s=e.timeZoneParam,null==s&&(s=a.timeZoneParam),c[r]=l.formatIso(t.start),c[i]=l.formatIso(t.end),"local"!==l.timeZone&&(c[s]=l.timeZone));o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};return Object.assign(c,o),c}(r,e.range,e.context);(0,s.Grs)(r.method,r.url,i).then((([e,n])=>{t({rawResources:e,response:n})}),n)}});var We=(0,r.aS)({name:"@fullcalendar/resource",premiumReleaseDate:"2023-11-29",deps:[i.c],reducers:[function(e,t,n){let r=Te(e&&e.resourceSource,t,n),i=Oe(e&&e.resourceStore,t,r,n),s=function(e,t){return e&&t?"SET_RESOURCE_ENTITY_EXPANDED"===t.type?Object.assign(Object.assign({},e),{[t.id]:t.isExpanded}):e:{}}(e&&e.resourceEntityExpansions,t);return{resourceSource:r,resourceStore:i,resourceEntityExpansions:s}}],isLoadingFuncs:[e=>e.resourceSource&&e.resourceSource.isFetching],eventRefiners:Ne,eventDefMemberAdders:[function(e){return{resourceIds:(t=e.resourceIds,(t||[]).map((e=>String(e)))).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable};var t}],isDraggableTransformers:[function(e,t,n,r){if(!e){let e=r.getCurrentData();if(e.viewSpecs[e.currentViewType].optionDefaults.needsResourceData&&Ee(t,r))return!0}return e}],eventDragMutationMassagers:[function(e,t,n){let r=t.dateSpan.resourceId,i=n.dateSpan.resourceId;r&&i&&r!==i&&(e.resourceMutation={matchResourceId:r,setResourceId:i})}],eventDefMutationAppliers:[function(e,t,n){let r=t.resourceMutation;if(r&&Ee(e,n)){let t=e.resourceIds.indexOf(r.matchResourceId);if(-1!==t){let n=e.resourceIds.slice();n.splice(t,1),-1===n.indexOf(r.setResourceId)&&n.push(r.setResourceId),e.resourceIds=n}}}],dateSelectionTransformers:[function(e,t){let n=e.dateSpan.resourceId,r=t.dateSpan.resourceId;return n&&r?{resourceId:n}:null}],datePointTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],dateSpanTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],viewPropsTransformers:[class{constructor(){this.filterResources=(0,s.sBp)(Se)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}},class{constructor(){this.buildResourceEventUis=(0,s.sBp)(we,s.SSD),this.injectResourceEventUis=(0,s.sBp)(Ae)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}}],isPropsValid:function(e,t){let n=(new ye).splitProps(Object.assign(Object.assign({},e),{resourceStore:t.getCurrentData().resourceStore}));for(let e in n){let r=n[e];if(e&&n[""]&&(r=Object.assign(Object.assign({},r),{eventStore:(0,s.otN)(n[""].eventStore,r.eventStore),eventUiBases:Object.assign(Object.assign({},n[""].eventUiBases),r.eventUiBases)})),!(0,s.Y1n)(r,t,{resourceId:e},Pe.bind(null,e)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){let{resourceMutation:n}=e;if(n){let{calendarApi:e}=t;return{oldResource:e.getResourceById(n.matchResourceId),newResource:e.getResourceById(n.setResourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:Be,optionRefiners:Ue,listenerRefiners:Le,propSetHandlers:{resourceStore:function(e,t){let{emitter:n}=t;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",function(e,t){let n=[];for(let r in e)n.push(new ue(t,e[r]));return n}(e,t))}}});function je({depth:e,hasChildren:t,isExpanded:n,onExpanderClick:r}){let i=[];for(let t=0;t<e;t+=1)i.push((0,o.kv)("span",{className:"fc-icon"}));let s=["fc-icon"];return t&&(n?s.push("fc-icon-minus-square"):s.push("fc-icon-plus-square")),i.push((0,o.kv)("span",{className:"fc-datagrid-expander"+(t?"":" fc-datagrid-expander-placeholder"),onClick:r},(0,o.kv)("span",{className:s.join(" ")}))),(0,o.kv)(o.ae,{},...i)}(0,s.Uf2)(".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}");class ze extends s.KwV{constructor(){super(...arguments),this.refineRenderProps=(0,s.uqH)(Ve),this.onExpanderClick=e=>{let{props:t}=this;t.hasChildren&&this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})}}render(){let{props:e,context:t}=this,{colSpec:n}=e,r=this.refineRenderProps({resource:e.resource,fieldValue:e.fieldValue,context:t});return(0,o.kv)(s.QTN,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":e.resource.id},renderProps:r,generatorName:n.isMain?"resourceLabelContent":void 0,customGenerator:n.cellContent,defaultGenerator:Ge,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(t=>(0,o.kv)("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},(0,o.kv)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&(0,o.kv)(je,{depth:e.depth,hasChildren:e.hasChildren,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),(0,o.kv)(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))))}}function Ge(e){return e.fieldValue||(0,o.kv)(o.ae,null," ")}function Ve(e){return{resource:new ue(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}class Fe extends s.KwV{render(){let{props:e,context:t}=this,{colSpec:n}=e,r={groupValue:e.fieldValue,view:t.viewApi};return(0,o.kv)(s.QTN,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:r,generatorName:"resourceGroupLabelContent",customGenerator:n.cellContent,defaultGenerator:Ye,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(e=>(0,o.kv)("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},(0,o.kv)(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]}))))}}function Ye(e){return e.groupValue||(0,o.kv)(o.ae,null," ")}class qe extends s.KwV{render(){let{props:e}=this,{resource:t,rowSpans:n,depth:r}=e,i=be(t);return(0,o.kv)("tr",{role:"row"},e.colSpecs.map(((s,l)=>{let a=n[l];if(0===a)return null;null==a&&(a=1);let c=s.field?i[s.field]:t.title||de(t.id);return a>1?(0,o.kv)(Fe,{key:l,colSpec:s,fieldValue:c,rowSpan:a}):(0,o.kv)(ze,{key:l,colSpec:s,resource:t,fieldValue:c,depth:r,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})})))}}qe.addPropsEquality({rowSpans:s.WCC});class Qe extends s.KwV{constructor(){super(...arguments),this.innerInnerRef=(0,o.Yn)(),this.onExpanderClick=()=>{let{props:e}=this;this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})}}render(){let{props:e,context:t}=this,n={groupValue:e.group.value,view:t.viewApi},r=e.group.spec;return(0,o.kv)("tr",{role:"row"},(0,o.kv)(s.QTN,{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",t.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.spreadsheetColCnt},renderProps:n,generatorName:"resourceGroupLabelContent",customGenerator:r.labelContent,defaultGenerator:Ze,classNameGenerator:r.labelClassNames,didMount:r.labelDidMount,willUnmount:r.labelWillUnmount},(t=>(0,o.kv)("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},(0,o.kv)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:this.innerInnerRef},(0,o.kv)(je,{depth:0,hasChildren:!0,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),(0,o.kv)(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]}))))))}}function Ze(e){return e.groupValue||(0,o.kv)(o.ae,null," ")}Qe.addPropsEquality({group:function(e,t){return e.spec===t.spec&&e.value===t.value}});class Xe extends s.KwV{constructor(){super(...arguments),this.resizerElRefs=new s.YdG(this._handleColResizerEl.bind(this)),this.colDraggings={}}render(){let{colSpecs:e,superHeaderRendering:t,rowInnerHeights:n}=this.props,r={view:this.context.viewApi},i=[];if(n=n.slice(),t){let l=n.shift();i.push((0,o.kv)("tr",{key:"row-super",role:"row"},(0,o.kv)(s.QTN,{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.length},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>(0,o.kv)("div",{className:"fc-datagrid-cell-frame",style:{height:l}},(0,o.kv)(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]}))))))}let l=n.shift();return i.push((0,o.kv)("tr",{key:"row",role:"row"},e.map(((t,n)=>{let i=n===e.length-1;return(0,o.kv)(s.QTN,{key:n,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>(0,o.kv)("div",{className:"fc-datagrid-cell-frame",style:{height:l}},(0,o.kv)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&(0,o.kv)("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},(0,o.kv)("span",{className:"fc-icon"})),(0,o.kv)(e,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!i&&(0,o.kv)("div",{className:"fc-datagrid-cell-resizer",ref:this.resizerElRefs.createRef(n)}))))})))),(0,o.kv)(o.ae,null,i)}_handleColResizerEl(e,t){let{colDraggings:n}=this;if(e){let r=this.initColResizing(e,parseInt(t,10));r&&(n[t]=r)}else{let e=n[t];e&&(e.destroy(),delete n[t])}}initColResizing(e,t){let{pluginHooks:n,isRtl:r}=this.context,{onColWidthChange:i}=this.props,o=n.elementDraggingImpl;if(o){let n,l,a=new o(e);return a.emitter.on("dragstart",(()=>{let r=(0,s._yY)((0,s.Ydk)(e,"tr"),"th");l=r.map((e=>e.getBoundingClientRect().width)),n=l[t]})),a.emitter.on("dragmove",(e=>{l[t]=Math.max(n+e.deltaX*(r?-1:1),20),i&&i(l.slice())})),a.setAutoScrollEnabled(!1),a}return null}}class Ke extends s.KwV{constructor(){super(...arguments),this.refineRenderProps=(0,s.uqH)(he),this.handleHeightChange=(e,t)=>{this.props.onHeightChange&&this.props.onHeightChange((0,s.Ydk)(e,"tr"),t)}}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({resource:e.resource,context:t});return(0,o.kv)("tr",{ref:e.elRef},(0,o.kv)(s.QTN,{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":e.resource.id},renderProps:r,generatorName:"resourceLaneContent",customGenerator:n.resourceLaneContent,classNameGenerator:n.resourceLaneClassNames,didMount:n.resourceLaneDidMount,willUnmount:n.resourceLaneWillUnmount},(t=>(0,o.kv)("div",{className:"fc-timeline-lane-frame",style:{height:e.innerHeight}},(0,o.kv)(t,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),(0,o.kv)(ne,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:e.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:e.timelineCoords,onHeightChange:this.handleHeightChange,resourceId:e.resource.id})))))}}class $e extends s.KwV{render(){let{props:e,context:t}=this,{renderHooks:n}=e,r={groupValue:e.groupValue,view:t.viewApi};return(0,o.kv)("tr",{ref:e.elRef},(0,o.kv)(s.QTN,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:r,generatorName:"resourceGroupLaneContent",customGenerator:n.laneContent,classNameGenerator:n.laneClassNames,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},(t=>(0,o.kv)(t,{elTag:"div",elStyle:{height:e.innerHeight}}))))}}class Je extends s.KwV{render(){let{props:e,context:t}=this,{rowElRefs:n,innerHeights:r}=e;return(0,o.kv)("tbody",null,e.rowNodes.map(((i,s)=>{if(i.group)return(0,o.kv)($e,{key:i.id,elRef:n.createRef(i.id),groupValue:i.group.value,renderHooks:i.group.spec,innerHeight:r[s]||""});if(i.resource){let l=i.resource;return(0,o.kv)(Ke,Object.assign({key:i.id,elRef:n.createRef(i.id)},e.splitProps[l.id],{resource:l,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:l.businessHours||e.fallbackBusinessHours,innerHeight:r[s]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null})))}}class et extends s.KwV{constructor(){super(...arguments),this.rootElRef=(0,o.Yn)(),this.rowElRefs=new s.YdG}render(){let{props:e,context:t}=this;return(0,o.kv)("table",{ref:this.rootElRef,"aria-hidden":!0,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},(0,o.kv)(Je,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}componentWillUnmount(){this.props.onRowCoords&&this.props.onRowCoords(null)}updateCoords(){let{props:e}=this;var t;e.onRowCoords&&null!==e.clientWidth&&this.props.onRowCoords(new s.CKF(this.rootElRef.current,(t=this.rowElRefs.currentMap,e.rowNodes.map((e=>t[e.id]))),!1,!0))}}class tt extends s.i42{constructor(){super(...arguments),this.computeHasResourceBusinessHours=(0,s.sBp)(nt),this.resourceSplitter=new ye,this.bgSlicer=new $,this.slatsRef=(0,o.Yn)(),this.state={slatCoords:null},this.handleEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)},this.handleRowCoords=e=>{this.rowCoords=e,this.props.onRowCoords&&this.props.onRowCoords(e)}}render(){let{props:e,state:t,context:n}=this,{dateProfile:r,tDateProfile:i}=e,l=(0,s.MxI)(i.slotDuration).unit,a=this.computeHasResourceBusinessHours(e.rowNodes),c=this.resourceSplitter.splitProps(e),d=c[""],u=this.bgSlicer.sliceProps(d,r,i.isTimeScale?null:e.nextDayThreshold,n,r,n.dateProfileGenerator,i,n.dateEnv),h=t.slatCoords&&t.slatCoords.dateProfile===e.dateProfile?t.slatCoords:null;return(0,o.kv)("div",{ref:this.handleEl,className:["fc-timeline-body",e.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:e.tableMinWidth}},(0,o.kv)(s.wln,{unit:l},((t,l)=>(0,o.kv)(o.ae,null,(0,o.kv)(Z,{ref:this.slatsRef,dateProfile:r,tDateProfile:i,nowDate:t,todayRange:l,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleSlatCoords,onScrollLeftRequest:e.onScrollLeftRequest}),(0,o.kv)(K,{businessHourSegs:a?null:u.businessHourSegs,bgEventSegs:u.bgEventSegs,timelineCoords:h,eventResizeSegs:u.eventResize?u.eventResize.segs:[],dateSelectionSegs:u.dateSelectionSegs,nowDate:t,todayRange:l}),(0,o.kv)(et,{rowNodes:e.rowNodes,dateProfile:r,tDateProfile:e.tDateProfile,nowDate:t,todayRange:l,splitProps:c,fallbackBusinessHours:a?e.businessHours:null,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,innerHeights:e.rowInnerHeights,slatCoords:h,onRowCoords:this.handleRowCoords,onRowHeightChange:e.onRowHeightChange}),n.options.nowIndicator&&h&&h.isDateInRange(t)&&(0,o.kv)("div",{className:"fc-timeline-now-indicator-container"},(0,o.kv)(s.S_z,{elClasses:["fc-timeline-now-indicator-line"],elStyle:V(h.dateToCoord(t),n.isRtl),isAxis:!1,date:t}))))))}queryHit(e,t){let n=this.rowCoords,r=n.topToIndex(t);if(null!=r){let t=this.props.rowNodes[r].resource;if(t){let i=this.slatsRef.current.positionToHit(e);if(i)return{dateProfile:this.props.dateProfile,dateSpan:{range:i.dateSpan.range,allDay:i.dateSpan.allDay,resourceId:t.id},rect:{left:i.left,right:i.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:i.dayEl,layer:0}}}return null}}function nt(e){for(let t of e){let e=t.resource;if(e&&e.businessHours)return!0}return!1}class rt extends s.KwV{constructor(){super(...arguments),this.scrollGridRef=(0,o.Yn)(),this.timeBodyScrollerElRef=(0,o.Yn)(),this.spreadsheetHeaderChunkElRef=(0,o.Yn)(),this.rootElRef=(0,o.Yn)(),this.ensureScrollGridResizeId=0,this.state={resourceAreaWidthOverride:null},this.ensureScrollGridResize=()=>{this.ensureScrollGridResizeId&&clearTimeout(this.ensureScrollGridResizeId),this.ensureScrollGridResizeId=setTimeout((()=>{this.scrollGridRef.current.handleSizing(!1)}),s.EjX.SCROLLGRID_RESIZE_INTERVAL+1)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=!e.forPrint&&(0,s.KmY)(r),l=!e.forPrint&&(0,s.u2c)(r),a=[{type:"header",key:"header",syncRowHeights:!0,isSticky:i,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:(0,o.kv)("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:(0,o.kv)("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];l&&a.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:s.mci},{key:"divider",outerContent:(0,o.kv)("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:s.mci}]});let c=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:r.resourceAreaWidth;return(0,o.kv)(m,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:c},{cols:[]},{cols:e.timeCols}],sections:a})}forceTimeScroll(e){this.scrollGridRef.current.forceScrollLeft(2,e)}forceResourceScroll(e){this.scrollGridRef.current.forceScrollTop(1,e)}getResourceScroll(){return this.timeBodyScrollerElRef.current.scrollTop}componentDidMount(){this.initSpreadsheetResizing()}componentWillUnmount(){this.destroySpreadsheetResizing()}initSpreadsheetResizing(){let{isRtl:e,pluginHooks:t}=this.context,n=t.elementDraggingImpl,r=this.spreadsheetHeaderChunkElRef.current;if(n){let t,i,s=this.rootElRef.current,o=this.spreadsheetResizerDragging=new n(s,".fc-resource-timeline-divider");o.emitter.on("dragstart",(()=>{t=r.getBoundingClientRect().width,i=s.getBoundingClientRect().width})),o.emitter.on("dragmove",(n=>{let r=t+n.deltaX*(e?-1:1);r=Math.max(r,30),r=Math.min(r,i-30),this.setState({resourceAreaWidthOverride:r},this.ensureScrollGridResize)})),o.setAutoScrollEnabled(!1)}}destroySpreadsheetResizing(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}}class it extends s.KwV{constructor(e,t){super(e,t),this.processColOptions=(0,s.sBp)(at),this.buildTimelineDateProfile=(0,s.sBp)(M),this.hasNesting=(0,s.sBp)(lt),this.buildRowNodes=(0,s.sBp)(pe),this.layoutRef=(0,o.Yn)(),this.rowNodes=[],this.renderedRowNodes=[],this.buildRowIndex=(0,s.sBp)(st),this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleRowCoords=e=>{this.rowCoords=e,this.scrollResponder.update(!1)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})},this.handleScrollLeftRequest=e=>{this.layoutRef.current.forceTimeScroll(e)},this.handleScrollRequest=e=>{let{rowCoords:t}=this,n=this.layoutRef.current,r=e.rowId||e.resourceId;if(t){if(r){let i=this.buildRowIndex(this.renderedRowNodes)[r];if(null!=i){let r=null!=e.fromBottom?t.bottoms[i]-e.fromBottom:t.tops[i];n.forceResourceScroll(r)}}return!0}return null},this.handleColWidthChange=e=>{this.setState({spreadsheetColWidths:e})},this.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]}}render(){let{props:e,state:t,context:n}=this,{options:r,viewSpec:i}=n,{superHeaderRendering:l,groupSpecs:a,orderSpecs:c,isVGrouping:d,colSpecs:u}=this.processColOptions(n.options),h=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),f=this.rowNodes=this.buildRowNodes(e.resourceStore,a,c,d,e.resourceEntityExpansions,r.resourcesInitiallyExpanded),{slotMinWidth:p}=r,g=se(h,p||this.computeFallbackSlotMinWidth(h));return(0,o.kv)(s.G0N,{elClasses:["fc-resource-timeline",!this.hasNesting(f)&&"fc-resource-timeline-flat","fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:i},(0,o.kv)(rt,{ref:this.layoutRef,forPrint:e.forPrint,isHeightAuto:e.isHeightAuto,spreadsheetCols:ot(u,t.spreadsheetColWidths,""),spreadsheetHeaderRows:e=>(0,o.kv)(Xe,{superHeaderRendering:l,colSpecs:u,onColWidthChange:this.handleColWidthChange,rowInnerHeights:e.rowSyncHeights}),spreadsheetBodyRows:e=>(0,o.kv)(o.ae,null,this.renderSpreadsheetRows(f,u,e.rowSyncHeights)),timeCols:g,timeHeaderContent:n=>(0,o.kv)(Y,{clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,dateProfile:e.dateProfile,tDateProfile:h,slatCoords:t.slatCoords,rowInnerHeights:n.rowSyncHeights,onMaxCushionWidth:p?null:this.handleMaxCushionWidth}),timeBodyContent:t=>(0,o.kv)(tt,{dateProfile:e.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:h,rowNodes:f,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,resourceStore:e.resourceStore,nextDayThreshold:n.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:this.handleSlatCoords,onRowCoords:this.handleRowCoords,onScrollLeftRequest:this.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}))}renderSpreadsheetRows(e,t,n){return e.map(((e,r)=>e.group?(0,o.kv)(Qe,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:n[r]||""}):e.resource?(0,o.kv)(qe,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:n[r]||""}):null))}componentDidMount(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}getSnapshotBeforeUpdate(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}componentDidUpdate(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)}componentWillUnmount(){this.scrollResponder.detach()}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}queryResourceScroll(){let{rowCoords:e,renderedRowNodes:t}=this;if(e){let n=this.layoutRef.current,r=e.bottoms,i=n.getResourceScroll(),s={};for(let e=0;e<r.length;e+=1){let n=t[e],o=r[e]-i;if(o>0){s.rowId=n.id,s.fromBottom=o;break}}return s}return null}}function st(e){let t={};for(let n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function ot(e,t,n=""){return e.map(((e,r)=>({className:e.isMain?"fc-main-col":"",width:t[r]||e.width||n})))}function lt(e){for(let t of e){if(t.group)return!0;if(t.resource&&t.hasChildren)return!0}return!1}function at(e){let t=e.resourceAreaColumns||[],n=null;t.length?e.resourceAreaHeaderContent&&(n={headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount}):t.push({headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDefault:()=>"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});let r=[],i=[],s=[],o=!1;for(let n of t)n.group?i.push(Object.assign(Object.assign({},n),{cellClassNames:n.cellClassNames||e.resourceGroupLabelClassNames,cellContent:n.cellContent||e.resourceGroupLabelContent,cellDidMount:n.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:n.cellWillUnmount||e.resourceGroupLaneWillUnmount})):r.push(n);let l=r[0];if(l.isMain=!0,l.cellClassNames=l.cellClassNames||e.resourceLabelClassNames,l.cellContent=l.cellContent||e.resourceLabelContent,l.cellDidMount=l.cellDidMount||e.resourceLabelDidMount,l.cellWillUnmount=l.cellWillUnmount||e.resourceLabelWillUnmount,i.length)s=i,o=!0;else{let t=e.resourceGroupField;t&&s.push({field:t,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}let a=e.resourceOrder||fe,c=[];for(let e of a){let t=!1;for(let n of s)if(n.field===e.field){n.order=e.order,t=!0;break}t||c.push(e)}return{superHeaderRendering:n,isVGrouping:o,groupSpecs:s,colSpecs:i.concat(r),orderSpecs:c}}it.addStateEquality({spreadsheetColWidths:s.WCC});var ct=(0,r.aS)({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2023-11-29",deps:[i.c,We,oe],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:it,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}})}}]);