@data-fair/app-calendar 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Calendar-Q7Hz7f-J.js → Calendar-CgAfnTIv.js} +3 -3
- package/dist/assets/{ContribsDataset-WJhY3tnR.js → ContribsDataset-DZzvIYiU.js} +1 -1
- package/dist/assets/{EventEdit-B1QYjYMV.js → EventEdit-qkI-WyUQ.js} +3 -3
- package/dist/assets/{SnackBar-D4kjYr2k.js → SnackBar-DTnn9zgT.js} +1 -1
- package/dist/assets/{VAlert-BpK-hARZ.js → VAlert-CPEIJnGj.js} +1 -1
- package/dist/assets/{easymde-D_pNMtTz.js → easymde-BmAl4Mcv.js} +1 -1
- package/dist/assets/{forwardRefs-CO9dIFiC.js → forwardRefs-Q-7TKDLV.js} +1 -1
- package/dist/assets/{index-CgMkTZE9.js → index-Cm7tCXCq.js} +2 -2
- package/dist/assets/{router-BfqvE64S.js → router-Ca5dB38V.js} +1 -1
- package/dist/config-schema.json +25 -2
- package/dist/index.html +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EventEdit-
|
|
2
|
-
import{d as ka,h as It,F as Se,T as Wu,o as Yi,n as Ma,g as Gu,a as Yu,u as V,b as xa,i as qu,r as ne,s as Ne,w as Qu,c as F,e as jt,f as Ia,j as ot,k as me,l as Me,m as An,p as Ar,q as Ae,t as Cr,v as Re,x as Yt,y as qi,z as Oe,A as qe,B as R,C as Z,D as ae,E as G,G as fe,H as ve,I as rr,J as Fe,K as Oa,L as ir,M as Zu,N as ze,O as ct,P as Xu,Q as Na,R as Pa,S as Ju,U as Ys,V as Ci,W as Ha,X as Cn,Y as Dn,Z as La,_ as ce,$ as Ot,a0 as Qi,a1 as Ku,a2 as Zi,a3 as bt,a4 as Ba,a5 as ja,a6 as _n,a7 as Rn,a8 as ue,a9 as Va,aa as Xi,ab as ed,ac as td,ad as nd,ae as rd,af as Fa,ag as za,ah as id,ai as Ua,aj as qs,ak as Ke,al as sd,am as Qn,an as ye,ao as ld,ap as sr,aq as ad,ar as od,as as cd,at as ud,au as $a,av as dd,aw as Ji,ax as fd,ay as hd,az as gd,aA as pd,aB as md,aC as vd}from"./index-CgMkTZE9.js";import{d as it,e as st,m as wt,a as Dr,b as Wa,u as Ga,c as Ya,g as qa,V as ht}from"./router-BfqvE64S.js";import{c as Qa,V as je,a as et,b as Tn,m as Za,u as Xa,d as Qs,e as Ki,f as es,g as ts,h as bd,i as yd,R as Ja,j as ns,k as rs,l as is,n as Sd,o as Ed,p as lr,q as _r,r as Rr,s as kn,t as ss,v as Zs,w as Xs,x as Js}from"./VAlert-BpK-hARZ.js";import{m as Ka,u as eo,V as ar,f as to,a as Ln,d as wd,s as Ks,b as Ad,g as Cd,n as Dd,c as el}from"./forwardRefs-CO9dIFiC.js";var Tr,U,no,ro,Jt,xt,tl,io,so,or={},lo=[],_d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function gt(t,e){for(var n in e)t[n]=e[n];return t}function ao(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,i,s,l={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?Tr.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return Zn(t,l,r,i,null)}function Zn(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++no};return i==null&&U.vnode!=null&&U.vnode(s),s}function _e(){return{current:null}}function re(t){return t.children}function Rd(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||cr(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||cr(t,s,e[s],n[s],r)}function nl(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||_d.test(e)?n:n+"px"}function cr(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||nl(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||nl(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r||t.addEventListener(e,s?il:rl,s):t.removeEventListener(e,s?il:rl,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function rl(t){Jt=!0;try{return this.l[t.type+!1](U.event?U.event(t):t)}finally{Jt=!1}}function il(t){Jt=!0;try{return this.l[t.type+!0](U.event?U.event(t):t)}finally{Jt=!1}}function He(t,e){this.props=t,this.context=e}function gn(t,e){if(e==null)return t.__?gn(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?gn(t):null}function oo(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return oo(t)}}function Td(t){Jt?setTimeout(t):io(t)}function Di(t){(!t.__d&&(t.__d=!0)&&xt.push(t)&&!ur.__r++||tl!==U.debounceRendering)&&((tl=U.debounceRendering)||Td)(ur)}function ur(){var t,e,n,r,i,s,l,a;for(xt.sort(function(o,c){return o.__v.__b-c.__v.__b});t=xt.shift();)t.__d&&(e=xt.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=gt({},s)).__v=s.__v+1,ls(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??gn(s),s.__h),go(r,s),s.__e!=l&&oo(s)),xt.length>e&&xt.sort(function(o,c){return o.__v.__b-c.__v.__b}));ur.__r=0}function co(t,e,n,r,i,s,l,a,o,c){var u,d,h,f,g,m,p,b=r&&r.__k||lo,w=b.length;for(n.__k=[],u=0;u<e.length;u++)if((f=n.__k[u]=(f=e[u])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?Zn(null,f,null,null,f):Array.isArray(f)?Zn(re,{children:f},null,null,null):f.__b>0?Zn(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=b[u])===null||h&&f.key==h.key&&f.type===h.type)b[u]=void 0;else for(d=0;d<w;d++){if((h=b[d])&&f.key==h.key&&f.type===h.type){b[d]=void 0;break}h=null}ls(t,f,h=h||or,i,s,l,a,o,c),g=f.__e,(d=f.ref)&&h.ref!=d&&(p||(p=[]),h.ref&&p.push(h.ref,null,f),p.push(d,f.__c||g,f)),g!=null?(m==null&&(m=g),typeof f.type=="function"&&f.__k===h.__k?f.__d=o=uo(f,o,t):o=fo(t,f,h,b,g,o),typeof n.type=="function"&&(n.__d=o)):o&&h.__e==o&&o.parentNode!=t&&(o=gn(h))}for(n.__e=m,u=w;u--;)b[u]!=null&&(typeof n.type=="function"&&b[u].__e!=null&&b[u].__e==n.__d&&(n.__d=ho(r).nextSibling),mo(b[u],b[u]));if(p)for(u=0;u<p.length;u++)po(p[u],p[++u],p[++u])}function uo(t,e,n){for(var r,i=t.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=t,e=typeof r.type=="function"?uo(r,e,n):fo(n,r,r,i,r.__e,e));return e}function dr(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){dr(n,e)}):e.push(t)),e}function fo(t,e,n,r,i,s){var l,a,o;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(i),l=null;else{for(a=s,o=0;(a=a.nextSibling)&&o<r.length;o+=1)if(a==i)break e;t.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function ho(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=ho(n)))return r}return null}function ls(t,e,n,r,i,s,l,a,o){var c,u,d,h,f,g,m,p,b,w,D,C,_,S,y,A=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(c=U.__b)&&c(e);try{e:if(typeof A=="function"){if(p=e.props,b=(c=A.contextType)&&r[c.__c],w=c?b?b.props.value:c.__:r,n.__c?m=(u=e.__c=n.__c).__=u.__E:("prototype"in A&&A.prototype.render?e.__c=u=new A(p,w):(e.__c=u=new He(p,w),u.constructor=A,u.render=Md),b&&b.sub(u),u.props=p,u.state||(u.state={}),u.context=w,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),A.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=gt({},u.__s)),gt(u.__s,A.getDerivedStateFromProps(p,u.__s))),h=u.props,f=u.state,u.__v=e,d)A.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(A.getDerivedStateFromProps==null&&p!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(p,w),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(p,u.__s,w)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=p,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(H){H&&(H.__=e)}),D=0;D<u._sb.length;D++)u.__h.push(u._sb[D]);u._sb=[],u.__h.length&&l.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(p,u.__s,w),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,f,g)})}if(u.context=w,u.props=p,u.__P=t,C=U.__r,_=0,"prototype"in A&&A.prototype.render){for(u.state=u.__s,u.__d=!1,C&&C(e),c=u.render(u.props,u.state,u.context),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[]}else do u.__d=!1,C&&C(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++_<25);u.state=u.__s,u.getChildContext!=null&&(r=gt(gt({},r),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(g=u.getSnapshotBeforeUpdate(h,f)),y=c!=null&&c.type===re&&c.key==null?c.props.children:c,co(t,Array.isArray(y)?y:[y],e,n,r,i,s,l,a,o),u.base=e.__e,e.__h=null,u.__h.length&&l.push(u),m&&(u.__E=u.__=null),u.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=kd(n.__e,e,n,r,i,s,l,o);(c=U.diffed)&&c(e)}catch(H){e.__v=null,(o||s!=null)&&(e.__e=a,e.__h=!!o,s[s.indexOf(a)]=null),U.__e(H,e,n)}}function go(t,e){U.__c&&U.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){U.__e(r,n.__v)}})}function kd(t,e,n,r,i,s,l,a){var o,c,u,d=n.props,h=e.props,f=e.type,g=0;if(f==="svg"&&(i=!0),s!=null){for(;g<s.length;g++)if((o=s[g])&&"setAttribute"in o==!!f&&(f?o.localName===f:o.nodeType===3)){t=o,s[g]=null;break}}if(t==null){if(f===null)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),s=null,a=!1}if(f===null)d===h||a&&t.data===h||(t.data=h);else{if(s=s&&Tr.call(t.childNodes),c=(d=n.props||or).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!a){if(s!=null)for(d={},g=0;g<t.attributes.length;g++)d[t.attributes[g].name]=t.attributes[g].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(Rd(t,h,d,i,a),u)e.__k=[];else if(g=e.props.children,co(t,Array.isArray(g)?g:[g],e,n,r,i&&f!=="foreignObject",s,l,s?s[0]:n.__k&&gn(n,0),a),s!=null)for(g=s.length;g--;)s[g]!=null&&ao(s[g]);a||("value"in h&&(g=h.value)!==void 0&&(g!==t.value||f==="progress"&&!g||f==="option"&&g!==d.value)&&cr(t,"value",g,d.value,!1),"checked"in h&&(g=h.checked)!==void 0&&g!==t.checked&&cr(t,"checked",g,d.checked,!1))}return t}function po(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){U.__e(r,n)}}function mo(t,e,n){var r,i;if(U.unmount&&U.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||po(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){U.__e(s,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&mo(r[i],e,n||typeof t.type!="function");n||t.__e==null||ao(t.__e),t.__=t.__e=t.__d=void 0}function Md(t,e,n){return this.constructor(t,n)}function pn(t,e,n){var r,i,s;U.__&&U.__(t,e),i=(r=typeof n=="function")?null:e.__k,s=[],ls(e,t=(!r&&n||e).__k=v(re,null,[t]),i||or,or,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?Tr.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),go(s,t)}function xd(t,e){var n={__c:e="__cC"+so++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.some(function(a){a.__e=!0,Di(a)})},this.sub=function(l){i.push(l);var a=l.componentWillUnmount;l.componentWillUnmount=function(){i.splice(i.indexOf(l),1),a&&a.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Tr=lo.slice,U={__e:function(t,e,n,r){for(var i,s,l;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),l=i.__d),l)return i.__E=i}catch(a){t=a}throw t}},no=0,ro=function(t){return t!=null&&t.constructor===void 0},Jt=!1,He.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=gt({},this.state),typeof t=="function"&&(t=t(gt({},n),this.props)),t&>(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Di(this))},He.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Di(this))},He.prototype.render=re,xt=[],io=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ur.__r=0,so=0;var Ge,$r,sl,vo=[],Wr=[],ll=U.__b,al=U.__r,ol=U.diffed,cl=U.__c,ul=U.unmount;function Id(){for(var t;t=vo.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Xn),t.__H.__h.forEach(_i),t.__H.__h=[]}catch(e){t.__H.__h=[],U.__e(e,t.__v)}}U.__b=function(t){Ge=null,ll&&ll(t)},U.__r=function(t){al&&al(t);var e=(Ge=t.__c).__H;e&&($r===Ge?(e.__h=[],Ge.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Wr,n.__N=n.i=void 0})):(e.__h.forEach(Xn),e.__h.forEach(_i),e.__h=[])),$r=Ge},U.diffed=function(t){ol&&ol(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(vo.push(e)!==1&&sl===U.requestAnimationFrame||((sl=U.requestAnimationFrame)||Od)(Id)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Wr&&(n.__=n.__V),n.i=void 0,n.__V=Wr})),$r=Ge=null},U.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Xn),n.__h=n.__h.filter(function(r){return!r.__||_i(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],U.__e(r,n.__v)}}),cl&&cl(t,e)},U.unmount=function(t){ul&&ul(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Xn(r)}catch(i){e=i}}),n.__H=void 0,e&&U.__e(e,n.__v))};var dl=typeof requestAnimationFrame=="function";function Od(t){var e,n=function(){clearTimeout(r),dl&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);dl&&(e=requestAnimationFrame(n))}function Xn(t){var e=Ge,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Ge=e}function _i(t){var e=Ge;t.__c=t.__(),Ge=e}function Nd(t,e){for(var n in e)t[n]=e[n];return t}function fl(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function hl(t){this.props=t}(hl.prototype=new He).isPureReactComponent=!0,hl.prototype.shouldComponentUpdate=function(t,e){return fl(this.props,t)||fl(this.state,e)};var gl=U.__b;U.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),gl&&gl(t)};var Pd=U.__e;U.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}Pd(t,e,n,r)};var pl=U.unmount;function bo(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=Nd({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return bo(r,e,n)})),t}function yo(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return yo(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Gr(){this.__u=0,this.t=null,this.__b=null}function So(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Bn(){this.u=null,this.o=null}U.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),pl&&pl(t)},(Gr.prototype=new He).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=So(r.__v),s=!1,l=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=l;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=yo(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}},o=e.__h===!0;r.__u++||o||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(l,l)},Gr.prototype.componentWillUnmount=function(){this.t=[]},Gr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=bo(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&v(re,null,t.fallback);return i&&(i.__h=null),[v(re,null,e.__a?null:t.children),i]};var ml=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Hd(t){return this.getChildContext=function(){return t.context},t.children}function Ld(t){var e=this,n=t.i;e.componentWillUnmount=function(){pn(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),pn(v(Hd,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Bd(t,e){var n=v(Ld,{__v:t,i:e});return n.containerInfo=e,n}(Bn.prototype=new He).__a=function(t){var e=this,n=So(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),ml(e,t,r)):i()};n?n(s):s()}},Bn.prototype.render=function(t){this.u=null,this.o=new Map;var e=dr(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Bn.prototype.componentDidUpdate=Bn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ml(t,n,e)})};var jd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Vd=/^(?: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]/,Fd=typeof document<"u",zd=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(He.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var vl=U.event;function Ud(){}function $d(){return this.cancelBubble}function Wd(){return this.defaultPrevented}U.event=function(t){return vl&&(t=vl(t)),t.persist=Ud,t.isPropagationStopped=$d,t.isDefaultPrevented=Wd,t.nativeEvent=t};var bl={configurable:!0,get:function(){return this.class}},yl=U.vnode;U.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var l=n[s];Fd&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&l==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!zd(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&&Vd.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=l)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=dr(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=dr(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(bl.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",bl))}t.$$typeof=jd,yl&&yl(t)};var Sl=U.__r;U.__r=function(t){Sl&&Sl(t),t.__c};const Eo=[],Ri=new Map;function kr(t){Eo.push(t),Ri.forEach(e=>{Ao(e,t)})}function Gd(t){t.isConnected&&t.getRootNode&&wo(t.getRootNode())}function wo(t){let e=Ri.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=qd();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}Ri.set(t,e),Yd(e)}}function Yd(t){for(const e of Eo)Ao(t,e)}function Ao(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let Yr;function qd(){return Yr===void 0&&(Yr=Qd()),Yr}function Qd(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&wo(document);var Zd=':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;-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;-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)}';kr(Zd);class as{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function os(t){t.parentNode&&t.parentNode.removeChild(t)}function Ee(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Xd(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Xd(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Jd(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(e);for(let l=0;l<s.length;l+=1)r.push(s[l])}return r}const Kd=/(top|left|right|bottom|width|height)$/i;function un(t,e){for(let n in e)Co(t,n,e[n])}function Co(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Kd.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Do(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let El=0;function vt(){return El+=1,"fc-dom-"+El}function Mr(t){t.preventDefault()}function ef(t,e){return n=>{let r=Ee(n.target,t);r&&e.call(r,n,r)}}function _o(t,e,n,r){let i=ef(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function tf(t,e,n,r){let i;return _o(t,"mouseover",e,(s,l)=>{if(l!==i){i=l,n(s,l);let a=o=>{i=null,r(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const wl=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function nf(t,e){let n=r=>{e(r),wl.forEach(i=>{t.removeEventListener(i,n)})};wl.forEach(r=>{t.addEventListener(r,n)})}function Ro(t){return Object.assign({onClick:t},To(t))}function To(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Al=0;function Vt(){return Al+=1,String(Al)}function cs(){document.body.classList.add("fc-not-allowed")}function us(){document.body.classList.remove("fc-not-allowed")}function rf(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Mr)}function sf(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Mr)}function lf(t){t.addEventListener("contextmenu",Mr)}function af(t){t.removeEventListener("contextmenu",Mr)}function of(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function cf(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=uf(t,e,n[r]),i)return i;return 0}function uf(t,e,n){return n.func?n.func(t,e):df(t[n.field],e[n.field])*(n.order||1)}function df(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function qt(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function dn(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function ff(t,e){return t-e}function Jn(t){return t%1===0}function hf(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Cl=["years","months","days","milliseconds"],gf=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function K(t,e){return typeof t=="string"?pf(t):typeof t=="object"&&t?Dl(t):typeof t=="number"?Dl({[e||"milliseconds"]:t}):null}function pf(t){let e=gf.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Dl(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function mf(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Ti(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function vf(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function bf(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function yf(t){return Qt(t)/365}function Sf(t){return Qt(t)/30}function Qt(t){return Ue(t)/864e5}function Ue(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function ds(t,e){let n=null;for(let r=0;r<Cl.length;r+=1){let i=Cl[r];if(e[i]){let s=t[i]/e[i];if(!Jn(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function ki(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function yt(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const Ef=["sun","mon","tue","wed","thu","fri","sat"];function _l(t,e){let n=pt(t);return n[2]+=e*7,xe(n)}function be(t,e){let n=pt(t);return n[2]+=e,xe(n)}function St(t,e){let n=pt(t);return n[6]+=e,xe(n)}function wf(t,e){return At(t,e)/7}function At(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Af(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Cf(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Df(t,e){return(e.valueOf()-t.valueOf())/1e3}function _f(t,e){let n=ie(t),r=ie(e);return{years:0,months:0,days:Math.round(At(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function Rf(t,e){let n=fr(t,e);return n!==null&&n%7===0?n/7:null}function fr(t,e){return mt(t)===mt(e)?Math.round(At(t,e)):null}function ie(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Tf(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function kf(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Mf(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function xf(t,e,n){let r=t.getUTCFullYear(),i=qr(t,r,e,n);if(i<1)return qr(t,r-1,e,n);let s=qr(t,r+1,e,n);return s>=1?Math.min(i,s):i}function qr(t,e,n,r){let i=xe([e,0,1+If(e,n,r)]),s=ie(t),l=Math.round(At(i,s));return Math.floor(l/7)+1}function If(t,e,n){let r=7+e-n;return-((7+xe([t,0,r]).getUTCDay()-e)%7)+r-1}function Rl(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Tl(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function pt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function xe(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function ko(t){return!isNaN(t.valueOf())}function mt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Mo(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",fs(e,!0)))),r}function Mn(t){return t.toISOString().replace(/T.*$/,"")}function Of(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Nf(t){return qt(t.getUTCHours(),2)+":"+qt(t.getUTCMinutes(),2)+":"+qt(t.getUTCSeconds(),2)}function fs(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+qt(i,2)}:${qt(s,2)}`:`GMT${n}${i}${s?`:${qt(s,2)}`:""}`}function z(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!yt(r,s)){let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function Kn(t,e,n){let r,i;return s=>(r?Ye(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const kl={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},hr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},jn=/\s*([ap])\.?m\.?/i,Pf=/,/g,Hf=/\s+/g,Lf=/\u200e/g,Bf=/UTC|GMT/;class jf{constructor(e){let n={},r={},i=0;for(let s in e)s in kl?(r[s]=e[s],i=Math.max(kl[s],i)):(n[s]=e[s],s in hr&&(i=Math.max(hr[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=z(Ml)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,a=Wf(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let c=this.format(e,r),u=this.format(n,r);if(c===u)return c;let d=Gf(s,o),h=Ml(d,l,r),f=h(e),g=h(n),m=Yf(c,f,u,g),p=l.separator||i||r.defaultSeparator||"";return m?m.before+f+p+g+m.after:c+p+u}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 Ml(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>fs(i.timeZoneOffset):r===0&&e.week?i=>$f(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):Vf(t,e,n)}function Vf(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Ff(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,a;i&&!l.getUTCMinutes()?a=i:a=r;let o=a.format(l);return zf(o,s,t,e,n)}}function Ff(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function zf(t,e,n,r,i){return t=t.replace(Lf,""),n.timeZoneName==="short"&&(t=Uf(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":fs(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Pf,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(jn,"").trim():r.meridiem==="narrow"?t=t.replace(jn,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(jn,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(jn,s=>s.toLocaleLowerCase())),t=t.replace(Hf," "),t=t.trim(),t}function Uf(t,e){let n=!1;return t=t.replace(Bf,()=>(n=!0,e)),n||(t+=` ${e}`),t}function $f(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function Wf(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:mt(t)!==mt(e)?1:0}function Gf(t,e){let n={};for(let r in t)(!(r in hr)||hr[r]<=e)&&(n[r]=t[r]);return n}function Yf(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let l=t.substr(0,s);i=s+e.length;let a=t.substr(i),o=0;for(;o<n.length;){let c=n.indexOf(r,o);if(c===-1)break;let u=n.substr(0,c);o=c+r.length;let d=n.substr(o);if(l===u&&a===d)return{before:l,after:a}}}return null}function xl(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.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 gr(t,e,n,r){let i=xl(t,n.calendarSystem),s=e?xl(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class qf{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,gr(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,gr(e,n,r,i))}}class Qf{constructor(e){this.func=e}format(e,n,r){return this.func(gr(e,null,n,r))}formatRange(e,n,r,i){return this.func(gr(e,n,r,i))}}function se(t){return typeof t=="object"&&t?new jf(t):typeof t=="string"?new qf(t):typeof t=="function"?new Qf(t):null}const Il={navLinkDayClick:E,navLinkWeekClick:E,duration:K,bootstrapFontAwesome:E,buttonIcons:E,customButtons:E,defaultAllDayEventDuration:K,defaultTimedEventDuration:K,nextDayThreshold:K,scrollTime:K,scrollTimeReset:Boolean,slotMinTime:K,slotMaxTime:K,dayPopoverFormat:se,slotDuration:K,snapDuration:K,headerToolbar:E,footerToolbar:E,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:se,dayHeaderClassNames:E,dayHeaderContent:E,dayHeaderDidMount:E,dayHeaderWillUnmount:E,dayCellClassNames:E,dayCellContent:E,dayCellDidMount:E,dayCellWillUnmount:E,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:E,weekNumbers:Boolean,weekNumberClassNames:E,weekNumberContent:E,weekNumberDidMount:E,weekNumberWillUnmount:E,editable:Boolean,viewClassNames:E,viewDidMount:E,viewWillUnmount:E,nowIndicator:Boolean,nowIndicatorClassNames:E,nowIndicatorContent:E,nowIndicatorDidMount:E,nowIndicatorWillUnmount:E,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:E,locale:E,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:E,eventOrder:of,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:E,contentHeight:E,direction:String,weekNumberFormat:se,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:E,initialDate:E,now:E,eventDataTransform:E,stickyHeaderDates:E,stickyFooterScrollbar:E,viewHeight:E,defaultAllDay:Boolean,eventSourceFailure:E,eventSourceSuccess:E,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:E,eventConstraint:E,eventAllow:E,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:E,eventContent:E,eventDidMount:E,eventWillUnmount:E,selectConstraint:E,selectOverlap:E,selectAllow:E,droppable:Boolean,unselectCancel:String,slotLabelFormat:E,slotLaneClassNames:E,slotLaneContent:E,slotLaneDidMount:E,slotLaneWillUnmount:E,slotLabelClassNames:E,slotLabelContent:E,slotLabelDidMount:E,slotLabelWillUnmount:E,dayMaxEvents:E,dayMaxEventRows:E,dayMinWidth:Number,slotLabelInterval:K,allDayText:String,allDayClassNames:E,allDayContent:E,allDayDidMount:E,allDayWillUnmount:E,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:se,rerenderDelay:Number,moreLinkText:E,moreLinkHint:E,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:E,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:K,hiddenDays:E,fixedWeekCount:Boolean,validRange:E,visibleRange:E,titleFormat:E,eventInteractive:Boolean,noEventsText:String,viewHint:E,navLinkHint:E,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:E,moreLinkClassNames:E,moreLinkContent:E,moreLinkDidMount:E,moreLinkWillUnmount:E,monthStartFormat:se,handleCustomRendering:E,customRenderingMetaMap:E,customRenderingReplaces:Boolean},fn={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"}},Ol={datesSet:E,eventsSet:E,eventAdd:E,eventChange:E,eventRemove:E,windowResize:E,eventClick:E,eventMouseEnter:E,eventMouseLeave:E,select:E,unselect:E,loading:E,_unmount:E,_beforeprint:E,_afterprint:E,_noEventDrop:E,_noEventResize:E,_resize:E,_scrollRequest:E},Nl={buttonText:E,buttonHints:E,views:E,plugins:E,initialEvents:E,events:E,eventSources:E},kt={headerToolbar:Mt,footerToolbar:Mt,buttonText:Mt,buttonHints:Mt,buttonIcons:Mt,dateIncrement:Mt,plugins:Vn,events:Vn,eventSources:Vn,resources:Vn};function Mt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Ye(t,e):t===e}function Vn(t,e){return Array.isArray(t)&&Array.isArray(e)?yt(t,e):t===e}const Zf={type:String,component:E,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:E,usesMinMaxTime:Boolean,classNames:E,content:E,didMount:E,willUnmount:E};function Qr(t){return gs(t,kt)}function hs(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function E(t){return t}const{hasOwnProperty:pr}=Object.prototype;function gs(t,e){let n={};if(e){for(let r in e)if(e[r]===Mt){let i=[];for(let s=t.length-1;s>=0;s-=1){let l=t[s][r];if(typeof l=="object"&&l)i.unshift(l);else if(l!==void 0){n[r]=l;break}}i.length&&(n[r]=gs(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function Ht(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function lt(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function xo(t){let e={};for(let n of t)e[n]=!0;return e}function ps(t){let e=[];for(let n in t)e.push(t[n]);return e}function Ye(t,e){if(t===e)return!0;for(let n in t)if(pr.call(t,n)&&!(n in e))return!1;for(let n in e)if(pr.call(e,n)&&t[n]!==e[n])return!1;return!0}const Xf=/^on[A-Z]/;function Jf(t,e){const n=Mi(t,e);for(let r of n)if(!Xf.test(r))return!1;return!0}function Mi(t,e){let n=[];for(let r in t)pr.call(t,r)&&(r in e||n.push(r));for(let r in e)pr.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Zr(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Kf(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Kf(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function eh(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=r){let l=t[s];l!==void 0&&i.push(l)}return i}let Io={};function th(t,e){Io[t]=e}function nh(t){return new Io[t]}class rh{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return xe(e)}markerToArray(e){return pt(e)}}th("gregory",rh);const ih=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function sh(t){let e=ih.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(ko(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class lh{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=nh(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):xe(Rl(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=xe(e)),n===null||!ko(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=sh(e);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return mt(e)===mt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return mt(e)===mt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=Rf(e,n),r!==null?{unit:"week",value:r}:(r=fr(e,n),r!==null?{unit:"day",value:r}:(r=Af(e,n),Jn(r)?{unit:"hour",value:r}:(r=Cf(e,n),Jn(r)?{unit:"minute",value:r}:(r=Df(e,n),Jn(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/yf(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Sf(r):r.days&&(i=fr(e,n),i!==null)?i/Qt(r):(n.valueOf()-e.valueOf())/Ue(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?ie(e):n==="hour"?Tf(e):n==="minute"?kf(e):n==="second"?Mf(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)):xf(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=St(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),Mo(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?xe(Rl(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):xe(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Tl(pt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(pt(e)):null}toDate(e,n){return this.timeZone==="local"?Tl(pt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(pt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class xn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}xn.prototype.classes={};xn.prototype.iconClasses={};xn.prototype.baseIconClass="";xn.prototype.iconOverridePrefix="";function mr(t){t();let e=U.debounceRendering,n=[];function r(i){n.push(i)}for(U.debounceRendering=r,pn(v(ah,{}),document.createElement("div"));n.length;)n.shift()();U.debounceRendering=e}class ah extends He{render(){return v("div",{})}componentDidMount(){this.setState({})}}function Oo(t){let e=xd(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=l=>{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return i},e}class oh{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.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 ut=Oo({});function ch(t,e,n,r,i,s,l,a,o,c,u,d,h){return{dateEnv:i,options:n,pluginHooks:l,emitter:c,dispatch:a,getCurrentData:o,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(f){c.on("_resize",f)},removeResizeHandler(f){c.off("_resize",f)},createScrollResponder(f){return new oh(f,c,K(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:h}}class Ft extends He{shouldComponentUpdate(e,n){return this.debug&&console.log(Mi(e,this.props),Mi(n,this.state)),!Zr(this.props,e,this.propEquality)||!Zr(this.state,n,this.stateEquality)}safeSetState(e){Zr(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ft.addPropsEquality=uh;Ft.addStateEquality=dh;Ft.contextType=ut;Ft.prototype.propEquality={};Ft.prototype.stateEquality={};class ee extends Ft{}ee.contextType=ut;function uh(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function dh(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function at(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class ms extends ee{constructor(){super(...arguments),this.id=Vt(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!xi(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&at(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,a=No(e,[],this.handleEl);let o=!1,c,u=[],d;if(i!=null){const h=typeof i=="function"?i(l,v):i;if(h===!0)o=!0;else{const f=h&&typeof h=="object";f&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?u=Array.prototype.slice.call(h.domNodes):(f?ro(h):typeof h!="function")?c=h:d=h}}else o=!xi(e.generatorName,r);return o&&s&&(c=s(l)),this.queuedDomNodes=u,this.currentGeneratorMeta=d,v(e.elTag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=i.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[r.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(fh)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!yt(e,n)){n.forEach(os);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}ms.addPropsEquality({elClasses:yt,elStyle:Ye,elAttrs:Jf,renderProps:Ye});function xi(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function No(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function fh(t){return!!t}const Po=Oo(0);class Ce extends He{constructor(){super(...arguments),this.InnerContent=hh.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(at(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=gh(e.classNameGenerator,e.renderProps);if(e.children){const r=No(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?v(e.elTag,r,i):i}else return v(ms,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Ce.contextType=Po;function hh(t,e){const n=t.props;return v(ms,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function gh(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class mn extends ee{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return v(Ce,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Ho(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Ho(t){return[`fc-${t.type}-view`,"fc-view"]}function ph(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function Pl(t,e){let n=[],{start:r}=e,i,s;for(t.sort(mh),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function mh(t,e){return t.start.valueOf()-e.start.valueOf()}function Et(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function vh(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function vs(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function xr(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function nt(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function bh(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function Lo(t){let e=Math.floor(At(t.start,t.end))||1,n=ie(t.start),r=be(n,e);return{start:n,end:r}}function bs(t,e=K(0)){let n=null,r=null;if(t.end){r=ie(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=Ue(e)&&(r=be(r,1))}return t.start&&(n=ie(t.start),r&&r<=n&&(r=be(n,1))),{start:n,end:r}}function yh(t){let e=bs(t);return At(e.start,e.end)>1}function Wt(t,e,n,r){return r==="year"?K(n.diffWholeYears(t,e),"year"):r==="month"?K(n.diffWholeMonths(t,e),"month"):_f(t,e)}function Sh(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Eh(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):In(t.now,e)}function In(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Bo{constructor(e){this.props=e,this.nowDate=In(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,l,a,o,c,u;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=bh(e,s)),l=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),c=o,i.showNonCurrentDates||(c=Et(c,l.range)),c=this.adjustActiveRange(c),c=Et(c,s),u=vs(l.range,s),nt(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:c,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,l=null,a;return r.duration?(i=r.duration,s=r.durationUnit,l=this.buildRangeFromDuration(e,n,i,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,a)):(l=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(l.start,l.end).unit:(i=this.getFallbackDuration(),s=ki(i).unit,l=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return K({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:a}=e;return r&&(Qt(i)<0&&(l=ie(l),l=n.add(l,i)),Qt(s)>1&&(a=ie(a),a=be(a,-1),a=n.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:l}=this.props,a,o,c;if(!l){let{dateIncrement:d}=this.props;d&&Ue(d)<Ue(r)?l=ki(d).unit:l=i}Qt(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=ie(a));function u(){a=s.startOf(e,l),o=s.add(a,r),c={start:a,end:o}}return u(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,n),u()),c}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,a=e,o;s&&(a=i.startOf(a,s)),a=ie(a),a=this.skipHiddenDays(a,n),o=a;do o=be(o,1),this.isHiddenDay(o)||(l+=1);while(l<r);return{start:a,end:o}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?K(1,r):e||K({days:1}))}refineRange(e){if(e){let n=ph(e,this.props.dateEnv);return n&&(n=bs(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=be(e,n);return e}}function ys(t,e,n,r){return{instanceId:Vt(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function wh(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:l}=t;return l==null&&(l=e,l==null&&(l=s.allDayGuess,l==null&&(l=!1))),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function Lt(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:a}=t;a=Ht(a,o=>!l[o.defId].recurringDef);for(let o in l){let c=l[o];if(c.recurringDef){let{duration:u}=c.recurringDef;u||(u=c.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let d=Ah(c,u,e,r,i.recurringTypes);for(let h of d){let f=ys(o,{start:h,end:r.add(h,u)});a[f.instanceId]=f}}}return{defs:l,instances:a}}function Ah(t,e,n,r,i){let l=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(l=l.map(ie)),l}const er={id:String,groupId:String,title:String,url:String,interactive:Boolean},jo={start:E,end:E,date:E,allDay:Boolean},Ch=Object.assign(Object.assign(Object.assign({},er),jo),{extendedProps:E});function Vo(t,e,n,r,i=Ss(n),s,l){let{refined:a,extra:o}=Fo(t,n,i),c=_h(e,n),u=wh(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let h=Ii(a,o,e?e.sourceId:"",u.allDay,!!u.duration,n,s);return h.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:h,instance:null}}let d=Dh(a,c,n,r);if(d){let h=Ii(a,o,e?e.sourceId:"",d.allDay,d.hasEnd,n,s),f=ys(h.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(f.instanceId=l[h.publicId]),{def:h,instance:f}}return null}function Fo(t,e,n=Ss(e)){return hs(t,n)}function Ss(t){return Object.assign(Object.assign(Object.assign({},vr),Ch),t.pluginHooks.eventRefiners)}function Ii(t,e,n,r,i,s,l){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||Vt(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:br(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Dh(t,e,n,r){let{allDay:i}=t,s,l=null,a=!1,o,c=null,u=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(u),s)l=s.marker;else if(!r)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),i&&l&&(l=ie(l)),o&&(c=o.marker,i&&(c=ie(c)),l&&c<=l&&(c=null)),c?a=!0:r||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:l,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function _h(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function vn(t,e,n,r,i,s){let l=Le(),a=Ss(n);for(let o of t){let c=Vo(o,e,n,r,a,i,s);c&&Oi(c,l)}return l}function Oi(t,e=Le()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Es(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Ir(t,s=>Rh(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Le()}function Rh(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Le(){return{defs:{},instances:{}}}function ws(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Ir(t,e){let n=Ht(t.defs,e),r=Ht(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function Th(t,e){let{defs:n,instances:r}=t,i={},s={};for(let l in n)e.defs[l]||(i[l]=n[l]);for(let l in r)!e.instances[l]&&i[r[l].defId]&&(s[l]=r[l]);return{defs:i,instances:s}}function kh(t,e){return Array.isArray(t)?vn(t,null,e,!0):typeof t=="object"&&t?vn([t],null,e,!0):t!=null?String(t):null}function Hl(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const vr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:E,overlap:E,allow:E,className:Hl,classNames:Hl,color:String,backgroundColor:String,borderColor:String,textColor:String},Mh={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function br(t,e){let n=kh(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function zo(t){return t.reduce(xh,Mh)}function xh(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const Ih={id:String,defaultAllDay:Boolean,url:String,format:String,events:E,eventDataTransform:E,success:E,failure:E};function Uo(t,e,n=$o(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=hs(r,n),l=Oh(i,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Vt(),sourceDefId:l.sourceDefId,meta:l.meta,ui:br(i,e),extendedProps:s}}return null}function $o(t){return Object.assign(Object.assign(Object.assign({},vr),Ih),t.pluginHooks.eventSourceRefiners)}function Oh(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}function Nh(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return Ph(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return Hh(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return Lh(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return ws(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Lt(t,r.activeRange,i):t;case"REMOVE_EVENTS":return Th(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Go(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ir(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return Le();default:return t}}function Ph(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=vn(Wo(i,e,s),e,s);return r&&(l=Lt(l,r,s)),ws(Go(t,e.sourceId),l)}return t}function Hh(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=jh(t);let a=vn(Wo(n,e,i),e,i,!1,s,l);return Lt(a,r,i)}function Wo(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Ll(t,i)),r&&(t=Ll(t,r)),t}function Ll(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function Lh(t,e,n,r){return n&&(e=Lt(e,n,r)),ws(t,e)}function Bl(t,e,n){let{defs:r}=t,i=lt(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function Go(t,e){return Ir(t,n=>n.sourceId!==e)}function Bh(t,e){return{defs:t.defs,instances:Ht(t.instances,n=>!e[n.instanceId])}}function jh(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(r[a]=s)}for(let s in n){const l=n[s],a=e[l.defId],{publicId:o}=a;o&&(i[o]=s)}return{defIdMap:r,instanceIdMap:i}}class Or{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){Vh(this.handlers,e,n)}off(e,n){Fh(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let l of s)l.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Vh(t,e,n){(t[e]||(t[e]=[])).push(n)}function Fh(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const zh={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Uh(t,e){return vn($h(t),null,e)}function $h(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},zh),n)),e}function Yo(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},As(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Wh(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function As(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,sg(t,e.dateEnv)),n}function jl(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=ie(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Cs(t,e,n,r){let i=yr(t.defs,e),s=Le();for(let l in t.defs){let a=t.defs[l];s.defs[l]=Gh(a,i[l],n,r)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=Yh(a,o,i[a.defId],n,r)}return s}function Gh(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of r.pluginHooks.eventDefMutationAppliers)l(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Yh(t,e,n,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},t);return l&&(o.range=Lo(o.range)),r.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,r.datesDelta),end:s.add(o.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,r.endDelta)}),a&&(o.range={start:o.range.start,end:jl(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:ie(o.range.start),end:ie(o.range.end)}),o.range.end<o.range.start&&(o.range.end=jl(e.allDay,o.range.start,i)),o}class $t{constructor(e,n){this.context=e,this.internalEventSource=n}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 oe{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in jo)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=er[e](n),this.mutate({standardProps:{publicId:n}});else if(e in er)n=er[e](n),this.mutate({standardProps:{[e]:n}});else if(e in vr){let r=vr[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,l=Wt(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=Wt(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},l=i.createMarker(e),a;if(l&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let o=this._instance.range;r.allDay===!0&&(o=Lo(o));let c=Wt(o.start,l,i,r.granularity);if(a){let u=Wt(o.end,a,i,r.granularity);mf(c,u)?this.mutate({datesDelta:c,standardProps:s}):this.mutate({startDelta:c,endDelta:u,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:c,standardProps:s})}}moveStart(e){let n=K(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=K(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=K(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=se(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),l=Es(s,n.instanceId);l=Cs(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let o=new oe(i,r,n);this._def=l.defs[r.defId],this._instance=l.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:l}),i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Nt(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=qo(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new $t(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 n=this._def,{ui:r}=n,{startStr:i,endStr:s}=this,l={allDay:n.allDay};return n.title&&(l.title=n.title),i&&(l.start=i),s&&(l.end=s),n.publicId&&(l.id=n.publicId),n.groupId&&(l.groupId=n.groupId),n.url&&(l.url=n.url),r.display&&r.display!=="auto"&&(l.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?l.color=r.backgroundColor:(r.backgroundColor&&(l.backgroundColor=r.backgroundColor),r.borderColor&&(l.borderColor=r.borderColor)),r.textColor&&(l.textColor=r.textColor),r.classNames.length&&(l.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,n.extendedProps):l.extendedProps=n.extendedProps),l}toJSON(){return this.toPlainObject()}}function qo(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Nt(t,e,n){let{defs:r,instances:i}=t,s=[],l=n?n.instanceId:"";for(let a in i){let o=i[a],c=r[o.defId];o.instanceId!==l&&s.push(new oe(e,c,o))}return s}function Ni(t,e,n,r){let i={},s={},l={},a=[],o=[],c=yr(t.defs,e);for(let u in t.defs){let d=t.defs[u];c[d.defId].display==="inverse-background"&&(d.groupId?(i[d.groupId]=[],l[d.groupId]||(l[d.groupId]=d)):s[u]=[])}for(let u in t.instances){let d=t.instances[u],h=t.defs[d.defId],f=c[h.defId],g=d.range,m=!h.allDay&&r?bs(g,r):g,p=Et(m,n);p&&(f.display==="inverse-background"?h.groupId?i[h.groupId].push(p):s[d.defId].push(p):f.display!=="none"&&(f.display==="background"?a:o).push({def:h,ui:f,instance:d,range:p,isStart:m.start&&m.start.valueOf()===p.start.valueOf(),isEnd:m.end&&m.end.valueOf()===p.end.valueOf()}))}for(let u in i){let d=i[u],h=Pl(d,n);for(let f of h){let g=l[u],m=c[g.defId];a.push({def:g,ui:m,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let u in s){let d=s[u],h=Pl(d,n);for(let f of h)a.push({def:t.defs[u],ui:c[u],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function qh(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function Vl(t,e){t.fcSeg=e}function Kt(t){return t.fcSeg||t.parentNode.fcSeg||null}function yr(t,e){return lt(t,n=>Qo(n,e))}function Qo(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),zo(n)}function Ds(t,e){let n=t.map(Qh);return n.sort((r,i)=>cf(r,i,e)),n.map(r=>r._seg)}function Qh(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function Zh(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,l=s.startEditable;for(let a of r)l=a(l,i,s,e);return l}function Xh(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Jh(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function hn(t,e,n,r,i,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:c,displayEventEnd:u}=o,d=t.eventRange.def,h=t.eventRange.instance;c==null&&(c=r!==!1),u==null&&(u=i!==!1);let f=h.range.start,g=h.range.end,m=s||t.start||t.eventRange.range.start,p=l||t.end||t.eventRange.range.end,b=ie(f).valueOf()===ie(m).valueOf(),w=ie(St(g,-1)).valueOf()===ie(St(p,-1)).valueOf();return c&&!d.allDay&&(b||w)?(m=b?f:m,p=w?g:p,u&&d.hasEnd?a.formatRange(m,p,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(m,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function rt(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&nt(e,r.start)}}function Kh(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Zo(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function _s(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?To(o=>{s.trigger("eventClick",{el:o.target,event:new oe(e,n,r),jsEvent:o,view:e.viewApi})}):{}}const eg={start:E,end:E,allDay:Boolean};function tg(t,e,n){let r=ng(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function ng(t,e){let{refined:n,extra:r}=hs(t,eg),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:l},r)}function rg(t,e){return vh(t.range,e.range)&&t.allDay===e.allDay&&ig(t,e)}function ig(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function sg(t,e){return Object.assign(Object.assign({},Jo(t.range,e,t.allDay)),{allDay:t.allDay})}function Xo(t,e,n){return Object.assign(Object.assign({},Jo(t,e,n)),{timeZone:e.timeZone})}function Jo(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function lg(t,e,n){let r=Fo({editable:!1},n),i=Ii(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:Qo(i,e),instance:ys(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function ag(t,e,n){let r=!1,i=function(a){r||(r=!0,e(a))},s=function(a){r||(r=!0,n(a))},l=t(i,s);l&&typeof l.then=="function"&&l.then(i,s)}class Fl extends Error{constructor(e,n){super(e),this.response=n}}function og(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new Fl("Failure parsing JSON",i)});throw new Fl("Request failed",i)})}let Xr;function Ko(){return Xr==null&&(Xr=cg()),Xr}function cg(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class ug extends ee{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{mr(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{mr(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Ko()||l.push("fc-liquid-hack"),e.children(l,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class sn{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function dg(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Rs(t){return{[t.component.uid]:t}}const Pi={};class fg{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,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let a in n)i.push(a);for(s=0;s<i.length;s+=1)if(l=n[i[s]],l&&l.singleUnit===e)return l;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:In(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=K(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),se(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),se(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),s=tg(r,i.dateEnv,K({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Yo(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Wh(e,n))}addEvent(e,n){if(e instanceof oe){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Oi({def:l,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof $t)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=ps(r.eventSources));else if(n!=null){let l=this.getEventSourceById(n);if(!l)return console.warn(`Could not find an event source with ID "${n}"`),null;i=l.internalEventSource}let s=Vo(e,i,r,!1);if(s){let l=new oe(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Oi(s)}),this.triggerEventAdd(l),l}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:qo(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let l=r[s];if(l.publicId===e){if(l.recurringDef)return new oe(n,l,null);for(let a in i){let o=i[a];if(o.defId===l.defId)return new oe(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Nt(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new $t(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new $t(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof $t)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=Uo(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new $t(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=K(e);n&&this.trigger("_scrollRequest",{time:n})}}function hg(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function ec(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function gg(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function pg(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function mg(t,e){return{left:t.left-e.left,top:t.top-e.top}}const Jr=Le();class vg{constructor(){this.getKeysForEventDefs=z(this._getKeysForEventDefs),this.splitDateSelection=z(this._splitDateSpan),this.splitEventStore=z(this._splitEventStore),this.splitIndividualUi=z(this._splitIndividualUi),this.splitEventDrag=z(this._splitInteraction),this.splitEventResize=z(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,r),l=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),o=this.splitEventResize(e.eventResize),c={};this.eventUiBuilders=lt(n,(u,d)=>this.eventUiBuilders[d]||z(bg));for(let u in n){let d=n[u],h=l[u]||Jr,f=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:h,eventUiBases:f(e.eventUiBases[""],d.ui,s[u]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[u]||null,eventResize:o[u]||null}}return c}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return lt(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:i}=e,s={};for(let l in r)for(let a of n[l])s[a]||(s[a]=Le()),s[a].defs[l]=r[l];for(let l in i){let a=i[l];for(let o of n[a.defId])s[o]&&(s[o].instances[l]=a)}return s}_splitIndividualUi(e,n){let r={};for(let i in e)if(i)for(let s of n[i])r[s]||(r[s]={}),r[s][i]=e[i];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,i),l=a=>{n[a]||(n[a]={affectedEvents:r[a]||Jr,mutatedEvents:s[a]||Jr,isEvent:e.isEvent})};for(let a in r)l(a);for(let a in s)l(a)}return n}}function bg(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":zo(r)};return n&&Object.assign(i,n),i}function Ts(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!nt(r.activeRange,t)),isOther:!!(r&&!nt(r.currentRange,t)),isToday:!!(e&&nt(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function Nr(t,e){let n=["fc-day",`fc-day-${Ef[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const yg=se({year:"numeric",month:"long",day:"numeric"}),Sg=se({week:"long"});function en(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let a=i.format(e,n==="week"?Sg:yg);if(s.navLinks){let o=i.toDate(e);const c=u=>{let d=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof d=="function"?d.call(l,i.toDate(e),u):(typeof d=="string"&&(n=d),l.zoomTo(e,n))};return Object.assign({title:dn(s.navLinkHint,[a,o],a),"data-navlink":""},r?Ro(c):{onClick:c})}return{"aria-label":a}}let Kr=null;function Eg(){return Kr===null&&(Kr=wg()),Kr}function wg(){let t=document.createElement("div");un(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return os(t),n}let ei;function Ag(){return ei||(ei=Cg()),ei}function Cg(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=tc(t);return document.body.removeChild(t),e}function tc(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Dg(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,a=tc(t),o=a.y-r-i,c=a.x-s-l,u={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return Eg()&&n.direction==="rtl"?u.scrollbarLeft=o:u.scrollbarRight=o,e&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function _g(t,e=!1,n){let r=ks(t),i=Dg(t,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function ks(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function Rg(t){let e=nc(t),n=t.getBoundingClientRect();for(let r of e){let i=ec(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function nc(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class tn{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Fn(this.tops||[],e.tops||[])&&Fn(this.bottoms||[],e.bottoms||[])&&Fn(this.lefts||[],e.lefts||[])&&Fn(this.rights||[],e.rights||[])}}function Fn(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class Ms{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 Tg extends Ms{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 kg extends Ms{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class We extends ee{constructor(){super(...arguments),this.uid=Vt()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Ee(e,".fc-event-mirror")}isValidDateDownEl(e){return!Ee(e,".fc-event:not(.fc-bg-event)")&&!Ee(e,".fc-more-link")&&!Ee(e,"a[data-navlink]")&&!Ee(e,".fc-popover")}}class rc{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},n),{span:xs(n.span,e.touchingEntry.span)});r.push(i),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let i=e.span,s=n.span;i.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},r),i.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(ti(i,n.level,n.levelCoord),ti(r,n.level,[e])):ti(r[n.level],n.lateral,e),this.stackCnts[Pt(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=n.length,a=0,o=-1,c=-1,u=null,d=0;for(let g=0;g<l;g+=1){const m=n[g];if(!i&&m>=a+this.getEntryThickness(e))break;let p=r[g],b,w=Li(p,e.span.start,Hi),D=w[0]+w[1];for(;(b=p[D])&&b.span.start<e.span.end;){let C=m+this.getEntryThickness(b);C>a&&(a=C,u=b,o=g,c=D),C===a&&(d=Math.max(d,s[Pt(b)]+1)),D+=1}}let h=0;if(u)for(h=o+1;h<l&&n[h]<a;)h+=1;let f=-1;return h<l&&n[h]===a&&(f=Li(r[h],e.span.end,Hi)[0]),{touchingLevel:o,touchingLateral:c,touchingEntry:u,stackCnt:d,levelCoord:a,level:h,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let l=e[s],a=n[s];for(let o of l)i.push(Object.assign(Object.assign({},o),{thickness:this.getEntryThickness(o),levelCoord:a}))}return i}}function Hi(t){return t.span.end}function Pt(t){return t.index+":"+t.span.start}function Mg(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)xs(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:xg(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function xg(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function xs(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function ti(t,e,n){t.splice(e,0,n)}function Li(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),l=n(t[s]);if(e<l)i=s;else if(e>l)r=s+1;else return[s,1]}return[r,0]}class Ig{constructor(e,n){this.emitter=new Or}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Is={};function Og(t,e){return!t||e>10?se({weekday:"short"}):e>1?se({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):se({weekday:"long"})}const ic="fc-col-header-cell";function sc(t){return t.text}class Ng extends ee{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=Ts(l,s.todayRange,null,a),c=[ic].concat(Nr(o,r)),u=e.format(l,s.dayHeaderFormat),d=!o.isDisabled&&s.colCnt>1?en(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:u}),o);return v(Ce,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:Mn(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:sc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},f=>v("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&v(f,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const Pg=se({weekday:"long"});class Hg extends ee{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=be(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(l,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:i}),e.extraRenderProps),{text:o});return v(Ce,{elTag:"th",elClasses:[ic,...Nr(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:sc,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},u=>v("div",{className:"fc-scrollgrid-sync-inner"},v(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,Pg)}})))}}class ln extends He{constructor(e,n){super(e,n),this.initialNowDate=In(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=St(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,K(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:zl(i)},nextState:{nowDate:s,todayRange:zl(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}ln.contextType=ut;function zl(t){let e=ie(t),n=be(e,1);return{start:e,end:n}}class lc extends ee{constructor(){super(...arguments),this.createDayHeaderFormatter=z(Lg)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return v(ln,{unit:"day"},(a,o)=>v("tr",{role:"row"},s&&s("day"),n.map(c=>i?v(Ng,{key:c.toISOString(),date:c,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):v(Hg,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:l}))))}}function Lg(t,e,n){return t||Og(e,n)}class ac{constructor(e,n){let r=e.start,{end:i}=e,s=[],l=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),l.push(r)),r=be(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(be(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(At(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class oc{constructor(e,n){let{dates:r}=e,i,s,l;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);l=Math.ceil(r.length/i)}else l=1,i=r.length;this.rowCnt=l,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:l}=r,a=s;for(;a<=l;){let o=Math.floor(a/n),c=Math.min((o+1)*n,l+1);i.push({row:o,firstCol:a%n,lastCol:(c-1)%n,isStart:r.isStart&&a===s,isEnd:r.isEnd&&c-1===l}),a=c}}return i}}class cc{constructor(){this.sliceBusinessHours=z(this._sliceBusinessHours),this.sliceDateSelection=z(this._sliceDateSpan),this.sliceEventStore=z(this._sliceEventStore),this.sliceEventDrag=z(this._sliceInteraction),this.sliceEventResize=z(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:l}=e,a=this.sliceEventStore(e.eventStore,l,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,l,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,l,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:St(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(Lt(e,zn(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=Ni(e,n,zn(r,!!i),i);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let l=Ni(e.mutatedEvents,n,zn(r,!!i),i);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...l){if(!e)return[];let a=zn(n,!!r),o=Et(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let c=lg(e,i,s),u=this.sliceRange(e.range,...l);for(let d of u)d.eventRange=c;return u}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:be(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function zn(t,e){let n=t.activeRange;return e?n:{start:St(n.start,t.slotMinTime.milliseconds),end:St(n.end,t.slotMaxTime.milliseconds-864e5)}}function uc(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!xr(e.validRange,r[i].range))return!1;return dc({eventDrag:t},n)}function Bg(t,e,n){return xr(e.validRange,t.range)?dc({dateSelection:t},n):!1}function dc(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||jg)(r,e)}function jg(t,e,n={},r){return!(t.eventDrag&&!Vg(t,e,n,r)||t.dateSelection&&!Fg(t,e,n,r))}function Vg(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,c=yr(a,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(c=lt(c,r));let u=Bh(t.eventStore,s.affectedEvents.instances),d=u.defs,h=u.instances,f=yr(d,t.eventUiBases);for(let g in o){let m=o[g],p=m.range,b=c[m.defId],w=a[m.defId];if(!fc(b.constraints,p,u,t.businessHours,e))return!1;let{eventOverlap:D}=e.options,C=typeof D=="function"?D:null;for(let S in h){let y=h[S];if(vs(p,y.range)&&(f[y.defId].overlap===!1&&s.isEvent||b.overlap===!1||C&&!C(new oe(e,d[y.defId],y),new oe(e,w,m))))return!1}let _=i.eventStore;for(let S of b.allows){let y=Object.assign(Object.assign({},n),{range:m.range,allDay:w.allDay}),A=_.defs[w.defId],H=_.instances[g],M;if(A?M=new oe(e,A,H):M=new oe(e,w),!S(As(y,e),M))return!1}}return!0}function Fg(t,e,n,r){let i=t.eventStore,s=i.defs,l=i.instances,a=t.dateSelection,o=a.range,{selectionConfig:c}=e.getCurrentData();if(r&&(c=r(c)),!fc(c.constraints,o,i,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,d=typeof u=="function"?u:null;for(let h in l){let f=l[h];if(vs(o,f.range)&&(c.overlap===!1||d&&!d(new oe(e,s[f.defId],f),null)))return!1}for(let h of c.allows){let f=Object.assign(Object.assign({},n),a);if(!h(As(f,e),null))return!1}return!0}function fc(t,e,n,r,i){for(let s of t)if(!Ug(zg(s,e,n,r,i),e))return!1;return!0}function zg(t,e,n,r,i){return t==="businessHours"?ni(Lt(r,e,i)):typeof t=="string"?ni(Ir(n,s=>s.groupId===t)):typeof t=="object"&&t?ni(Lt(t,e,i)):[]}function ni(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Ug(t,e){for(let n of t)if(xr(n,e))return!0;return!1}const Un=/^(visible|hidden)$/;class hc extends ee{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,at(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),v("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(Un.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Un.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Un.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Un.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class tt{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,l=!1,a=!1;n!==null?(l=r in s,s[r]=n,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(r)),a&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return eh(this.currentMap,e,n,r)}getAll(){return ps(this.currentMap)}}function $g(t){let e=Jd(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,hf(r));return Math.ceil(n)}function gc(t,e){return t.liquid&&e.liquid}function Wg(t,e){return e.maxHeight!=null||gc(t,e)}function Gg(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):v("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,v(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function Yg(t,e){return yt(t,e,Ye)}function qg(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(v("col",{style:{width:r.width==="shrink"?Qg(e):r.width||"",minWidth:r.minWidth||""}}))}return v("colgroup",{},...n)}function Qg(t){return t??4}function Zg(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Xg(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Jg(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Bi(t){return v("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Sr(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function pc(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Os extends ee{constructor(){super(...arguments),this.processCols=z(e=>e,Yg),this.renderMicroColGroup=z(qg),this.scrollerRefs=new tt,this.scrollerElRefs=new tt(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:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),a=Xg(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=i.length,c=0,u,d=[],h=[],f=[];for(;c<o&&(u=i[c]).type==="header";)d.push(this.renderSection(u,l,!0)),c+=1;for(;c<o&&(u=i[c]).type==="body";)h.push(this.renderSection(u,l,!1)),c+=1;for(;c<o&&(u=i[c]).type==="footer";)f.push(this.renderSection(u,l,!0)),c+=1;let g=!Ko();const m={role:"rowgroup"};return v("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!g&&d.length)&&v("thead",m,...d),!!(!g&&h.length)&&v("tbody",m,...h),!!(!g&&f.length)&&v("tfoot",m,...f),g&&v("tbody",m,...d,...h,...f))}renderSection(e,n,r){return"outerContent"in e?v(re,{key:e.key},e.outerContent):v("tr",{key:e.key,role:"presentation",className:Jg(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:a,scrollerClientHeights:o}=this.state,c=Wg(s,e),u=gc(s,e),d=s.liquid?l?"scroll":c?"auto":"hidden":"visible",h=e.key,f=Gg(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:o[h]!==void 0?o[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return v(i?"th":"td",{ref:r.elRef,role:"presentation"},v("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},v(hc,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:d,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let r=Kg(this.props.sections,n);r&&at(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Zg(this.props.cols)?$g(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Ag(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},l={};for(let a in n.currentMap){let o=n.currentMap[a];if(o&&o.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let o=a.key,c=r.currentMap[o];if(c){let u=c.parentNode;s[o]=Math.floor(u.getBoundingClientRect().width-(i?e.y:0)),l[o]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}Os.addStateEquality({scrollerClientWidths:Ye,scrollerClientHeights:Ye});function Kg(t,e){for(let n of t)if(n.key===e)return n;return null}class Pr extends ee{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Vl(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:l}=s,a={event:new oe(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&Zh(i,n),isStartResizable:!e.disableResizing&&Xh(i,n),isEndResizable:!e.disableResizing&&Jh(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return v(Ce,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Kh(a),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Vl(this.el,this.props.seg)}}class mc extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,a=hn(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return v(Pr,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:_s(i,n),defaultGenerator:ep,timeText:a}),(o,c)=>v(re,null,v(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function ep(t){return v("div",{className:"fc-event-main-frame"},t.timeText&&v("div",{className:"fc-event-time"},t.timeText),v("div",{className:"fc-event-title-container"},v("div",{className:"fc-event-title fc-sticky"},t.event.title||v(re,null," "))))}const Ns=t=>v(ut.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return v(Ce,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),tp=se({day:"numeric"});class Ps extends ee{constructor(){super(...arguments),this.refineRenderProps=Kn(np)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return v(Ce,Object.assign({},e,{elClasses:[...Nr(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Mn(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function Hs(t){return!!(t.dayCellContent||xi("dayCellContent",t))}function np(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=Ts(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:tp):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class vc extends ee{render(){let{props:e}=this,{seg:n}=e;return v(Pr,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:rp,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function rp(t){let{title:e}=t.event;return e&&v("div",{className:"fc-event-title"},t.event.title)}function bc(t){return v("div",{className:`fc-${t}`})}const yc=t=>v(ut.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(i),a=n.format(i,s);return v(Ce,Object.assign({},t,{renderProps:{num:l,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:ip,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function ip(t){return t.text}const ri=10;class sp extends ee{constructor(){super(...arguments),this.state={titleId:vt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&at(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Do(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return Bd(v("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),v("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},v("span",{className:"fc-popover-title",id:i.titleId},r.title),v("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),v("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,s=Rg(n);if(s){let l=i.getBoundingClientRect(),a=r?Ee(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,ri),o=Math.min(o,document.documentElement.clientWidth-ri-l.width),o=Math.max(o,ri);let c=i.offsetParent.getBoundingClientRect();un(i,{top:a-c.top,left:o-c.left})}}}class lp extends We{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:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:l}=r,a=n.format(i,e.dayPopoverFormat);return v(Ps,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(o,c,u)=>v(sp,{elRef:u.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Hs(e)&&v(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:l}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class Sc extends ee{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:vt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&at(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=Ul(n).start;function l(a){let{def:o,instance:c,range:u}=a.eventRange;return{event:new oe(r,o,c),start:r.dateEnv.toDate(u.start),end:r.dateEnv.toDate(u.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return v(ut.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:a}=s,{moreCnt:o}=e,c=Ul(e),u=typeof a=="function"?a.call(l,o):`+${o} ${a}`,d=dn(s.moreLinkHint,[o],u),h={num:o,shortText:`+${o}`,text:u,view:i};return v(re,null,!!e.moreCnt&&v(Ce,{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),Ro(this.handleClick)),{title:d,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||ap,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&v(lp,{id:n.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=Ee(this.linkEl,".fc-view-harness"))}}function ap(t){return t.text}function Ul(t){if(t.allDayDate)return{start:t.allDayDate,end:be(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Ec(e),end:cp(e)}}function Ec(t){return t.reduce(op).eventRange.range.start}function op(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function cp(t){return t.reduce(up).eventRange.range.end}function up(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class dp{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class fp extends dp{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const hp=[],wc={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"},Ac=Object.assign(Object.assign({},wc),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function gp(t){let e=t.length>0?t[0].code:"en",n=hp.concat(t),r={en:Ac};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Cc(t,e){return typeof t=="object"&&!Array.isArray(t)?Dc(t.code,[t.code],t):pp(t,e)}function pp(t,e){let n=[].concat(t||[]),r=mp(n,e)||Ac;return Dc(t,n,r)}function mp(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function Dc(t,e,n){let r=gs([wc,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function Qe(t){return{id:Vt(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function vp(t,e){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(s){for(let l of s){const a=l.name,o=n[a];o===void 0?(n[a]=l.id,i(l.deps),r=yp(r,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function bp(){let t=[],e=[],n;return(r,i)=>((!n||!yt(r,t)||!yt(i,e))&&(n=vp(r,i)),t=r,e=i,n)}function yp(t,e){return{premiumReleaseDate:Sp(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function Sp(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Ct extends xn{}Ct.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Ct.prototype.baseIconClass="fc-icon";Ct.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"};Ct.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Ct.prototype.iconOverrideOption="buttonIcons";Ct.prototype.iconOverrideCustomButtonOption="icon";Ct.prototype.iconOverridePrefix="fc-icon-";function Ep(t,e){let n={},r;for(r in t)ji(r,n,t,e);for(r in e)ji(r,n,t,e);return n}function ji(t,e,n,r){if(e[t])return e[t];let i=wp(t,e,n,r);return i&&(e[t]=i),i}function wp(t,e,n,r){let i=n[t],s=r[t],l=u=>i&&i[u]!==null?i[u]:s&&s[u]!==null?s[u]:null,a=l("component"),o=l("superType"),c=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");c=ji(o,e,n,r)}return!a&&c&&(a=c.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function $l(t){return lt(t,Ap)}function Ap(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Wl(e):n&&!(n.prototype instanceof ee)&&(n=Wl(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Wl(t){return e=>v(ut.Consumer,null,n=>v(Ce,{elTag:"div",elClasses:Ho(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Cp(t,e,n,r){let i=$l(t),s=$l(e.views),l=Ep(i,s);return lt(l,a=>Dp(a,s,e,n,r))}function Dp(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,l=null,a="",o="",c={};if(s&&(l=_p(s),l)){let h=ki(l);a=h.unit,h.value===1&&(o=a,c=e[a]?e[a].rawOptions:{})}let u=h=>{let f=h.buttonText||{},g=t.defaults.buttonTextKey;return g!=null&&f[g]!=null?f[g]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null},d=h=>{let f=h.buttonHints||{},g=t.defaults.buttonTextKey;return g!=null&&f[g]!=null?f[g]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null};return{type:t.type,component:t.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(r)||u(n)||t.overrides.buttonText,buttonTextDefault:u(i)||t.defaults.buttonText||u(fn)||t.type,buttonTitleOverride:d(r)||d(n)||t.overrides.buttonHint,buttonTitleDefault:d(i)||t.defaults.buttonHint||d(fn)}}let Gl={};function _p(t){let e=JSON.stringify(t),n=Gl[e];return n===void 0&&(n=K(t),Gl[e]=n),n}function Rp(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Tp(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function kp(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function Mp(t,e,n){let r=e?e.activeRange:null;return Rc({},Lp(t,n),r,n)}function xp(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Rc(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Op(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Tc(t,i,r):t;case"FETCH_EVENT_SOURCES":return Ls(t,e.sourceIds?xo(e.sourceIds):kc(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Hp(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Ip(t,e,n){let r=e?e.activeRange:null;return Ls(t,kc(t,n),r,!0,n)}function _c(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Rc(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Tc(i,n,r)),Object.assign(Object.assign({},t),i)}function Op(t,e){return Ht(t,n=>n.sourceId!==e)}function Tc(t,e,n){return Ls(t,Ht(t,r=>Np(r,e,n)),e,!1,n)}function Np(t,e,n){return Mc(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Ls(t,e,n,r,i){let s={};for(let l in t){let a=t[l];e[l]?s[l]=Pp(a,n,r,i):s[l]=a}return s}function Pp(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=Vt();return l.fetch({eventSource:t,range:e,isRefetch:n,context:r},o=>{let{rawEvents:c}=o;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(s,c,o.response)||c),t.success&&(c=t.success.call(s,c,o.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},o=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,o),c=!0),t.failure&&(t.failure(o),c=!0),c||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function Hp(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function kc(t,e){return Ht(t,n=>Mc(n,e))}function Lp(t,e){let n=$o(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let l=Uo(s,e,n);l&&i.push(l)}return i}function Mc(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Bp(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function jp(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Vp(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Fp(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function zp(t,e,n,r,i){let s=t.headerToolbar?Yl(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?Yl(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function Yl(t,e,n,r,i,s){let l={},a=[],o=!1;for(let c in t){let u=t[c],d=Up(u,e,n,r,i,s);l[c]=d.widgets,a.push(...d.viewsWithButtons),o=o||d.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function Up(t,e,n,r,i,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},d=e.buttonHints||{},h=t?t.split(" "):[],f=[],g=!1;return{widgets:h.map(p=>p.split(",").map(b=>{if(b==="title")return g=!0,{buttonName:b};let w,D,C,_,S,y;if(w=a[b])C=A=>{w.click&&w.click.call(A.target,A,A.target)},(_=r.getCustomButtonIconClass(w))||(_=r.getIconClass(b,l))||(S=w.text),y=w.hint||w.text;else if(D=i[b]){f.push(b),C=()=>{s.changeView(b)},(S=D.buttonTextOverride)||(_=r.getIconClass(b,l))||(S=D.buttonTextDefault);let A=D.buttonTextOverride||D.buttonTextDefault;y=dn(D.buttonTitleOverride||D.buttonTitleDefault||e.viewHint,[A,b],A)}else if(s[b])if(C=()=>{s[b]()},(S=o[b])||(_=r.getIconClass(b,l))||(S=c[b]),b==="prevYear"||b==="nextYear"){let A=b==="prevYear"?"prev":"next";y=dn(u[A]||d[A],[c.year||"year","year"],c[b])}else y=A=>dn(u[b]||d[b],[c[A]||A,A],c[b]);return{buttonName:b,buttonClick:C,buttonIcon:_,buttonText:S,buttonHint:y}})),viewsWithButtons:f,hasTitle:g}}class $p{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let Wp={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const Gp=Qe({name:"array-event-source",eventSourceDefs:[Wp]});let Yp={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;ag(i.bind(null,Xo(t.range,r)),s=>e({rawEvents:s}),n)}};const qp=Qe({name:"func-event-source",eventSourceDefs:[Yp]}),Qp={method:String,extraParams:E,startParam:String,endParam:String,timeZoneParam:String};let Zp={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=Jp(r,t.range,t.context);og(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const Xp=Qe({name:"json-event-source",eventSourceRefiners:Qp,eventSourceDefs:[Zp]});function Jp(t,e,n){let{dateEnv:r,options:i}=n,s,l,a,o,c={};return s=t.startParam,s==null&&(s=i.startParam),l=t.endParam,l==null&&(l=i.endParam),a=t.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(c,o),c[s]=r.formatIso(e.start),c[l]=r.formatIso(e.end),r.timeZone!=="local"&&(c[a]=r.timeZone),c}const Kp={daysOfWeek:E,startTime:K,endTime:K,duration:K,startRecur:E,endRecur:E};let em={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=vf(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Et(e,{start:t.startRecur,end:t.endRecur});return r?nm(t.daysOfWeek,t.startTime,r,n):[]}};const tm=Qe({name:"simple-recurring-event",recurringTypes:[em],eventRefiners:Kp});function nm(t,e,n,r){let i=t?xo(t):null,s=ie(n.start),l=n.end,a=[];for(;s<l;){let o;(!i||i[s.getUTCDay()])&&(e?o=r.add(s,e):o=s,a.push(o)),s=be(s,1)}return a}const rm=Qe({name:"change-handler",optionChangeHandlers:{events(t,e){ql([t],e)},eventSources:ql}});function ql(t,e){let n=ps(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let s=!1;for(let l=0;l<n.length;l+=1)if(n[l]._raw===i){n.splice(l,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function im(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Xo(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function sm(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Nt(t,e))}const lm=[Gp,qp,Xp,tm,rm,Qe({name:"misc",isLoadingFuncs:[t=>_c(t.eventSources)],propSetHandlers:{dateProfile:im,eventStore:sm}})];class am{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new as(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function om(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,se(e.titleFormat||cm(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function cm(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=fr(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class um{constructor(e){this.computeCurrentViewData=z(this._computeCurrentViewData),this.organizeRawLocales=z(gp),this.buildLocale=z(Cc),this.buildPluginHooks=bp(),this.buildDateEnv=z(dm),this.buildTheme=z(fm),this.parseToolbars=z(zp),this.buildViewSpecs=z(Cp),this.buildDateProfileGenerator=Kn(hm),this.buildViewApi=z(gm),this.buildViewUiProps=Kn(vm),this.buildEventUiBySource=z(pm,Ye),this.buildEventUiBases=z(mm),this.parseContextBusinessHours=Kn(bm),this.buildTitle=z(om),this.emitter=new Or,this.actionRunner=new am(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=Eh(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(l);nt(a.activeRange,l)||(l=a.currentRange.start);let o={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of r.pluginHooks.contextInit)h(o);let c=Mp(r.calendarOptions,a,o),u={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:c,eventUiBases:{},eventStore:Le(),renderableEventStore:Le(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},d=Object.assign(Object.assign({},o),u);for(let h of r.pluginHooks.reducers)Object.assign(u,h(null,null,d));ii(u,o)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=Tp(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=Rp(r.currentViewType,e),o=this.computeCurrentViewData(a,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(o.options);let c={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:d}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(d=o.dateProfileGenerator.build(u)),u=Sh(u,e),d=kp(d,e,u,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!nt(d.currentRange,u))&&(u=d.currentRange.start);let h=xp(r.eventSources,e,d,c),f=Nh(r.eventStore,e,h,d,c),m=_c(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:p,selectionConfig:b}=this.buildViewUiProps(c),w=this.buildEventUiBySource(h),D=this.buildEventUiBases(m.defs,p,w),C={dynamicOptionOverrides:s,currentViewType:a,currentDate:u,dateProfile:d,eventSources:h,eventStore:f,renderableEventStore:m,selectionConfig:b,eventUiBases:D,businessHours:this.parseContextBusinessHours(c),dateSelection:Bp(r.dateSelection,e),eventSelection:jp(r.eventSelection,e),eventDrag:Vp(r.eventDrag,e),eventResize:Fp(r.eventResize,e)},_=Object.assign(Object.assign({},c),C);for(let A of l.pluginHooks.reducers)Object.assign(C,A(r,e,_));let S=ii(r,c),y=ii(C,c);!S&&y?i.trigger("loading",!0):S&&!y&&i.trigger("loading",!1),this.state=C,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),a=i.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,c=i.calendarOptions;if(o&&o!==c){o.timeZone!==c.timeZone&&(n.eventSources=l.eventSources=Ip(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=Bl(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=Bl(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let u in a)(this.optionsForHandling.indexOf(u)!==-1||o[u]!==c[u])&&a[u](c[u],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,n);Ql(o);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),u=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),d=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,d,u,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:c,viewSpecs:u,theme:d,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=Qr([fn,e,n]),s=this.organizeRawLocales(r),l=s.map,a=this.buildLocale(i||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],lm),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Il),Ol),Nl),o.listenerRefiners),o.optionRefiners),u={},d=Qr([fn,a,e,n]),h={},f=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,m=!1;for(let p in d)this.optionsForRefining.indexOf(p)===-1&&(d[p]===f[p]||kt[p]&&p in f&&kt[p](f[p],d[p]))?h[p]=g[p]:c[p]?(h[p]=c[p](d[p]),m=!0):u[p]=f[p];return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:a,extra:u}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);Ql(a);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:c}}processRawViewOptions(e,n,r,i,s){let l=Qr([fn,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Il),Ol),Nl),Zf),n.listenerRefiners),n.optionRefiners),o={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,h={};for(let f in l)l[f]===c[f]||kt[f]&&kt[f](l[f],c[f])?o[f]=u[f]:(l[f]===this.currentCalendarOptionsInput[f]||kt[f]&&kt[f](l[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):a[f]?o[f]=a[f](l[f]):h[f]=l[f],d=!0);return d&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function dm(t,e,n,r,i,s,l,a){let o=Cc(e||l.defaultCode,l.map);return new lh({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function fm(t,e){let n=e.themeClasses[t.themeSystem]||Ct;return new n(t)}function hm(t){let e=t.dateProfileGeneratorClass||Bo;return new e(t)}function gm(t,e,n){return new $p(t,e,n)}function pm(t){return lt(t,e=>e.ui)}function mm(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function vm(t){let{options:e}=t;return{eventUiSingleBase:br({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:br({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function ii(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function bm(t){return Uh(t.options.businessHours,t)}function Ql(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class ym extends ee{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return v("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:c,buttonIcon:u,buttonHint:d}=l;if(a==="title")s=!1,i.push(v("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,f=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",g=[`fc-${a}-button`,r.getClass("button")];h&&g.push(r.getClass("buttonActive")),i.push(v("button",{type:"button",title:typeof d=="function"?d(n.navUnit):d,disabled:f,"aria-pressed":h,className:g.join(" "),onClick:o},c||(u?v("span",{className:u,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return v("div",{className:l},...i)}return i[0]}}class Zl extends ee{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,l=e.sectionWidgets,a=l.center;return l.left?(r=!0,i=l.left):i=l.start,l.right?(r=!0,s=l.right):s=l.end,v("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return v(ym,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class Sm extends ee{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,at(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return r?n.availableWidth!==null?s=n.availableWidth/r:l=`${1/r*100}%`:s=e.height||"",v("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Em extends sn{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=Kt(r);if(l&&i.isValidSegDownEl(n.target)){let a=Ee(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new oe(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=_o(e.el,"click",".fc-event",this.handleSegClick)}}class wm extends sn{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Kt(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=tf(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=Kt(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new oe(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Am extends Ft{constructor(){super(...arguments),this.buildViewContext=z(ch),this.buildViewPropTransformers=z(Dm),this.buildToolbarProps=z(Cm),this.headerRef=_e(),this.footerRef=_e(),this.interactionsStore={},this.state={viewLabelId:vt()},this.registerInteractiveComponent=(e,n)=>{let r=dg(e,n),l=[Em,wm].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=l,Pi[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete Pi[e.uid]},this.resizeRunner=new as(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,In(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",a;e.isHeightAuto||e.forPrint?l="":r.height!=null?s=!0:r.contentHeight!=null?l=r.contentHeight:a=Math.max(r.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return v(ut.Provider,{value:o},n.header&&v(Zl,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),v(Sm,{liquid:s,height:l,aspectRatio:a,labeledById:c},this.renderView(e),this.buildAppendContent()),n.footer&&v(Zl,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}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,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return v(re,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(i,a.transform(i,e));let l=r.component;return v(l,Object.assign({},i))}}function Cm(t,e,n,r,i,s){let l=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),o=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!nt(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function Dm(t){return t.map(e=>new e)}let _m=class extends fg{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;mr(()=>{pn(v(ug,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,a)=>(this.setClassNames(i),this.setHeight(s),v(Po.Provider,{value:this.customContentRenderId},v(Am,Object.assign({isHeightAuto:l,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,pn(null,this.el),this.setClassNames([]),this.setHeight(""))},Gd(e),this.el=e,this.renderRunner=new as(this.handleRenderRequest),new um({optionOverrides:n,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(){mr(()=>{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,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!yt(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Co(this.el,"height",e)}};const Rm={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Tm=ka({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:xm(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(It(km,{key:e.id,customRendering:e}));return It("div",{attrs:{"data-fc-render-id":this.renderId}},It(Se,t))},mounted(){const t=new fp;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new _m(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Mm()}),km=ka({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return It(Wu,{to:t.containerEl},e)}});function Mm(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in Rm)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function xm(t){const e={};for(const n in t)e[Im(n)]=t[n];return e}function Im(t){return t.split("-").map((e,n)=>n?Om(e):e).join("")}function Om(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Nm extends We{constructor(){super(...arguments),this.headerElRef=_e()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=Sr(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),v(mn,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},v(Os,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&Sr(a.options),c=!l.forPrint&&pc(a.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Bi}]}),v(mn,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},v(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:u}))}}function $n(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function Wn(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function Xl(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const xc=se({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ic(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Oc extends ee{render(){let{props:e}=this;return v(mc,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:xc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Nc extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||xc,l=hn(i,s,n,!0,e.defaultDisplayEventEnd);return v(Pr,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:_s(e.seg,n),defaultGenerator:Pm,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function Pm(t){return v(re,null,v("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&v("div",{className:"fc-event-time"},t.timeText),v("div",{className:"fc-event-title"},t.event.title||v(re,null," ")))}class Hm extends ee{constructor(){super(...arguments),this.compileSegs=z(Lm)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return v(Sc,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return v(re,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return v("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},Ic(s)?v(Nc,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},rt(s,e.todayRange))):v(Oc,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},rt(s,e.todayRange))))}))}})}}function Lm(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const Bm=se({week:"narrow"});class jm extends We{constructor(){super(...arguments),this.rootElRef=_e(),this.state={dayNumberId:vt()},this.handleRootEl=e=>{at(this.rootElRef,e),at(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=n;const c=n.showDayNumber&&Fm(a,o.currentRange,l);return v(Ps,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Vm,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(u,d)=>v("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&v(yc,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:en(e,a,"week"),date:a,defaultFormat:Bm}),!d.isDisabled&&(n.showDayNumber||Hs(s)||n.forceDayTop)?v("div",{className:"fc-daygrid-day-top"},v(u,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},en(e,a)),{id:r.dayNumberId})})):n.showDayNumber?v("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},v("a",{className:"fc-daygrid-day-number"}," ")):void 0,v("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,v("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},v(Hm,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),v("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Vm(t){return t.dayNumberText||v(re,null," ")}function Fm(t,e,n){const{start:r,end:i}=e,s=St(i,-1),l=n.getYear(r),a=n.getMonth(r),o=n.getYear(s),c=n.getMonth(s);return!(l===o&&a===c)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function Pc(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Hc(t){return Pc(t)+":"+t.lastCol}function zm(t,e,n,r,i,s,l){let a=new Wm(b=>{let w=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return i[w]||1});a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let o=[],c=[];for(let b=0;b<t.length;b+=1){let w=t[b],D=Hc(w);i[D]!=null?o.push({index:b,span:{start:w.firstCol,end:w.lastCol+1}}):c.push(w)}let u=a.addSegs(o),d=a.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:g}=Um(d,t,l),m=[],p=[];for(let b of c){f[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let w=b.firstCol;w<=b.lastCol;w+=1)h[w].push({seg:Zt(b,w,w+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<l.length;b+=1)m.push(0);for(let b of u){let w=t[b.index],D=b.span;f[D.start].push({seg:Zt(w,D.start,D.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let C=D.start;C<D.end;C+=1)m[C]+=1,h[C].push({seg:Zt(w,C,C+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<l.length;b+=1)p.push(g[b]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:m,moreMarginTops:p}}function Um(t,e,n){let r=$m(t,n.length),i=[],s=[],l=[];for(let a=0;a<n.length;a+=1){let o=r[a],c=[],u=0,d=0;for(let f of o){let g=e[f.index];c.push({seg:Zt(g,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-u}),u=f.levelCoord+f.thickness}let h=[];u=0,d=0;for(let f of o){let g=e[f.index],m=f.span.end-f.span.start>1,p=f.span.start===a;d+=f.levelCoord-u,u=f.levelCoord+f.thickness,m?(d+=f.thickness,p&&h.push({seg:Zt(g,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):p&&(h.push({seg:Zt(g,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:d}),d=0)}i.push(c),s.push(h),l.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function $m(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function Zt(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=Et(s,{start:r[e].date,end:be(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:l},isStart:t.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===s.end.valueOf()})}class Wm extends rc{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Pt(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:l,touchingLevel:a,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const c=Pt(l);if(!s[c])if(this.allowReslicing){const u=Object.assign(Object.assign({},l),{span:xs(l.span,n.span)}),d=Pt(u);s[d]=!0,i[a][o]=u,r.push(u),this.splitEntry(l,n,r)}else s[c]=!0,r.push(l)}super.handleInvalidInsertion(e,n,r)}}class Lc extends We{constructor(){super(...arguments),this.cellElRefs=new tt,this.frameElRefs=new tt,this.fgElRefs=new tt,this.segHarnessRefs=new tt,this.rootElRef=_e(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,l=Wn(e.businessHourSegs,s),a=Wn(e.bgEventSegs,s),o=Wn(this.getHighlightSegs(),s),c=Wn(this.getMirrorSegs(),s),{singleColPlacements:u,multiColPlacements:d,moreCnts:h,moreMarginTops:f}=zm(Ds(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),g=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return v("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((m,p)=>{let b=this.renderFgSegs(p,e.forPrint?u[p]:d[p],e.todayRange,g),w=this.renderFgSegs(p,Gm(c[p],d),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return v(jm,{key:m.key,elRef:this.cellElRefs.createRef(m.key),innerElRef:this.frameElRefs.createRef(m.key),dateProfile:e.dateProfile,date:m.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&p===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,moreCnt:h[p],moreMarginTop:f[p],singlePlacements:u[p],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:v(re,null,v(re,null,b),v(re,null,w)),bgContent:v(re,null,this.renderFillSegs(o[p],"highlight"),this.renderFillSegs(l[p],"non-business"),this.renderFillSegs(a[p],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!Ye(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,s,l,a){let{context:o}=this,{eventSelection:c}=this.props,{framePositions:u}=this.state,d=this.props.cells.length===1,h=s||l||a,f=[];if(u)for(let g of n){let{seg:m}=g,{instanceId:p}=m.eventRange.instance,b=g.isVisible&&!i[p],w=g.isAbsolute,D="",C="";w&&(o.isRtl?(C=0,D=u.lefts[m.lastCol]-u.lefts[m.firstCol]):(D=0,C=u.rights[m.firstCol]-u.rights[m.lastCol])),f.push(v("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:Pc(m),ref:h?null:this.segHarnessRefs.createRef(Hc(m)),style:{visibility:b?"":"hidden",marginTop:w?"":g.marginTop,top:w?g.absoluteTop:"",left:D,right:C}},Ic(m)?v(Nc,Object.assign({seg:m,isDragging:s,isSelected:p===c,defaultDisplayEventEnd:d},rt(m,r))):v(Oc,Object.assign({seg:m,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:p===c,defaultDisplayEventEnd:d},rt(m,r)))))}return f}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=r?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(v("div",{key:Zo(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?v(vc,Object.assign({seg:a},rt(a,i))):bc(n)))}return v(re,{},...l)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(c=>i.currentMap[c.key]);if(o.length){let c=this.rootElRef.current,u=new tn(c,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(u))&&this.setState({framePositions:new tn(c,o,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Lc.addStateEquality({segHeights:Ye});function Gm(t,e){if(!t.length)return[];let n=Ym(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function Ym(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class qm extends We{constructor(){super(...arguments),this.splitBusinessHourSegs=z($n),this.splitBgEventSegs=z($n),this.splitFgEventSegs=z($n),this.splitDateSelectionSegs=z($n),this.splitEventDrag=z(Xl),this.splitEventResize=z(Xl),this.rowRefs=new tt}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),c=this.splitEventResize(e.eventResize,r),u=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return v(ln,{unit:"day"},(d,h)=>v(re,null,e.cells.map((f,g)=>v(Lc,{ref:this.rowRefs.createRef(g),key:f.length?f[0].date.toISOString():g,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:i[g],eventSelection:e.eventSelection,bgEventSegs:s[g].filter(Qm),fgEventSegs:l[g],dateSelectionSegs:a[g],eventDrag:o[g],eventResize:c[g],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new tn(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new tn(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),l=i.topToIndex(n);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=be(r,1);return{start:r,end:i}}}function Qm(t){return t.eventRange.def.allDay}class Zm extends We{constructor(){super(...arguments),this.elRef=_e(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return v("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,v("tbody",{role:"presentation"},v(qm,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Xm(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function Xm(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Of(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Mn(e.currentDate)}"]`)),n}class Jm extends cc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Bc extends We{constructor(){super(...arguments),this.slicer=new Jm,this.tableRef=_e()}render(){let{props:e,context:n}=this;return v(Zm,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Km extends Nm{constructor(){super(...arguments),this.buildDayTableModel=z(ev),this.headerRef=_e(),this.tableRef=_e()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&v(lc,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=a=>v(Bc,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function ev(t,e){let n=new ac(t.renderRange,e);return new oc(n,/year|month|week/.test(t.currentRangeUnit))}class tv extends Bo{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return nv({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function nv(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=_l(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(be(n.end,-1))),a=Math.ceil(wf(l,i));i=_l(i,6-a)}return{start:r,end:i}}var rv=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';kr(rv);var iv=Qe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Km,dateProfileGeneratorClass:tv},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class sv extends vg{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?qh(e)?["timed","allDay"]:["allDay"]:["timed"]}}const lv=se({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function jc(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return v(ut.Consumer,null,n=>{if(!t.isLabeled)return v("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,l=i.slotLabelFormat==null?lv:Array.isArray(i.slotLabelFormat)?se(i.slotLabelFormat[0]):se(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return v(Ce,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:av,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},o=>v("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},v(o,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function av(t){return t.text}class ov extends ee{render(){return this.props.slatMetas.map(e=>v("tr",{key:e.key},v(jc,Object.assign({},e))))}}const cv=se({week:"short"}),uv=5;class dv extends We{constructor(){super(...arguments),this.allDaySplitter=new sv,this.headerElRef=_e(),this.rootElRef=_e(),this.scrollerElRef=_e(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,s=i.renderRange,a=At(s.start,s.end)===1?en(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?v(yc,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:cv},o=>v("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},v(o,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):v("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},v("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return v(Ce,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:fv,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>v("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},v(s,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:i,props:s}=this,l=[],a=Sr(i.options);return e&&l.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(l.push({type:"body",key:"all-day",chunk:{content:n}}),l.push({type:"body",key:"all-day-divider",outerContent:v("tr",{role:"presentation",className:"fc-scrollgrid-section"},v("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),v(mn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},v(Os,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,n,r,i,s,l,a){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{context:c,props:u}=this,d=!u.forPrint&&Sr(c.options),h=!u.forPrint&&pc(c.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>v("tr",{role:"presentation"},this.renderHeadAxis("day",m.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>v("tr",{role:"presentation"},this.renderTableRowAxis(m.rowSyncHeights[0]))},{key:"cols",content:n}]}),f.push({key:"all-day-divider",type:"body",outerContent:v("tr",{role:"presentation",className:"fc-scrollgrid-section"},v("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let g=c.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:"axis",content:m=>v("div",{className:"fc-timegrid-axis-chunk"},v("table",{"aria-hidden":!0,style:{height:m.expandRows?m.clientHeight:""}},m.tableColGroupNode,v("tbody",null,v(ov,{slatMetas:l}))),v("div",{className:"fc-timegrid-now-indicator-container"},v(ln,{unit:g?"minute":"day"},p=>{let b=g&&a&&a.safeComputeTop(p);return typeof b=="number"?v(Ns,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:p}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Bi},{key:"cols",content:Bi}]}),v(mn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},v(o,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:s}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=uv),{dayMaxEvents:e,dayMaxEventRows:n}}}function fv(t){return t.text}class hv{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(nt(n.currentRange,e)){let r=ie(e),i=e.valueOf()-r.valueOf();if(i>=Ue(n.slotMinTime)&&i<Ue(n.slotMaxTime))return this.computeTimeTop(K(i))}return null}computeDateTop(e,n){return n||(n=ie(e)),this.computeTimeTop(K(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-Ue(r.slotMinTime))/Ue(this.slotDuration),l,a;return s=Math.max(0,s),s=Math.min(i,s),l=Math.floor(s),l=Math.min(l,i-1),a=s-l,n.tops[l]+n.getHeight(l)*a}}class gv extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return v("tbody",null,e.slatMetas.map((s,l)=>{let a={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return v("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&v(jc,Object.assign({},s)),v(Ce,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!s.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":s.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class pv extends ee{constructor(){super(...arguments),this.rootElRef=_e(),this.slatElRefs=new tt}render(){let{props:e,context:n}=this;return v("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},v("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,v(gv,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new hv(new tn(this.rootElRef.current,mv(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function mv(t,e){return e.map(n=>t[n.key])}function cn(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function Jl(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class vv extends ee{render(){let{props:e}=this;return v(Sc,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Fc(e.hiddenSegs,e),defaultGenerator:bv,forceTimed:!0},n=>v(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function bv(t){return t.shortText}function yv(t,e,n){let r=new rc;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=Mg(i),l=Sv(r);return l=Cv(l,1),{segRects:Dv(l),hiddenGroups:s}}function Sv(t){const{entriesByLevel:e}=t,n=Bs((r,i)=>r+":"+i,(r,i)=>{let s=Av(t,r,i),l=Kl(s,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:l[0]}),a.thickness+l[1]]});return Kl(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Kl(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=t,s=r,l=[];for(;s<i;)l.push(e(n,s)),s+=1;return l.sort(Ev),[l.map(wv),l[0][1]]}function Ev(t,e){return e[1]-t[1]}function wv(t){return t[0]}function Av(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],l=r[e]+s.thickness,a=r.length,o=e;for(;o<a&&r[o]<l;o+=1);for(;o<a;o+=1){let c=i[o],u,d=Li(c,s.span.start,Hi),h=d[0]+d[1],f=h;for(;(u=c[f])&&u.span.start<s.span.end;)f+=1;if(h<f)return{level:o,lateralStart:h,lateralEnd:f}}return null}function Cv(t,e){const n=Bs((r,i,s)=>Pt(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:a}=r,o=a+s,c=a/o,u,d=[];if(!l.length)u=e;else for(let f of l)if(u===void 0){let g=n(f,i,o);u=g[0],d.push(g[1])}else{let g=n(f,u,0);d.push(g[1])}let h=(u-i)*c;return[u-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:d})]});return t.map(r=>n(r,0,0)[1])}function Dv(t){let e=[];const n=Bs((i,s,l)=>Pt(i),(i,s,l)=>{let a=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:l,stackForward:0});return e.push(a),a.stackForward=r(i.nextLevelNodes,s+i.thickness,l+1)+1});function r(i,s,l){let a=0;for(let o of i)a=Math.max(n(o,s,l),a);return a}return r(t,0,0),e}function Bs(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function ea(t,e,n=null,r=0){let i=[];if(n)for(let s=0;s<t.length;s+=1){let l=t[s],a=n.computeDateTop(l.start,e),o=Math.max(a+(r||0),n.computeDateTop(l.end,e));i.push({start:Math.round(a),end:Math.round(o)})}return i}function _v(t,e,n,r){let i=[],s=[];for(let c=0;c<t.length;c+=1){let u=e[c];u?i.push({index:c,thickness:1,span:u}):s.push(t[c])}let{segRects:l,hiddenGroups:a}=yv(i,n,r),o=[];for(let c of l)o.push({seg:t[c.index],rect:c});for(let c of s)o.push({seg:c,rect:null});return{segPlacements:o,hiddenGroups:a}}const Rv=se({hour:"numeric",minute:"2-digit",meridiem:!1});class Vc extends ee{render(){return v(mc,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Rv}))}}class Tv extends ee{constructor(){super(...arguments),this.sortEventSegs=z(Ds)}render(){let{props:e,context:n}=this,{options:r}=n,i=r.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return v(Ps,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},o=>v("div",{className:"fc-timegrid-col-frame"},v("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),v("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,l,!1,!1,!1)),v("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),v("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Hs(r)&&v(o,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:a}=this;return a.forPrint?Fc(e,a):this.renderPositionedFgSegs(e,n,r,i,s,l)}renderPositionedFgSegs(e,n,r,i,s,l){let{eventMaxStack:a,eventShortHeight:o,eventOrderStrict:c,eventMinHeight:u}=this.context.options,{date:d,slatCoords:h,eventSelection:f,todayRange:g,nowDate:m}=this.props,p=r||i||s,b=ea(e,d,h,u),{segPlacements:w,hiddenGroups:D}=_v(e,b,c,a);return v(re,null,this.renderHiddenGroups(D,e),w.map(C=>{let{seg:_,rect:S}=C,y=_.eventRange.instance.instanceId,A=p||!!(!n[y]&&S),H=si(S&&S.span),M=!p&&S?this.computeSegHStyle(S):{left:0,right:0},N=!!S&&S.stackForward>0,I=!!S&&S.span.end-S.span.start<o;return v("div",{className:"fc-timegrid-event-harness"+(N?" fc-timegrid-event-harness-inset":""),key:l||y,style:Object.assign(Object.assign({visibility:A?"":"hidden"},H),M)},v(Vc,Object.assign({seg:_,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:y===f,isShort:I},rt(_,g,m))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:c}=this.props;return v(re,null,e.map(u=>{let d=si(u.span),h=kv(u.entries,n);return v(vv,{key:Mo(Ec(h)),hiddenSegs:h,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:c})}))}renderFillSegs(e,n){let{props:r,context:i}=this,l=ea(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,o)=>{let c=e[o];return v("div",{key:Zo(c.eventRange),className:"fc-timegrid-bg-harness",style:si(a)},n==="bg-event"?v(vc,Object.assign({seg:c},rt(c,r.todayRange,r.nowDate))):bc(n))});return v(re,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>v(Ns,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,s=e.levelCoord,l=e.levelCoord+e.thickness,a,o;i&&(l=Math.min(1,s+(l-s)*2)),n?(a=1-l,o=s):(a=s,o=1-l);let c={zIndex:e.stackDepth+1,left:a*100+"%",right:o*100+"%"};return i&&!e.stackForward&&(c[n?"marginLeft":"marginRight"]=10*2),c}}function Fc(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return v(re,null,t.map(a=>{let o=a.eventRange.instance.instanceId;return v("div",{key:o,style:{visibility:l[o]?"hidden":""}},v(Vc,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},rt(a,e,n))))}))}function si(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function kv(t,e){return t.map(n=>e[n.index])}class Mv extends ee{constructor(){super(...arguments),this.splitFgEventSegs=z(cn),this.splitBgEventSegs=z(cn),this.splitBusinessHourSegs=z(cn),this.splitNowIndicatorSegs=z(cn),this.splitDateSelectionSegs=z(cn),this.splitEventDrag=z(Jl),this.splitEventResize=z(Jl),this.rootElRef=_e(),this.cellElRefs=new tt}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,i),l=this.splitBgEventSegs(e.bgEventSegs,i),a=this.splitBusinessHourSegs(e.businessHourSegs,i),o=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),c=this.splitDateSelectionSegs(e.dateSelectionSegs,i),u=this.splitEventDrag(e.eventDrag,i),d=this.splitEventResize(e.eventResize,i);return v("div",{className:"fc-timegrid-cols",ref:this.rootElRef},v("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,v("tbody",{role:"presentation"},v("tr",{role:"row"},e.axis&&v("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},v("div",{className:"fc-timegrid-col-frame"},v("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&v(Ns,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((h,f)=>v(Tv,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:e.dateProfile,date:h.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:s[f],bgEventSegs:l[f],businessHourSegs:a[f],nowIndicatorSegs:o[f],dateSelectionSegs:c[f],eventDrag:u[f],eventResize:d[f],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new tn(this.rootElRef.current,xv(this.cellElRefs.currentMap,e.cells),!0,!1))}}function xv(t,e){return e.map(n=>t[n.key])}class Iv extends We{constructor(){super(...arguments),this.processSlotOptions=z(Ov),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return v("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v(pv,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),v(Mv,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:i}=this.context,{colCoords:s}=this,{dateProfile:l}=this.props,{slatCoords:a}=this.state,{snapDuration:o,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),u=s.leftToIndex(e),d=a.positions.topToIndex(n);if(u!=null&&d!=null){let h=this.props.cells[u],f=a.positions.tops[d],g=a.positions.getHeight(d),m=(n-f)/g,p=Math.floor(m*c),b=d*c+p,w=this.props.cells[u].date,D=Ti(l.slotMinTime,bf(o,b)),C=r.add(w,D),_=r.add(C,o);return{dateProfile:l,dateSpan:Object.assign({range:{start:C,end:_},allDay:!1},h.extraDateSpan),dayEl:s.els[u],rect:{left:s.lefts[u],right:s.rights[u],top:f,bottom:f+g},layer:0}}return null}}function Ov(t,e){let n=e||t,r=ds(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class Nv extends cc{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Et(e,n[i]);s&&r.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:i})}return r}}class Pv extends We{constructor(){super(...arguments),this.buildDayRanges=z(Hv),this.slicer=new Nv,this.timeColsRef=_e()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:s,nextDayThreshold:l}=n.options,a=this.buildDayRanges(i,r,n.dateEnv);return v(ln,{unit:s?"minute":"day"},(o,c)=>v(Iv,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:o,nowIndicatorSegs:s&&this.slicer.sliceNowDate(o,r,l,n,a),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Hv(t,e,n){let r=[];for(let i of t.headerDates)r.push({start:n.add(i,e.slotMinTime),end:n.add(i,e.slotMaxTime)});return r}const ta=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Lv(t,e,n,r,i){let s=new Date(0),l=t,a=K(0),o=n||Bv(r),c=[];for(;Ue(l)<Ue(e);){let u=i.add(s,l),d=ds(a,o)!==null;c.push({date:u,time:l,key:u.toISOString(),isoTimeStr:Nf(u),isLabeled:d}),l=Ti(l,r),a=Ti(a,r)}return c}function Bv(t){let e,n,r;for(e=ta.length-1;e>=0;e-=1)if(n=K(ta[e]),r=ds(n,t),r!==null&&r>1)return n;return t}class jv extends dv{constructor(){super(...arguments),this.buildTimeColsModel=z(Vv),this.buildSlatMetas=z(Lv)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:s}=i,l=this.buildTimeColsModel(s,r),a=this.allDaySplitter.splitProps(i),o=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:c}=e,u=!c,d=c,h=e.dayHeaders&&v(lc,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),f=e.allDaySlot!==!1&&(m=>v(Bc,Object.assign({},a.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:m.tableMinWidth,colGroupNode:m.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:m.clientWidth,clientHeight:m.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),g=m=>v(Pv,Object.assign({},a.timed,{dayTableModel:l,dateProfile:s,axis:u,slotDuration:e.slotDuration,slatMetas:o,forPrint:i.forPrint,tableColGroupNode:m.tableColGroupNode,tableMinWidth:m.tableMinWidth,clientWidth:m.clientWidth,clientHeight:m.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:m.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(h,f,g,l.colCnt,c,o,this.state.slatCoords):this.renderSimpleLayout(h,f,g)}}function Vv(t,e){let n=new ac(t.renderRange,e);return new oc(n,!1)}var Fv='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';kr(Fv);const zv={allDaySlot:Boolean};var Uv=Qe({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:zv,views:{timeGrid:{component:jv,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Is.touchMouseIgnoreWait=500;let Vi=0,Er=0,Fi=!1;class zc{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=n=>{if(!this.shouldIgnoreMouse()&&$v(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Wv()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new Or,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Gv()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Yv()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Ee(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Fi=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Ee(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Vi||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Fi=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,l=0,a=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(l=i-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:l,deltaY:a}}}function $v(t){return t.button===0&&!t.ctrlKey}function Wv(){Vi+=1,setTimeout(()=>{Vi-=1},Is.touchMouseIgnoreWait)}function Gv(){Er+=1,Er===1&&window.addEventListener("touchmove",Uc,{passive:!1})}function Yv(){Er-=1,Er||window.removeEventListener("touchmove",Uc,{passive:!1})}function Uc(t){Fi&&t.preventDefault()}class qv{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,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-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,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",un(r,{left:i.left,top:i.top}),nf(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(os(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&un(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),un(n,{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(n)),n}}class $c extends Ms{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,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 Wc extends $c{constructor(e,n){super(new Tg(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return _g(this.scrollController.el)}}class Qv extends $c{constructor(e){super(new kg,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 na=typeof performance=="function"?performance.now:Date.now;class Zv{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.scrollX,this.pointerScreenY+window.scrollY);if(e){let n=na();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.scrollX,i=n-window.scrollY,s=this.pointerScreenY===null?0:i-this.pointerScreenY,l=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(na()))}}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,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,l=s*s/(i*i)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+l*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,c=a.right-e,u=n-a.top,d=a.bottom-n;o>=0&&c>=0&&u>=0&&d>=0&&(u<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"top",distance:u}),d<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"bottom",distance:d}),o<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:l,name:"left",distance:o}),c<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"right",distance:c}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new Qv(!1):new Wc(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class On extends Ig{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,rf(document.body),lf(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=i;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,sf(document.body),af(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new zc(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new qv,this.autoScroller=new Zv}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Xv{constructor(e){this.el=e,this.origRect=ks(e),this.scrollCaches=nc(e).map(n=>new Wc(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!Jv(i.getEventTarget())&&!hg(r,i.clientRect))return!1;return!0}}function Jv(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Hr{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,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 Or}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=ks(i),r=gg(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let a=ec(s,l.rect);a&&(r=pg(a))}this.coordAdjust=mg(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!Lr(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=lt(this.droppableStore,e=>(e.component.prepareHits(),new Xv(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let l in r){let a=r[l].component,o=i[l];if(o&&o.isWithinClipping(e,n)){let c=o.computeLeft(),u=o.computeTop(),d=e-c,h=n-u,{origRect:f}=o,g=f.right-f.left,m=f.bottom-f.top;if(d>=0&&d<g&&h>=0&&h<m){let p=a.queryHit(d,h,g,m);p&&xr(p.dateProfile.activeRange,p.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(d+c-window.scrollX,h+u-window.scrollY)))&&(!s||p.layer>s.layer)&&(p.componentId=l,p.context=a.context,p.rect.left+=c,p.rect.right+=c,p.rect.top+=u,p.rect.bottom+=u,s=p)}}}return s}}function Lr(t,e){return!t&&!e?!0:!!t!=!!e?!1:rg(t.dateSpan,e.dateSpan)}function Gc(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,Kv(t,e.dateEnv)),n}function Kv(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class eb extends sn{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&Lr(l,a)){let{context:o}=i,c=Object.assign(Object.assign({},Gc(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",c)}}},this.dragging=new On(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Hr(this.dragging,Rs(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class tb extends sn{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:c}=a.context,u=c.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!u),o.delay=l.isTouch?nb(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,c=null,u=!1;if(l){let d=this.hitDragging.initialHit;l.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,l)||(c=rb(d,l,o.pluginHooks.dateSelectionTransformers)),(!c||!Bg(c,l.dateProfile,o))&&(u=!0,c=null)}c?o.dispatch({type:"SELECT_DATES",selection:c}):a||o.dispatch({type:"UNSELECT_DATES"}),u?cs():us(),a||(this.dragSelection=c)},this.handlePointerUp=l=>{this.dragSelection&&(Yo(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new On(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Hr(this.dragging,Rs(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function nb(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function rb(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(ff);let l={};for(let a of n){let o=a(t,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class Nn extends sn{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let a=l.origEvent.target,{component:o,dragging:c}=this,{mirror:u}=c,{options:d}=o.context,h=o.context;this.subjectEl=l.subjectEl;let f=this.subjectSeg=Kt(l.subjectEl),m=(this.eventRange=f.eventRange).instance.instanceId;this.relevantEvents=Es(h.getCurrentData().eventStore,m),c.minDistance=l.isTouch?0:d.eventDragMinDistance,c.delay=l.isTouch&&m!==o.props.eventSelection?sb(o):null,d.fixedMirrorParent?u.parentNode=d.fixedMirrorParent:u.parentNode=Ee(a,".fc"),u.revertDuration=d.dragRevertDuration;let p=o.isValidSegDownEl(a)&&!Ee(a,".fc-event-resizer");c.setIgnoreMove(!p),this.isDragging=p&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,c=o.instance.instanceId;l.isTouch?c!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new oe(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,c=this.hitDragging.initialHit,u=this.component.context,d=null,h=null,f=null,g=!1,m={affectedEvents:o,mutatedEvents:Le(),isEvent:!0};if(l){d=l.context;let p=d.options;u===d||p.editable&&p.droppable?(h=ib(c,l,this.eventRange.instance.range.start,d.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(f=Cs(o,d.getCurrentData().eventUiBases,h,d),m.mutatedEvents=f,uc(m,l.dateProfile,d)||(g=!0,h=null,f=null,m.mutatedEvents=Le()))):d=null}this.displayDrag(d,m),g?cs():us(),a||(u===d&&Lr(c,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=d,this.validMutation=h,this.mutatedRelevantEvents=f)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:c,validMutation:u}=this,d=this.eventRange.def,h=this.eventRange.instance,f=new oe(a,d,h),g=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:p}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:f,jsEvent:l.origEvent,view:o}),u){if(c===a){let b=new oe(a,m.defs[d.defId],h?m.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:m});let w={oldEvent:f,event:b,relatedEvents:Nt(m,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}},D={};for(let C of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(D,C(u,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},w),D),{el:l.subjectEl,delta:u.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",w)}else if(c){let b={event:f,relatedEvents:Nt(g,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:g}),a.emitter.trigger("eventRemove",b);let w=m.defs[d.defId],D=m.instances[h.instanceId],C=new oe(c,w,D);c.dispatch({type:"MERGE_EVENTS",eventStore:m});let _={event:C,relatedEvents:Nt(m,c,D),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};c.emitter.trigger("eventAdd",_),l.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},Gc(p.dateSpan,c)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:p.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},_),{draggedEl:l.subjectEl,view:p.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new On(e.el);i.pointer.selector=Nn.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Hr(this.dragging,Pi);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,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Le(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&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}}Nn.SELECTOR=".fc-event-draggable, .fc-event-resizable";function ib(t,e,n,r){let i=t.dateSpan,s=e.dateSpan,l=i.range.start,a=s.range.start,o={};i.allDay!==s.allDay&&(o.allDay=s.allDay,o.hasEnd=e.context.options.allDayMaintainDuration,s.allDay?l=ie(n):l=n);let c=Wt(l,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(o.allDay=!1);let u={datesDelta:c,standardProps:o};for(let d of r)d(u,t,e);return u}function sb(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class lb extends sn{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,a=this.querySegEl(s),o=Kt(a),c=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=Es(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=Kt(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new oe(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,c=this.relevantEvents,u=this.hitDragging.initialHit,d=this.eventRange.instance,h=null,f=null,g=!1,m={affectedEvents:c,mutatedEvents:Le(),isEvent:!0};s&&(s.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,s)||(h=ab(u,s,a.subjectEl.classList.contains("fc-event-resizer-start"),d.range))),h&&(f=Cs(c,o.getCurrentData().eventUiBases,h,o),m.mutatedEvents=f,uc(m,s.dateProfile,o)||(g=!0,h=null,f=null,m.mutatedEvents=null)),f?o.dispatch({type:"SET_EVENT_RESIZE",state:m}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),g?cs():us(),l||(h&&Lr(u,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,c=new oe(l,a,o),u=this.relevantEvents,d=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new oe(l,d.defs[a.defId],o?d.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:d});let f={oldEvent:c,event:h,relatedEvents:Nt(d,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:u})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||K(0),endDelta:this.validMutation.endDelta||K(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",f)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new On(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Hr(this.dragging,Rs(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Ee(e.subjectEl,".fc-event")}}function ab(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=Wt(s,l,i,t.largeUnit);if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}class ob{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=Do(r.origEvent);this.matchesCancel=!!Ee(s,i),this.matchesEvent=!!Ee(s,Nn.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,l=i.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=i.options.unselectAuto;a&&(!a||!this.matchesCancel)&&i.calendarApi.unselect(r)}l.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new zc(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const cb={fixedMirrorParent:E},ub={dateClick:E,eventDragStart:E,eventDragStop:E,eventDrop:E,eventResizeStart:E,eventResizeStop:E,eventResize:E,drop:E,eventReceive:E,eventLeave:E};Is.dataAttrPrefix="";var db=Qe({name:"@fullcalendar/interaction",componentInteractions:[eb,tb,Nn,lb],calendarInteractions:[ob],elementDraggingImpl:On,optionRefiners:cb,listenerRefiners:ub});class fb extends ee{constructor(){super(...arguments),this.state={textId:vt()}}render(){let{theme:e,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:s,dayDate:l,todayRange:a}=this.props,{textId:o}=this.state,c=Ts(l,a),u=r.listDayFormat?n.format(l,r.listDayFormat):"",d=r.listDaySideFormat?n.format(l,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(l),view:i,textId:o,text:u,sideText:d,navLinkAttrs:en(this.context,l),sideNavLinkAttrs:en(this.context,l,"day",!1)},c);return v(Ce,{elTag:"tr",elClasses:["fc-list-day",...Nr(c,e)],elAttrs:{"data-date":Mn(l)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:hb,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},f=>v("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},v(f,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function hb(t){return v(re,null,t.text&&v("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&v("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const gb=se({hour:"numeric",minute:"2-digit",meridiem:"short"});class pb extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=r.eventTimeFormat||gb;return v(Pr,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>mb(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,u)=>v(re,null,vb(i,o,n,s,a),v("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},v("span",{className:"fc-list-event-dot",style:{borderColor:u.borderColor||u.backgroundColor}})),v(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${a}`}})))}}function mb(t,e){let n=_s(t,e);return v("a",Object.assign({},n),t.eventRange.def.title)}function vb(t,e,n,r,i){let{options:s}=n;if(s.displayEventTime!==!1){let l=t.eventRange.def,a=t.eventRange.instance,o=!1,c;if(l.allDay?o=!0:yh(t.eventRange.range)?t.isStart?c=hn(t,e,n,null,null,a.range.start,t.end):t.isEnd?c=hn(t,e,n,null,null,t.start,a.range.end):o=!0:c=hn(t,e,n),o){let u={text:n.options.allDayText,view:n.viewApi};return v(Ce,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:u,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:bb,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return v("td",{className:"fc-list-event-time"},c)}return null}function bb(t){return t.text}class yb extends We{constructor(){super(...arguments),this.computeDateVars=z(Eb),this.eventStoreToSegs=z(this._eventStoreToSegs),this.state={timeHeaderId:vt(),eventHeaderId:vt(),dateHeaderIdRoot:vt()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return v(mn,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},v(hc,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,r={text:e.noEventsText,view:n};return v(Ce,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:Sb,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},i=>v(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:r,options:i}=this.context,{timeHeaderId:s,eventHeaderId:l,dateHeaderIdRoot:a}=this.state,o=wb(e);return v(ln,{unit:"day"},(c,u)=>{let d=[];for(let h=0;h<o.length;h+=1){let f=o[h];if(f){let g=Mn(n[h]),m=a+"-"+g;d.push(v(fb,{key:g,cellId:m,dayDate:n[h],todayRange:u})),f=Ds(f,i.eventOrder);for(let p of f)d.push(v(pb,Object.assign({key:g+":"+p.eventRange.instance.instanceId,seg:p,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:l,dateHeaderId:m},rt(p,u,c))))}}return v("table",{className:"fc-list-table "+r.getClass("table")},v("thead",null,v("tr",null,v("th",{scope:"col",id:s},i.timeHint),v("th",{scope:"col","aria-hidden":!0}),v("th",{scope:"col",id:l},i.eventHint))),v("tbody",null,d))})}_eventStoreToSegs(e,n,r){return this.eventRangesToSegs(Ni(e,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(e,n){let r=[];for(let i of e)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(e,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,s=e.range,l=e.def.allDay,a,o,c,u=[];for(a=0;a<n.length;a+=1)if(o=Et(s,n[a]),o&&(c={component:this,eventRange:e,start:o.start,end:o.end,isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf(),dayIndex:a},u.push(c),!c.isEnd&&!l&&a+1<n.length&&s.end<r.add(n[a+1].start,i))){c.end=s.end,c.isEnd=!0;break}return u}}function Sb(t){return t.text}function Eb(t){let e=ie(t.renderRange.start),n=t.renderRange.end,r=[],i=[];for(;e<n;)r.push(e),i.push({start:e,end:be(e,1)}),e=be(e,1);return{dayDates:r,dayRanges:i}}function wb(t){let e=[],n,r;for(n=0;n<t.length;n+=1)r=t[n],(e[r.dayIndex]||(e[r.dayIndex]=[])).push(r);return e}var Ab=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';kr(Ab);const Cb={listDayFormat:ra,listDaySideFormat:ra,noEventsClassNames:E,noEventsContent:E,noEventsDidMount:E,noEventsWillUnmount:E};function ra(t){return t===!1?null:se(t)}var Db=Qe({name:"@fullcalendar/list",optionRefiners:Cb,views:{list:{component:yb,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}),_b={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"};function Rb(t){return Gu()?(Yu(t),!0):!1}function Tb(t){return typeof t=="function"?t():V(t)}const kb=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mb=()=>{};function xb(t){return xa()}function Ib(t,e=!0,n){xb()?Yi(t,n):e?t():Ma(t)}function Pn(t,e,n){let r;qu(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:s=void 0,shallow:l=!0,onError:a=Mb}=r,o=ne(!i),c=l?Ne(e):ne(e);let u=0;return Qu(async d=>{if(!o.value)return;u++;const h=u;let f=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const g=await t(m=>{d(()=>{s&&(s.value=!1),f||m()})});h===u&&(c.value=g)}catch(g){a(g)}finally{s&&h===u&&(s.value=!1),f=!0}}),i?F(()=>(o.value=!0,c.value)):c}function Gt(t){var e;const n=Tb(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Yc=kb?window:void 0;function Ob(){const t=ne(!1),e=xa();return e&&Yi(()=>{t.value=!0},e),t}function Nb(t){const e=Ob();return F(()=>(e.value,!!t()))}function Pb(t,e,n={}){const{window:r=Yc,...i}=n;let s;const l=Nb(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},o=F(()=>Array.isArray(t)?t.map(d=>Gt(d)):[Gt(t)]),c=jt(o,d=>{if(a(),l.value&&r){s=new ResizeObserver(e);for(const h of d)h&&s.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Rb(u),{isSupported:l,stop:u}}function YS(t,e={width:0,height:0},n={}){const{window:r=Yc,box:i="content-box"}=n,s=F(()=>{var d,h;return(h=(d=Gt(t))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),l=ne(e.width),a=ne(e.height),{stop:o}=Pb(t,([d])=>{const h=i==="border-box"?d.borderBoxSize:i==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&s.value){const f=Gt(t);if(f){const g=f.getBoundingClientRect();l.value=g.width,a.value=g.height}}else if(h){const f=Array.isArray(h)?h:[h];l.value=f.reduce((g,{inlineSize:m})=>g+m,0),a.value=f.reduce((g,{blockSize:m})=>g+m,0)}else l.value=d.contentRect.width,a.value=d.contentRect.height},n);Ib(()=>{const d=Gt(t);d&&(l.value="offsetWidth"in d?d.offsetWidth:e.width,a.value="offsetHeight"in d?d.offsetHeight:e.height)});const c=jt(()=>Gt(t),d=>{l.value=d?e.width:0,a.value=d?e.height:0});function u(){o(),c()}return{width:l,height:a,stop:u}}function Hb(t){const e=Ia({});return jt(t,()=>{for(const n of Object.keys(t))n.startsWith("_c_")&&(e[n]=t[n]);for(const n of Object.keys(e))t[n]===void 0&&delete e[n]},{immediate:!0}),e}const Xt=(t,e=0,n=1)=>Vs(Fs(e,t),n),js=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=Xt(t[e],0,255)):e===3&&(t[e]=Xt(t[e],0,1));return t},qc={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])qc[`[object ${t}]`]=t.toLowerCase();function X(t){return qc[Object.prototype.toString.call(t)]||"object"}const J=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):X(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0],Br=t=>{if(t.length<2)return null;const e=t.length-1;return X(t[e])=="string"?t[e].toLowerCase():null},{PI:jr,min:Vs,max:Fs}=Math,Je=jr*2,li=jr/3,Lb=jr/180,Bb=180/jr,q={format:{},autodetect:[]};class k{constructor(...e){const n=this;if(X(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=Br(e),i=!1;if(!r){i=!0,q.sorted||(q.autodetect=q.autodetect.sort((s,l)=>l.p-s.p),q.sorted=!0);for(let s of q.autodetect)if(r=s.test(...e),r)break}if(q.format[r]){const s=q.format[r].apply(null,i?e:e.slice(0,-1));n._rgb=js(s)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return X(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const jb="2.6.0",Q=(...t)=>new Q.Color(...t);Q.Color=k;Q.version=jb;const Vb=(...t)=>{t=J(t,"cmyk");const[e,n,r,i]=t,s=t.length>4?t[4]:1;return i===1?[0,0,0,s]:[e>=1?0:255*(1-e)*(1-i),n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),s]},{max:ia}=Math,Fb=(...t)=>{let[e,n,r]=J(t,"rgb");e=e/255,n=n/255,r=r/255;const i=1-ia(e,ia(n,r)),s=i<1?1/(1-i):0,l=(1-e-i)*s,a=(1-n-i)*s,o=(1-r-i)*s;return[l,a,o,i]};k.prototype.cmyk=function(){return Fb(this._rgb)};Q.cmyk=(...t)=>new k(...t,"cmyk");q.format.cmyk=Vb;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"cmyk"),X(t)==="array"&&t.length===4)return"cmyk"}});const ai=t=>Math.round(t*100)/100,zb=(...t)=>{const e=J(t,"hsla");let n=Br(t)||"lsa";return e[0]=ai(e[0]||0),e[1]=ai(e[1]*100)+"%",e[2]=ai(e[2]*100)+"%",n==="hsla"||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,n="hsla"):e.length=3,`${n}(${e.join(",")})`},Qc=(...t)=>{t=J(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const i=Vs(e,n,r),s=Fs(e,n,r),l=(s+i)/2;let a,o;return s===i?(a=0,o=Number.NaN):a=l<.5?(s-i)/(s+i):(s-i)/(2-s-i),e==s?o=(n-r)/(s-i):n==s?o=2+(r-e)/(s-i):r==s&&(o=4+(e-n)/(s-i)),o*=60,o<0&&(o+=360),t.length>3&&t[3]!==void 0?[o,a,l,t[3]]:[o,a,l]},{round:oi}=Math,Ub=(...t)=>{const e=J(t,"rgba");let n=Br(t)||"rgb";return n.substr(0,3)=="hsl"?zb(Qc(e),n):(e[0]=oi(e[0]),e[1]=oi(e[1]),e[2]=oi(e[2]),(n==="rgba"||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,n="rgba"),`${n}(${e.slice(0,n==="rgb"?3:4).join(",")})`)},{round:ci}=Math,zi=(...t)=>{t=J(t,"hsl");const[e,n,r]=t;let i,s,l;if(n===0)i=s=l=r*255;else{const a=[0,0,0],o=[0,0,0],c=r<.5?r*(1+n):r+n-r*n,u=2*r-c,d=e/360;a[0]=d+1/3,a[1]=d,a[2]=d-1/3;for(let h=0;h<3;h++)a[h]<0&&(a[h]+=1),a[h]>1&&(a[h]-=1),6*a[h]<1?o[h]=u+(c-u)*6*a[h]:2*a[h]<1?o[h]=c:3*a[h]<2?o[h]=u+(c-u)*(2/3-a[h])*6:o[h]=u;[i,s,l]=[ci(o[0]*255),ci(o[1]*255),ci(o[2]*255)]}return t.length>3?[i,s,l,t[3]]:[i,s,l,1]},Zc=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Xc=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Jc=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Kc=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,eu=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,tu=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:sa}=Math,zs=t=>{t=t.toLowerCase().trim();let e;if(q.format.named)try{return q.format.named(t)}catch{}if(e=t.match(Zc)){const n=e.slice(1,4);for(let r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(e=t.match(Xc)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+n[r];return n}if(e=t.match(Jc)){const n=e.slice(1,4);for(let r=0;r<3;r++)n[r]=sa(n[r]*2.55);return n[3]=1,n}if(e=t.match(Kc)){const n=e.slice(1,5);for(let r=0;r<3;r++)n[r]=sa(n[r]*2.55);return n[3]=+n[3],n}if(e=t.match(eu)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=zi(n);return r[3]=1,r}if(e=t.match(tu)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=zi(n);return r[3]=+e[4],r}};zs.test=t=>Zc.test(t)||Xc.test(t)||Jc.test(t)||Kc.test(t)||eu.test(t)||tu.test(t);k.prototype.css=function(t){return Ub(this._rgb,t)};Q.css=(...t)=>new k(...t,"css");q.format.css=zs;q.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&zs.test(t))return"css"}});q.format.gl=(...t)=>{const e=J(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};Q.gl=(...t)=>new k(...t,"gl");k.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};const{floor:$b}=Math,Wb=(...t)=>{t=J(t,"hcg");let[e,n,r]=t,i,s,l;r=r*255;const a=n*255;if(n===0)i=s=l=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const o=$b(e),c=e-o,u=r*(1-n),d=u+a*(1-c),h=u+a*c,f=u+a;switch(o){case 0:[i,s,l]=[f,h,u];break;case 1:[i,s,l]=[d,f,u];break;case 2:[i,s,l]=[u,f,h];break;case 3:[i,s,l]=[u,d,f];break;case 4:[i,s,l]=[h,u,f];break;case 5:[i,s,l]=[f,u,d];break}}return[i,s,l,t.length>3?t[3]:1]},Gb=(...t)=>{const[e,n,r]=J(t,"rgb"),i=Vs(e,n,r),s=Fs(e,n,r),l=s-i,a=l*100/255,o=i/(255-l)*100;let c;return l===0?c=Number.NaN:(e===s&&(c=(n-r)/l),n===s&&(c=2+(r-e)/l),r===s&&(c=4+(e-n)/l),c*=60,c<0&&(c+=360)),[c,a,o]};k.prototype.hcg=function(){return Gb(this._rgb)};Q.hcg=(...t)=>new k(...t,"hcg");q.format.hcg=Wb;q.autodetect.push({p:1,test:(...t)=>{if(t=J(t,"hcg"),X(t)==="array"&&t.length===3)return"hcg"}});const Yb=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,qb=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,nu=t=>{if(t.match(Yb)){(t.length===4||t.length===7)&&(t=t.substr(1)),t.length===3&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const e=parseInt(t,16),n=e>>16,r=e>>8&255,i=e&255;return[n,r,i,1]}if(t.match(qb)){(t.length===5||t.length===9)&&(t=t.substr(1)),t.length===4&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=parseInt(t,16),n=e>>24&255,r=e>>16&255,i=e>>8&255,s=Math.round((e&255)/255*100)/100;return[n,r,i,s]}throw new Error(`unknown hex color: ${t}`)},{round:Gn}=Math,ru=(...t)=>{let[e,n,r,i]=J(t,"rgba"),s=Br(t)||"auto";i===void 0&&(i=1),s==="auto"&&(s=i<1?"rgba":"rgb"),e=Gn(e),n=Gn(n),r=Gn(r);let a="000000"+(e<<16|n<<8|r).toString(16);a=a.substr(a.length-6);let o="0"+Gn(i*255).toString(16);switch(o=o.substr(o.length-2),s.toLowerCase()){case"rgba":return`#${a}${o}`;case"argb":return`#${o}${a}`;default:return`#${a}`}};k.prototype.hex=function(t){return ru(this._rgb,t)};Q.hex=(...t)=>new k(...t,"hex");q.format.hex=nu;q.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{cos:zt}=Math,Qb=(...t)=>{t=J(t,"hsi");let[e,n,r]=t,i,s,l;return isNaN(e)&&(e=0),isNaN(n)&&(n=0),e>360&&(e-=360),e<0&&(e+=360),e/=360,e<1/3?(l=(1-n)/3,i=(1+n*zt(Je*e)/zt(li-Je*e))/3,s=1-(l+i)):e<2/3?(e-=1/3,i=(1-n)/3,s=(1+n*zt(Je*e)/zt(li-Je*e))/3,l=1-(i+s)):(e-=2/3,s=(1-n)/3,l=(1+n*zt(Je*e)/zt(li-Je*e))/3,i=1-(s+l)),i=Xt(r*i*3),s=Xt(r*s*3),l=Xt(r*l*3),[i*255,s*255,l*255,t.length>3?t[3]:1]},{min:Zb,sqrt:Xb,acos:Jb}=Math,Kb=(...t)=>{let[e,n,r]=J(t,"rgb");e/=255,n/=255,r/=255;let i;const s=Zb(e,n,r),l=(e+n+r)/3,a=l>0?1-s/l:0;return a===0?i=NaN:(i=(e-n+(e-r))/2,i/=Xb((e-n)*(e-n)+(e-r)*(n-r)),i=Jb(i),r>n&&(i=Je-i),i/=Je),[i*360,a,l]};k.prototype.hsi=function(){return Kb(this._rgb)};Q.hsi=(...t)=>new k(...t,"hsi");q.format.hsi=Qb;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsi"),X(t)==="array"&&t.length===3)return"hsi"}});k.prototype.hsl=function(){return Qc(this._rgb)};Q.hsl=(...t)=>new k(...t,"hsl");q.format.hsl=zi;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsl"),X(t)==="array"&&t.length===3)return"hsl"}});const{floor:ey}=Math,ty=(...t)=>{t=J(t,"hsv");let[e,n,r]=t,i,s,l;if(r*=255,n===0)i=s=l=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const a=ey(e),o=e-a,c=r*(1-n),u=r*(1-n*o),d=r*(1-n*(1-o));switch(a){case 0:[i,s,l]=[r,d,c];break;case 1:[i,s,l]=[u,r,c];break;case 2:[i,s,l]=[c,r,d];break;case 3:[i,s,l]=[c,u,r];break;case 4:[i,s,l]=[d,c,r];break;case 5:[i,s,l]=[r,c,u];break}}return[i,s,l,t.length>3?t[3]:1]},{min:ny,max:ry}=Math,iy=(...t)=>{t=J(t,"rgb");let[e,n,r]=t;const i=ny(e,n,r),s=ry(e,n,r),l=s-i;let a,o,c;return c=s/255,s===0?(a=Number.NaN,o=0):(o=l/s,e===s&&(a=(n-r)/l),n===s&&(a=2+(r-e)/l),r===s&&(a=4+(e-n)/l),a*=60,a<0&&(a+=360)),[a,o,c]};k.prototype.hsv=function(){return iy(this._rgb)};Q.hsv=(...t)=>new k(...t,"hsv");q.format.hsv=ty;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsv"),X(t)==="array"&&t.length===3)return"hsv"}});const Ie={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},{pow:sy}=Math,iu=(...t)=>{t=J(t,"lab");const[e,n,r]=t;let i,s,l,a,o,c;return s=(e+16)/116,i=isNaN(n)?s:s+n/500,l=isNaN(r)?s:s-r/200,s=Ie.Yn*di(s),i=Ie.Xn*di(i),l=Ie.Zn*di(l),a=ui(3.2404542*i-1.5371385*s-.4985314*l),o=ui(-.969266*i+1.8760108*s+.041556*l),c=ui(.0556434*i-.2040259*s+1.0572252*l),[a,o,c,t.length>3?t[3]:1]},ui=t=>255*(t<=.00304?12.92*t:1.055*sy(t,1/2.4)-.055),di=t=>t>Ie.t1?t*t*t:Ie.t2*(t-Ie.t0),{pow:su}=Math,lu=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=ly(e,n,r),a=116*s-16;return[a<0?0:a,500*(i-s),200*(s-l)]},fi=t=>(t/=255)<=.04045?t/12.92:su((t+.055)/1.055,2.4),hi=t=>t>Ie.t3?su(t,1/3):t/Ie.t2+Ie.t0,ly=(t,e,n)=>{t=fi(t),e=fi(e),n=fi(n);const r=hi((.4124564*t+.3575761*e+.1804375*n)/Ie.Xn),i=hi((.2126729*t+.7151522*e+.072175*n)/Ie.Yn),s=hi((.0193339*t+.119192*e+.9503041*n)/Ie.Zn);return[r,i,s]};k.prototype.lab=function(){return lu(this._rgb)};Q.lab=(...t)=>new k(...t,"lab");q.format.lab=iu;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"lab"),X(t)==="array"&&t.length===3)return"lab"}});const{sin:ay,cos:oy}=Math,au=(...t)=>{let[e,n,r]=J(t,"lch");return isNaN(r)&&(r=0),r=r*Lb,[e,oy(r)*n,ay(r)*n]},ou=(...t)=>{t=J(t,"lch");const[e,n,r]=t,[i,s,l]=au(e,n,r),[a,o,c]=iu(i,s,l);return[a,o,c,t.length>3?t[3]:1]},cy=(...t)=>{const e=J(t,"hcl").reverse();return ou(...e)},{sqrt:uy,atan2:dy,round:fy}=Math,cu=(...t)=>{const[e,n,r]=J(t,"lab"),i=uy(n*n+r*r);let s=(dy(r,n)*Bb+360)%360;return fy(i*1e4)===0&&(s=Number.NaN),[e,i,s]},uu=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=lu(e,n,r);return cu(i,s,l)};k.prototype.lch=function(){return uu(this._rgb)};k.prototype.hcl=function(){return uu(this._rgb).reverse()};Q.lch=(...t)=>new k(...t,"lch");Q.hcl=(...t)=>new k(...t,"hcl");q.format.lch=ou;q.format.hcl=cy;["lch","hcl"].forEach(t=>q.autodetect.push({p:2,test:(...e)=>{if(e=J(e,t),X(e)==="array"&&e.length===3)return t}}));const nn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};k.prototype.name=function(){const t=ru(this._rgb,"rgb");for(let e of Object.keys(nn))if(nn[e]===t)return e.toLowerCase();return t};q.format.named=t=>{if(t=t.toLowerCase(),nn[t])return nu(nn[t]);throw new Error("unknown color name: "+t)};q.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&nn[t.toLowerCase()])return"named"}});const hy=t=>{if(X(t)=="number"&&t>=0&&t<=16777215){const e=t>>16,n=t>>8&255,r=t&255;return[e,n,r,1]}throw new Error("unknown num color: "+t)},gy=(...t)=>{const[e,n,r]=J(t,"rgb");return(e<<16)+(n<<8)+r};k.prototype.num=function(){return gy(this._rgb)};Q.num=(...t)=>new k(...t,"num");q.format.num=hy;q.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&X(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const{round:du}=Math;k.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(du)};k.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:du(e):e)};Q.rgb=(...t)=>new k(...t,"rgb");q.format.rgb=(...t)=>{const e=J(t,"rgba");return e[3]===void 0&&(e[3]=1),e};q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"rgba"),X(t)==="array"&&(t.length===3||t.length===4&&X(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const{log:Yn}=Math,fu=t=>{const e=t/100;let n,r,i;return e<66?(n=255,r=e<6?0:-155.25485562709179-.44596950469579133*(r=e-2)+104.49216199393888*Yn(r),i=e<20?0:-254.76935184120902+.8274096064007395*(i=e-10)+115.67994401066147*Yn(i)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*Yn(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*Yn(r),i=255),[n,r,i,1]},{round:py}=Math,my=(...t)=>{const e=J(t,"rgb"),n=e[0],r=e[2];let i=1e3,s=4e4;const l=.4;let a;for(;s-i>l;){a=(s+i)*.5;const o=fu(a);o[2]/o[0]>=r/n?s=a:i=a}return py(a)};k.prototype.temp=k.prototype.kelvin=k.prototype.temperature=function(){return my(this._rgb)};Q.temp=Q.kelvin=Q.temperature=(...t)=>new k(...t,"temp");q.format.temp=q.format.kelvin=q.format.temperature=fu;const{pow:tr,sign:vy}=Math,hu=(...t)=>{t=J(t,"lab");const[e,n,r]=t,i=tr(e+.3963377774*n+.2158037573*r,3),s=tr(e-.1055613458*n-.0638541728*r,3),l=tr(e-.0894841775*n-1.291485548*r,3);return[255*gi(4.0767416621*i-3.3077115913*s+.2309699292*l),255*gi(-1.2684380046*i+2.6097574011*s-.3413193965*l),255*gi(-.0041960863*i-.7034186147*s+1.707614701*l),t.length>3?t[3]:1]};function gi(t){const e=Math.abs(t);return e>.0031308?(vy(t)||1)*(1.055*tr(e,1/2.4)-.055):t*12.92}const{cbrt:pi,pow:by,sign:yy}=Math,gu=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=[mi(e/255),mi(n/255),mi(r/255)],a=pi(.4122214708*i+.5363325363*s+.0514459929*l),o=pi(.2119034982*i+.6806995451*s+.1073969566*l),c=pi(.0883024619*i+.2817188376*s+.6299787005*l);return[.2104542553*a+.793617785*o-.0040720468*c,1.9779984951*a-2.428592205*o+.4505937099*c,.0259040371*a+.7827717662*o-.808675766*c]};function mi(t){const e=Math.abs(t);return e<.04045?t/12.92:(yy(t)||1)*by((e+.055)/1.055,2.4)}k.prototype.oklab=function(){return gu(this._rgb)};Q.oklab=(...t)=>new k(...t,"oklab");q.format.oklab=hu;q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"oklab"),X(t)==="array"&&t.length===3)return"oklab"}});const Sy=(...t)=>{t=J(t,"lch");const[e,n,r]=t,[i,s,l]=au(e,n,r),[a,o,c]=hu(i,s,l);return[a,o,c,t.length>3?t[3]:1]},Ey=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=gu(e,n,r);return cu(i,s,l)};k.prototype.oklch=function(){return Ey(this._rgb)};Q.oklch=(...t)=>new k(...t,"oklch");q.format.oklch=Sy;q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"oklch"),X(t)==="array"&&t.length===3)return"oklch"}});k.prototype.alpha=function(t,e=!1){return t!==void 0&&X(t)==="number"?e?(this._rgb[3]=t,this):new k([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]};k.prototype.clipped=function(){return this._rgb._clipped||!1};k.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=Ie.Kn*t,new k(n,"lab").alpha(e.alpha(),!0)};k.prototype.brighten=function(t=1){return this.darken(-t)};k.prototype.darker=k.prototype.darken;k.prototype.brighter=k.prototype.brighten;k.prototype.get=function(t){const[e,n]=t.split("."),r=this[e]();if(n){const i=e.indexOf(n)-(e.substr(0,2)==="ok"?2:0);if(i>-1)return r[i];throw new Error(`unknown channel ${n} in mode ${e}`)}else return r};const{pow:wy}=Math,Ay=1e-7,Cy=20;k.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&X(t)==="number"){if(t===0)return new k([0,0,0,this._rgb[3]],"rgb");if(t===1)return new k([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=Cy;const i=(l,a)=>{const o=l.interpolate(a,.5,e),c=o.luminance();return Math.abs(t-c)<Ay||!r--?o:c>t?i(l,o):i(o,a)},s=(n>t?i(new k([0,0,0]),this):i(this,new k([255,255,255]))).rgb();return new k([...s,this._rgb[3]])}return Dy(...this._rgb.slice(0,3))};const Dy=(t,e,n)=>(t=vi(t),e=vi(e),n=vi(n),.2126*t+.7152*e+.0722*n),vi=t=>(t/=255,t<=.03928?t/12.92:wy((t+.055)/1.055,2.4)),we={},bn=(t,e,n=.5,...r)=>{let i=r[0]||"lrgb";if(!we[i]&&!r.length&&(i=Object.keys(we)[0]),!we[i])throw new Error(`interpolation mode ${i} is not defined`);return X(t)!=="object"&&(t=new k(t)),X(e)!=="object"&&(e=new k(e)),we[i](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};k.prototype.mix=k.prototype.interpolate=function(t,e=.5,...n){return bn(this,t,e,...n)};k.prototype.premultiply=function(t=!1){const e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new k([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};k.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=Ie.Kn*t,n[1]<0&&(n[1]=0),new k(n,"lch").alpha(e.alpha(),!0)};k.prototype.desaturate=function(t=1){return this.saturate(-t)};k.prototype.set=function(t,e,n=!1){const[r,i]=t.split("."),s=this[r]();if(i){const l=r.indexOf(i)-(r.substr(0,2)==="ok"?2:0);if(l>-1){if(X(e)=="string")switch(e.charAt(0)){case"+":s[l]+=+e;break;case"-":s[l]+=+e;break;case"*":s[l]*=+e.substr(1);break;case"/":s[l]/=+e.substr(1);break;default:s[l]=+e}else if(X(e)==="number")s[l]=e;else throw new Error("unsupported value for Color.set");const a=new k(s,r);return n?(this._rgb=a._rgb,this):a}throw new Error(`unknown channel ${i} in mode ${r}`)}else return s};k.prototype.tint=function(t=.5,...e){return bn(this,"white",t,...e)};k.prototype.shade=function(t=.5,...e){return bn(this,"black",t,...e)};const _y=(t,e,n)=>{const r=t._rgb,i=e._rgb;return new k(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};we.rgb=_y;const{sqrt:bi,pow:Ut}=Math,Ry=(t,e,n)=>{const[r,i,s]=t._rgb,[l,a,o]=e._rgb;return new k(bi(Ut(r,2)*(1-n)+Ut(l,2)*n),bi(Ut(i,2)*(1-n)+Ut(a,2)*n),bi(Ut(s,2)*(1-n)+Ut(o,2)*n),"rgb")};we.lrgb=Ry;const Ty=(t,e,n)=>{const r=t.lab(),i=e.lab();return new k(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};we.lab=Ty;const an=(t,e,n,r)=>{let i,s;r==="hsl"?(i=t.hsl(),s=e.hsl()):r==="hsv"?(i=t.hsv(),s=e.hsv()):r==="hcg"?(i=t.hcg(),s=e.hcg()):r==="hsi"?(i=t.hsi(),s=e.hsi()):r==="lch"||r==="hcl"?(r="hcl",i=t.hcl(),s=e.hcl()):r==="oklch"&&(i=t.oklch().reverse(),s=e.oklch().reverse());let l,a,o,c,u,d;(r.substr(0,1)==="h"||r==="oklch")&&([l,o,u]=i,[a,c,d]=s);let h,f,g,m;return!isNaN(l)&&!isNaN(a)?(a>l&&a-l>180?m=a-(l+360):a<l&&l-a>180?m=a+360-l:m=a-l,f=l+n*m):isNaN(l)?isNaN(a)?f=Number.NaN:(f=a,(u==1||u==0)&&r!="hsv"&&(h=c)):(f=l,(d==1||d==0)&&r!="hsv"&&(h=o)),h===void 0&&(h=o+n*(c-o)),g=u+n*(d-u),r==="oklch"?new k([g,h,f],r):new k([f,h,g],r)},pu=(t,e,n)=>an(t,e,n,"lch");we.lch=pu;we.hcl=pu;const ky=(t,e,n)=>{const r=t.num(),i=e.num();return new k(r+n*(i-r),"num")};we.num=ky;const My=(t,e,n)=>an(t,e,n,"hcg");we.hcg=My;const xy=(t,e,n)=>an(t,e,n,"hsi");we.hsi=xy;const Iy=(t,e,n)=>an(t,e,n,"hsl");we.hsl=Iy;const Oy=(t,e,n)=>an(t,e,n,"hsv");we.hsv=Oy;const Ny=(t,e,n)=>{const r=t.oklab(),i=e.oklab();return new k(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")};we.oklab=Ny;const Py=(t,e,n)=>an(t,e,n,"oklch");we.oklch=Py;const{pow:yi,sqrt:Si,PI:Ei,cos:la,sin:aa,atan2:Hy}=Math,Ly=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const i=r/n.reduce(function(d,h){return d+h});if(n.forEach((d,h)=>{n[h]*=i}),t=t.map(d=>new k(d)),e==="lrgb")return By(t,n);const s=t.shift(),l=s.get(e),a=[];let o=0,c=0;for(let d=0;d<l.length;d++)if(l[d]=(l[d]||0)*n[0],a.push(isNaN(l[d])?0:n[0]),e.charAt(d)==="h"&&!isNaN(l[d])){const h=l[d]/180*Ei;o+=la(h)*n[0],c+=aa(h)*n[0]}let u=s.alpha()*n[0];t.forEach((d,h)=>{const f=d.get(e);u+=d.alpha()*n[h+1];for(let g=0;g<l.length;g++)if(!isNaN(f[g]))if(a[g]+=n[h+1],e.charAt(g)==="h"){const m=f[g]/180*Ei;o+=la(m)*n[h+1],c+=aa(m)*n[h+1]}else l[g]+=f[g]*n[h+1]});for(let d=0;d<l.length;d++)if(e.charAt(d)==="h"){let h=Hy(c/a[d],o/a[d])/Ei*180;for(;h<0;)h+=360;for(;h>=360;)h-=360;l[d]=h}else l[d]=l[d]/a[d];return u/=r,new k(l,e).alpha(u>.99999?1:u,!0)},By=(t,e)=>{const n=t.length,r=[0,0,0,0];for(let i=0;i<t.length;i++){const s=t[i],l=e[i]/n,a=s._rgb;r[0]+=yi(a[0],2)*l,r[1]+=yi(a[1],2)*l,r[2]+=yi(a[2],2)*l,r[3]+=a[3]*l}return r[0]=Si(r[0]),r[1]=Si(r[1]),r[2]=Si(r[2]),r[3]>.9999999&&(r[3]=1),new k(js(r))},{pow:jy}=Math;function wr(t){let e="rgb",n=Q("#ccc"),r=0,i=[0,1],s=[],l=[0,0],a=!1,o=[],c=!1,u=0,d=1,h=!1,f={},g=!0,m=1;const p=function(y){if(y=y||["#fff","#000"],y&&X(y)==="string"&&Q.brewer&&Q.brewer[y.toLowerCase()]&&(y=Q.brewer[y.toLowerCase()]),X(y)==="array"){y.length===1&&(y=[y[0],y[0]]),y=y.slice(0);for(let A=0;A<y.length;A++)y[A]=Q(y[A]);s.length=0;for(let A=0;A<y.length;A++)s.push(A/(y.length-1))}return _(),o=y},b=function(y){if(a!=null){const A=a.length-1;let H=0;for(;H<A&&y>=a[H];)H++;return H-1}return 0};let w=y=>y,D=y=>y;const C=function(y,A){let H,M;if(A==null&&(A=!1),isNaN(y)||y===null)return n;A?M=y:a&&a.length>2?M=b(y)/(a.length-2):d!==u?M=(y-u)/(d-u):M=1,M=D(M),A||(M=w(M)),m!==1&&(M=jy(M,m)),M=l[0]+M*(1-l[0]-l[1]),M=Xt(M,0,1);const N=Math.floor(M*1e4);if(g&&f[N])H=f[N];else{if(X(o)==="array")for(let I=0;I<s.length;I++){const Y=s[I];if(M<=Y){H=o[I];break}if(M>=Y&&I===s.length-1){H=o[I];break}if(M>Y&&M<s[I+1]){M=(M-Y)/(s[I+1]-Y),H=Q.interpolate(o[I],o[I+1],M,e);break}}else X(o)==="function"&&(H=o(M));g&&(f[N]=H)}return H};var _=()=>f={};p(t);const S=function(y){const A=Q(C(y));return c&&A[c]?A[c]():A};return S.classes=function(y){if(y!=null){if(X(y)==="array")a=y,i=[y[0],y[y.length-1]];else{const A=Q.analyze(i);y===0?a=[A.min,A.max]:a=Q.limits(A,"e",y)}return S}return a},S.domain=function(y){if(!arguments.length)return i;u=y[0],d=y[y.length-1],s=[];const A=o.length;if(y.length===A&&u!==d)for(let H of Array.from(y))s.push((H-u)/(d-u));else{for(let H=0;H<A;H++)s.push(H/(A-1));if(y.length>2){const H=y.map((N,I)=>I/(y.length-1)),M=y.map(N=>(N-u)/(d-u));M.every((N,I)=>H[I]===N)||(D=N=>{if(N<=0||N>=1)return N;let I=0;for(;N>=M[I+1];)I++;const Y=(N-M[I])/(M[I+1]-M[I]);return H[I]+Y*(H[I+1]-H[I])})}}return i=[u,d],S},S.mode=function(y){return arguments.length?(e=y,_(),S):e},S.range=function(y,A){return p(y),S},S.out=function(y){return c=y,S},S.spread=function(y){return arguments.length?(r=y,S):r},S.correctLightness=function(y){return y==null&&(y=!0),h=y,_(),h?w=function(A){const H=C(0,!0).lab()[0],M=C(1,!0).lab()[0],N=H>M;let I=C(A,!0).lab()[0];const Y=H+(M-H)*A;let B=I-Y,P=0,O=1,j=20;for(;Math.abs(B)>.01&&j-- >0;)(function(){return N&&(B*=-1),B<0?(P=A,A+=(O-A)*.5):(O=A,A+=(P-A)*.5),I=C(A,!0).lab()[0],B=I-Y})();return A}:w=A=>A,S},S.padding=function(y){return y!=null?(X(y)==="number"&&(y=[y,y]),l=y,S):l},S.colors=function(y,A){arguments.length<2&&(A="hex");let H=[];if(arguments.length===0)H=o.slice(0);else if(y===1)H=[S(.5)];else if(y>1){const M=i[0],N=i[1]-M;H=Vy(0,y).map(I=>S(M+I/(y-1)*N))}else{t=[];let M=[];if(a&&a.length>2)for(let N=1,I=a.length,Y=1<=I;Y?N<I:N>I;Y?N++:N--)M.push((a[N-1]+a[N])*.5);else M=i;H=M.map(N=>S(N))}return Q[A]&&(H=H.map(M=>M[A]())),H},S.cache=function(y){return y!=null?(g=y,S):g},S.gamma=function(y){return y!=null?(m=y,S):m},S.nodata=function(y){return y!=null?(n=Q(y),S):n},S}function Vy(t,e,n){let r=[],i=t<e,s=e;for(let l=t;i?l<s:l>s;i?l++:l--)r.push(l);return r}const Fy=function(t){let e=[1,1];for(let n=1;n<t;n++){let r=[1];for(let i=1;i<=e.length;i++)r[i]=(e[i]||0)+e[i-1];e=r}return e},zy=function(t){let e,n,r,i;if(t=t.map(s=>new k(s)),t.length===2)[n,r]=t.map(s=>s.lab()),e=function(s){const l=[0,1,2].map(a=>n[a]+s*(r[a]-n[a]));return new k(l,"lab")};else if(t.length===3)[n,r,i]=t.map(s=>s.lab()),e=function(s){const l=[0,1,2].map(a=>(1-s)*(1-s)*n[a]+2*(1-s)*s*r[a]+s*s*i[a]);return new k(l,"lab")};else if(t.length===4){let s;[n,r,i,s]=t.map(l=>l.lab()),e=function(l){const a=[0,1,2].map(o=>(1-l)*(1-l)*(1-l)*n[o]+3*(1-l)*(1-l)*l*r[o]+3*(1-l)*l*l*i[o]+l*l*l*s[o]);return new k(a,"lab")}}else if(t.length>=5){let s,l,a;s=t.map(o=>o.lab()),a=t.length-1,l=Fy(a),e=function(o){const c=1-o,u=[0,1,2].map(d=>s.reduce((h,f,g)=>h+l[g]*c**(a-g)*o**g*f[d],0));return new k(u,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},Uy=t=>{const e=zy(t);return e.scale=()=>wr(e),e},$e=(t,e,n)=>{if(!$e[n])throw new Error("unknown blend mode "+n);return $e[n](t,e)},Dt=t=>(e,n)=>{const r=Q(n).rgb(),i=Q(e).rgb();return Q.rgb(t(r,i))},_t=t=>(e,n)=>{const r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r},$y=t=>t,Wy=(t,e)=>t*e/255,Gy=(t,e)=>t>e?e:t,Yy=(t,e)=>t>e?t:e,qy=(t,e)=>255*(1-(1-t/255)*(1-e/255)),Qy=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),Zy=(t,e)=>255*(1-(1-e/255)/(t/255)),Xy=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);$e.normal=Dt(_t($y));$e.multiply=Dt(_t(Wy));$e.screen=Dt(_t(qy));$e.overlay=Dt(_t(Qy));$e.darken=Dt(_t(Gy));$e.lighten=Dt(_t(Yy));$e.dodge=Dt(_t(Xy));$e.burn=Dt(_t(Zy));const{pow:Jy,sin:Ky,cos:e0}=Math;function t0(t=300,e=-1.5,n=1,r=1,i=[0,1]){let s=0,l;X(i)==="array"?l=i[1]-i[0]:(l=0,i=[i,i]);const a=function(o){const c=Je*((t+120)/360+e*o),u=Jy(i[0]+l*o,r),h=(s!==0?n[0]+o*s:n)*u*(1-u)/2,f=e0(c),g=Ky(c),m=u+h*(-.14861*f+1.78277*g),p=u+h*(-.29227*f-.90649*g),b=u+h*(1.97294*f);return Q(js([m*255,p*255,b*255,1]))};return a.start=function(o){return o==null?t:(t=o,a)},a.rotations=function(o){return o==null?e:(e=o,a)},a.gamma=function(o){return o==null?r:(r=o,a)},a.hue=function(o){return o==null?n:(n=o,X(n)==="array"?(s=n[1]-n[0],s===0&&(n=n[1])):s=0,a)},a.lightness=function(o){return o==null?i:(X(o)==="array"?(i=o,l=o[1]-o[0]):(i=[o,o],l=0),a)},a.scale=()=>Q.scale(a),a.hue(n),a}const n0="0123456789abcdef",{floor:r0,random:i0}=Math,s0=()=>{let t="#";for(let e=0;e<6;e++)t+=n0.charAt(r0(i0()*16));return new k(t,"hex")},{log:oa,pow:l0,floor:a0,abs:o0}=Math;function mu(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return X(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&X(r)==="object"&&(r=r[e]),r!=null&&!isNaN(r)&&(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(r,i)=>vu(n,r,i),n}function vu(t,e="equal",n=7){X(t)=="array"&&(t=mu(t));const{min:r,max:i}=t,s=t.values.sort((a,o)=>a-o);if(n===1)return[r,i];const l=[];if(e.substr(0,1)==="c"&&(l.push(r),l.push(i)),e.substr(0,1)==="e"){l.push(r);for(let a=1;a<n;a++)l.push(r+a/n*(i-r));l.push(i)}else if(e.substr(0,1)==="l"){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const a=Math.LOG10E*oa(r),o=Math.LOG10E*oa(i);l.push(r);for(let c=1;c<n;c++)l.push(l0(10,a+c/n*(o-a)));l.push(i)}else if(e.substr(0,1)==="q"){l.push(r);for(let a=1;a<n;a++){const o=(s.length-1)*a/n,c=a0(o);if(c===o)l.push(s[c]);else{const u=o-c;l.push(s[c]*(1-u)+s[c+1]*u)}}l.push(i)}else if(e.substr(0,1)==="k"){let a;const o=s.length,c=new Array(o),u=new Array(n);let d=!0,h=0,f=null;f=[],f.push(r);for(let p=1;p<n;p++)f.push(r+p/n*(i-r));for(f.push(i);d;){for(let b=0;b<n;b++)u[b]=0;for(let b=0;b<o;b++){const w=s[b];let D=Number.MAX_VALUE,C;for(let _=0;_<n;_++){const S=o0(f[_]-w);S<D&&(D=S,C=_),u[C]++,c[b]=C}}const p=new Array(n);for(let b=0;b<n;b++)p[b]=null;for(let b=0;b<o;b++)a=c[b],p[a]===null?p[a]=s[b]:p[a]+=s[b];for(let b=0;b<n;b++)p[b]*=1/u[b];d=!1;for(let b=0;b<n;b++)if(p[b]!==f[b]){d=!0;break}f=p,h++,h>200&&(d=!1)}const g={};for(let p=0;p<n;p++)g[p]=[];for(let p=0;p<o;p++)a=c[p],g[a].push(s[p]);let m=[];for(let p=0;p<n;p++)m.push(g[p][0]),m.push(g[p][g[p].length-1]);m=m.sort((p,b)=>p-b),l.push(m[0]);for(let p=1;p<m.length;p+=2){const b=m[p];!isNaN(b)&&l.indexOf(b)===-1&&l.push(b)}}return l}const c0=(t,e)=>{t=new k(t),e=new k(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},{sqrt:Xe,pow:de,min:u0,max:d0,atan2:ca,abs:ua,cos:qn,sin:da,exp:f0,PI:fa}=Math;function h0(t,e,n=1,r=1,i=1){var s=function(te){return 360*te/(2*fa)},l=function(te){return 2*fa*te/360};t=new k(t),e=new k(e);const[a,o,c]=Array.from(t.lab()),[u,d,h]=Array.from(e.lab()),f=(a+u)/2,g=Xe(de(o,2)+de(c,2)),m=Xe(de(d,2)+de(h,2)),p=(g+m)/2,b=.5*(1-Xe(de(p,7)/(de(p,7)+de(25,7)))),w=o*(1+b),D=d*(1+b),C=Xe(de(w,2)+de(c,2)),_=Xe(de(D,2)+de(h,2)),S=(C+_)/2,y=s(ca(c,w)),A=s(ca(h,D)),H=y>=0?y:y+360,M=A>=0?A:A+360,N=ua(H-M)>180?(H+M+360)/2:(H+M)/2,I=1-.17*qn(l(N-30))+.24*qn(l(2*N))+.32*qn(l(3*N+6))-.2*qn(l(4*N-63));let Y=M-H;Y=ua(Y)<=180?Y:M<=H?Y+360:Y-360,Y=2*Xe(C*_)*da(l(Y)/2);const B=u-a,P=_-C,O=1+.015*de(f-50,2)/Xe(20+de(f-50,2)),j=1+.045*S,L=1+.015*S*I,$=30*f0(-de((N-275)/25,2)),T=-(2*Xe(de(S,7)/(de(S,7)+de(25,7))))*da(2*l($)),W=Xe(de(B/(n*O),2)+de(P/(r*j),2)+de(Y/(i*L),2)+T*(P/(r*j))*(Y/(i*L)));return d0(0,u0(100,W))}function g0(t,e,n="lab"){t=new k(t),e=new k(e);const r=t.get(n),i=e.get(n);let s=0;for(let l in r){const a=(r[l]||0)-(i[l]||0);s+=a*a}return Math.sqrt(s)}const p0=(...t)=>{try{return new k(...t),!0}catch{return!1}},m0={cool(){return wr([Q.hsl(180,1,.9),Q.hsl(250,.7,.4)])},hot(){return wr(["#000","#f00","#ff0","#fff"]).mode("rgb")}},nr={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]};for(let t of Object.keys(nr))nr[t.toLowerCase()]=nr[t];Object.assign(Q,{average:Ly,bezier:Uy,blend:$e,cubehelix:t0,mix:bn,interpolate:bn,random:s0,scale:wr,analyze:mu,contrast:c0,deltaE:h0,distance:g0,limits:vu,valid:p0,scales:m0,input:q,colors:nn,brewer:nr});const Bt=ne(new Date().getTime()),v0=Hb(me),{config:ha,color:ke,mainDataset:Ui,startDateField:Rt,endDateField:Tt,dateField:ga,labelField:pa,layout:ma}=ot(),b0=Pn(async()=>{if((ke==null?void 0:ke.type)!=="multicolor")return;const t={};if(ke.colors.type==="palette"){const e=await Me(`${Ui.href}/values/${ke.field}?size=100`),n=Math.max(e.length,12),r=Q.scale(ke.colors.name).mode("lch").colors(n);e.forEach((i,s)=>{t[i]=r[(s+ke.colors.offset)%n]})}else ke.colors.categories.forEach(e=>{t[e.value]=`${e.color}`});return t},null,{onError:function(t){it.value=!0,st.value=t.message}}),y0=Pn(async()=>{if(!me.start&&!me.end)return[];const t={...v0,_c_date_match:me.start+","+me.end,size:1e3,select:"_id,"+pa};return ma!=="simple"?t.t=Bt.value:t.finalizedAt=Ui.finalizedAt,(ke==null?void 0:ke.type)==="multicolor"&&(t.select+=","+ha.color.field),Rt&&Tt?t.select+=","+Rt+","+Tt:t.select+=","+ga,(await Me(`${Ui.href}/lines`,{params:t})).results.map(n=>({editable:ma==="admin",id:n._id,title:n[pa],colorFieldValue:(ke==null?void 0:ke.type)==="multicolor"&&n[ha.color.field],start:n[Rt&&Tt?Rt:ga],end:Rt&&Tt?n[Tt]:void 0,allDay:!(Rt&&Tt)||new Date(n[Tt]).getTime()-new Date(n[Rt]).getTime()>2*24*60*60*1e3}))},null,{onError:function(t){it.value=!0,st.value=t.message}});var bu={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(An,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",l="second",a="minute",o="hour",c="day",u="week",d="month",h="quarter",f="year",g="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var P=["th","st","nd","rd"],O=B%100;return"["+B+(P[(O-20)%10]||P[O]||P[0])+"]"}},D=function(B,P,O){var j=String(B);return!j||j.length>=P?B:""+Array(P+1-j.length).join(O)+B},C={s:D,z:function(B){var P=-B.utcOffset(),O=Math.abs(P),j=Math.floor(O/60),L=O%60;return(P<=0?"+":"-")+D(j,2,"0")+":"+D(L,2,"0")},m:function B(P,O){if(P.date()<O.date())return-B(O,P);var j=12*(O.year()-P.year())+(O.month()-P.month()),L=P.clone().add(j,d),$=O-L<0,x=P.clone().add(j+($?-1:1),d);return+(-(j+(O-L)/($?L-x:x-L))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:d,y:f,w:u,d:c,D:g,h:o,m:a,s:l,ms:s,Q:h}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},_="en",S={};S[_]=w;var y="$isDayjsObject",A=function(B){return B instanceof I||!(!B||!B[y])},H=function B(P,O,j){var L;if(!P)return _;if(typeof P=="string"){var $=P.toLowerCase();S[$]&&(L=$),O&&(S[$]=O,L=$);var x=P.split("-");if(!L&&x.length>1)return B(x[0])}else{var T=P.name;S[T]=P,L=T}return!j&&L&&(_=L),L||!j&&_},M=function(B,P){if(A(B))return B.clone();var O=typeof P=="object"?P:{};return O.date=B,O.args=arguments,new I(O)},N=C;N.l=H,N.i=A,N.w=function(B,P){return M(B,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var I=function(){function B(O){this.$L=H(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[y]=!0}var P=B.prototype;return P.parse=function(O){this.$d=function(j){var L=j.date,$=j.utc;if(L===null)return new Date(NaN);if(N.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var x=L.match(p);if(x){var T=x[2]-1||0,W=(x[7]||"0").substring(0,3);return $?new Date(Date.UTC(x[1],T,x[3]||1,x[4]||0,x[5]||0,x[6]||0,W)):new Date(x[1],T,x[3]||1,x[4]||0,x[5]||0,x[6]||0,W)}}return new Date(L)}(O),this.init()},P.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},P.$utils=function(){return N},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function(O,j){var L=M(O);return this.startOf(j)<=L&&L<=this.endOf(j)},P.isAfter=function(O,j){return M(O)<this.startOf(j)},P.isBefore=function(O,j){return this.endOf(j)<M(O)},P.$g=function(O,j,L){return N.u(O)?this[j]:this.set(L,O)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(O,j){var L=this,$=!!N.u(j)||j,x=N.p(O),T=function(he,Te){var ft=N.w(L.$u?Date.UTC(L.$y,Te,he):new Date(L.$y,Te,he),L);return $?ft:ft.endOf(c)},W=function(he,Te){return N.w(L.toDate()[he].apply(L.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(Te)),L)},te=this.$W,le=this.$M,pe=this.$D,Ze="set"+(this.$u?"UTC":"");switch(x){case f:return $?T(1,0):T(31,11);case d:return $?T(1,le):T(0,le+1);case u:var Ve=this.$locale().weekStart||0,dt=(te<Ve?te+7:te)-Ve;return T($?pe-dt:pe+(6-dt),le);case c:case g:return W(Ze+"Hours",0);case o:return W(Ze+"Minutes",1);case a:return W(Ze+"Seconds",2);case l:return W(Ze+"Milliseconds",3);default:return this.clone()}},P.endOf=function(O){return this.startOf(O,!1)},P.$set=function(O,j){var L,$=N.p(O),x="set"+(this.$u?"UTC":""),T=(L={},L[c]=x+"Date",L[g]=x+"Date",L[d]=x+"Month",L[f]=x+"FullYear",L[o]=x+"Hours",L[a]=x+"Minutes",L[l]=x+"Seconds",L[s]=x+"Milliseconds",L)[$],W=$===c?this.$D+(j-this.$W):j;if($===d||$===f){var te=this.clone().set(g,1);te.$d[T](W),te.init(),this.$d=te.set(g,Math.min(this.$D,te.daysInMonth())).$d}else T&&this.$d[T](W);return this.init(),this},P.set=function(O,j){return this.clone().$set(O,j)},P.get=function(O){return this[N.p(O)]()},P.add=function(O,j){var L,$=this;O=Number(O);var x=N.p(j),T=function(le){var pe=M($);return N.w(pe.date(pe.date()+Math.round(le*O)),$)};if(x===d)return this.set(d,this.$M+O);if(x===f)return this.set(f,this.$y+O);if(x===c)return T(1);if(x===u)return T(7);var W=(L={},L[a]=r,L[o]=i,L[l]=n,L)[x]||1,te=this.$d.getTime()+O*W;return N.w(te,this)},P.subtract=function(O,j){return this.add(-1*O,j)},P.format=function(O){var j=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var $=O||"YYYY-MM-DDTHH:mm:ssZ",x=N.z(this),T=this.$H,W=this.$m,te=this.$M,le=L.weekdays,pe=L.months,Ze=L.meridiem,Ve=function(Te,ft,on,Hn){return Te&&(Te[ft]||Te(j,$))||on[ft].slice(0,Hn)},dt=function(Te){return N.s(T%12||12,Te,"0")},he=Ze||function(Te,ft,on){var Hn=Te<12?"AM":"PM";return on?Hn.toLowerCase():Hn};return $.replace(b,function(Te,ft){return ft||function(on){switch(on){case"YY":return String(j.$y).slice(-2);case"YYYY":return N.s(j.$y,4,"0");case"M":return te+1;case"MM":return N.s(te+1,2,"0");case"MMM":return Ve(L.monthsShort,te,pe,3);case"MMMM":return Ve(pe,te);case"D":return j.$D;case"DD":return N.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Ve(L.weekdaysMin,j.$W,le,2);case"ddd":return Ve(L.weekdaysShort,j.$W,le,3);case"dddd":return le[j.$W];case"H":return String(T);case"HH":return N.s(T,2,"0");case"h":return dt(1);case"hh":return dt(2);case"a":return he(T,W,!0);case"A":return he(T,W,!1);case"m":return String(W);case"mm":return N.s(W,2,"0");case"s":return String(j.$s);case"ss":return N.s(j.$s,2,"0");case"SSS":return N.s(j.$ms,3,"0");case"Z":return x}return null}(Te)||x.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(O,j,L){var $,x=this,T=N.p(j),W=M(O),te=(W.utcOffset()-this.utcOffset())*r,le=this-W,pe=function(){return N.m(x,W)};switch(T){case f:$=pe()/12;break;case d:$=pe();break;case h:$=pe()/3;break;case u:$=(le-te)/6048e5;break;case c:$=(le-te)/864e5;break;case o:$=le/i;break;case a:$=le/r;break;case l:$=le/n;break;default:$=le}return L?$:N.a($)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return S[this.$L]},P.locale=function(O,j){if(!O)return this.$L;var L=this.clone(),$=H(O,j,!0);return $&&(L.$L=$),L},P.clone=function(){return N.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},B}(),Y=I.prototype;return M.prototype=Y,[["$ms",s],["$s",l],["$m",a],["$H",o],["$W",c],["$M",d],["$y",f],["$D",g]].forEach(function(B){Y[B[1]]=function(P){return this.$g(P,B[0],B[1])}}),M.extend=function(B,P){return B.$i||(B(P,I,M),B.$i=!0),M},M.locale=H,M.isDayjs=A,M.unix=function(B){return M(1e3*B)},M.en=S[_],M.Ls=S,M.p={},M})})(bu);var yu=bu.exports;const yn=Ar(yu);function va(t,e){var r;const n=t[e.key];return n==null||n===""?"":(r=e["x-labels"])!=null&&r[""+t[e.key]]?e["x-labels"][""+t[e.key]]:e.type==="number"||e.type==="integer"?n.toLocaleString("fr"):typeof n=="boolean"?n?"Oui":"Non":typeof n=="string"&&(e["x-refersTo"]==="http://schema.org/Date"||e["x-refersTo"]==="https://schema.org/startDate"||e["x-refersTo"]==="https://schema.org/endDate"||e["x-refersTo"]==="http://schema.org/dateCreated")?e.format==="date-time"?yn(n).format("DD/MM/YYYY, HH[h]mm"):yn(n).format("DD/MM/YYYY"):""+n}const rn=Qa("v-spacer","div","VSpacer"),S0=Ae({id:String,text:String,...Cr(Ka({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Su=Re()({name:"VTooltip",props:S0(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=Yt(t,"modelValue"),{scopeId:i}=eo(),s=qi(),l=F(()=>t.id||`v-tooltip-${s}`),a=ne(),o=F(()=>t.location.split(" ").length>1?t.location:t.location+" center"),c=F(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),u=F(()=>t.transition?t.transition:r.value?"scale-transition":"fade-transition"),d=F(()=>Oe({"aria-describedby":l.value},t.activatorProps));return qe(()=>{const h=ar.filterProps(t);return R(ar,Oe({ref:a,class:["v-tooltip",t.class],style:t.style,id:l.value},h,{modelValue:r.value,"onUpdate:modelValue":f=>r.value=f,transition:u.value,absolute:!0,location:o.value,origin:c.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},i),{activator:n.activator,default:function(){var p;for(var f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return((p=n.default)==null?void 0:p.call(n,...g))??t.text}})}),to({},a)}}),E0={__name:"Actions",props:{item:{type:Object,required:!0}},setup(t){const{linkField:e,attachmentField:n,mainDataset:r}=ot();function i(s){const l=["Octets","Ko","Mo","Go"];if(s===0)return"0 Octet";const a=parseInt(Math.floor(Math.log(s)/Math.log(1e3)));return a===0?`${s} ${l[a]}`:`${(s/1e3**a).toFixed(2)} ${l[a]}`}return(s,l)=>(Z(),ae(Tn,null,{default:G(()=>[R(rn),V(e)&&t.item[V(e)]?(Z(),ae(je,{key:0,href:(t.item[V(e)].includes("http")?"":"http://")+t.item[V(e)],text:"",small:"",target:"_blank",class:"px-6",color:"primary"},{default:G(()=>[fe(" Page associée ")]),_:1},8,["href"])):ve("",!0),V(n)?(Z(),ae(Su,{key:1,top:""},{activator:G(({props:a})=>[R(je,Oe({href:t.item[V(n)].includes("http")?t.item[V(n)]:V(r).href+"/attachments/"+t.item[V(n)],color:"accent",icon:""},a),{default:G(()=>[R(et,null,{default:G(()=>[fe("mdi-download")]),_:1})]),_:2},1040,["href"])]),default:G(()=>[rr("span",null,"Télécharger le fichier de "+Fe(i(t.item["_file.content_length"])),1)]),_:1})):ve("",!0),R(rn)]),_:1}))}},w0=Ae({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Be(t,e,n){return Re()({name:t,props:w0({mode:n,origin:e}),setup(r,i){let{slots:s}=i;const l={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:o,offsetLeft:c,offsetWidth:u,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${o}px`,a.style.left=`${c}px`,a.style.width=`${u}px`,a.style.height=`${d}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:o,top:c,left:u,width:d,height:h}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=o||"",a.style.top=c||"",a.style.left=u||"",a.style.width=d||"",a.style.height=h||""}}};return()=>{const a=r.group?Oa:ir;return It(a,{name:r.disabled?"":t,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:l},s.default)}}})}function Eu(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Re()({name:t,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,i){let{slots:s}=i;const l=r.group?Oa:ir;return()=>It(l,{name:r.disabled?"":t,css:!r.disabled,...r.disabled?{}:e},s.default)}})}function wu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=Zu(`offset-${n}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[n]:l.style[n]}},onEnter(l){const a=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const o=`${l[r]}px`;l.style[n]="0",l.offsetHeight,l.style.transition=a.transition,t&&l._parent&&l._parent.classList.add(t),requestAnimationFrame(()=>{l.style[n]=o})},onAfterEnter:s,onEnterCancelled:s,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[n]:l.style[n]},l.style.overflow="hidden",l.style[n]=`${l[r]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(l){t&&l._parent&&l._parent.classList.remove(t),s(l)}function s(l){const a=l._initialStyle[n];l.style.overflow=l._initialStyle.overflow,a!=null&&(l.style[n]=a),delete l._initialStyle}}const A0=Ae({target:[Object,Array]},"v-dialog-transition"),C0=Re()({name:"VDialogTransition",props:A0(),setup(t,e){let{slots:n}=e;const r={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,s){var h;await new Promise(f=>requestAnimationFrame(f)),await new Promise(f=>requestAnimationFrame(f)),i.style.visibility="";const{x:l,y:a,sx:o,sy:c,speed:u}=ya(t.target,i),d=Ln(i,[{transform:`translate(${l}px, ${a}px) scale(${o}, ${c})`,opacity:0},{}],{duration:225*u,easing:wd});(h=ba(i))==null||h.forEach(f=>{Ln(f,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:Ks})}),d.finished.then(()=>s())},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,s){var h;await new Promise(f=>requestAnimationFrame(f));const{x:l,y:a,sx:o,sy:c,speed:u}=ya(t.target,i);Ln(i,[{},{transform:`translate(${l}px, ${a}px) scale(${o}, ${c})`,opacity:0}],{duration:125*u,easing:Ad}).finished.then(()=>s()),(h=ba(i))==null||h.forEach(f=>{Ln(f,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:Ks})})},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>t.target?R(ir,Oe({name:"dialog-transition"},r,{css:!1}),n):R(ir,{name:"dialog-transition"},n)}});function ba(t){var n;const e=(n=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return e&&[...e]}function ya(t,e){const n=Cd(t),r=Dd(e),[i,s]=getComputedStyle(e).transformOrigin.split(" ").map(b=>parseFloat(b)),[l,a]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let o=n.left+n.width/2;l==="left"||a==="left"?o-=n.width/2:(l==="right"||a==="right")&&(o+=n.width/2);let c=n.top+n.height/2;l==="top"||a==="top"?c-=n.height/2:(l==="bottom"||a==="bottom")&&(c+=n.height/2);const u=n.width/r.width,d=n.height/r.height,h=Math.max(1,u,d),f=u/h||0,g=d/h||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),p=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:o-(i+r.left),y:c-(s+r.top),sx:f,sy:g,speed:p}}Be("fab-transition","center center","out-in");Be("dialog-bottom-transition");Be("dialog-top-transition");const Sa=Be("fade-transition"),qS=Be("scale-transition");Be("scroll-x-transition");Be("scroll-x-reverse-transition");Be("scroll-y-transition");Be("scroll-y-reverse-transition");Be("slide-x-transition");const QS=Be("slide-x-reverse-transition"),ZS=Be("slide-y-transition");Be("slide-y-reverse-transition");const D0=Eu("expand-transition",wu()),_0=Eu("expand-x-transition",wu("",!0));function R0(t){let{selectedElement:e,containerElement:n,isRtl:r,isHorizontal:i}=t;const s=Sn(i,n),l=Au(i,r,n),a=Sn(i,e),o=Cu(i,e),c=a*.4;return l>o?o-c:l+s<o+a?o-s+a+c:l}function T0(t){let{selectedElement:e,containerElement:n,isHorizontal:r}=t;const i=Sn(r,n),s=Cu(r,e),l=Sn(r,e);return s-i/2+l/2}function Ea(t,e){const n=t?"scrollWidth":"scrollHeight";return(e==null?void 0:e[n])||0}function k0(t,e){const n=t?"clientWidth":"clientHeight";return(e==null?void 0:e[n])||0}function Au(t,e,n){if(!n)return 0;const{scrollLeft:r,offsetWidth:i,scrollWidth:s}=n;return t?e?s-i+r:r:n.scrollTop}function Sn(t,e){const n=t?"offsetWidth":"offsetHeight";return(e==null?void 0:e[n])||0}function Cu(t,e){const n=t?"offsetLeft":"offsetTop";return(e==null?void 0:e[n])||0}const M0=Symbol.for("vuetify:v-slide-group"),Du=Ae({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:M0},nextIcon:{type:ze,default:"$next"},prevIcon:{type:ze,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...ct(),...Xu({mobile:null}),...wt(),...Za({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),wa=Re()({name:"VSlideGroup",props:Du(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isRtl:r}=Na(),{displayClasses:i,mobile:s}=Pa(t),l=Xa(t,t.symbol),a=Ne(!1),o=Ne(0),c=Ne(0),u=Ne(0),d=F(()=>t.direction==="horizontal"),{resizeRef:h,contentRect:f}=Qs(),{resizeRef:g,contentRect:m}=Qs(),p=Ju(),b=F(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),w=F(()=>l.selected.value.length?l.items.value.findIndex(x=>x.id===l.selected.value[0]):-1),D=F(()=>l.selected.value.length?l.items.value.findIndex(x=>x.id===l.selected.value[l.selected.value.length-1]):-1);if(Ys){let x=-1;jt(()=>[l.selected.value,f.value,m.value,d.value],()=>{cancelAnimationFrame(x),x=requestAnimationFrame(()=>{if(f.value&&m.value){const T=d.value?"width":"height";c.value=f.value[T],u.value=m.value[T],a.value=c.value+1<u.value}if(w.value>=0&&g.el){const T=g.el.children[D.value];_(T,t.centerActive)}})})}const C=Ne(!1);function _(x,T){let W=0;T?W=T0({containerElement:h.el,isHorizontal:d.value,selectedElement:x}):W=R0({containerElement:h.el,isHorizontal:d.value,isRtl:r.value,selectedElement:x}),S(W)}function S(x){if(!Ys||!h.el)return;const T=Sn(d.value,h.el),W=Au(d.value,r.value,h.el);if(!(Ea(d.value,h.el)<=T||Math.abs(x-W)<16)){if(d.value&&r.value&&h.el){const{scrollWidth:le,offsetWidth:pe}=h.el;x=le-pe-x}d.value?p.horizontal(x,b.value):p(x,b.value)}}function y(x){const{scrollTop:T,scrollLeft:W}=x.target;o.value=d.value?W:T}function A(x){if(C.value=!0,!(!a.value||!g.el)){for(const T of x.composedPath())for(const W of g.el.children)if(W===T){_(W);return}}}function H(x){C.value=!1}let M=!1;function N(x){var T;!M&&!C.value&&!(x.relatedTarget&&((T=g.el)!=null&&T.contains(x.relatedTarget)))&&B(),M=!1}function I(){M=!0}function Y(x){if(!g.el)return;function T(W){x.preventDefault(),B(W)}d.value?x.key==="ArrowRight"?T(r.value?"prev":"next"):x.key==="ArrowLeft"&&T(r.value?"next":"prev"):x.key==="ArrowDown"?T("next"):x.key==="ArrowUp"&&T("prev"),x.key==="Home"?T("first"):x.key==="End"&&T("last")}function B(x){var W,te;if(!g.el)return;let T;if(!x)T=Ci(g.el)[0];else if(x==="next"){if(T=(W=g.el.querySelector(":focus"))==null?void 0:W.nextElementSibling,!T)return B("first")}else if(x==="prev"){if(T=(te=g.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!T)return B("last")}else x==="first"?T=g.el.firstElementChild:x==="last"&&(T=g.el.lastElementChild);T&&T.focus({preventScroll:!0})}function P(x){const T=d.value&&r.value?-1:1,W=(x==="prev"?-T:T)*c.value;let te=o.value+W;if(d.value&&r.value&&h.el){const{scrollWidth:le,offsetWidth:pe}=h.el;te+=le-pe}S(te)}const O=F(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),j=F(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!s.value;case!0:return a.value||Math.abs(o.value)>0;case"mobile":return s.value||a.value||Math.abs(o.value)>0;default:return!s.value&&(a.value||Math.abs(o.value)>0)}}),L=F(()=>Math.abs(o.value)>1),$=F(()=>{if(!h.value)return!1;const x=Ea(d.value,h.el),T=k0(d.value,h.el);return x-T-Math.abs(o.value)>1});return qe(()=>R(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":j.value,"v-slide-group--is-overflowing":a.value},i.value,t.class],style:t.style,tabindex:C.value||l.selected.value.length?-1:0,onFocus:N},{default:()=>{var x,T,W;return[j.value&&R("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!L.value}],onMousedown:I,onClick:()=>L.value&&P("prev")},[((x=n.prev)==null?void 0:x.call(n,O.value))??R(Sa,null,{default:()=>[R(et,{icon:r.value?t.nextIcon:t.prevIcon},null)]})]),R("div",{key:"container",ref:h,class:"v-slide-group__container",onScroll:y},[R("div",{ref:g,class:"v-slide-group__content",onFocusin:A,onFocusout:H,onKeydown:Y},[(T=n.default)==null?void 0:T.call(n,O.value)])]),j.value&&R("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!$.value}],onMousedown:I,onClick:()=>$.value&&P("next")},[((W=n.next)==null?void 0:W.call(n,O.value))??R(Sa,null,{default:()=>[R(et,{icon:r.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:P,scrollOffset:o,focus:B,hasPrev:L,hasNext:$}}}),_u=Symbol.for("vuetify:v-chip-group"),x0=Ae({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Ha},...Du(),...ct(),...Za({selectedClass:"v-chip--selected"}),...wt(),...Cn(),...Dr({variant:"tonal"})},"VChipGroup");Re()({name:"VChipGroup",props:x0(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{themeClasses:r}=Dn(t),{isSelected:i,select:s,next:l,prev:a,selected:o}=Xa(t,_u);return La({VChip:{color:ce(t,"color"),disabled:ce(t,"disabled"),filter:ce(t,"filter"),variant:ce(t,"variant")}}),qe(()=>{const c=wa.filterProps(t);return R(wa,Oe(c,{class:["v-chip-group",{"v-chip-group--column":t.column},r.value,t.class],style:t.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:i,select:s,next:l,prev:a,selected:o.value})]}})}),{}}});const I0=Ae({activeClass:String,appendAvatar:String,appendIcon:ze,closable:Boolean,closeIcon:{type:ze,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:ze,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Ot(),onClickOnce:Ot(),...Ki(),...ct(),...es(),...ts(),...bd(),...Qi(),...Wa(),...yd(),...wt({tag:"span"}),...Cn(),...Dr({variant:"tonal"})},"VChip"),Ru=Re()({name:"VChip",directives:{Ripple:Ja},props:I0(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:n,emit:r,slots:i}=e;const{t:s}=Ku(),{borderClasses:l}=ns(t),{colorClasses:a,colorStyles:o,variantClasses:c}=Ga(t),{densityClasses:u}=rs(t),{elevationClasses:d}=is(t),{roundedClasses:h}=Zi(t),{sizeClasses:f}=Sd(t),{themeClasses:g}=Dn(t),m=Yt(t,"modelValue"),p=Ed(t,_u,!1),b=Ya(t,n),w=F(()=>t.link!==!1&&b.isLink.value),D=F(()=>!t.disabled&&t.link!==!1&&(!!p||t.link||b.isClickable.value)),C=F(()=>({"aria-label":s(t.closeLabel),onClick(y){y.preventDefault(),y.stopPropagation(),m.value=!1,r("click:close",y)}}));function _(y){var A;r("click",y),D.value&&((A=b.navigate)==null||A.call(b,y),p==null||p.toggle())}function S(y){(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),_(y))}return()=>{const y=b.isLink.value?"a":t.tag,A=!!(t.appendIcon||t.appendAvatar),H=!!(A||i.append),M=!!(i.close||t.closable),N=!!(i.filter||t.filter)&&p,I=!!(t.prependIcon||t.prependAvatar),Y=!!(I||i.prepend),B=!p||p.isSelected.value;return m.value&&bt(R(y,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":D.value,"v-chip--filter":N,"v-chip--pill":t.pill},g.value,l.value,B?a.value:void 0,u.value,d.value,h.value,f.value,c.value,p==null?void 0:p.selectedClass.value,t.class],style:[B?o.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:b.href.value,tabindex:D.value?0:void 0,onClick:_,onKeydown:D.value&&!w.value&&S},{default:()=>{var P;return[qa(D.value,"v-chip"),N&&R(_0,{key:"filter"},{default:()=>[bt(R("div",{class:"v-chip__filter"},[i.filter?R(ht,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},i.filter):R(et,{key:"filter-icon",icon:t.filterIcon},null)]),[[ja,p.isSelected.value]])]}),Y&&R("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?R(ht,{key:"prepend-defaults",disabled:!I,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},i.prepend):R(Se,null,[t.prependIcon&&R(et,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&R(lr,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),R("div",{class:"v-chip__content","data-no-activator":""},[((P=i.default)==null?void 0:P.call(i,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:t.disabled}))??t.text]),H&&R("div",{key:"append",class:"v-chip__append"},[i.append?R(ht,{key:"append-defaults",disabled:!A,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},i.append):R(Se,null,[t.appendIcon&&R(et,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&R(lr,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),M&&R("button",Oe({key:"close",class:"v-chip__close",type:"button"},C.value),[i.close?R(ht,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},i.close):R(et,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[Ba("ripple"),D.value&&t.ripple,null]])}}}),$i=Symbol.for("vuetify:list");function Tu(){const t=_n($i,{hasPrepend:Ne(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ne(!1),updateHasPrepend:n=>{n&&(e.hasPrepend.value=n)}};return Rn($i,e),t}function ku(){return _n($i,null)}const Us=t=>{const e={activate:n=>{let{id:r,value:i,activated:s}=n;return r=ue(r),t&&!i&&s.size===1&&s.has(r)||(i?s.add(r):s.delete(r)),s},in:(n,r,i)=>{let s=new Set;if(n!=null)for(const l of Va(n))s=e.activate({id:l,value:!0,activated:new Set(s),children:r,parents:i});return s},out:n=>Array.from(n)};return e},Mu=t=>{const e=Us(t);return{activate:r=>{let{activated:i,id:s,...l}=r;s=ue(s);const a=i.has(s)?new Set([s]):new Set;return e.activate({...l,id:s,activated:a})},in:(r,i,s)=>{let l=new Set;if(r!=null){const a=Va(r);a.length&&(l=e.in(a.slice(0,1),i,s))}return l},out:(r,i,s)=>e.out(r,i,s)}},O0=t=>{const e=Us(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},N0=t=>{const e=Mu(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},P0={open:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(n){const s=new Set;s.add(e);let l=i.get(e);for(;l!=null;)s.add(l),l=i.get(l);return s}else return r.delete(e),r},select:()=>null},xu={open:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(n){let s=ue(i.get(e));for(r.add(e);s!=null&&s!==e;)r.add(s),s=ue(i.get(s));return r}else r.delete(e);return r},select:()=>null},H0={open:xu.open,select:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(!n)return r;const s=[];let l=i.get(e);for(;l!=null;)s.push(l),l=i.get(l);return new Set(s)}},$s=t=>{const e={select:n=>{let{id:r,value:i,selected:s}=n;if(r=ue(r),t&&!i){const l=Array.from(s.entries()).reduce((a,o)=>{let[c,u]=o;return u==="on"&&a.push(c),a},[]);if(l.length===1&&l[0]===r)return s}return s.set(r,i?"on":"off"),s},in:(n,r,i)=>{let s=new Map;for(const l of n||[])s=e.select({id:l,value:!0,selected:new Map(s),children:r,parents:i});return s},out:n=>{const r=[];for(const[i,s]of n.entries())s==="on"&&r.push(i);return r}};return e},Iu=t=>{const e=$s(t);return{select:r=>{let{selected:i,id:s,...l}=r;s=ue(s);const a=i.has(s)?new Map([[s,i.get(s)]]):new Map;return e.select({...l,id:s,selected:a})},in:(r,i,s)=>{let l=new Map;return r!=null&&r.length&&(l=e.in(r.slice(0,1),i,s)),l},out:(r,i,s)=>e.out(r,i,s)}},L0=t=>{const e=$s(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},B0=t=>{const e=Iu(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},j0=t=>{const e={select:n=>{let{id:r,value:i,selected:s,children:l,parents:a}=n;r=ue(r);const o=new Map(s),c=[r];for(;c.length;){const d=c.shift();s.set(ue(d),i?"on":"off"),l.has(d)&&c.push(...l.get(d))}let u=ue(a.get(r));for(;u;){const d=l.get(u),h=d.every(g=>s.get(ue(g))==="on"),f=d.every(g=>!s.has(ue(g))||s.get(ue(g))==="off");s.set(u,h?"on":f?"off":"indeterminate"),u=ue(a.get(u))}return t&&!i&&Array.from(s.entries()).reduce((h,f)=>{let[g,m]=f;return m==="on"&&h.push(g),h},[]).length===0?o:s},in:(n,r,i)=>{let s=new Map;for(const l of n||[])s=e.select({id:l,value:!0,selected:new Map(s),children:r,parents:i});return s},out:(n,r)=>{const i=[];for(const[s,l]of n.entries())l==="on"&&!r.has(s)&&i.push(s);return i}};return e},En=Symbol.for("vuetify:nested"),Ou={id:Ne(),root:{register:()=>null,unregister:()=>null,parents:ne(new Map),children:ne(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ne(!1),selectable:ne(!1),opened:ne(new Set),activated:ne(new Set),selected:ne(new Map),selectedValues:ne([])}},V0=Ae({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),F0=t=>{let e=!1;const n=ne(new Map),r=ne(new Map),i=Yt(t,"opened",t.opened,f=>new Set(ue(f)),f=>[...f.values()]),s=F(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return O0(t.mandatory);case"single-leaf":return N0(t.mandatory);case"independent":return Us(t.mandatory);case"single-independent":default:return Mu(t.mandatory)}}),l=F(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return B0(t.mandatory);case"leaf":return L0(t.mandatory);case"independent":return $s(t.mandatory);case"single-independent":return Iu(t.mandatory);case"classic":default:return j0(t.mandatory)}}),a=F(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return H0;case"single":return P0;case"multiple":default:return xu}}),o=Yt(t,"activated",t.activated,f=>s.value.in(f,n.value,r.value),f=>s.value.out(f,n.value,r.value)),c=Yt(t,"selected",t.selected,f=>l.value.in(f,n.value,r.value),f=>l.value.out(f,n.value,r.value));Xi(()=>{e=!0});function u(f){const g=[];let m=f;for(;m!=null;)g.unshift(m),m=r.value.get(m);return g}const d=ed("nested"),h={id:Ne(),root:{opened:i,activatable:ce(t,"activatable"),selectable:ce(t,"selectable"),activated:o,selected:c,selectedValues:F(()=>{const f=[];for(const[g,m]of c.value.entries())m==="on"&&f.push(g);return f}),register:(f,g,m)=>{g&&f!==g&&r.value.set(f,g),m&&n.value.set(f,[]),g!=null&&n.value.set(g,[...n.value.get(g)||[],f])},unregister:f=>{if(e)return;n.value.delete(f);const g=r.value.get(f);if(g){const m=n.value.get(g)??[];n.value.set(g,m.filter(p=>p!==f))}r.value.delete(f)},open:(f,g,m)=>{d.emit("click:open",{id:f,value:g,path:u(f),event:m});const p=a.value.open({id:f,value:g,opened:new Set(i.value),children:n.value,parents:r.value,event:m});p&&(i.value=p)},openOnSelect:(f,g,m)=>{const p=a.value.select({id:f,value:g,selected:new Map(c.value),opened:new Set(i.value),children:n.value,parents:r.value,event:m});p&&(i.value=p)},select:(f,g,m)=>{d.emit("click:select",{id:f,value:g,path:u(f),event:m});const p=l.value.select({id:f,value:g,selected:new Map(c.value),children:n.value,parents:r.value,event:m});p&&(c.value=p),h.root.openOnSelect(f,g,m)},activate:(f,g,m)=>{if(!t.activatable)return h.root.select(f,!0,m);d.emit("click:activate",{id:f,value:g,path:u(f),event:m});const p=s.value.activate({id:f,value:g,activated:new Set(o.value),children:n.value,parents:r.value,event:m});p&&(o.value=p)},children:n,parents:r}};return Rn(En,h),h.root},Nu=(t,e)=>{const n=_n(En,Ou),r=Symbol(qi()),i=F(()=>t.value!==void 0?t.value:r),s={...n,id:i,open:(l,a)=>n.root.open(ue(i.value),l,a),openOnSelect:(l,a)=>n.root.openOnSelect(i.value,l,a),isOpen:F(()=>n.root.opened.value.has(ue(i.value))),parent:F(()=>n.root.parents.value.get(i.value)),activate:(l,a)=>n.root.activate(i.value,l,a),isActivated:F(()=>n.root.activated.value.has(ue(i.value))),select:(l,a)=>n.root.select(i.value,l,a),isSelected:F(()=>n.root.selected.value.get(ue(i.value))==="on"),isIndeterminate:F(()=>n.root.selected.value.get(i.value)==="indeterminate"),isLeaf:F(()=>!n.root.children.value.get(i.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(i.value,n.id.value,e),Xi(()=>{!n.isGroupActivator&&n.root.unregister(i.value)}),e&&Rn(En,s),s},z0=()=>{const t=_n(En,Ou);Rn(En,{...t,isGroupActivator:!0})};function U0(){const t=Ne(!1);return Yi(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:F(()=>t.value?void 0:{transition:"none !important"}),isBooted:td(t)}}const $0=nd({name:"VListGroupActivator",setup(t,e){let{slots:n}=e;return z0(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),W0=Ae({activeColor:String,baseColor:String,color:String,collapseIcon:{type:ze,default:"$collapse"},expandIcon:{type:ze,default:"$expand"},prependIcon:ze,appendIcon:ze,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ct(),...wt()},"VListGroup"),Aa=Re()({name:"VListGroup",props:W0(),setup(t,e){let{slots:n}=e;const{isOpen:r,open:i,id:s}=Nu(ce(t,"value"),!0),l=F(()=>`v-list-group--id-${String(s.value)}`),a=ku(),{isBooted:o}=U0();function c(f){f.stopPropagation(),i(!r.value,f)}const u=F(()=>({onClick:c,class:"v-list-group__header",id:l.value})),d=F(()=>r.value?t.collapseIcon:t.expandIcon),h=F(()=>({VListItem:{active:r.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&d.value,appendIcon:t.appendIcon||!t.subgroup&&d.value,title:t.title,value:t.value}}));return qe(()=>R(t.tag,{class:["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":r.value},t.class],style:t.style},{default:()=>[n.activator&&R(ht,{defaults:h.value},{default:()=>[R($0,null,{default:()=>[n.activator({props:u.value,isOpen:r.value})]})]}),R(rd,{transition:{component:D0},disabled:!o.value},{default:()=>{var f;return[bt(R("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(f=n.default)==null?void 0:f.call(n)]),[[ja,r.value]])]}})]})),{isOpen:r}}}),G0=Ae({opacity:[Number,String],...ct(),...wt()},"VListItemSubtitle"),Pu=Re()({name:"VListItemSubtitle",props:G0(),setup(t,e){let{slots:n}=e;return qe(()=>R(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},n)),{}}}),Y0=Qa("v-list-item-title"),q0=Ae({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:ze,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:ze,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Ot(),onClickOnce:Ot(),...Ki(),...ct(),...es(),...Fa(),...ts(),...Qi(),...Wa(),...wt(),...Cn(),...Dr({variant:"text"})},"VListItem"),Wi=Re()({name:"VListItem",directives:{Ripple:Ja},props:q0(),emits:{click:t=>!0},setup(t,e){let{attrs:n,slots:r,emit:i}=e;const s=Ya(t,n),l=F(()=>t.value===void 0?s.href.value:t.value),{activate:a,isActivated:o,select:c,isOpen:u,isSelected:d,isIndeterminate:h,isGroupActivator:f,root:g,parent:m,openOnSelect:p}=Nu(l,!1),b=ku(),w=F(()=>{var T;return t.active!==!1&&(t.active||((T=s.isActive)==null?void 0:T.value)||(g.activatable.value?o.value:d.value))}),D=F(()=>t.link!==!1&&s.isLink.value),C=F(()=>!t.disabled&&t.link!==!1&&(t.link||s.isClickable.value||!!b&&(g.selectable.value||g.activatable.value||t.value!=null))),_=F(()=>t.rounded||t.nav),S=F(()=>t.color??t.activeColor),y=F(()=>({color:w.value?S.value??t.baseColor:t.baseColor,variant:t.variant}));jt(()=>{var T;return(T=s.isActive)==null?void 0:T.value},T=>{T&&m.value!=null&&g.open(m.value,!0),T&&p(T)},{immediate:!0});const{themeClasses:A}=Dn(t),{borderClasses:H}=ns(t),{colorClasses:M,colorStyles:N,variantClasses:I}=Ga(y),{densityClasses:Y}=rs(t),{dimensionStyles:B}=za(t),{elevationClasses:P}=is(t),{roundedClasses:O}=Zi(_),j=F(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),L=F(()=>({isActive:w.value,select:c,isOpen:u.value,isSelected:d.value,isIndeterminate:h.value}));function $(T){var W;i("click",T),C.value&&((W=s.navigate)==null||W.call(s,T),!f&&(g.activatable.value?a(!o.value,T):(g.selectable.value||t.value!=null)&&c(!d.value,T)))}function x(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),T.target.dispatchEvent(new MouseEvent("click",T)))}return qe(()=>{const T=D.value?"a":t.tag,W=r.title||t.title!=null,te=r.subtitle||t.subtitle!=null,le=!!(t.appendAvatar||t.appendIcon),pe=!!(le||r.append),Ze=!!(t.prependAvatar||t.prependIcon),Ve=!!(Ze||r.prepend);return b==null||b.updateHasPrepend(Ve),t.activeColor&&id("active-color",["color","base-color"]),bt(R(T,{class:["v-list-item",{"v-list-item--active":w.value,"v-list-item--disabled":t.disabled,"v-list-item--link":C.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!Ve&&(b==null?void 0:b.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&w.value},A.value,H.value,M.value,Y.value,P.value,j.value,O.value,I.value,t.class],style:[N.value,B.value,t.style],href:s.href.value,tabindex:C.value?b?-2:0:void 0,onClick:$,onKeydown:C.value&&!D.value&&x},{default:()=>{var dt;return[qa(C.value||w.value,"v-list-item"),Ve&&R("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?R(ht,{key:"prepend-defaults",disabled:!Ze,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var he;return[(he=r.prepend)==null?void 0:he.call(r,L.value)]}}):R(Se,null,[t.prependAvatar&&R(lr,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&R(et,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),R("div",{class:"v-list-item__spacer"},null)]),R("div",{class:"v-list-item__content","data-no-activator":""},[W&&R(Y0,{key:"title"},{default:()=>{var he;return[((he=r.title)==null?void 0:he.call(r,{title:t.title}))??t.title]}}),te&&R(Pu,{key:"subtitle"},{default:()=>{var he;return[((he=r.subtitle)==null?void 0:he.call(r,{subtitle:t.subtitle}))??t.subtitle]}}),(dt=r.default)==null?void 0:dt.call(r,L.value)]),pe&&R("div",{key:"append",class:"v-list-item__append"},[r.append?R(ht,{key:"append-defaults",disabled:!le,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var he;return[(he=r.append)==null?void 0:he.call(r,L.value)]}}):R(Se,null,[t.appendIcon&&R(et,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&R(lr,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),R("div",{class:"v-list-item__spacer"},null)])]}}),[[Ba("ripple"),C.value&&t.ripple]])}),{activate:a,isActivated:o,isGroupActivator:f,isSelected:d,list:b,select:c}}}),Q0=Ae({color:String,inset:Boolean,sticky:Boolean,title:String,...ct(),...wt()},"VListSubheader"),Z0=Re()({name:"VListSubheader",props:Q0(),setup(t,e){let{slots:n}=e;const{textColorClasses:r,textColorStyles:i}=Ua(ce(t,"color"));return qe(()=>{const s=!!(n.default||t.title);return R(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},r.value,t.class],style:[{textColorStyles:i},t.style]},{default:()=>{var l;return[s&&R("div",{class:"v-list-subheader__text"},[((l=n.default)==null?void 0:l.call(n))??t.title])]}})}),{}}}),X0=Ae({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ct(),...Cn()},"VDivider"),J0=Re()({name:"VDivider",props:X0(),setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=Dn(t),{textColorClasses:s,textColorStyles:l}=Ua(ce(t,"color")),a=F(()=>{const o={};return t.length&&(o[t.vertical?"height":"width"]=qs(t.length)),t.thickness&&(o[t.vertical?"borderRightWidth":"borderTopWidth"]=qs(t.thickness)),o});return qe(()=>{const o=R("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},i.value,s.value,t.class],style:[a.value,l.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!n.role||n.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?R("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[o,R("div",{class:"v-divider__content"},[r.default()]),o]):o}),{}}}),K0=Ae({items:Array,returnObject:Boolean},"VListChildren"),Hu=Re()({name:"VListChildren",props:K0(),setup(t,e){let{slots:n}=e;return Tu(),()=>{var r,i;return((r=n.default)==null?void 0:r.call(n))??((i=t.items)==null?void 0:i.map(s=>{var h,f;let{children:l,props:a,type:o,raw:c}=s;if(o==="divider")return((h=n.divider)==null?void 0:h.call(n,{props:a}))??R(J0,a,null);if(o==="subheader")return((f=n.subheader)==null?void 0:f.call(n,{props:a}))??R(Z0,a,null);const u={subtitle:n.subtitle?g=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...g,item:c})}:void 0,prepend:n.prepend?g=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...g,item:c})}:void 0,append:n.append?g=>{var m;return(m=n.append)==null?void 0:m.call(n,{...g,item:c})}:void 0,title:n.title?g=>{var m;return(m=n.title)==null?void 0:m.call(n,{...g,item:c})}:void 0},d=Aa.filterProps(a);return l?R(Aa,Oe({value:a==null?void 0:a.value},d),{activator:g=>{let{props:m}=g;const p={...a,...m,value:t.returnObject?c:a.value};return n.header?n.header({props:p}):R(Wi,p,u)},default:()=>R(Hu,{items:l,returnObject:t.returnObject},n)}):n.item?n.item({props:a}):R(Wi,Oe(a,{value:t.returnObject?c:a.value}),u)}))}}}),eS=Ae({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:Ha}},"list-items");function Gi(t,e){const n=Ke(e,t.itemTitle,e),r=Ke(e,t.itemValue,n),i=Ke(e,t.itemChildren),s=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?Cr(e,["children"]):e:void 0:Ke(e,t.itemProps),l={title:n,value:r,...s};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(i)?Lu(t,i):void 0,raw:e}}function Lu(t,e){const n=[];for(const r of e)n.push(Gi(t,r));return n}function XS(t){const e=F(()=>Lu(t,t.items)),n=F(()=>e.value.some(s=>s.value===null));function r(s){return n.value||(s=s.filter(l=>l!==null)),s.map(l=>t.returnObject&&typeof l=="string"?Gi(t,l):e.value.find(a=>t.valueComparator(l,a.value))||Gi(t,l))}function i(s){return t.returnObject?s.map(l=>{let{raw:a}=l;return a}):s.map(l=>{let{value:a}=l;return a})}return{items:e,transformIn:r,transformOut:i}}function tS(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function nS(t,e){const n=Ke(e,t.itemType,"item"),r=tS(e)?e:Ke(e,t.itemTitle),i=Ke(e,t.itemValue,void 0),s=Ke(e,t.itemChildren),l=t.itemProps===!0?Cr(e,["children"]):Ke(e,t.itemProps),a={title:r,value:i,...l};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&s?Bu(t,s):void 0,raw:e}}function Bu(t,e){const n=[];for(const r of e)n.push(nS(t,r));return n}function rS(t){return{items:F(()=>Bu(t,t.items))}}const iS=Ae({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":Ot(),"onClick:select":Ot(),"onUpdate:opened":Ot(),...V0({selectStrategy:"single-leaf",openStrategy:"list"}),...Ki(),...ct(),...es(),...Fa(),...ts(),itemType:{type:String,default:"type"},...eS(),...Qi(),...wt(),...Cn(),...Dr({variant:"text"})},"VList"),sS=Re()({name:"VList",props:iS(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:n}=e;const{items:r}=rS(t),{themeClasses:i}=Dn(t),{backgroundColorClasses:s,backgroundColorStyles:l}=sd(ce(t,"bgColor")),{borderClasses:a}=ns(t),{densityClasses:o}=rs(t),{dimensionStyles:c}=za(t),{elevationClasses:u}=is(t),{roundedClasses:d}=Zi(t),{children:h,open:f,parents:g,select:m}=F0(t),p=F(()=>t.lines?`v-list--${t.lines}-line`:void 0),b=ce(t,"activeColor"),w=ce(t,"baseColor"),D=ce(t,"color");Tu(),La({VListGroup:{activeColor:b,baseColor:w,color:D,expandIcon:ce(t,"expandIcon"),collapseIcon:ce(t,"collapseIcon")},VListItem:{activeClass:ce(t,"activeClass"),activeColor:b,baseColor:w,color:D,density:ce(t,"density"),disabled:ce(t,"disabled"),lines:ce(t,"lines"),nav:ce(t,"nav"),slim:ce(t,"slim"),variant:ce(t,"variant")}});const C=Ne(!1),_=ne();function S(I){C.value=!0}function y(I){C.value=!1}function A(I){var Y;!C.value&&!(I.relatedTarget&&((Y=_.value)!=null&&Y.contains(I.relatedTarget)))&&N()}function H(I){const Y=I.target;if(!(!_.value||["INPUT","TEXTAREA"].includes(Y.tagName))){if(I.key==="ArrowDown")N("next");else if(I.key==="ArrowUp")N("prev");else if(I.key==="Home")N("first");else if(I.key==="End")N("last");else return;I.preventDefault()}}function M(I){C.value=!0}function N(I){if(_.value)return Qn(_.value,I)}return qe(()=>R(t.tag,{ref:_,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},i.value,s.value,a.value,o.value,u.value,p.value,d.value,t.class],style:[l.value,c.value,t.style],tabindex:t.disabled||C.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:S,onFocusout:y,onFocus:A,onKeydown:H,onMousedown:M},{default:()=>[R(Hu,{items:r.value,returnObject:t.returnObject},n)]})),{open:f,select:m,focus:N,children:h,parents:g}}}),lS=["innerHTML"],aS={style:{"white-space":"normal"}},oS=["innerHTML"],cS={__name:"EventView",props:{item:{type:Object,required:!0}},setup(t){const{config:e,labelField:n,descriptionField:r,imageField:i,attachmentField:s,linkField:l,fields:a}=ot();return(o,c)=>(Z(),ye(Se,null,[V(i)?(Z(),ye(Se,{key:0},[t.item[V(i)]?(Z(),ae(ld,{key:0,src:t.item._thumbnail||t.item[V(i)],"aspect-ratio":3,cover:""},null,8,["src"])):ve("",!0)],64)):ve("",!0),V(n)&&t.item[V(n)]?(Z(),ae(_r,{key:1},{default:G(()=>[rr("h4",null,Fe(t.item[V(n)]),1)]),_:1})):ve("",!0),R(Rr,null,{default:G(()=>[V(r)&&t.item[V(r)]?(Z(),ye("div",{key:0,innerHTML:t.item[V(r)]},null,8,lS)):ve("",!0),R(sS,{dense:"",class:"transparent",lines:"two"},{default:G(()=>[(Z(!0),ye(Se,null,sr(V(e).additionalFields.filter(u=>!!t.item[u]),u=>(Z(),ae(Wi,{key:u,style:{"min-height":"24px","max-width":"100%"}},{default:G(()=>[R(Pu,{class:"font-weight-bold"},{default:G(()=>[fe(Fe(V(a)[u].title?V(a)[u].title:V(a)[u]["x-originalName"]||u),1)]),_:2},1024),rr("div",aS,[V(a)[u].separator?t.item[u]?(Z(!0),ye(Se,{key:1},sr(t.item[u].split(V(a)[u].separator).sort(),d=>(Z(),ae(Ru,{key:d,small:"",style:{flex:"none"},class:"my-1 mr-1"},{default:G(()=>[fe(Fe(V(va)({[u]:d},V(a)[u])+""),1)]),_:2},1024))),128)):ve("",!0):(Z(),ye(Se,{key:0},[V(a)[u]["x-display"]==="markdown"?(Z(),ye("div",{key:0,innerHTML:t.item[u]},null,8,oS)):(Z(),ye(Se,{key:1},[fe(Fe(V(va)(t.item,V(a)[u])+""),1)],64))],64))])]),_:2},1024))),128))]),_:1})]),_:1}),V(s)||V(l)?(Z(),ae(E0,{key:2,item:t.item},null,8,["item"])):ve("",!0)],64))}},uS=Ae({id:String,submenu:Boolean,...Cr(Ka({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:C0}}),["absolute"])},"VMenu"),Vr=Re()({name:"VMenu",props:uS(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=Yt(t,"modelValue"),{scopeId:i}=eo(),{isRtl:s}=Na(),l=qi(),a=F(()=>t.id||`v-menu-${l}`),o=ne(),c=_n(el,null),u=Ne(new Set);Rn(el,{register(){u.value.add(l)},unregister(){u.value.delete(l)},closeParents(p){setTimeout(()=>{var b;!u.value.size&&!t.persistent&&(p==null||(b=o.value)!=null&&b.contentEl&&!ad(p,o.value.contentEl))&&(r.value=!1,c==null||c.closeParents())},40)}}),Xi(()=>c==null?void 0:c.unregister()),od(()=>r.value=!1);async function d(p){var D,C,_;const b=p.relatedTarget,w=p.target;await Ma(),r.value&&b!==w&&((D=o.value)!=null&&D.contentEl)&&((C=o.value)!=null&&C.globalTop)&&![document,o.value.contentEl].includes(w)&&!o.value.contentEl.contains(w)&&((_=Ci(o.value.contentEl)[0])==null||_.focus())}jt(r,p=>{p?(c==null||c.register(),document.addEventListener("focusin",d,{once:!0})):(c==null||c.unregister(),document.removeEventListener("focusin",d))});function h(p){c==null||c.closeParents(p)}function f(p){var b,w,D,C,_;if(!t.disabled)if(p.key==="Tab"||p.key==="Enter"&&!t.closeOnContentClick){if(p.key==="Enter"&&(p.target instanceof HTMLTextAreaElement||p.target instanceof HTMLInputElement&&p.target.closest("form")))return;p.key==="Enter"&&p.preventDefault(),cd(Ci((b=o.value)==null?void 0:b.contentEl,!1),p.shiftKey?"prev":"next",y=>y.tabIndex>=0)||(r.value=!1,(D=(w=o.value)==null?void 0:w.activatorEl)==null||D.focus())}else t.submenu&&p.key===(s.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,(_=(C=o.value)==null?void 0:C.activatorEl)==null||_.focus())}function g(p){var w;if(t.disabled)return;const b=(w=o.value)==null?void 0:w.contentEl;b&&r.value?p.key==="ArrowDown"?(p.preventDefault(),p.stopImmediatePropagation(),Qn(b,"next")):p.key==="ArrowUp"?(p.preventDefault(),p.stopImmediatePropagation(),Qn(b,"prev")):t.submenu&&(p.key===(s.value?"ArrowRight":"ArrowLeft")?r.value=!1:p.key===(s.value?"ArrowLeft":"ArrowRight")&&(p.preventDefault(),Qn(b,"first"))):(t.submenu?p.key===(s.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(p.key))&&(r.value=!0,p.preventDefault(),setTimeout(()=>setTimeout(()=>g(p))))}const m=F(()=>Oe({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":a.value,onKeydown:g},t.activatorProps));return qe(()=>{const p=ar.filterProps(t);return R(ar,Oe({ref:o,id:a.value,class:["v-menu",t.class],style:t.style},p,{modelValue:r.value,"onUpdate:modelValue":b=>r.value=b,absolute:!0,activatorProps:m.value,location:t.location??(t.submenu?"end":"bottom"),"onClick:outside":h,onKeydown:f},i),{activator:n.activator,default:function(){for(var b=arguments.length,w=new Array(b),D=0;D<b;D++)w[D]=arguments[D];return R(ht,{root:"VMenu"},{default:()=>{var C;return[(C=n.default)==null?void 0:C.call(n,...w)]}})}})}),to({id:a,ΨopenChildren:u},o)}});function dS(t,e){const n=typeof t=="string"?ud(t):t,r=fS(n,e);return{mounted:r,updated:r,unmounted(i){$a(null,i)}}}function fS(t,e){return function(n,r,i){var d,h,f;const s=typeof e=="function"?e(r):e,l=((d=r.value)==null?void 0:d.text)??r.value??(s==null?void 0:s.text),a=dd(r.value)?r.value:{},o=()=>l??n.innerHTML,c=(i.ctx===r.instance.$?(h=hS(i,r.instance.$))==null?void 0:h.provides:(f=i.ctx)==null?void 0:f.provides)??r.instance.$.provides,u=It(t,Oe(s,a),o);u.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:c}),$a(u,n)}}function hS(t,e){const n=new Set,r=s=>{var l,a;for(const o of s){if(!o)continue;if(o===t)return!0;n.add(o);let c;if(o.suspense?c=r([o.ssContent]):Array.isArray(o.children)?c=r(o.children):(l=o.component)!=null&&l.vnode&&(c=r([(a=o.component)==null?void 0:a.subTree])),c)return c;n.delete(o)}return!1};if(!r([e.subTree]))throw new Error("Could not find original vnode");const i=Array.from(n).reverse();for(const s of i)if(s.component)return s.component;return e}const Fr=dS(Su,t=>{var e;return{activator:"parent",location:((e=t.arg)==null?void 0:e.replace("-"," "))??"top",text:typeof t.value=="boolean"?void 0:t.value}}),gS={__name:"DeleteEvent",props:{event:{type:[Object,null],required:!0}},emits:["deleted"],setup(t,{emit:e}){const{mainDataset:n,contribsDataset:r,layout:i,labelField:s}=ot(),l=ne(!1),a=Ji(),o=t,c=e;async function u(){var f,g;const d={method:"POST"};let h=`${i==="contrib"?r.href+`/own/user:${(g=(f=a==null?void 0:a.state)==null?void 0:f.user)==null?void 0:g.id}`:n.href}/lines`;i==="contrib"&&o.event.isContrib||i==="admin"&&!o.event.isContrib?(h+="/"+o.event.id,d.method="DELETE"):d.body={operation:"delete",status:"submitted",start:new Date(o.event.start).toISOString(),end:new Date(o.event.end).toISOString(),target_id:o.event.id,payload:JSON.stringify({[s]:o.event.title})};try{await Me(h,d),l.value=!1,c("deleted"),Bt.value=new Date().getTime()}catch(m){st.value=m.status+" - "+m._data,it.value=!0}}return(d,h)=>(Z(),ae(Vr,{modelValue:l.value,"onUpdate:modelValue":h[2]||(h[2]=f=>l.value=f),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:G(({props:f})=>[bt(R(je,Oe({icon:"mdi-delete",color:"error"},f),null,16),[[Fr,{text:"Supprimer l'événement",location:"right",openDelay:"500"}]])]),default:G(()=>[R(kn,{outlined:"","data-iframe-height":""},{default:G(()=>[R(_r,{"primary-title":""},{default:G(()=>[fe(" Supprimer l'événement ? ")]),_:1}),R(Rr,null,{default:G(()=>[R(ss,{"model-value":!0,type:"error"},{default:G(()=>[fe(" Voulez vous vraiment supprimer l'événement ? ")]),_:1})]),_:1}),R(Tn,null,{default:G(()=>[R(rn),R(je,{text:"",onClick:h[0]||(h[0]=f=>l.value=!1)},{default:G(()=>[fe(" Annuler ")]),_:1}),R(je,{color:"error",onClick:h[1]||(h[1]=f=>u())},{default:G(()=>[fe(" Supprimer ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},pS={__name:"AcceptContribution",props:{event:{type:[Object,null],required:!0}},emits:["accepted"],setup(t,{emit:e}){const{config:n,mainDataset:r,contribsDataset:i}=ot(),s=ne(!1),l=t,a=e;async function o(){const c={method:n.deleteModeratedContribs?"DELETE":"PATCH"};if(!n.deleteModeratedContribs&&(c.body={status:"accepted"},l.event.operation==="update")){const f=(await Me(`${r.href}/lines?_id_eq=${l.event.target_id}`)).results.pop();Object.keys(f).filter(g=>g.startsWith("_")).forEach(g=>delete f[g]),c.body.original=JSON.stringify(f)}const u=new FormData,{_attachment_url:d,...h}=l.event.payload;for(const[f,g]of Object.entries(h))u.append(f,g);if(d){const f=await Me(d,{responseType:"blob"}),g=l.event.attachmentPath.split("/").pop();u.append("attachment",new File([f],g))}try{await Me(`${r.href}/lines${l.event.target_id?"/"+l.event.target_id:""}`,{method:l.event.target_id?"PUT":"POST",body:u,headers:{"Content-Disposition":u}}),await Me(`${i.href}/lines/${l.event.id}`,c),s.value=!1,a("accepted"),Bt.value=new Date().getTime()}catch(f){console.log(f),st.value=f.status+" - "+f._data,it.value=!0}}return(c,u)=>(Z(),ae(Vr,{modelValue:s.value,"onUpdate:modelValue":u[2]||(u[2]=d=>s.value=d),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:G(({props:d})=>[bt(R(je,Oe({icon:"mdi-check",color:"success"},d),null,16),[[Fr,{text:"Accepter la contribution",location:"right",openDelay:"500"}]])]),default:G(()=>[R(kn,{outlined:"","data-iframe-height":""},{default:G(()=>[R(_r,{"primary-title":""},{default:G(()=>[fe(" Accepter la contribution ? ")]),_:1}),R(Rr,null,{default:G(()=>[R(ss,{"model-value":!0,type:"success"},{default:G(()=>[fe(" Voulez vous vraiment accepter la contribution ? ")]),_:1})]),_:1}),R(Tn,null,{default:G(()=>[R(rn),R(je,{text:"",onClick:u[0]||(u[0]=d=>s.value=!1)},{default:G(()=>[fe(" Annuler ")]),_:1}),R(je,{color:"success",onClick:u[1]||(u[1]=d=>o())},{default:G(()=>[fe(" Accepter ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},mS={__name:"RefuseContribution",props:{event:{type:[Object,null],required:!0}},emits:["refused"],setup(t,{emit:e}){const{mainDataset:n,contribsDataset:r,config:i}=ot(),s=ne(!1),l=t,a=e;async function o(){const c=`${r.href}/lines/${l.event.id}`,u={method:i.deleteModeratedContribs?"DELETE":"PATCH"};if(!i.deleteModeratedContribs&&(u.body={status:"refused"},l.event.operation==="update")){const d=(await Me(`${n.href}/lines?_id_eq=${l.event.target_id}`)).results.pop();Object.keys(d).filter(h=>h.startsWith("_")).forEach(h=>delete d[h]),u.body.original=JSON.stringify(d)}try{await Me(c,u),s.value=!1,a("refused"),Bt.value=new Date().getTime()}catch(d){st.value=d.status+" - "+d._data,it.value=!0}}return(c,u)=>(Z(),ae(Vr,{modelValue:s.value,"onUpdate:modelValue":u[2]||(u[2]=d=>s.value=d),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:G(({props:d})=>[bt(R(je,Oe({icon:"mdi-close",color:"error"},d),null,16),[[Fr,{text:"Refuser la contribution",location:"right",openDelay:"500"}]])]),default:G(()=>[R(kn,{outlined:"","data-iframe-height":""},{default:G(()=>[R(_r,{"primary-title":""},{default:G(()=>[fe(" Refuser la contribution ? ")]),_:1}),R(Rr,null,{default:G(()=>[R(ss,{"model-value":!0,type:"error"},{default:G(()=>[fe(" Voulez vous vraiment refuser la contribution ? ")]),_:1})]),_:1}),R(Tn,null,{default:G(()=>[R(rn),R(je,{text:"",onClick:u[0]||(u[0]=d=>s.value=!1)},{default:G(()=>[fe(" Annuler ")]),_:1}),R(je,{color:"error",onClick:u[1]||(u[1]=d=>o())},{default:G(()=>[fe(" Refuser ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},vS={__name:"ContributionStatus",props:{value:{type:String,required:!0}},setup(t){const e={submitted:"Attente de validation",accepted:"Acceptée",refused:"Refusée"},n={submitted:"warning",accepted:"success",refused:"error"};return(r,i)=>(Z(),ae(Ru,{density:"compact",size:"small",variant:"flat",color:n[t.value]},{default:G(()=>[fe(Fe(e[t.value]),1)]),_:1},8,["color"]))}};var Pe=-1,De=1,ge=0;function wn(t,e,n,r,i){if(t===e)return t?[[ge,t]]:[];if(n!=null){var s=_S(t,e,n);if(s)return s}var l=Ws(t,e),a=t.substring(0,l);t=t.substring(l),e=e.substring(l),l=zr(t,e);var o=t.substring(t.length-l);t=t.substring(0,t.length-l),e=e.substring(0,e.length-l);var c=bS(t,e);return a&&c.unshift([ge,a]),o&&c.push([ge,o]),Gs(c,i),r&&ES(c),c}function bS(t,e){var n;if(!t)return[[De,e]];if(!e)return[[Pe,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,s=r.indexOf(i);if(s!==-1)return n=[[De,r.substring(0,s)],[ge,i],[De,r.substring(s+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=Pe),n;if(i.length===1)return[[Pe,t],[De,e]];var l=SS(t,e);if(l){var a=l[0],o=l[1],c=l[2],u=l[3],d=l[4],h=wn(a,c),f=wn(o,u);return h.concat([[ge,d]],f)}return yS(t,e)}function yS(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),s=i,l=2*i,a=new Array(l),o=new Array(l),c=0;c<l;c++)a[c]=-1,o[c]=-1;a[s+1]=0,o[s+1]=0;for(var u=n-r,d=u%2!==0,h=0,f=0,g=0,m=0,p=0;p<i;p++){for(var b=-p+h;b<=p-f;b+=2){var w=s+b,D;b===-p||b!==p&&a[w-1]<a[w+1]?D=a[w+1]:D=a[w-1]+1;for(var C=D-b;D<n&&C<r&&t.charAt(D)===e.charAt(C);)D++,C++;if(a[w]=D,D>n)f+=2;else if(C>r)h+=2;else if(d){var _=s+u-b;if(_>=0&&_<l&&o[_]!==-1){var S=n-o[_];if(D>=S)return Ca(t,e,D,C)}}}for(var y=-p+g;y<=p-m;y+=2){var _=s+y,S;y===-p||y!==p&&o[_-1]<o[_+1]?S=o[_+1]:S=o[_-1]+1;for(var A=S-y;S<n&&A<r&&t.charAt(n-S-1)===e.charAt(r-A-1);)S++,A++;if(o[_]=S,S>n)m+=2;else if(A>r)g+=2;else if(!d){var w=s+u-y;if(w>=0&&w<l&&a[w]!==-1){var D=a[w],C=s+D-w;if(S=n-S,D>=S)return Ca(t,e,D,C)}}}}return[[Pe,t],[De,e]]}function Ca(t,e,n,r){var i=t.substring(0,n),s=e.substring(0,r),l=t.substring(n),a=e.substring(r),o=wn(i,s),c=wn(l,a);return o.concat(c)}function Ws(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,s=0;n<i;)t.substring(s,i)==e.substring(s,i)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return ju(t.charCodeAt(i-1))&&i--,i}function Da(t,e){var n=t.length,r=e.length;if(n==0||r==0)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var s=0,l=1;;){var a=t.substring(i-l),o=e.indexOf(a);if(o==-1)return s;l+=o,(o==0||t.substring(i-l)==e.substring(0,l))&&(s=l,l++)}}function zr(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,s=0;n<i;)t.substring(t.length-i,t.length-s)==e.substring(e.length-i,e.length-s)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return Vu(t.charCodeAt(t.length-i))&&i--,i}function SS(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||r.length*2<n.length)return null;function i(f,g,m){for(var p=f.substring(m,m+Math.floor(f.length/4)),b=-1,w="",D,C,_,S;(b=g.indexOf(p,b+1))!==-1;){var y=Ws(f.substring(m),g.substring(b)),A=zr(f.substring(0,m),g.substring(0,b));w.length<A+y&&(w=g.substring(b-A,b)+g.substring(b,b+y),D=f.substring(0,m-A),C=f.substring(m+y),_=g.substring(0,b-A),S=g.substring(b+y))}return w.length*2>=f.length?[D,C,_,S,w]:null}var s=i(n,r,Math.ceil(n.length/4)),l=i(n,r,Math.ceil(n.length/2)),a;if(!s&&!l)return null;l?s?a=s[4].length>l[4].length?s:l:a=l:a=s;var o,c,u,d;t.length>e.length?(o=a[0],c=a[1],u=a[2],d=a[3]):(u=a[0],d=a[1],o=a[2],c=a[3]);var h=a[4];return[o,c,u,d,h]}function ES(t){for(var e=!1,n=[],r=0,i=null,s=0,l=0,a=0,o=0,c=0;s<t.length;)t[s][0]==ge?(n[r++]=s,l=o,a=c,o=0,c=0,i=t[s][1]):(t[s][0]==De?o+=t[s][1].length:c+=t[s][1].length,i&&i.length<=Math.max(l,a)&&i.length<=Math.max(o,c)&&(t.splice(n[r-1],0,[Pe,i]),t[n[r-1]+1][0]=De,r--,r--,s=r>0?n[r-1]:-1,l=0,a=0,o=0,c=0,i=null,e=!0)),s++;for(e&&Gs(t),CS(t),s=1;s<t.length;){if(t[s-1][0]==Pe&&t[s][0]==De){var u=t[s-1][1],d=t[s][1],h=Da(u,d),f=Da(d,u);h>=f?(h>=u.length/2||h>=d.length/2)&&(t.splice(s,0,[ge,d.substring(0,h)]),t[s-1][1]=u.substring(0,u.length-h),t[s+1][1]=d.substring(h),s++):(f>=u.length/2||f>=d.length/2)&&(t.splice(s,0,[ge,u.substring(0,f)]),t[s-1][0]=De,t[s-1][1]=d.substring(0,d.length-f),t[s+1][0]=Pe,t[s+1][1]=u.substring(f),s++),s++}s++}}var _a=/[^a-zA-Z0-9]/,Ra=/\s/,Ta=/[\r\n]/,wS=/\n\r?\n$/,AS=/^\r?\n\r?\n/;function CS(t){function e(f,g){if(!f||!g)return 6;var m=f.charAt(f.length-1),p=g.charAt(0),b=m.match(_a),w=p.match(_a),D=b&&m.match(Ra),C=w&&p.match(Ra),_=D&&m.match(Ta),S=C&&p.match(Ta),y=_&&f.match(wS),A=S&&g.match(AS);return y||A?5:_||S?4:b&&!D&&C?3:D||C?2:b||w?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==ge&&t[n+1][0]==ge){var r=t[n-1][1],i=t[n][1],s=t[n+1][1],l=zr(r,i);if(l){var a=i.substring(i.length-l);r=r.substring(0,r.length-l),i=a+i.substring(0,i.length-l),s=a+s}for(var o=r,c=i,u=s,d=e(r,i)+e(i,s);i.charAt(0)===s.charAt(0);){r+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var h=e(r,i)+e(i,s);h>=d&&(d=h,o=r,c=i,u=s)}t[n-1][1]!=o&&(o?t[n-1][1]=o:(t.splice(n-1,1),n--),t[n][1]=c,u?t[n+1][1]=u:(t.splice(n+1,1),n--))}n++}}function Gs(t,e){t.push([ge,""]);for(var n=0,r=0,i=0,s="",l="",a;n<t.length;){if(n<t.length-1&&!t[n][1]){t.splice(n,1);continue}switch(t[n][0]){case De:i++,l+=t[n][1],n++;break;case Pe:r++,s+=t[n][1],n++;break;case ge:var o=n-i-r-1;if(e){if(o>=0&&zu(t[o][1])){var c=t[o][1].slice(-1);if(t[o][1]=t[o][1].slice(0,-1),s=c+s,l=c+l,!t[o][1]){t.splice(o,1),n--;var u=o-1;t[u]&&t[u][0]===De&&(i++,l=t[u][1]+l,u--),t[u]&&t[u][0]===Pe&&(r++,s=t[u][1]+s,u--),o=u}}if(Fu(t[n][1])){var c=t[n][1].charAt(0);t[n][1]=t[n][1].slice(1),s+=c,l+=c}}if(n<t.length-1&&!t[n][1]){t.splice(n,1);break}if(s.length>0||l.length>0){s.length>0&&l.length>0&&(a=Ws(l,s),a!==0&&(o>=0?t[o][1]+=l.substring(0,a):(t.splice(0,0,[ge,l.substring(0,a)]),n++),l=l.substring(a),s=s.substring(a)),a=zr(l,s),a!==0&&(t[n][1]=l.substring(l.length-a)+t[n][1],l=l.substring(0,l.length-a),s=s.substring(0,s.length-a)));var d=i+r;s.length===0&&l.length===0?(t.splice(n-d,d),n=n-d):s.length===0?(t.splice(n-d,d,[De,l]),n=n-d+1):l.length===0?(t.splice(n-d,d,[Pe,s]),n=n-d+1):(t.splice(n-d,d,[Pe,s],[De,l]),n=n-d+2)}n!==0&&t[n-1][0]===ge?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,s="",l="";break}}t[t.length-1][1]===""&&t.pop();var h=!1;for(n=1;n<t.length-1;)t[n-1][0]===ge&&t[n+1][0]===ge&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),h=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),h=!0)),n++;h&&Gs(t,e)}function ju(t){return t>=55296&&t<=56319}function Vu(t){return t>=56320&&t<=57343}function Fu(t){return Vu(t.charCodeAt(0))}function zu(t){return ju(t.charCodeAt(t.length-1))}function DS(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function wi(t,e,n,r){return zu(t)||Fu(r)?null:DS([[ge,t],[Pe,e],[De,n],[ge,r]])}function _S(t,e,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,s=t.length,l=e.length;if(r.length===0&&(i===null||i.length===0)){var a=r.index,o=t.slice(0,a),c=t.slice(a),u=i?i.index:null;e:{var d=a+l-s;if(u!==null&&u!==d||d<0||d>l)break e;var h=e.slice(0,d),f=e.slice(d);if(f!==c)break e;var g=Math.min(a,d),m=o.slice(0,g),p=h.slice(0,g);if(m!==p)break e;var b=o.slice(g),w=h.slice(g);return wi(m,b,w,c)}e:{if(u!==null&&u!==a)break e;var D=a,h=e.slice(0,D),f=e.slice(D);if(h!==o)break e;var C=Math.min(s-D,l-D),_=c.slice(c.length-C),S=f.slice(f.length-C);if(_!==S)break e;var b=c.slice(0,c.length-C),w=f.slice(0,f.length-C);return wi(o,b,w,_)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),_=t.slice(r.index+r.length),g=m.length,C=_.length;if(l<g+C)break e;var p=e.slice(0,g),S=e.slice(l-C);if(m!==p||_!==S)break e;var b=t.slice(g,s-C),w=e.slice(g,l-C);return wi(m,b,w,_)}return null}function Ur(t,e,n,r){return wn(t,e,n,r,!0)}Ur.INSERT=De;Ur.DELETE=Pe;Ur.EQUAL=ge;var RS=Ur;const TS=Ar(RS),kS={class:"caption grey--text text--darken-1 pt-2"},MS={__name:"DiffView",props:{item:{type:Object,required:!0},old:{type:Object,required:!0}},setup(t){const{fields:e,mainDataset:n}=ot(),r=t,i=Pn(async()=>Object.keys(r.old).length>1?r.old:(await Me(`${n.href}/lines?_id_eq=${r.old.id}`)).results.pop(),null),s=F(()=>Object.keys(r.item||{}).concat(Object.keys(i.value||{})).filter((l,a,o)=>o.indexOf(l)===a&&!l.startsWith("_")));return(l,a)=>(Z(!0),ye(Se,null,sr(s.value,o=>(Z(),ae(kn,{key:o,class:"px-2",flat:""},{default:G(()=>{var c,u;return[rr("div",kS,Fe(V(e)[o].title?V(e)[o].title:V(e)[o]["x-originalName"]||o),1),(Z(!0),ye(Se,null,sr(V(TS)([(c=V(i))==null?void 0:c[o]].join("").replace(/\r\n/g,`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EventEdit-qkI-WyUQ.js","assets/index-Cm7tCXCq.js","assets/index-CJongqRm.css","assets/VAlert-CPEIJnGj.js","assets/router-Ca5dB38V.js","assets/router-CHMEvzOu.css","assets/VAlert-DtQVqRRQ.css","assets/forwardRefs-Q-7TKDLV.js","assets/forwardRefs-DzLVmH92.css","assets/EventEdit-CZ57WmFy.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as ka,h as It,F as Se,T as Wu,o as Yi,n as Ma,g as Gu,a as Yu,u as V,b as xa,i as qu,r as ne,s as Ne,w as Qu,c as F,e as jt,f as Ia,j as ot,k as me,l as Me,m as An,p as Ar,q as Ae,t as Cr,v as Re,x as Yt,y as qi,z as Oe,A as qe,B as R,C as Z,D as ae,E as G,G as fe,H as ve,I as rr,J as Fe,K as Oa,L as ir,M as Zu,N as ze,O as ct,P as Xu,Q as Na,R as Pa,S as Ju,U as Ys,V as Ci,W as Ha,X as Cn,Y as Dn,Z as La,_ as ce,$ as Ot,a0 as Qi,a1 as Ku,a2 as Zi,a3 as bt,a4 as Ba,a5 as ja,a6 as _n,a7 as Rn,a8 as ue,a9 as Va,aa as Xi,ab as ed,ac as td,ad as nd,ae as rd,af as Fa,ag as za,ah as id,ai as Ua,aj as qs,ak as Ke,al as sd,am as Qn,an as ye,ao as ld,ap as sr,aq as ad,ar as od,as as cd,at as ud,au as $a,av as dd,aw as Ji,ax as fd,ay as hd,az as gd,aA as pd,aB as md,aC as vd}from"./index-Cm7tCXCq.js";import{d as it,e as st,m as wt,a as Dr,b as Wa,u as Ga,c as Ya,g as qa,V as ht}from"./router-Ca5dB38V.js";import{c as Qa,V as je,a as et,b as Tn,m as Za,u as Xa,d as Qs,e as Ki,f as es,g as ts,h as bd,i as yd,R as Ja,j as ns,k as rs,l as is,n as Sd,o as Ed,p as lr,q as _r,r as Rr,s as kn,t as ss,v as Zs,w as Xs,x as Js}from"./VAlert-CPEIJnGj.js";import{m as Ka,u as eo,V as ar,f as to,a as Ln,d as wd,s as Ks,b as Ad,g as Cd,n as Dd,c as el}from"./forwardRefs-Q-7TKDLV.js";var Tr,U,no,ro,Jt,xt,tl,io,so,or={},lo=[],_d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function gt(t,e){for(var n in e)t[n]=e[n];return t}function ao(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,i,s,l={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?Tr.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return Zn(t,l,r,i,null)}function Zn(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++no};return i==null&&U.vnode!=null&&U.vnode(s),s}function _e(){return{current:null}}function re(t){return t.children}function Rd(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||cr(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||cr(t,s,e[s],n[s],r)}function nl(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||_d.test(e)?n:n+"px"}function cr(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||nl(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||nl(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r||t.addEventListener(e,s?il:rl,s):t.removeEventListener(e,s?il:rl,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function rl(t){Jt=!0;try{return this.l[t.type+!1](U.event?U.event(t):t)}finally{Jt=!1}}function il(t){Jt=!0;try{return this.l[t.type+!0](U.event?U.event(t):t)}finally{Jt=!1}}function He(t,e){this.props=t,this.context=e}function gn(t,e){if(e==null)return t.__?gn(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?gn(t):null}function oo(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return oo(t)}}function Td(t){Jt?setTimeout(t):io(t)}function Di(t){(!t.__d&&(t.__d=!0)&&xt.push(t)&&!ur.__r++||tl!==U.debounceRendering)&&((tl=U.debounceRendering)||Td)(ur)}function ur(){var t,e,n,r,i,s,l,a;for(xt.sort(function(o,c){return o.__v.__b-c.__v.__b});t=xt.shift();)t.__d&&(e=xt.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=gt({},s)).__v=s.__v+1,ls(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??gn(s),s.__h),go(r,s),s.__e!=l&&oo(s)),xt.length>e&&xt.sort(function(o,c){return o.__v.__b-c.__v.__b}));ur.__r=0}function co(t,e,n,r,i,s,l,a,o,c){var u,d,h,f,g,m,p,b=r&&r.__k||lo,w=b.length;for(n.__k=[],u=0;u<e.length;u++)if((f=n.__k[u]=(f=e[u])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?Zn(null,f,null,null,f):Array.isArray(f)?Zn(re,{children:f},null,null,null):f.__b>0?Zn(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=b[u])===null||h&&f.key==h.key&&f.type===h.type)b[u]=void 0;else for(d=0;d<w;d++){if((h=b[d])&&f.key==h.key&&f.type===h.type){b[d]=void 0;break}h=null}ls(t,f,h=h||or,i,s,l,a,o,c),g=f.__e,(d=f.ref)&&h.ref!=d&&(p||(p=[]),h.ref&&p.push(h.ref,null,f),p.push(d,f.__c||g,f)),g!=null?(m==null&&(m=g),typeof f.type=="function"&&f.__k===h.__k?f.__d=o=uo(f,o,t):o=fo(t,f,h,b,g,o),typeof n.type=="function"&&(n.__d=o)):o&&h.__e==o&&o.parentNode!=t&&(o=gn(h))}for(n.__e=m,u=w;u--;)b[u]!=null&&(typeof n.type=="function"&&b[u].__e!=null&&b[u].__e==n.__d&&(n.__d=ho(r).nextSibling),mo(b[u],b[u]));if(p)for(u=0;u<p.length;u++)po(p[u],p[++u],p[++u])}function uo(t,e,n){for(var r,i=t.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=t,e=typeof r.type=="function"?uo(r,e,n):fo(n,r,r,i,r.__e,e));return e}function dr(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){dr(n,e)}):e.push(t)),e}function fo(t,e,n,r,i,s){var l,a,o;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(i),l=null;else{for(a=s,o=0;(a=a.nextSibling)&&o<r.length;o+=1)if(a==i)break e;t.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function ho(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=ho(n)))return r}return null}function ls(t,e,n,r,i,s,l,a,o){var c,u,d,h,f,g,m,p,b,w,D,C,_,S,y,A=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(c=U.__b)&&c(e);try{e:if(typeof A=="function"){if(p=e.props,b=(c=A.contextType)&&r[c.__c],w=c?b?b.props.value:c.__:r,n.__c?m=(u=e.__c=n.__c).__=u.__E:("prototype"in A&&A.prototype.render?e.__c=u=new A(p,w):(e.__c=u=new He(p,w),u.constructor=A,u.render=Md),b&&b.sub(u),u.props=p,u.state||(u.state={}),u.context=w,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),A.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=gt({},u.__s)),gt(u.__s,A.getDerivedStateFromProps(p,u.__s))),h=u.props,f=u.state,u.__v=e,d)A.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(A.getDerivedStateFromProps==null&&p!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(p,w),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(p,u.__s,w)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=p,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(H){H&&(H.__=e)}),D=0;D<u._sb.length;D++)u.__h.push(u._sb[D]);u._sb=[],u.__h.length&&l.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(p,u.__s,w),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,f,g)})}if(u.context=w,u.props=p,u.__P=t,C=U.__r,_=0,"prototype"in A&&A.prototype.render){for(u.state=u.__s,u.__d=!1,C&&C(e),c=u.render(u.props,u.state,u.context),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[]}else do u.__d=!1,C&&C(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++_<25);u.state=u.__s,u.getChildContext!=null&&(r=gt(gt({},r),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(g=u.getSnapshotBeforeUpdate(h,f)),y=c!=null&&c.type===re&&c.key==null?c.props.children:c,co(t,Array.isArray(y)?y:[y],e,n,r,i,s,l,a,o),u.base=e.__e,e.__h=null,u.__h.length&&l.push(u),m&&(u.__E=u.__=null),u.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=kd(n.__e,e,n,r,i,s,l,o);(c=U.diffed)&&c(e)}catch(H){e.__v=null,(o||s!=null)&&(e.__e=a,e.__h=!!o,s[s.indexOf(a)]=null),U.__e(H,e,n)}}function go(t,e){U.__c&&U.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){U.__e(r,n.__v)}})}function kd(t,e,n,r,i,s,l,a){var o,c,u,d=n.props,h=e.props,f=e.type,g=0;if(f==="svg"&&(i=!0),s!=null){for(;g<s.length;g++)if((o=s[g])&&"setAttribute"in o==!!f&&(f?o.localName===f:o.nodeType===3)){t=o,s[g]=null;break}}if(t==null){if(f===null)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),s=null,a=!1}if(f===null)d===h||a&&t.data===h||(t.data=h);else{if(s=s&&Tr.call(t.childNodes),c=(d=n.props||or).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!a){if(s!=null)for(d={},g=0;g<t.attributes.length;g++)d[t.attributes[g].name]=t.attributes[g].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(Rd(t,h,d,i,a),u)e.__k=[];else if(g=e.props.children,co(t,Array.isArray(g)?g:[g],e,n,r,i&&f!=="foreignObject",s,l,s?s[0]:n.__k&&gn(n,0),a),s!=null)for(g=s.length;g--;)s[g]!=null&&ao(s[g]);a||("value"in h&&(g=h.value)!==void 0&&(g!==t.value||f==="progress"&&!g||f==="option"&&g!==d.value)&&cr(t,"value",g,d.value,!1),"checked"in h&&(g=h.checked)!==void 0&&g!==t.checked&&cr(t,"checked",g,d.checked,!1))}return t}function po(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){U.__e(r,n)}}function mo(t,e,n){var r,i;if(U.unmount&&U.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||po(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){U.__e(s,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&mo(r[i],e,n||typeof t.type!="function");n||t.__e==null||ao(t.__e),t.__=t.__e=t.__d=void 0}function Md(t,e,n){return this.constructor(t,n)}function pn(t,e,n){var r,i,s;U.__&&U.__(t,e),i=(r=typeof n=="function")?null:e.__k,s=[],ls(e,t=(!r&&n||e).__k=v(re,null,[t]),i||or,or,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?Tr.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),go(s,t)}function xd(t,e){var n={__c:e="__cC"+so++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.some(function(a){a.__e=!0,Di(a)})},this.sub=function(l){i.push(l);var a=l.componentWillUnmount;l.componentWillUnmount=function(){i.splice(i.indexOf(l),1),a&&a.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Tr=lo.slice,U={__e:function(t,e,n,r){for(var i,s,l;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),l=i.__d),l)return i.__E=i}catch(a){t=a}throw t}},no=0,ro=function(t){return t!=null&&t.constructor===void 0},Jt=!1,He.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=gt({},this.state),typeof t=="function"&&(t=t(gt({},n),this.props)),t&>(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Di(this))},He.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Di(this))},He.prototype.render=re,xt=[],io=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ur.__r=0,so=0;var Ge,$r,sl,vo=[],Wr=[],ll=U.__b,al=U.__r,ol=U.diffed,cl=U.__c,ul=U.unmount;function Id(){for(var t;t=vo.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Xn),t.__H.__h.forEach(_i),t.__H.__h=[]}catch(e){t.__H.__h=[],U.__e(e,t.__v)}}U.__b=function(t){Ge=null,ll&&ll(t)},U.__r=function(t){al&&al(t);var e=(Ge=t.__c).__H;e&&($r===Ge?(e.__h=[],Ge.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Wr,n.__N=n.i=void 0})):(e.__h.forEach(Xn),e.__h.forEach(_i),e.__h=[])),$r=Ge},U.diffed=function(t){ol&&ol(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(vo.push(e)!==1&&sl===U.requestAnimationFrame||((sl=U.requestAnimationFrame)||Od)(Id)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Wr&&(n.__=n.__V),n.i=void 0,n.__V=Wr})),$r=Ge=null},U.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Xn),n.__h=n.__h.filter(function(r){return!r.__||_i(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],U.__e(r,n.__v)}}),cl&&cl(t,e)},U.unmount=function(t){ul&&ul(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Xn(r)}catch(i){e=i}}),n.__H=void 0,e&&U.__e(e,n.__v))};var dl=typeof requestAnimationFrame=="function";function Od(t){var e,n=function(){clearTimeout(r),dl&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);dl&&(e=requestAnimationFrame(n))}function Xn(t){var e=Ge,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Ge=e}function _i(t){var e=Ge;t.__c=t.__(),Ge=e}function Nd(t,e){for(var n in e)t[n]=e[n];return t}function fl(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function hl(t){this.props=t}(hl.prototype=new He).isPureReactComponent=!0,hl.prototype.shouldComponentUpdate=function(t,e){return fl(this.props,t)||fl(this.state,e)};var gl=U.__b;U.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),gl&&gl(t)};var Pd=U.__e;U.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}Pd(t,e,n,r)};var pl=U.unmount;function bo(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=Nd({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return bo(r,e,n)})),t}function yo(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return yo(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Gr(){this.__u=0,this.t=null,this.__b=null}function So(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Bn(){this.u=null,this.o=null}U.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),pl&&pl(t)},(Gr.prototype=new He).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=So(r.__v),s=!1,l=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=l;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=yo(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}},o=e.__h===!0;r.__u++||o||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(l,l)},Gr.prototype.componentWillUnmount=function(){this.t=[]},Gr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=bo(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&v(re,null,t.fallback);return i&&(i.__h=null),[v(re,null,e.__a?null:t.children),i]};var ml=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Hd(t){return this.getChildContext=function(){return t.context},t.children}function Ld(t){var e=this,n=t.i;e.componentWillUnmount=function(){pn(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),pn(v(Hd,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Bd(t,e){var n=v(Ld,{__v:t,i:e});return n.containerInfo=e,n}(Bn.prototype=new He).__a=function(t){var e=this,n=So(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),ml(e,t,r)):i()};n?n(s):s()}},Bn.prototype.render=function(t){this.u=null,this.o=new Map;var e=dr(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Bn.prototype.componentDidUpdate=Bn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ml(t,n,e)})};var jd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Vd=/^(?: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]/,Fd=typeof document<"u",zd=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(He.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var vl=U.event;function Ud(){}function $d(){return this.cancelBubble}function Wd(){return this.defaultPrevented}U.event=function(t){return vl&&(t=vl(t)),t.persist=Ud,t.isPropagationStopped=$d,t.isDefaultPrevented=Wd,t.nativeEvent=t};var bl={configurable:!0,get:function(){return this.class}},yl=U.vnode;U.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var l=n[s];Fd&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&l==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!zd(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&&Vd.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=l)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=dr(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=dr(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(bl.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",bl))}t.$$typeof=jd,yl&&yl(t)};var Sl=U.__r;U.__r=function(t){Sl&&Sl(t),t.__c};const Eo=[],Ri=new Map;function kr(t){Eo.push(t),Ri.forEach(e=>{Ao(e,t)})}function Gd(t){t.isConnected&&t.getRootNode&&wo(t.getRootNode())}function wo(t){let e=Ri.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=qd();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}Ri.set(t,e),Yd(e)}}function Yd(t){for(const e of Eo)Ao(t,e)}function Ao(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let Yr;function qd(){return Yr===void 0&&(Yr=Qd()),Yr}function Qd(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&wo(document);var Zd=':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;-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;-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)}';kr(Zd);class as{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function os(t){t.parentNode&&t.parentNode.removeChild(t)}function Ee(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Xd(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Xd(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Jd(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(e);for(let l=0;l<s.length;l+=1)r.push(s[l])}return r}const Kd=/(top|left|right|bottom|width|height)$/i;function un(t,e){for(let n in e)Co(t,n,e[n])}function Co(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Kd.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Do(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let El=0;function vt(){return El+=1,"fc-dom-"+El}function Mr(t){t.preventDefault()}function ef(t,e){return n=>{let r=Ee(n.target,t);r&&e.call(r,n,r)}}function _o(t,e,n,r){let i=ef(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function tf(t,e,n,r){let i;return _o(t,"mouseover",e,(s,l)=>{if(l!==i){i=l,n(s,l);let a=o=>{i=null,r(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const wl=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function nf(t,e){let n=r=>{e(r),wl.forEach(i=>{t.removeEventListener(i,n)})};wl.forEach(r=>{t.addEventListener(r,n)})}function Ro(t){return Object.assign({onClick:t},To(t))}function To(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Al=0;function Vt(){return Al+=1,String(Al)}function cs(){document.body.classList.add("fc-not-allowed")}function us(){document.body.classList.remove("fc-not-allowed")}function rf(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Mr)}function sf(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Mr)}function lf(t){t.addEventListener("contextmenu",Mr)}function af(t){t.removeEventListener("contextmenu",Mr)}function of(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function cf(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=uf(t,e,n[r]),i)return i;return 0}function uf(t,e,n){return n.func?n.func(t,e):df(t[n.field],e[n.field])*(n.order||1)}function df(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function qt(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function dn(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function ff(t,e){return t-e}function Jn(t){return t%1===0}function hf(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Cl=["years","months","days","milliseconds"],gf=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function K(t,e){return typeof t=="string"?pf(t):typeof t=="object"&&t?Dl(t):typeof t=="number"?Dl({[e||"milliseconds"]:t}):null}function pf(t){let e=gf.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Dl(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function mf(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Ti(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function vf(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function bf(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function yf(t){return Qt(t)/365}function Sf(t){return Qt(t)/30}function Qt(t){return Ue(t)/864e5}function Ue(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function ds(t,e){let n=null;for(let r=0;r<Cl.length;r+=1){let i=Cl[r];if(e[i]){let s=t[i]/e[i];if(!Jn(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function ki(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function yt(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const Ef=["sun","mon","tue","wed","thu","fri","sat"];function _l(t,e){let n=pt(t);return n[2]+=e*7,xe(n)}function be(t,e){let n=pt(t);return n[2]+=e,xe(n)}function St(t,e){let n=pt(t);return n[6]+=e,xe(n)}function wf(t,e){return At(t,e)/7}function At(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Af(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Cf(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Df(t,e){return(e.valueOf()-t.valueOf())/1e3}function _f(t,e){let n=ie(t),r=ie(e);return{years:0,months:0,days:Math.round(At(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function Rf(t,e){let n=fr(t,e);return n!==null&&n%7===0?n/7:null}function fr(t,e){return mt(t)===mt(e)?Math.round(At(t,e)):null}function ie(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Tf(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function kf(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Mf(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function xf(t,e,n){let r=t.getUTCFullYear(),i=qr(t,r,e,n);if(i<1)return qr(t,r-1,e,n);let s=qr(t,r+1,e,n);return s>=1?Math.min(i,s):i}function qr(t,e,n,r){let i=xe([e,0,1+If(e,n,r)]),s=ie(t),l=Math.round(At(i,s));return Math.floor(l/7)+1}function If(t,e,n){let r=7+e-n;return-((7+xe([t,0,r]).getUTCDay()-e)%7)+r-1}function Rl(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Tl(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function pt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function xe(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function ko(t){return!isNaN(t.valueOf())}function mt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Mo(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",fs(e,!0)))),r}function Mn(t){return t.toISOString().replace(/T.*$/,"")}function Of(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Nf(t){return qt(t.getUTCHours(),2)+":"+qt(t.getUTCMinutes(),2)+":"+qt(t.getUTCSeconds(),2)}function fs(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+qt(i,2)}:${qt(s,2)}`:`GMT${n}${i}${s?`:${qt(s,2)}`:""}`}function z(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!yt(r,s)){let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function Kn(t,e,n){let r,i;return s=>(r?Ye(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const kl={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},hr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},jn=/\s*([ap])\.?m\.?/i,Pf=/,/g,Hf=/\s+/g,Lf=/\u200e/g,Bf=/UTC|GMT/;class jf{constructor(e){let n={},r={},i=0;for(let s in e)s in kl?(r[s]=e[s],i=Math.max(kl[s],i)):(n[s]=e[s],s in hr&&(i=Math.max(hr[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=z(Ml)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,a=Wf(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let c=this.format(e,r),u=this.format(n,r);if(c===u)return c;let d=Gf(s,o),h=Ml(d,l,r),f=h(e),g=h(n),m=Yf(c,f,u,g),p=l.separator||i||r.defaultSeparator||"";return m?m.before+f+p+g+m.after:c+p+u}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 Ml(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>fs(i.timeZoneOffset):r===0&&e.week?i=>$f(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):Vf(t,e,n)}function Vf(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Ff(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,a;i&&!l.getUTCMinutes()?a=i:a=r;let o=a.format(l);return zf(o,s,t,e,n)}}function Ff(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function zf(t,e,n,r,i){return t=t.replace(Lf,""),n.timeZoneName==="short"&&(t=Uf(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":fs(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Pf,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(jn,"").trim():r.meridiem==="narrow"?t=t.replace(jn,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(jn,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(jn,s=>s.toLocaleLowerCase())),t=t.replace(Hf," "),t=t.trim(),t}function Uf(t,e){let n=!1;return t=t.replace(Bf,()=>(n=!0,e)),n||(t+=` ${e}`),t}function $f(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function Wf(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:mt(t)!==mt(e)?1:0}function Gf(t,e){let n={};for(let r in t)(!(r in hr)||hr[r]<=e)&&(n[r]=t[r]);return n}function Yf(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let l=t.substr(0,s);i=s+e.length;let a=t.substr(i),o=0;for(;o<n.length;){let c=n.indexOf(r,o);if(c===-1)break;let u=n.substr(0,c);o=c+r.length;let d=n.substr(o);if(l===u&&a===d)return{before:l,after:a}}}return null}function xl(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.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 gr(t,e,n,r){let i=xl(t,n.calendarSystem),s=e?xl(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class qf{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,gr(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,gr(e,n,r,i))}}class Qf{constructor(e){this.func=e}format(e,n,r){return this.func(gr(e,null,n,r))}formatRange(e,n,r,i){return this.func(gr(e,n,r,i))}}function se(t){return typeof t=="object"&&t?new jf(t):typeof t=="string"?new qf(t):typeof t=="function"?new Qf(t):null}const Il={navLinkDayClick:E,navLinkWeekClick:E,duration:K,bootstrapFontAwesome:E,buttonIcons:E,customButtons:E,defaultAllDayEventDuration:K,defaultTimedEventDuration:K,nextDayThreshold:K,scrollTime:K,scrollTimeReset:Boolean,slotMinTime:K,slotMaxTime:K,dayPopoverFormat:se,slotDuration:K,snapDuration:K,headerToolbar:E,footerToolbar:E,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:se,dayHeaderClassNames:E,dayHeaderContent:E,dayHeaderDidMount:E,dayHeaderWillUnmount:E,dayCellClassNames:E,dayCellContent:E,dayCellDidMount:E,dayCellWillUnmount:E,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:E,weekNumbers:Boolean,weekNumberClassNames:E,weekNumberContent:E,weekNumberDidMount:E,weekNumberWillUnmount:E,editable:Boolean,viewClassNames:E,viewDidMount:E,viewWillUnmount:E,nowIndicator:Boolean,nowIndicatorClassNames:E,nowIndicatorContent:E,nowIndicatorDidMount:E,nowIndicatorWillUnmount:E,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:E,locale:E,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:E,eventOrder:of,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:E,contentHeight:E,direction:String,weekNumberFormat:se,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:E,initialDate:E,now:E,eventDataTransform:E,stickyHeaderDates:E,stickyFooterScrollbar:E,viewHeight:E,defaultAllDay:Boolean,eventSourceFailure:E,eventSourceSuccess:E,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:E,eventConstraint:E,eventAllow:E,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:E,eventContent:E,eventDidMount:E,eventWillUnmount:E,selectConstraint:E,selectOverlap:E,selectAllow:E,droppable:Boolean,unselectCancel:String,slotLabelFormat:E,slotLaneClassNames:E,slotLaneContent:E,slotLaneDidMount:E,slotLaneWillUnmount:E,slotLabelClassNames:E,slotLabelContent:E,slotLabelDidMount:E,slotLabelWillUnmount:E,dayMaxEvents:E,dayMaxEventRows:E,dayMinWidth:Number,slotLabelInterval:K,allDayText:String,allDayClassNames:E,allDayContent:E,allDayDidMount:E,allDayWillUnmount:E,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:se,rerenderDelay:Number,moreLinkText:E,moreLinkHint:E,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:E,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:K,hiddenDays:E,fixedWeekCount:Boolean,validRange:E,visibleRange:E,titleFormat:E,eventInteractive:Boolean,noEventsText:String,viewHint:E,navLinkHint:E,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:E,moreLinkClassNames:E,moreLinkContent:E,moreLinkDidMount:E,moreLinkWillUnmount:E,monthStartFormat:se,handleCustomRendering:E,customRenderingMetaMap:E,customRenderingReplaces:Boolean},fn={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"}},Ol={datesSet:E,eventsSet:E,eventAdd:E,eventChange:E,eventRemove:E,windowResize:E,eventClick:E,eventMouseEnter:E,eventMouseLeave:E,select:E,unselect:E,loading:E,_unmount:E,_beforeprint:E,_afterprint:E,_noEventDrop:E,_noEventResize:E,_resize:E,_scrollRequest:E},Nl={buttonText:E,buttonHints:E,views:E,plugins:E,initialEvents:E,events:E,eventSources:E},kt={headerToolbar:Mt,footerToolbar:Mt,buttonText:Mt,buttonHints:Mt,buttonIcons:Mt,dateIncrement:Mt,plugins:Vn,events:Vn,eventSources:Vn,resources:Vn};function Mt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Ye(t,e):t===e}function Vn(t,e){return Array.isArray(t)&&Array.isArray(e)?yt(t,e):t===e}const Zf={type:String,component:E,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:E,usesMinMaxTime:Boolean,classNames:E,content:E,didMount:E,willUnmount:E};function Qr(t){return gs(t,kt)}function hs(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function E(t){return t}const{hasOwnProperty:pr}=Object.prototype;function gs(t,e){let n={};if(e){for(let r in e)if(e[r]===Mt){let i=[];for(let s=t.length-1;s>=0;s-=1){let l=t[s][r];if(typeof l=="object"&&l)i.unshift(l);else if(l!==void 0){n[r]=l;break}}i.length&&(n[r]=gs(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function Ht(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function lt(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function xo(t){let e={};for(let n of t)e[n]=!0;return e}function ps(t){let e=[];for(let n in t)e.push(t[n]);return e}function Ye(t,e){if(t===e)return!0;for(let n in t)if(pr.call(t,n)&&!(n in e))return!1;for(let n in e)if(pr.call(e,n)&&t[n]!==e[n])return!1;return!0}const Xf=/^on[A-Z]/;function Jf(t,e){const n=Mi(t,e);for(let r of n)if(!Xf.test(r))return!1;return!0}function Mi(t,e){let n=[];for(let r in t)pr.call(t,r)&&(r in e||n.push(r));for(let r in e)pr.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Zr(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Kf(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Kf(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function eh(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=r){let l=t[s];l!==void 0&&i.push(l)}return i}let Io={};function th(t,e){Io[t]=e}function nh(t){return new Io[t]}class rh{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return xe(e)}markerToArray(e){return pt(e)}}th("gregory",rh);const ih=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function sh(t){let e=ih.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(ko(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class lh{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=nh(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):xe(Rl(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=xe(e)),n===null||!ko(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=sh(e);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return mt(e)===mt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return mt(e)===mt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=Rf(e,n),r!==null?{unit:"week",value:r}:(r=fr(e,n),r!==null?{unit:"day",value:r}:(r=Af(e,n),Jn(r)?{unit:"hour",value:r}:(r=Cf(e,n),Jn(r)?{unit:"minute",value:r}:(r=Df(e,n),Jn(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/yf(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Sf(r):r.days&&(i=fr(e,n),i!==null)?i/Qt(r):(n.valueOf()-e.valueOf())/Ue(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?ie(e):n==="hour"?Tf(e):n==="minute"?kf(e):n==="second"?Mf(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)):xf(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=St(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),Mo(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?xe(Rl(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):xe(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Tl(pt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(pt(e)):null}toDate(e,n){return this.timeZone==="local"?Tl(pt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(pt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class xn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}xn.prototype.classes={};xn.prototype.iconClasses={};xn.prototype.baseIconClass="";xn.prototype.iconOverridePrefix="";function mr(t){t();let e=U.debounceRendering,n=[];function r(i){n.push(i)}for(U.debounceRendering=r,pn(v(ah,{}),document.createElement("div"));n.length;)n.shift()();U.debounceRendering=e}class ah extends He{render(){return v("div",{})}componentDidMount(){this.setState({})}}function Oo(t){let e=xd(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=l=>{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return i},e}class oh{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.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 ut=Oo({});function ch(t,e,n,r,i,s,l,a,o,c,u,d,h){return{dateEnv:i,options:n,pluginHooks:l,emitter:c,dispatch:a,getCurrentData:o,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(f){c.on("_resize",f)},removeResizeHandler(f){c.off("_resize",f)},createScrollResponder(f){return new oh(f,c,K(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:h}}class Ft extends He{shouldComponentUpdate(e,n){return this.debug&&console.log(Mi(e,this.props),Mi(n,this.state)),!Zr(this.props,e,this.propEquality)||!Zr(this.state,n,this.stateEquality)}safeSetState(e){Zr(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ft.addPropsEquality=uh;Ft.addStateEquality=dh;Ft.contextType=ut;Ft.prototype.propEquality={};Ft.prototype.stateEquality={};class ee extends Ft{}ee.contextType=ut;function uh(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function dh(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function at(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class ms extends ee{constructor(){super(...arguments),this.id=Vt(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!xi(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&at(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,a=No(e,[],this.handleEl);let o=!1,c,u=[],d;if(i!=null){const h=typeof i=="function"?i(l,v):i;if(h===!0)o=!0;else{const f=h&&typeof h=="object";f&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?u=Array.prototype.slice.call(h.domNodes):(f?ro(h):typeof h!="function")?c=h:d=h}}else o=!xi(e.generatorName,r);return o&&s&&(c=s(l)),this.queuedDomNodes=u,this.currentGeneratorMeta=d,v(e.elTag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=i.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[r.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(fh)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!yt(e,n)){n.forEach(os);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}ms.addPropsEquality({elClasses:yt,elStyle:Ye,elAttrs:Jf,renderProps:Ye});function xi(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function No(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function fh(t){return!!t}const Po=Oo(0);class Ce extends He{constructor(){super(...arguments),this.InnerContent=hh.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(at(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=gh(e.classNameGenerator,e.renderProps);if(e.children){const r=No(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?v(e.elTag,r,i):i}else return v(ms,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Ce.contextType=Po;function hh(t,e){const n=t.props;return v(ms,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function gh(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class mn extends ee{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return v(Ce,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Ho(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Ho(t){return[`fc-${t.type}-view`,"fc-view"]}function ph(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function Pl(t,e){let n=[],{start:r}=e,i,s;for(t.sort(mh),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function mh(t,e){return t.start.valueOf()-e.start.valueOf()}function Et(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function vh(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function vs(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function xr(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function nt(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function bh(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function Lo(t){let e=Math.floor(At(t.start,t.end))||1,n=ie(t.start),r=be(n,e);return{start:n,end:r}}function bs(t,e=K(0)){let n=null,r=null;if(t.end){r=ie(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=Ue(e)&&(r=be(r,1))}return t.start&&(n=ie(t.start),r&&r<=n&&(r=be(n,1))),{start:n,end:r}}function yh(t){let e=bs(t);return At(e.start,e.end)>1}function Wt(t,e,n,r){return r==="year"?K(n.diffWholeYears(t,e),"year"):r==="month"?K(n.diffWholeMonths(t,e),"month"):_f(t,e)}function Sh(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Eh(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):In(t.now,e)}function In(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Bo{constructor(e){this.props=e,this.nowDate=In(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,l,a,o,c,u;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=bh(e,s)),l=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),c=o,i.showNonCurrentDates||(c=Et(c,l.range)),c=this.adjustActiveRange(c),c=Et(c,s),u=vs(l.range,s),nt(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:c,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,l=null,a;return r.duration?(i=r.duration,s=r.durationUnit,l=this.buildRangeFromDuration(e,n,i,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,a)):(l=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(l.start,l.end).unit:(i=this.getFallbackDuration(),s=ki(i).unit,l=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return K({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:a}=e;return r&&(Qt(i)<0&&(l=ie(l),l=n.add(l,i)),Qt(s)>1&&(a=ie(a),a=be(a,-1),a=n.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:l}=this.props,a,o,c;if(!l){let{dateIncrement:d}=this.props;d&&Ue(d)<Ue(r)?l=ki(d).unit:l=i}Qt(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=ie(a));function u(){a=s.startOf(e,l),o=s.add(a,r),c={start:a,end:o}}return u(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,n),u()),c}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,a=e,o;s&&(a=i.startOf(a,s)),a=ie(a),a=this.skipHiddenDays(a,n),o=a;do o=be(o,1),this.isHiddenDay(o)||(l+=1);while(l<r);return{start:a,end:o}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?K(1,r):e||K({days:1}))}refineRange(e){if(e){let n=ph(e,this.props.dateEnv);return n&&(n=bs(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=be(e,n);return e}}function ys(t,e,n,r){return{instanceId:Vt(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function wh(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:l}=t;return l==null&&(l=e,l==null&&(l=s.allDayGuess,l==null&&(l=!1))),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function Lt(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:a}=t;a=Ht(a,o=>!l[o.defId].recurringDef);for(let o in l){let c=l[o];if(c.recurringDef){let{duration:u}=c.recurringDef;u||(u=c.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let d=Ah(c,u,e,r,i.recurringTypes);for(let h of d){let f=ys(o,{start:h,end:r.add(h,u)});a[f.instanceId]=f}}}return{defs:l,instances:a}}function Ah(t,e,n,r,i){let l=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(l=l.map(ie)),l}const er={id:String,groupId:String,title:String,url:String,interactive:Boolean},jo={start:E,end:E,date:E,allDay:Boolean},Ch=Object.assign(Object.assign(Object.assign({},er),jo),{extendedProps:E});function Vo(t,e,n,r,i=Ss(n),s,l){let{refined:a,extra:o}=Fo(t,n,i),c=_h(e,n),u=wh(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let h=Ii(a,o,e?e.sourceId:"",u.allDay,!!u.duration,n,s);return h.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:h,instance:null}}let d=Dh(a,c,n,r);if(d){let h=Ii(a,o,e?e.sourceId:"",d.allDay,d.hasEnd,n,s),f=ys(h.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(f.instanceId=l[h.publicId]),{def:h,instance:f}}return null}function Fo(t,e,n=Ss(e)){return hs(t,n)}function Ss(t){return Object.assign(Object.assign(Object.assign({},vr),Ch),t.pluginHooks.eventRefiners)}function Ii(t,e,n,r,i,s,l){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||Vt(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:br(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Dh(t,e,n,r){let{allDay:i}=t,s,l=null,a=!1,o,c=null,u=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(u),s)l=s.marker;else if(!r)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),i&&l&&(l=ie(l)),o&&(c=o.marker,i&&(c=ie(c)),l&&c<=l&&(c=null)),c?a=!0:r||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:l,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function _h(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function vn(t,e,n,r,i,s){let l=Le(),a=Ss(n);for(let o of t){let c=Vo(o,e,n,r,a,i,s);c&&Oi(c,l)}return l}function Oi(t,e=Le()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Es(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Ir(t,s=>Rh(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Le()}function Rh(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Le(){return{defs:{},instances:{}}}function ws(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Ir(t,e){let n=Ht(t.defs,e),r=Ht(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function Th(t,e){let{defs:n,instances:r}=t,i={},s={};for(let l in n)e.defs[l]||(i[l]=n[l]);for(let l in r)!e.instances[l]&&i[r[l].defId]&&(s[l]=r[l]);return{defs:i,instances:s}}function kh(t,e){return Array.isArray(t)?vn(t,null,e,!0):typeof t=="object"&&t?vn([t],null,e,!0):t!=null?String(t):null}function Hl(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const vr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:E,overlap:E,allow:E,className:Hl,classNames:Hl,color:String,backgroundColor:String,borderColor:String,textColor:String},Mh={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function br(t,e){let n=kh(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function zo(t){return t.reduce(xh,Mh)}function xh(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const Ih={id:String,defaultAllDay:Boolean,url:String,format:String,events:E,eventDataTransform:E,success:E,failure:E};function Uo(t,e,n=$o(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=hs(r,n),l=Oh(i,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Vt(),sourceDefId:l.sourceDefId,meta:l.meta,ui:br(i,e),extendedProps:s}}return null}function $o(t){return Object.assign(Object.assign(Object.assign({},vr),Ih),t.pluginHooks.eventSourceRefiners)}function Oh(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}function Nh(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return Ph(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return Hh(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return Lh(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return ws(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Lt(t,r.activeRange,i):t;case"REMOVE_EVENTS":return Th(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Go(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ir(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return Le();default:return t}}function Ph(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=vn(Wo(i,e,s),e,s);return r&&(l=Lt(l,r,s)),ws(Go(t,e.sourceId),l)}return t}function Hh(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=jh(t);let a=vn(Wo(n,e,i),e,i,!1,s,l);return Lt(a,r,i)}function Wo(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Ll(t,i)),r&&(t=Ll(t,r)),t}function Ll(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function Lh(t,e,n,r){return n&&(e=Lt(e,n,r)),ws(t,e)}function Bl(t,e,n){let{defs:r}=t,i=lt(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function Go(t,e){return Ir(t,n=>n.sourceId!==e)}function Bh(t,e){return{defs:t.defs,instances:Ht(t.instances,n=>!e[n.instanceId])}}function jh(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(r[a]=s)}for(let s in n){const l=n[s],a=e[l.defId],{publicId:o}=a;o&&(i[o]=s)}return{defIdMap:r,instanceIdMap:i}}class Or{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){Vh(this.handlers,e,n)}off(e,n){Fh(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let l of s)l.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Vh(t,e,n){(t[e]||(t[e]=[])).push(n)}function Fh(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const zh={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Uh(t,e){return vn($h(t),null,e)}function $h(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},zh),n)),e}function Yo(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},As(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Wh(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function As(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,sg(t,e.dateEnv)),n}function jl(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=ie(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Cs(t,e,n,r){let i=yr(t.defs,e),s=Le();for(let l in t.defs){let a=t.defs[l];s.defs[l]=Gh(a,i[l],n,r)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=Yh(a,o,i[a.defId],n,r)}return s}function Gh(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of r.pluginHooks.eventDefMutationAppliers)l(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Yh(t,e,n,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},t);return l&&(o.range=Lo(o.range)),r.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,r.datesDelta),end:s.add(o.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,r.endDelta)}),a&&(o.range={start:o.range.start,end:jl(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:ie(o.range.start),end:ie(o.range.end)}),o.range.end<o.range.start&&(o.range.end=jl(e.allDay,o.range.start,i)),o}class $t{constructor(e,n){this.context=e,this.internalEventSource=n}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 oe{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in jo)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=er[e](n),this.mutate({standardProps:{publicId:n}});else if(e in er)n=er[e](n),this.mutate({standardProps:{[e]:n}});else if(e in vr){let r=vr[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,l=Wt(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=Wt(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},l=i.createMarker(e),a;if(l&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let o=this._instance.range;r.allDay===!0&&(o=Lo(o));let c=Wt(o.start,l,i,r.granularity);if(a){let u=Wt(o.end,a,i,r.granularity);mf(c,u)?this.mutate({datesDelta:c,standardProps:s}):this.mutate({startDelta:c,endDelta:u,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:c,standardProps:s})}}moveStart(e){let n=K(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=K(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=K(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=se(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),l=Es(s,n.instanceId);l=Cs(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let o=new oe(i,r,n);this._def=l.defs[r.defId],this._instance=l.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:l}),i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Nt(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=qo(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new $t(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 n=this._def,{ui:r}=n,{startStr:i,endStr:s}=this,l={allDay:n.allDay};return n.title&&(l.title=n.title),i&&(l.start=i),s&&(l.end=s),n.publicId&&(l.id=n.publicId),n.groupId&&(l.groupId=n.groupId),n.url&&(l.url=n.url),r.display&&r.display!=="auto"&&(l.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?l.color=r.backgroundColor:(r.backgroundColor&&(l.backgroundColor=r.backgroundColor),r.borderColor&&(l.borderColor=r.borderColor)),r.textColor&&(l.textColor=r.textColor),r.classNames.length&&(l.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,n.extendedProps):l.extendedProps=n.extendedProps),l}toJSON(){return this.toPlainObject()}}function qo(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Nt(t,e,n){let{defs:r,instances:i}=t,s=[],l=n?n.instanceId:"";for(let a in i){let o=i[a],c=r[o.defId];o.instanceId!==l&&s.push(new oe(e,c,o))}return s}function Ni(t,e,n,r){let i={},s={},l={},a=[],o=[],c=yr(t.defs,e);for(let u in t.defs){let d=t.defs[u];c[d.defId].display==="inverse-background"&&(d.groupId?(i[d.groupId]=[],l[d.groupId]||(l[d.groupId]=d)):s[u]=[])}for(let u in t.instances){let d=t.instances[u],h=t.defs[d.defId],f=c[h.defId],g=d.range,m=!h.allDay&&r?bs(g,r):g,p=Et(m,n);p&&(f.display==="inverse-background"?h.groupId?i[h.groupId].push(p):s[d.defId].push(p):f.display!=="none"&&(f.display==="background"?a:o).push({def:h,ui:f,instance:d,range:p,isStart:m.start&&m.start.valueOf()===p.start.valueOf(),isEnd:m.end&&m.end.valueOf()===p.end.valueOf()}))}for(let u in i){let d=i[u],h=Pl(d,n);for(let f of h){let g=l[u],m=c[g.defId];a.push({def:g,ui:m,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let u in s){let d=s[u],h=Pl(d,n);for(let f of h)a.push({def:t.defs[u],ui:c[u],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function qh(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function Vl(t,e){t.fcSeg=e}function Kt(t){return t.fcSeg||t.parentNode.fcSeg||null}function yr(t,e){return lt(t,n=>Qo(n,e))}function Qo(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),zo(n)}function Ds(t,e){let n=t.map(Qh);return n.sort((r,i)=>cf(r,i,e)),n.map(r=>r._seg)}function Qh(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function Zh(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,l=s.startEditable;for(let a of r)l=a(l,i,s,e);return l}function Xh(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Jh(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function hn(t,e,n,r,i,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:c,displayEventEnd:u}=o,d=t.eventRange.def,h=t.eventRange.instance;c==null&&(c=r!==!1),u==null&&(u=i!==!1);let f=h.range.start,g=h.range.end,m=s||t.start||t.eventRange.range.start,p=l||t.end||t.eventRange.range.end,b=ie(f).valueOf()===ie(m).valueOf(),w=ie(St(g,-1)).valueOf()===ie(St(p,-1)).valueOf();return c&&!d.allDay&&(b||w)?(m=b?f:m,p=w?g:p,u&&d.hasEnd?a.formatRange(m,p,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(m,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function rt(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&nt(e,r.start)}}function Kh(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Zo(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function _s(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?To(o=>{s.trigger("eventClick",{el:o.target,event:new oe(e,n,r),jsEvent:o,view:e.viewApi})}):{}}const eg={start:E,end:E,allDay:Boolean};function tg(t,e,n){let r=ng(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function ng(t,e){let{refined:n,extra:r}=hs(t,eg),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:l},r)}function rg(t,e){return vh(t.range,e.range)&&t.allDay===e.allDay&&ig(t,e)}function ig(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function sg(t,e){return Object.assign(Object.assign({},Jo(t.range,e,t.allDay)),{allDay:t.allDay})}function Xo(t,e,n){return Object.assign(Object.assign({},Jo(t,e,n)),{timeZone:e.timeZone})}function Jo(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function lg(t,e,n){let r=Fo({editable:!1},n),i=Ii(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:Qo(i,e),instance:ys(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function ag(t,e,n){let r=!1,i=function(a){r||(r=!0,e(a))},s=function(a){r||(r=!0,n(a))},l=t(i,s);l&&typeof l.then=="function"&&l.then(i,s)}class Fl extends Error{constructor(e,n){super(e),this.response=n}}function og(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new Fl("Failure parsing JSON",i)});throw new Fl("Request failed",i)})}let Xr;function Ko(){return Xr==null&&(Xr=cg()),Xr}function cg(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class ug extends ee{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{mr(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{mr(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Ko()||l.push("fc-liquid-hack"),e.children(l,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class sn{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function dg(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Rs(t){return{[t.component.uid]:t}}const Pi={};class fg{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,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let a in n)i.push(a);for(s=0;s<i.length;s+=1)if(l=n[i[s]],l&&l.singleUnit===e)return l;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:In(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=K(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),se(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),se(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),s=tg(r,i.dateEnv,K({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Yo(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Wh(e,n))}addEvent(e,n){if(e instanceof oe){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Oi({def:l,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof $t)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=ps(r.eventSources));else if(n!=null){let l=this.getEventSourceById(n);if(!l)return console.warn(`Could not find an event source with ID "${n}"`),null;i=l.internalEventSource}let s=Vo(e,i,r,!1);if(s){let l=new oe(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Oi(s)}),this.triggerEventAdd(l),l}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:qo(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let l=r[s];if(l.publicId===e){if(l.recurringDef)return new oe(n,l,null);for(let a in i){let o=i[a];if(o.defId===l.defId)return new oe(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Nt(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new $t(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new $t(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof $t)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=Uo(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new $t(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=K(e);n&&this.trigger("_scrollRequest",{time:n})}}function hg(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function ec(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function gg(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function pg(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function mg(t,e){return{left:t.left-e.left,top:t.top-e.top}}const Jr=Le();class vg{constructor(){this.getKeysForEventDefs=z(this._getKeysForEventDefs),this.splitDateSelection=z(this._splitDateSpan),this.splitEventStore=z(this._splitEventStore),this.splitIndividualUi=z(this._splitIndividualUi),this.splitEventDrag=z(this._splitInteraction),this.splitEventResize=z(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,r),l=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),o=this.splitEventResize(e.eventResize),c={};this.eventUiBuilders=lt(n,(u,d)=>this.eventUiBuilders[d]||z(bg));for(let u in n){let d=n[u],h=l[u]||Jr,f=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:h,eventUiBases:f(e.eventUiBases[""],d.ui,s[u]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[u]||null,eventResize:o[u]||null}}return c}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return lt(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:i}=e,s={};for(let l in r)for(let a of n[l])s[a]||(s[a]=Le()),s[a].defs[l]=r[l];for(let l in i){let a=i[l];for(let o of n[a.defId])s[o]&&(s[o].instances[l]=a)}return s}_splitIndividualUi(e,n){let r={};for(let i in e)if(i)for(let s of n[i])r[s]||(r[s]={}),r[s][i]=e[i];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,i),l=a=>{n[a]||(n[a]={affectedEvents:r[a]||Jr,mutatedEvents:s[a]||Jr,isEvent:e.isEvent})};for(let a in r)l(a);for(let a in s)l(a)}return n}}function bg(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":zo(r)};return n&&Object.assign(i,n),i}function Ts(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!nt(r.activeRange,t)),isOther:!!(r&&!nt(r.currentRange,t)),isToday:!!(e&&nt(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function Nr(t,e){let n=["fc-day",`fc-day-${Ef[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const yg=se({year:"numeric",month:"long",day:"numeric"}),Sg=se({week:"long"});function en(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let a=i.format(e,n==="week"?Sg:yg);if(s.navLinks){let o=i.toDate(e);const c=u=>{let d=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof d=="function"?d.call(l,i.toDate(e),u):(typeof d=="string"&&(n=d),l.zoomTo(e,n))};return Object.assign({title:dn(s.navLinkHint,[a,o],a),"data-navlink":""},r?Ro(c):{onClick:c})}return{"aria-label":a}}let Kr=null;function Eg(){return Kr===null&&(Kr=wg()),Kr}function wg(){let t=document.createElement("div");un(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return os(t),n}let ei;function Ag(){return ei||(ei=Cg()),ei}function Cg(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=tc(t);return document.body.removeChild(t),e}function tc(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Dg(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,a=tc(t),o=a.y-r-i,c=a.x-s-l,u={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return Eg()&&n.direction==="rtl"?u.scrollbarLeft=o:u.scrollbarRight=o,e&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function _g(t,e=!1,n){let r=ks(t),i=Dg(t,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function ks(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function Rg(t){let e=nc(t),n=t.getBoundingClientRect();for(let r of e){let i=ec(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function nc(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class tn{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Fn(this.tops||[],e.tops||[])&&Fn(this.bottoms||[],e.bottoms||[])&&Fn(this.lefts||[],e.lefts||[])&&Fn(this.rights||[],e.rights||[])}}function Fn(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class Ms{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 Tg extends Ms{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 kg extends Ms{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class We extends ee{constructor(){super(...arguments),this.uid=Vt()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Ee(e,".fc-event-mirror")}isValidDateDownEl(e){return!Ee(e,".fc-event:not(.fc-bg-event)")&&!Ee(e,".fc-more-link")&&!Ee(e,"a[data-navlink]")&&!Ee(e,".fc-popover")}}class rc{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},n),{span:xs(n.span,e.touchingEntry.span)});r.push(i),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let i=e.span,s=n.span;i.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},r),i.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(ti(i,n.level,n.levelCoord),ti(r,n.level,[e])):ti(r[n.level],n.lateral,e),this.stackCnts[Pt(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=n.length,a=0,o=-1,c=-1,u=null,d=0;for(let g=0;g<l;g+=1){const m=n[g];if(!i&&m>=a+this.getEntryThickness(e))break;let p=r[g],b,w=Li(p,e.span.start,Hi),D=w[0]+w[1];for(;(b=p[D])&&b.span.start<e.span.end;){let C=m+this.getEntryThickness(b);C>a&&(a=C,u=b,o=g,c=D),C===a&&(d=Math.max(d,s[Pt(b)]+1)),D+=1}}let h=0;if(u)for(h=o+1;h<l&&n[h]<a;)h+=1;let f=-1;return h<l&&n[h]===a&&(f=Li(r[h],e.span.end,Hi)[0]),{touchingLevel:o,touchingLateral:c,touchingEntry:u,stackCnt:d,levelCoord:a,level:h,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let l=e[s],a=n[s];for(let o of l)i.push(Object.assign(Object.assign({},o),{thickness:this.getEntryThickness(o),levelCoord:a}))}return i}}function Hi(t){return t.span.end}function Pt(t){return t.index+":"+t.span.start}function Mg(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)xs(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:xg(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function xg(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function xs(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function ti(t,e,n){t.splice(e,0,n)}function Li(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),l=n(t[s]);if(e<l)i=s;else if(e>l)r=s+1;else return[s,1]}return[r,0]}class Ig{constructor(e,n){this.emitter=new Or}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Is={};function Og(t,e){return!t||e>10?se({weekday:"short"}):e>1?se({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):se({weekday:"long"})}const ic="fc-col-header-cell";function sc(t){return t.text}class Ng extends ee{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=Ts(l,s.todayRange,null,a),c=[ic].concat(Nr(o,r)),u=e.format(l,s.dayHeaderFormat),d=!o.isDisabled&&s.colCnt>1?en(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:u}),o);return v(Ce,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:Mn(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:sc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},f=>v("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&v(f,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const Pg=se({weekday:"long"});class Hg extends ee{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=be(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(l,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:i}),e.extraRenderProps),{text:o});return v(Ce,{elTag:"th",elClasses:[ic,...Nr(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:sc,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},u=>v("div",{className:"fc-scrollgrid-sync-inner"},v(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,Pg)}})))}}class ln extends He{constructor(e,n){super(e,n),this.initialNowDate=In(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=St(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,K(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:zl(i)},nextState:{nowDate:s,todayRange:zl(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}ln.contextType=ut;function zl(t){let e=ie(t),n=be(e,1);return{start:e,end:n}}class lc extends ee{constructor(){super(...arguments),this.createDayHeaderFormatter=z(Lg)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return v(ln,{unit:"day"},(a,o)=>v("tr",{role:"row"},s&&s("day"),n.map(c=>i?v(Ng,{key:c.toISOString(),date:c,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):v(Hg,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:l}))))}}function Lg(t,e,n){return t||Og(e,n)}class ac{constructor(e,n){let r=e.start,{end:i}=e,s=[],l=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),l.push(r)),r=be(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(be(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(At(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class oc{constructor(e,n){let{dates:r}=e,i,s,l;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);l=Math.ceil(r.length/i)}else l=1,i=r.length;this.rowCnt=l,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:l}=r,a=s;for(;a<=l;){let o=Math.floor(a/n),c=Math.min((o+1)*n,l+1);i.push({row:o,firstCol:a%n,lastCol:(c-1)%n,isStart:r.isStart&&a===s,isEnd:r.isEnd&&c-1===l}),a=c}}return i}}class cc{constructor(){this.sliceBusinessHours=z(this._sliceBusinessHours),this.sliceDateSelection=z(this._sliceDateSpan),this.sliceEventStore=z(this._sliceEventStore),this.sliceEventDrag=z(this._sliceInteraction),this.sliceEventResize=z(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:l}=e,a=this.sliceEventStore(e.eventStore,l,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,l,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,l,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:St(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(Lt(e,zn(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=Ni(e,n,zn(r,!!i),i);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let l=Ni(e.mutatedEvents,n,zn(r,!!i),i);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...l){if(!e)return[];let a=zn(n,!!r),o=Et(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let c=lg(e,i,s),u=this.sliceRange(e.range,...l);for(let d of u)d.eventRange=c;return u}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:be(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function zn(t,e){let n=t.activeRange;return e?n:{start:St(n.start,t.slotMinTime.milliseconds),end:St(n.end,t.slotMaxTime.milliseconds-864e5)}}function uc(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!xr(e.validRange,r[i].range))return!1;return dc({eventDrag:t},n)}function Bg(t,e,n){return xr(e.validRange,t.range)?dc({dateSelection:t},n):!1}function dc(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||jg)(r,e)}function jg(t,e,n={},r){return!(t.eventDrag&&!Vg(t,e,n,r)||t.dateSelection&&!Fg(t,e,n,r))}function Vg(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,c=yr(a,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(c=lt(c,r));let u=Bh(t.eventStore,s.affectedEvents.instances),d=u.defs,h=u.instances,f=yr(d,t.eventUiBases);for(let g in o){let m=o[g],p=m.range,b=c[m.defId],w=a[m.defId];if(!fc(b.constraints,p,u,t.businessHours,e))return!1;let{eventOverlap:D}=e.options,C=typeof D=="function"?D:null;for(let S in h){let y=h[S];if(vs(p,y.range)&&(f[y.defId].overlap===!1&&s.isEvent||b.overlap===!1||C&&!C(new oe(e,d[y.defId],y),new oe(e,w,m))))return!1}let _=i.eventStore;for(let S of b.allows){let y=Object.assign(Object.assign({},n),{range:m.range,allDay:w.allDay}),A=_.defs[w.defId],H=_.instances[g],M;if(A?M=new oe(e,A,H):M=new oe(e,w),!S(As(y,e),M))return!1}}return!0}function Fg(t,e,n,r){let i=t.eventStore,s=i.defs,l=i.instances,a=t.dateSelection,o=a.range,{selectionConfig:c}=e.getCurrentData();if(r&&(c=r(c)),!fc(c.constraints,o,i,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,d=typeof u=="function"?u:null;for(let h in l){let f=l[h];if(vs(o,f.range)&&(c.overlap===!1||d&&!d(new oe(e,s[f.defId],f),null)))return!1}for(let h of c.allows){let f=Object.assign(Object.assign({},n),a);if(!h(As(f,e),null))return!1}return!0}function fc(t,e,n,r,i){for(let s of t)if(!Ug(zg(s,e,n,r,i),e))return!1;return!0}function zg(t,e,n,r,i){return t==="businessHours"?ni(Lt(r,e,i)):typeof t=="string"?ni(Ir(n,s=>s.groupId===t)):typeof t=="object"&&t?ni(Lt(t,e,i)):[]}function ni(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Ug(t,e){for(let n of t)if(xr(n,e))return!0;return!1}const Un=/^(visible|hidden)$/;class hc extends ee{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,at(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),v("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(Un.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Un.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Un.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Un.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class tt{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,l=!1,a=!1;n!==null?(l=r in s,s[r]=n,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(r)),a&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return eh(this.currentMap,e,n,r)}getAll(){return ps(this.currentMap)}}function $g(t){let e=Jd(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,hf(r));return Math.ceil(n)}function gc(t,e){return t.liquid&&e.liquid}function Wg(t,e){return e.maxHeight!=null||gc(t,e)}function Gg(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):v("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,v(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function Yg(t,e){return yt(t,e,Ye)}function qg(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(v("col",{style:{width:r.width==="shrink"?Qg(e):r.width||"",minWidth:r.minWidth||""}}))}return v("colgroup",{},...n)}function Qg(t){return t??4}function Zg(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Xg(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Jg(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Bi(t){return v("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Sr(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function pc(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Os extends ee{constructor(){super(...arguments),this.processCols=z(e=>e,Yg),this.renderMicroColGroup=z(qg),this.scrollerRefs=new tt,this.scrollerElRefs=new tt(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:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),a=Xg(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=i.length,c=0,u,d=[],h=[],f=[];for(;c<o&&(u=i[c]).type==="header";)d.push(this.renderSection(u,l,!0)),c+=1;for(;c<o&&(u=i[c]).type==="body";)h.push(this.renderSection(u,l,!1)),c+=1;for(;c<o&&(u=i[c]).type==="footer";)f.push(this.renderSection(u,l,!0)),c+=1;let g=!Ko();const m={role:"rowgroup"};return v("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!g&&d.length)&&v("thead",m,...d),!!(!g&&h.length)&&v("tbody",m,...h),!!(!g&&f.length)&&v("tfoot",m,...f),g&&v("tbody",m,...d,...h,...f))}renderSection(e,n,r){return"outerContent"in e?v(re,{key:e.key},e.outerContent):v("tr",{key:e.key,role:"presentation",className:Jg(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:a,scrollerClientHeights:o}=this.state,c=Wg(s,e),u=gc(s,e),d=s.liquid?l?"scroll":c?"auto":"hidden":"visible",h=e.key,f=Gg(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:o[h]!==void 0?o[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return v(i?"th":"td",{ref:r.elRef,role:"presentation"},v("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},v(hc,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:d,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let r=Kg(this.props.sections,n);r&&at(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Zg(this.props.cols)?$g(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Ag(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},l={};for(let a in n.currentMap){let o=n.currentMap[a];if(o&&o.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let o=a.key,c=r.currentMap[o];if(c){let u=c.parentNode;s[o]=Math.floor(u.getBoundingClientRect().width-(i?e.y:0)),l[o]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}Os.addStateEquality({scrollerClientWidths:Ye,scrollerClientHeights:Ye});function Kg(t,e){for(let n of t)if(n.key===e)return n;return null}class Pr extends ee{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Vl(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:l}=s,a={event:new oe(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&Zh(i,n),isStartResizable:!e.disableResizing&&Xh(i,n),isEndResizable:!e.disableResizing&&Jh(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return v(Ce,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Kh(a),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Vl(this.el,this.props.seg)}}class mc extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,a=hn(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return v(Pr,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:_s(i,n),defaultGenerator:ep,timeText:a}),(o,c)=>v(re,null,v(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function ep(t){return v("div",{className:"fc-event-main-frame"},t.timeText&&v("div",{className:"fc-event-time"},t.timeText),v("div",{className:"fc-event-title-container"},v("div",{className:"fc-event-title fc-sticky"},t.event.title||v(re,null," "))))}const Ns=t=>v(ut.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return v(Ce,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),tp=se({day:"numeric"});class Ps extends ee{constructor(){super(...arguments),this.refineRenderProps=Kn(np)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return v(Ce,Object.assign({},e,{elClasses:[...Nr(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Mn(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function Hs(t){return!!(t.dayCellContent||xi("dayCellContent",t))}function np(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=Ts(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:tp):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class vc extends ee{render(){let{props:e}=this,{seg:n}=e;return v(Pr,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:rp,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function rp(t){let{title:e}=t.event;return e&&v("div",{className:"fc-event-title"},t.event.title)}function bc(t){return v("div",{className:`fc-${t}`})}const yc=t=>v(ut.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(i),a=n.format(i,s);return v(Ce,Object.assign({},t,{renderProps:{num:l,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:ip,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function ip(t){return t.text}const ri=10;class sp extends ee{constructor(){super(...arguments),this.state={titleId:vt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&at(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Do(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return Bd(v("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),v("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},v("span",{className:"fc-popover-title",id:i.titleId},r.title),v("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),v("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,s=Rg(n);if(s){let l=i.getBoundingClientRect(),a=r?Ee(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,ri),o=Math.min(o,document.documentElement.clientWidth-ri-l.width),o=Math.max(o,ri);let c=i.offsetParent.getBoundingClientRect();un(i,{top:a-c.top,left:o-c.left})}}}class lp extends We{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:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:l}=r,a=n.format(i,e.dayPopoverFormat);return v(Ps,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(o,c,u)=>v(sp,{elRef:u.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Hs(e)&&v(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:l}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class Sc extends ee{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:vt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&at(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=Ul(n).start;function l(a){let{def:o,instance:c,range:u}=a.eventRange;return{event:new oe(r,o,c),start:r.dateEnv.toDate(u.start),end:r.dateEnv.toDate(u.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return v(ut.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:a}=s,{moreCnt:o}=e,c=Ul(e),u=typeof a=="function"?a.call(l,o):`+${o} ${a}`,d=dn(s.moreLinkHint,[o],u),h={num:o,shortText:`+${o}`,text:u,view:i};return v(re,null,!!e.moreCnt&&v(Ce,{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),Ro(this.handleClick)),{title:d,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||ap,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&v(lp,{id:n.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=Ee(this.linkEl,".fc-view-harness"))}}function ap(t){return t.text}function Ul(t){if(t.allDayDate)return{start:t.allDayDate,end:be(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Ec(e),end:cp(e)}}function Ec(t){return t.reduce(op).eventRange.range.start}function op(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function cp(t){return t.reduce(up).eventRange.range.end}function up(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class dp{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class fp extends dp{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const hp=[],wc={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"},Ac=Object.assign(Object.assign({},wc),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function gp(t){let e=t.length>0?t[0].code:"en",n=hp.concat(t),r={en:Ac};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Cc(t,e){return typeof t=="object"&&!Array.isArray(t)?Dc(t.code,[t.code],t):pp(t,e)}function pp(t,e){let n=[].concat(t||[]),r=mp(n,e)||Ac;return Dc(t,n,r)}function mp(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function Dc(t,e,n){let r=gs([wc,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function Qe(t){return{id:Vt(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function vp(t,e){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(s){for(let l of s){const a=l.name,o=n[a];o===void 0?(n[a]=l.id,i(l.deps),r=yp(r,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function bp(){let t=[],e=[],n;return(r,i)=>((!n||!yt(r,t)||!yt(i,e))&&(n=vp(r,i)),t=r,e=i,n)}function yp(t,e){return{premiumReleaseDate:Sp(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function Sp(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Ct extends xn{}Ct.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Ct.prototype.baseIconClass="fc-icon";Ct.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"};Ct.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Ct.prototype.iconOverrideOption="buttonIcons";Ct.prototype.iconOverrideCustomButtonOption="icon";Ct.prototype.iconOverridePrefix="fc-icon-";function Ep(t,e){let n={},r;for(r in t)ji(r,n,t,e);for(r in e)ji(r,n,t,e);return n}function ji(t,e,n,r){if(e[t])return e[t];let i=wp(t,e,n,r);return i&&(e[t]=i),i}function wp(t,e,n,r){let i=n[t],s=r[t],l=u=>i&&i[u]!==null?i[u]:s&&s[u]!==null?s[u]:null,a=l("component"),o=l("superType"),c=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");c=ji(o,e,n,r)}return!a&&c&&(a=c.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function $l(t){return lt(t,Ap)}function Ap(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Wl(e):n&&!(n.prototype instanceof ee)&&(n=Wl(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Wl(t){return e=>v(ut.Consumer,null,n=>v(Ce,{elTag:"div",elClasses:Ho(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Cp(t,e,n,r){let i=$l(t),s=$l(e.views),l=Ep(i,s);return lt(l,a=>Dp(a,s,e,n,r))}function Dp(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,l=null,a="",o="",c={};if(s&&(l=_p(s),l)){let h=ki(l);a=h.unit,h.value===1&&(o=a,c=e[a]?e[a].rawOptions:{})}let u=h=>{let f=h.buttonText||{},g=t.defaults.buttonTextKey;return g!=null&&f[g]!=null?f[g]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null},d=h=>{let f=h.buttonHints||{},g=t.defaults.buttonTextKey;return g!=null&&f[g]!=null?f[g]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null};return{type:t.type,component:t.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(r)||u(n)||t.overrides.buttonText,buttonTextDefault:u(i)||t.defaults.buttonText||u(fn)||t.type,buttonTitleOverride:d(r)||d(n)||t.overrides.buttonHint,buttonTitleDefault:d(i)||t.defaults.buttonHint||d(fn)}}let Gl={};function _p(t){let e=JSON.stringify(t),n=Gl[e];return n===void 0&&(n=K(t),Gl[e]=n),n}function Rp(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Tp(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function kp(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function Mp(t,e,n){let r=e?e.activeRange:null;return Rc({},Lp(t,n),r,n)}function xp(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Rc(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Op(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Tc(t,i,r):t;case"FETCH_EVENT_SOURCES":return Ls(t,e.sourceIds?xo(e.sourceIds):kc(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Hp(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Ip(t,e,n){let r=e?e.activeRange:null;return Ls(t,kc(t,n),r,!0,n)}function _c(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Rc(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Tc(i,n,r)),Object.assign(Object.assign({},t),i)}function Op(t,e){return Ht(t,n=>n.sourceId!==e)}function Tc(t,e,n){return Ls(t,Ht(t,r=>Np(r,e,n)),e,!1,n)}function Np(t,e,n){return Mc(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Ls(t,e,n,r,i){let s={};for(let l in t){let a=t[l];e[l]?s[l]=Pp(a,n,r,i):s[l]=a}return s}function Pp(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=Vt();return l.fetch({eventSource:t,range:e,isRefetch:n,context:r},o=>{let{rawEvents:c}=o;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(s,c,o.response)||c),t.success&&(c=t.success.call(s,c,o.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},o=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,o),c=!0),t.failure&&(t.failure(o),c=!0),c||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function Hp(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function kc(t,e){return Ht(t,n=>Mc(n,e))}function Lp(t,e){let n=$o(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let l=Uo(s,e,n);l&&i.push(l)}return i}function Mc(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Bp(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function jp(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Vp(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Fp(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function zp(t,e,n,r,i){let s=t.headerToolbar?Yl(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?Yl(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function Yl(t,e,n,r,i,s){let l={},a=[],o=!1;for(let c in t){let u=t[c],d=Up(u,e,n,r,i,s);l[c]=d.widgets,a.push(...d.viewsWithButtons),o=o||d.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function Up(t,e,n,r,i,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},d=e.buttonHints||{},h=t?t.split(" "):[],f=[],g=!1;return{widgets:h.map(p=>p.split(",").map(b=>{if(b==="title")return g=!0,{buttonName:b};let w,D,C,_,S,y;if(w=a[b])C=A=>{w.click&&w.click.call(A.target,A,A.target)},(_=r.getCustomButtonIconClass(w))||(_=r.getIconClass(b,l))||(S=w.text),y=w.hint||w.text;else if(D=i[b]){f.push(b),C=()=>{s.changeView(b)},(S=D.buttonTextOverride)||(_=r.getIconClass(b,l))||(S=D.buttonTextDefault);let A=D.buttonTextOverride||D.buttonTextDefault;y=dn(D.buttonTitleOverride||D.buttonTitleDefault||e.viewHint,[A,b],A)}else if(s[b])if(C=()=>{s[b]()},(S=o[b])||(_=r.getIconClass(b,l))||(S=c[b]),b==="prevYear"||b==="nextYear"){let A=b==="prevYear"?"prev":"next";y=dn(u[A]||d[A],[c.year||"year","year"],c[b])}else y=A=>dn(u[b]||d[b],[c[A]||A,A],c[b]);return{buttonName:b,buttonClick:C,buttonIcon:_,buttonText:S,buttonHint:y}})),viewsWithButtons:f,hasTitle:g}}class $p{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let Wp={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const Gp=Qe({name:"array-event-source",eventSourceDefs:[Wp]});let Yp={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;ag(i.bind(null,Xo(t.range,r)),s=>e({rawEvents:s}),n)}};const qp=Qe({name:"func-event-source",eventSourceDefs:[Yp]}),Qp={method:String,extraParams:E,startParam:String,endParam:String,timeZoneParam:String};let Zp={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=Jp(r,t.range,t.context);og(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const Xp=Qe({name:"json-event-source",eventSourceRefiners:Qp,eventSourceDefs:[Zp]});function Jp(t,e,n){let{dateEnv:r,options:i}=n,s,l,a,o,c={};return s=t.startParam,s==null&&(s=i.startParam),l=t.endParam,l==null&&(l=i.endParam),a=t.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(c,o),c[s]=r.formatIso(e.start),c[l]=r.formatIso(e.end),r.timeZone!=="local"&&(c[a]=r.timeZone),c}const Kp={daysOfWeek:E,startTime:K,endTime:K,duration:K,startRecur:E,endRecur:E};let em={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=vf(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Et(e,{start:t.startRecur,end:t.endRecur});return r?nm(t.daysOfWeek,t.startTime,r,n):[]}};const tm=Qe({name:"simple-recurring-event",recurringTypes:[em],eventRefiners:Kp});function nm(t,e,n,r){let i=t?xo(t):null,s=ie(n.start),l=n.end,a=[];for(;s<l;){let o;(!i||i[s.getUTCDay()])&&(e?o=r.add(s,e):o=s,a.push(o)),s=be(s,1)}return a}const rm=Qe({name:"change-handler",optionChangeHandlers:{events(t,e){ql([t],e)},eventSources:ql}});function ql(t,e){let n=ps(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let s=!1;for(let l=0;l<n.length;l+=1)if(n[l]._raw===i){n.splice(l,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function im(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Xo(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function sm(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Nt(t,e))}const lm=[Gp,qp,Xp,tm,rm,Qe({name:"misc",isLoadingFuncs:[t=>_c(t.eventSources)],propSetHandlers:{dateProfile:im,eventStore:sm}})];class am{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new as(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function om(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,se(e.titleFormat||cm(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function cm(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=fr(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class um{constructor(e){this.computeCurrentViewData=z(this._computeCurrentViewData),this.organizeRawLocales=z(gp),this.buildLocale=z(Cc),this.buildPluginHooks=bp(),this.buildDateEnv=z(dm),this.buildTheme=z(fm),this.parseToolbars=z(zp),this.buildViewSpecs=z(Cp),this.buildDateProfileGenerator=Kn(hm),this.buildViewApi=z(gm),this.buildViewUiProps=Kn(vm),this.buildEventUiBySource=z(pm,Ye),this.buildEventUiBases=z(mm),this.parseContextBusinessHours=Kn(bm),this.buildTitle=z(om),this.emitter=new Or,this.actionRunner=new am(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=Eh(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(l);nt(a.activeRange,l)||(l=a.currentRange.start);let o={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of r.pluginHooks.contextInit)h(o);let c=Mp(r.calendarOptions,a,o),u={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:c,eventUiBases:{},eventStore:Le(),renderableEventStore:Le(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},d=Object.assign(Object.assign({},o),u);for(let h of r.pluginHooks.reducers)Object.assign(u,h(null,null,d));ii(u,o)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=Tp(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=Rp(r.currentViewType,e),o=this.computeCurrentViewData(a,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(o.options);let c={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:d}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(d=o.dateProfileGenerator.build(u)),u=Sh(u,e),d=kp(d,e,u,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!nt(d.currentRange,u))&&(u=d.currentRange.start);let h=xp(r.eventSources,e,d,c),f=Nh(r.eventStore,e,h,d,c),m=_c(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:p,selectionConfig:b}=this.buildViewUiProps(c),w=this.buildEventUiBySource(h),D=this.buildEventUiBases(m.defs,p,w),C={dynamicOptionOverrides:s,currentViewType:a,currentDate:u,dateProfile:d,eventSources:h,eventStore:f,renderableEventStore:m,selectionConfig:b,eventUiBases:D,businessHours:this.parseContextBusinessHours(c),dateSelection:Bp(r.dateSelection,e),eventSelection:jp(r.eventSelection,e),eventDrag:Vp(r.eventDrag,e),eventResize:Fp(r.eventResize,e)},_=Object.assign(Object.assign({},c),C);for(let A of l.pluginHooks.reducers)Object.assign(C,A(r,e,_));let S=ii(r,c),y=ii(C,c);!S&&y?i.trigger("loading",!0):S&&!y&&i.trigger("loading",!1),this.state=C,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),a=i.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,c=i.calendarOptions;if(o&&o!==c){o.timeZone!==c.timeZone&&(n.eventSources=l.eventSources=Ip(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=Bl(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=Bl(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let u in a)(this.optionsForHandling.indexOf(u)!==-1||o[u]!==c[u])&&a[u](c[u],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,n);Ql(o);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),u=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),d=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,d,u,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:c,viewSpecs:u,theme:d,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=Qr([fn,e,n]),s=this.organizeRawLocales(r),l=s.map,a=this.buildLocale(i||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],lm),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Il),Ol),Nl),o.listenerRefiners),o.optionRefiners),u={},d=Qr([fn,a,e,n]),h={},f=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,m=!1;for(let p in d)this.optionsForRefining.indexOf(p)===-1&&(d[p]===f[p]||kt[p]&&p in f&&kt[p](f[p],d[p]))?h[p]=g[p]:c[p]?(h[p]=c[p](d[p]),m=!0):u[p]=f[p];return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:a,extra:u}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);Ql(a);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:c}}processRawViewOptions(e,n,r,i,s){let l=Qr([fn,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Il),Ol),Nl),Zf),n.listenerRefiners),n.optionRefiners),o={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,h={};for(let f in l)l[f]===c[f]||kt[f]&&kt[f](l[f],c[f])?o[f]=u[f]:(l[f]===this.currentCalendarOptionsInput[f]||kt[f]&&kt[f](l[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):a[f]?o[f]=a[f](l[f]):h[f]=l[f],d=!0);return d&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function dm(t,e,n,r,i,s,l,a){let o=Cc(e||l.defaultCode,l.map);return new lh({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function fm(t,e){let n=e.themeClasses[t.themeSystem]||Ct;return new n(t)}function hm(t){let e=t.dateProfileGeneratorClass||Bo;return new e(t)}function gm(t,e,n){return new $p(t,e,n)}function pm(t){return lt(t,e=>e.ui)}function mm(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function vm(t){let{options:e}=t;return{eventUiSingleBase:br({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:br({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function ii(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function bm(t){return Uh(t.options.businessHours,t)}function Ql(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class ym extends ee{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return v("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:c,buttonIcon:u,buttonHint:d}=l;if(a==="title")s=!1,i.push(v("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,f=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",g=[`fc-${a}-button`,r.getClass("button")];h&&g.push(r.getClass("buttonActive")),i.push(v("button",{type:"button",title:typeof d=="function"?d(n.navUnit):d,disabled:f,"aria-pressed":h,className:g.join(" "),onClick:o},c||(u?v("span",{className:u,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return v("div",{className:l},...i)}return i[0]}}class Zl extends ee{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,l=e.sectionWidgets,a=l.center;return l.left?(r=!0,i=l.left):i=l.start,l.right?(r=!0,s=l.right):s=l.end,v("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return v(ym,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class Sm extends ee{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,at(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return r?n.availableWidth!==null?s=n.availableWidth/r:l=`${1/r*100}%`:s=e.height||"",v("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Em extends sn{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=Kt(r);if(l&&i.isValidSegDownEl(n.target)){let a=Ee(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new oe(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=_o(e.el,"click",".fc-event",this.handleSegClick)}}class wm extends sn{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Kt(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=tf(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=Kt(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new oe(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Am extends Ft{constructor(){super(...arguments),this.buildViewContext=z(ch),this.buildViewPropTransformers=z(Dm),this.buildToolbarProps=z(Cm),this.headerRef=_e(),this.footerRef=_e(),this.interactionsStore={},this.state={viewLabelId:vt()},this.registerInteractiveComponent=(e,n)=>{let r=dg(e,n),l=[Em,wm].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=l,Pi[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete Pi[e.uid]},this.resizeRunner=new as(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,In(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",a;e.isHeightAuto||e.forPrint?l="":r.height!=null?s=!0:r.contentHeight!=null?l=r.contentHeight:a=Math.max(r.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return v(ut.Provider,{value:o},n.header&&v(Zl,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),v(Sm,{liquid:s,height:l,aspectRatio:a,labeledById:c},this.renderView(e),this.buildAppendContent()),n.footer&&v(Zl,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}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,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return v(re,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(i,a.transform(i,e));let l=r.component;return v(l,Object.assign({},i))}}function Cm(t,e,n,r,i,s){let l=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),o=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!nt(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function Dm(t){return t.map(e=>new e)}let _m=class extends fg{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;mr(()=>{pn(v(ug,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,a)=>(this.setClassNames(i),this.setHeight(s),v(Po.Provider,{value:this.customContentRenderId},v(Am,Object.assign({isHeightAuto:l,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,pn(null,this.el),this.setClassNames([]),this.setHeight(""))},Gd(e),this.el=e,this.renderRunner=new as(this.handleRenderRequest),new um({optionOverrides:n,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(){mr(()=>{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,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!yt(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Co(this.el,"height",e)}};const Rm={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Tm=ka({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:xm(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(It(km,{key:e.id,customRendering:e}));return It("div",{attrs:{"data-fc-render-id":this.renderId}},It(Se,t))},mounted(){const t=new fp;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new _m(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Mm()}),km=ka({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return It(Wu,{to:t.containerEl},e)}});function Mm(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in Rm)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function xm(t){const e={};for(const n in t)e[Im(n)]=t[n];return e}function Im(t){return t.split("-").map((e,n)=>n?Om(e):e).join("")}function Om(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Nm extends We{constructor(){super(...arguments),this.headerElRef=_e()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=Sr(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),v(mn,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},v(Os,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&Sr(a.options),c=!l.forPrint&&pc(a.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Bi}]}),v(mn,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},v(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:u}))}}function $n(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function Wn(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function Xl(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const xc=se({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ic(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Oc extends ee{render(){let{props:e}=this;return v(mc,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:xc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Nc extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||xc,l=hn(i,s,n,!0,e.defaultDisplayEventEnd);return v(Pr,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:_s(e.seg,n),defaultGenerator:Pm,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function Pm(t){return v(re,null,v("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&v("div",{className:"fc-event-time"},t.timeText),v("div",{className:"fc-event-title"},t.event.title||v(re,null," ")))}class Hm extends ee{constructor(){super(...arguments),this.compileSegs=z(Lm)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return v(Sc,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return v(re,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return v("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},Ic(s)?v(Nc,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},rt(s,e.todayRange))):v(Oc,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},rt(s,e.todayRange))))}))}})}}function Lm(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const Bm=se({week:"narrow"});class jm extends We{constructor(){super(...arguments),this.rootElRef=_e(),this.state={dayNumberId:vt()},this.handleRootEl=e=>{at(this.rootElRef,e),at(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=n;const c=n.showDayNumber&&Fm(a,o.currentRange,l);return v(Ps,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Vm,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(u,d)=>v("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&v(yc,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:en(e,a,"week"),date:a,defaultFormat:Bm}),!d.isDisabled&&(n.showDayNumber||Hs(s)||n.forceDayTop)?v("div",{className:"fc-daygrid-day-top"},v(u,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},en(e,a)),{id:r.dayNumberId})})):n.showDayNumber?v("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},v("a",{className:"fc-daygrid-day-number"}," ")):void 0,v("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,v("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},v(Hm,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),v("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Vm(t){return t.dayNumberText||v(re,null," ")}function Fm(t,e,n){const{start:r,end:i}=e,s=St(i,-1),l=n.getYear(r),a=n.getMonth(r),o=n.getYear(s),c=n.getMonth(s);return!(l===o&&a===c)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function Pc(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Hc(t){return Pc(t)+":"+t.lastCol}function zm(t,e,n,r,i,s,l){let a=new Wm(b=>{let w=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return i[w]||1});a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let o=[],c=[];for(let b=0;b<t.length;b+=1){let w=t[b],D=Hc(w);i[D]!=null?o.push({index:b,span:{start:w.firstCol,end:w.lastCol+1}}):c.push(w)}let u=a.addSegs(o),d=a.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:g}=Um(d,t,l),m=[],p=[];for(let b of c){f[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let w=b.firstCol;w<=b.lastCol;w+=1)h[w].push({seg:Zt(b,w,w+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<l.length;b+=1)m.push(0);for(let b of u){let w=t[b.index],D=b.span;f[D.start].push({seg:Zt(w,D.start,D.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let C=D.start;C<D.end;C+=1)m[C]+=1,h[C].push({seg:Zt(w,C,C+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<l.length;b+=1)p.push(g[b]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:m,moreMarginTops:p}}function Um(t,e,n){let r=$m(t,n.length),i=[],s=[],l=[];for(let a=0;a<n.length;a+=1){let o=r[a],c=[],u=0,d=0;for(let f of o){let g=e[f.index];c.push({seg:Zt(g,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-u}),u=f.levelCoord+f.thickness}let h=[];u=0,d=0;for(let f of o){let g=e[f.index],m=f.span.end-f.span.start>1,p=f.span.start===a;d+=f.levelCoord-u,u=f.levelCoord+f.thickness,m?(d+=f.thickness,p&&h.push({seg:Zt(g,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):p&&(h.push({seg:Zt(g,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:d}),d=0)}i.push(c),s.push(h),l.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function $m(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function Zt(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=Et(s,{start:r[e].date,end:be(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:l},isStart:t.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===s.end.valueOf()})}class Wm extends rc{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Pt(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:l,touchingLevel:a,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const c=Pt(l);if(!s[c])if(this.allowReslicing){const u=Object.assign(Object.assign({},l),{span:xs(l.span,n.span)}),d=Pt(u);s[d]=!0,i[a][o]=u,r.push(u),this.splitEntry(l,n,r)}else s[c]=!0,r.push(l)}super.handleInvalidInsertion(e,n,r)}}class Lc extends We{constructor(){super(...arguments),this.cellElRefs=new tt,this.frameElRefs=new tt,this.fgElRefs=new tt,this.segHarnessRefs=new tt,this.rootElRef=_e(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,l=Wn(e.businessHourSegs,s),a=Wn(e.bgEventSegs,s),o=Wn(this.getHighlightSegs(),s),c=Wn(this.getMirrorSegs(),s),{singleColPlacements:u,multiColPlacements:d,moreCnts:h,moreMarginTops:f}=zm(Ds(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),g=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return v("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((m,p)=>{let b=this.renderFgSegs(p,e.forPrint?u[p]:d[p],e.todayRange,g),w=this.renderFgSegs(p,Gm(c[p],d),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return v(jm,{key:m.key,elRef:this.cellElRefs.createRef(m.key),innerElRef:this.frameElRefs.createRef(m.key),dateProfile:e.dateProfile,date:m.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&p===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,moreCnt:h[p],moreMarginTop:f[p],singlePlacements:u[p],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:v(re,null,v(re,null,b),v(re,null,w)),bgContent:v(re,null,this.renderFillSegs(o[p],"highlight"),this.renderFillSegs(l[p],"non-business"),this.renderFillSegs(a[p],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!Ye(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,s,l,a){let{context:o}=this,{eventSelection:c}=this.props,{framePositions:u}=this.state,d=this.props.cells.length===1,h=s||l||a,f=[];if(u)for(let g of n){let{seg:m}=g,{instanceId:p}=m.eventRange.instance,b=g.isVisible&&!i[p],w=g.isAbsolute,D="",C="";w&&(o.isRtl?(C=0,D=u.lefts[m.lastCol]-u.lefts[m.firstCol]):(D=0,C=u.rights[m.firstCol]-u.rights[m.lastCol])),f.push(v("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:Pc(m),ref:h?null:this.segHarnessRefs.createRef(Hc(m)),style:{visibility:b?"":"hidden",marginTop:w?"":g.marginTop,top:w?g.absoluteTop:"",left:D,right:C}},Ic(m)?v(Nc,Object.assign({seg:m,isDragging:s,isSelected:p===c,defaultDisplayEventEnd:d},rt(m,r))):v(Oc,Object.assign({seg:m,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:p===c,defaultDisplayEventEnd:d},rt(m,r)))))}return f}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=r?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(v("div",{key:Zo(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?v(vc,Object.assign({seg:a},rt(a,i))):bc(n)))}return v(re,{},...l)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(c=>i.currentMap[c.key]);if(o.length){let c=this.rootElRef.current,u=new tn(c,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(u))&&this.setState({framePositions:new tn(c,o,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Lc.addStateEquality({segHeights:Ye});function Gm(t,e){if(!t.length)return[];let n=Ym(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function Ym(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class qm extends We{constructor(){super(...arguments),this.splitBusinessHourSegs=z($n),this.splitBgEventSegs=z($n),this.splitFgEventSegs=z($n),this.splitDateSelectionSegs=z($n),this.splitEventDrag=z(Xl),this.splitEventResize=z(Xl),this.rowRefs=new tt}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),c=this.splitEventResize(e.eventResize,r),u=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return v(ln,{unit:"day"},(d,h)=>v(re,null,e.cells.map((f,g)=>v(Lc,{ref:this.rowRefs.createRef(g),key:f.length?f[0].date.toISOString():g,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:i[g],eventSelection:e.eventSelection,bgEventSegs:s[g].filter(Qm),fgEventSegs:l[g],dateSelectionSegs:a[g],eventDrag:o[g],eventResize:c[g],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new tn(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new tn(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),l=i.topToIndex(n);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=be(r,1);return{start:r,end:i}}}function Qm(t){return t.eventRange.def.allDay}class Zm extends We{constructor(){super(...arguments),this.elRef=_e(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return v("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,v("tbody",{role:"presentation"},v(qm,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Xm(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function Xm(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Of(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Mn(e.currentDate)}"]`)),n}class Jm extends cc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Bc extends We{constructor(){super(...arguments),this.slicer=new Jm,this.tableRef=_e()}render(){let{props:e,context:n}=this;return v(Zm,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Km extends Nm{constructor(){super(...arguments),this.buildDayTableModel=z(ev),this.headerRef=_e(),this.tableRef=_e()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&v(lc,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=a=>v(Bc,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function ev(t,e){let n=new ac(t.renderRange,e);return new oc(n,/year|month|week/.test(t.currentRangeUnit))}class tv extends Bo{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return nv({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function nv(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=_l(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(be(n.end,-1))),a=Math.ceil(wf(l,i));i=_l(i,6-a)}return{start:r,end:i}}var rv=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';kr(rv);var iv=Qe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Km,dateProfileGeneratorClass:tv},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class sv extends vg{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?qh(e)?["timed","allDay"]:["allDay"]:["timed"]}}const lv=se({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function jc(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return v(ut.Consumer,null,n=>{if(!t.isLabeled)return v("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,l=i.slotLabelFormat==null?lv:Array.isArray(i.slotLabelFormat)?se(i.slotLabelFormat[0]):se(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return v(Ce,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:av,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},o=>v("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},v(o,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function av(t){return t.text}class ov extends ee{render(){return this.props.slatMetas.map(e=>v("tr",{key:e.key},v(jc,Object.assign({},e))))}}const cv=se({week:"short"}),uv=5;class dv extends We{constructor(){super(...arguments),this.allDaySplitter=new sv,this.headerElRef=_e(),this.rootElRef=_e(),this.scrollerElRef=_e(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,s=i.renderRange,a=At(s.start,s.end)===1?en(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?v(yc,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:cv},o=>v("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},v(o,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):v("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},v("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return v(Ce,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:fv,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>v("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},v(s,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:i,props:s}=this,l=[],a=Sr(i.options);return e&&l.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(l.push({type:"body",key:"all-day",chunk:{content:n}}),l.push({type:"body",key:"all-day-divider",outerContent:v("tr",{role:"presentation",className:"fc-scrollgrid-section"},v("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),v(mn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},v(Os,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,n,r,i,s,l,a){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{context:c,props:u}=this,d=!u.forPrint&&Sr(c.options),h=!u.forPrint&&pc(c.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>v("tr",{role:"presentation"},this.renderHeadAxis("day",m.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>v("tr",{role:"presentation"},this.renderTableRowAxis(m.rowSyncHeights[0]))},{key:"cols",content:n}]}),f.push({key:"all-day-divider",type:"body",outerContent:v("tr",{role:"presentation",className:"fc-scrollgrid-section"},v("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let g=c.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:"axis",content:m=>v("div",{className:"fc-timegrid-axis-chunk"},v("table",{"aria-hidden":!0,style:{height:m.expandRows?m.clientHeight:""}},m.tableColGroupNode,v("tbody",null,v(ov,{slatMetas:l}))),v("div",{className:"fc-timegrid-now-indicator-container"},v(ln,{unit:g?"minute":"day"},p=>{let b=g&&a&&a.safeComputeTop(p);return typeof b=="number"?v(Ns,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:p}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Bi},{key:"cols",content:Bi}]}),v(mn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},v(o,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:s}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=uv),{dayMaxEvents:e,dayMaxEventRows:n}}}function fv(t){return t.text}class hv{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(nt(n.currentRange,e)){let r=ie(e),i=e.valueOf()-r.valueOf();if(i>=Ue(n.slotMinTime)&&i<Ue(n.slotMaxTime))return this.computeTimeTop(K(i))}return null}computeDateTop(e,n){return n||(n=ie(e)),this.computeTimeTop(K(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-Ue(r.slotMinTime))/Ue(this.slotDuration),l,a;return s=Math.max(0,s),s=Math.min(i,s),l=Math.floor(s),l=Math.min(l,i-1),a=s-l,n.tops[l]+n.getHeight(l)*a}}class gv extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return v("tbody",null,e.slatMetas.map((s,l)=>{let a={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return v("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&v(jc,Object.assign({},s)),v(Ce,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!s.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":s.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class pv extends ee{constructor(){super(...arguments),this.rootElRef=_e(),this.slatElRefs=new tt}render(){let{props:e,context:n}=this;return v("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},v("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,v(gv,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new hv(new tn(this.rootElRef.current,mv(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function mv(t,e){return e.map(n=>t[n.key])}function cn(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function Jl(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class vv extends ee{render(){let{props:e}=this;return v(Sc,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Fc(e.hiddenSegs,e),defaultGenerator:bv,forceTimed:!0},n=>v(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function bv(t){return t.shortText}function yv(t,e,n){let r=new rc;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=Mg(i),l=Sv(r);return l=Cv(l,1),{segRects:Dv(l),hiddenGroups:s}}function Sv(t){const{entriesByLevel:e}=t,n=Bs((r,i)=>r+":"+i,(r,i)=>{let s=Av(t,r,i),l=Kl(s,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:l[0]}),a.thickness+l[1]]});return Kl(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Kl(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=t,s=r,l=[];for(;s<i;)l.push(e(n,s)),s+=1;return l.sort(Ev),[l.map(wv),l[0][1]]}function Ev(t,e){return e[1]-t[1]}function wv(t){return t[0]}function Av(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],l=r[e]+s.thickness,a=r.length,o=e;for(;o<a&&r[o]<l;o+=1);for(;o<a;o+=1){let c=i[o],u,d=Li(c,s.span.start,Hi),h=d[0]+d[1],f=h;for(;(u=c[f])&&u.span.start<s.span.end;)f+=1;if(h<f)return{level:o,lateralStart:h,lateralEnd:f}}return null}function Cv(t,e){const n=Bs((r,i,s)=>Pt(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:a}=r,o=a+s,c=a/o,u,d=[];if(!l.length)u=e;else for(let f of l)if(u===void 0){let g=n(f,i,o);u=g[0],d.push(g[1])}else{let g=n(f,u,0);d.push(g[1])}let h=(u-i)*c;return[u-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:d})]});return t.map(r=>n(r,0,0)[1])}function Dv(t){let e=[];const n=Bs((i,s,l)=>Pt(i),(i,s,l)=>{let a=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:l,stackForward:0});return e.push(a),a.stackForward=r(i.nextLevelNodes,s+i.thickness,l+1)+1});function r(i,s,l){let a=0;for(let o of i)a=Math.max(n(o,s,l),a);return a}return r(t,0,0),e}function Bs(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function ea(t,e,n=null,r=0){let i=[];if(n)for(let s=0;s<t.length;s+=1){let l=t[s],a=n.computeDateTop(l.start,e),o=Math.max(a+(r||0),n.computeDateTop(l.end,e));i.push({start:Math.round(a),end:Math.round(o)})}return i}function _v(t,e,n,r){let i=[],s=[];for(let c=0;c<t.length;c+=1){let u=e[c];u?i.push({index:c,thickness:1,span:u}):s.push(t[c])}let{segRects:l,hiddenGroups:a}=yv(i,n,r),o=[];for(let c of l)o.push({seg:t[c.index],rect:c});for(let c of s)o.push({seg:c,rect:null});return{segPlacements:o,hiddenGroups:a}}const Rv=se({hour:"numeric",minute:"2-digit",meridiem:!1});class Vc extends ee{render(){return v(mc,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Rv}))}}class Tv extends ee{constructor(){super(...arguments),this.sortEventSegs=z(Ds)}render(){let{props:e,context:n}=this,{options:r}=n,i=r.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return v(Ps,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},o=>v("div",{className:"fc-timegrid-col-frame"},v("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),v("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,l,!1,!1,!1)),v("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),v("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Hs(r)&&v(o,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:a}=this;return a.forPrint?Fc(e,a):this.renderPositionedFgSegs(e,n,r,i,s,l)}renderPositionedFgSegs(e,n,r,i,s,l){let{eventMaxStack:a,eventShortHeight:o,eventOrderStrict:c,eventMinHeight:u}=this.context.options,{date:d,slatCoords:h,eventSelection:f,todayRange:g,nowDate:m}=this.props,p=r||i||s,b=ea(e,d,h,u),{segPlacements:w,hiddenGroups:D}=_v(e,b,c,a);return v(re,null,this.renderHiddenGroups(D,e),w.map(C=>{let{seg:_,rect:S}=C,y=_.eventRange.instance.instanceId,A=p||!!(!n[y]&&S),H=si(S&&S.span),M=!p&&S?this.computeSegHStyle(S):{left:0,right:0},N=!!S&&S.stackForward>0,I=!!S&&S.span.end-S.span.start<o;return v("div",{className:"fc-timegrid-event-harness"+(N?" fc-timegrid-event-harness-inset":""),key:l||y,style:Object.assign(Object.assign({visibility:A?"":"hidden"},H),M)},v(Vc,Object.assign({seg:_,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:y===f,isShort:I},rt(_,g,m))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:c}=this.props;return v(re,null,e.map(u=>{let d=si(u.span),h=kv(u.entries,n);return v(vv,{key:Mo(Ec(h)),hiddenSegs:h,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:c})}))}renderFillSegs(e,n){let{props:r,context:i}=this,l=ea(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,o)=>{let c=e[o];return v("div",{key:Zo(c.eventRange),className:"fc-timegrid-bg-harness",style:si(a)},n==="bg-event"?v(vc,Object.assign({seg:c},rt(c,r.todayRange,r.nowDate))):bc(n))});return v(re,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>v(Ns,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,s=e.levelCoord,l=e.levelCoord+e.thickness,a,o;i&&(l=Math.min(1,s+(l-s)*2)),n?(a=1-l,o=s):(a=s,o=1-l);let c={zIndex:e.stackDepth+1,left:a*100+"%",right:o*100+"%"};return i&&!e.stackForward&&(c[n?"marginLeft":"marginRight"]=10*2),c}}function Fc(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return v(re,null,t.map(a=>{let o=a.eventRange.instance.instanceId;return v("div",{key:o,style:{visibility:l[o]?"hidden":""}},v(Vc,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},rt(a,e,n))))}))}function si(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function kv(t,e){return t.map(n=>e[n.index])}class Mv extends ee{constructor(){super(...arguments),this.splitFgEventSegs=z(cn),this.splitBgEventSegs=z(cn),this.splitBusinessHourSegs=z(cn),this.splitNowIndicatorSegs=z(cn),this.splitDateSelectionSegs=z(cn),this.splitEventDrag=z(Jl),this.splitEventResize=z(Jl),this.rootElRef=_e(),this.cellElRefs=new tt}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,i),l=this.splitBgEventSegs(e.bgEventSegs,i),a=this.splitBusinessHourSegs(e.businessHourSegs,i),o=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),c=this.splitDateSelectionSegs(e.dateSelectionSegs,i),u=this.splitEventDrag(e.eventDrag,i),d=this.splitEventResize(e.eventResize,i);return v("div",{className:"fc-timegrid-cols",ref:this.rootElRef},v("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,v("tbody",{role:"presentation"},v("tr",{role:"row"},e.axis&&v("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},v("div",{className:"fc-timegrid-col-frame"},v("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&v(Ns,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((h,f)=>v(Tv,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:e.dateProfile,date:h.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:s[f],bgEventSegs:l[f],businessHourSegs:a[f],nowIndicatorSegs:o[f],dateSelectionSegs:c[f],eventDrag:u[f],eventResize:d[f],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new tn(this.rootElRef.current,xv(this.cellElRefs.currentMap,e.cells),!0,!1))}}function xv(t,e){return e.map(n=>t[n.key])}class Iv extends We{constructor(){super(...arguments),this.processSlotOptions=z(Ov),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return v("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v(pv,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),v(Mv,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:i}=this.context,{colCoords:s}=this,{dateProfile:l}=this.props,{slatCoords:a}=this.state,{snapDuration:o,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),u=s.leftToIndex(e),d=a.positions.topToIndex(n);if(u!=null&&d!=null){let h=this.props.cells[u],f=a.positions.tops[d],g=a.positions.getHeight(d),m=(n-f)/g,p=Math.floor(m*c),b=d*c+p,w=this.props.cells[u].date,D=Ti(l.slotMinTime,bf(o,b)),C=r.add(w,D),_=r.add(C,o);return{dateProfile:l,dateSpan:Object.assign({range:{start:C,end:_},allDay:!1},h.extraDateSpan),dayEl:s.els[u],rect:{left:s.lefts[u],right:s.rights[u],top:f,bottom:f+g},layer:0}}return null}}function Ov(t,e){let n=e||t,r=ds(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class Nv extends cc{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Et(e,n[i]);s&&r.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:i})}return r}}class Pv extends We{constructor(){super(...arguments),this.buildDayRanges=z(Hv),this.slicer=new Nv,this.timeColsRef=_e()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:s,nextDayThreshold:l}=n.options,a=this.buildDayRanges(i,r,n.dateEnv);return v(ln,{unit:s?"minute":"day"},(o,c)=>v(Iv,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:o,nowIndicatorSegs:s&&this.slicer.sliceNowDate(o,r,l,n,a),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Hv(t,e,n){let r=[];for(let i of t.headerDates)r.push({start:n.add(i,e.slotMinTime),end:n.add(i,e.slotMaxTime)});return r}const ta=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Lv(t,e,n,r,i){let s=new Date(0),l=t,a=K(0),o=n||Bv(r),c=[];for(;Ue(l)<Ue(e);){let u=i.add(s,l),d=ds(a,o)!==null;c.push({date:u,time:l,key:u.toISOString(),isoTimeStr:Nf(u),isLabeled:d}),l=Ti(l,r),a=Ti(a,r)}return c}function Bv(t){let e,n,r;for(e=ta.length-1;e>=0;e-=1)if(n=K(ta[e]),r=ds(n,t),r!==null&&r>1)return n;return t}class jv extends dv{constructor(){super(...arguments),this.buildTimeColsModel=z(Vv),this.buildSlatMetas=z(Lv)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:s}=i,l=this.buildTimeColsModel(s,r),a=this.allDaySplitter.splitProps(i),o=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:c}=e,u=!c,d=c,h=e.dayHeaders&&v(lc,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),f=e.allDaySlot!==!1&&(m=>v(Bc,Object.assign({},a.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:m.tableMinWidth,colGroupNode:m.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:m.clientWidth,clientHeight:m.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),g=m=>v(Pv,Object.assign({},a.timed,{dayTableModel:l,dateProfile:s,axis:u,slotDuration:e.slotDuration,slatMetas:o,forPrint:i.forPrint,tableColGroupNode:m.tableColGroupNode,tableMinWidth:m.tableMinWidth,clientWidth:m.clientWidth,clientHeight:m.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:m.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(h,f,g,l.colCnt,c,o,this.state.slatCoords):this.renderSimpleLayout(h,f,g)}}function Vv(t,e){let n=new ac(t.renderRange,e);return new oc(n,!1)}var Fv='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';kr(Fv);const zv={allDaySlot:Boolean};var Uv=Qe({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:zv,views:{timeGrid:{component:jv,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Is.touchMouseIgnoreWait=500;let Vi=0,Er=0,Fi=!1;class zc{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=n=>{if(!this.shouldIgnoreMouse()&&$v(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Wv()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new Or,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Gv()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Yv()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Ee(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Fi=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Ee(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Vi||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Fi=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,l=0,a=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(l=i-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:l,deltaY:a}}}function $v(t){return t.button===0&&!t.ctrlKey}function Wv(){Vi+=1,setTimeout(()=>{Vi-=1},Is.touchMouseIgnoreWait)}function Gv(){Er+=1,Er===1&&window.addEventListener("touchmove",Uc,{passive:!1})}function Yv(){Er-=1,Er||window.removeEventListener("touchmove",Uc,{passive:!1})}function Uc(t){Fi&&t.preventDefault()}class qv{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,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-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,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",un(r,{left:i.left,top:i.top}),nf(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(os(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&un(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),un(n,{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(n)),n}}class $c extends Ms{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,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 Wc extends $c{constructor(e,n){super(new Tg(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return _g(this.scrollController.el)}}class Qv extends $c{constructor(e){super(new kg,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 na=typeof performance=="function"?performance.now:Date.now;class Zv{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.scrollX,this.pointerScreenY+window.scrollY);if(e){let n=na();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.scrollX,i=n-window.scrollY,s=this.pointerScreenY===null?0:i-this.pointerScreenY,l=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(na()))}}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,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,l=s*s/(i*i)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+l*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,c=a.right-e,u=n-a.top,d=a.bottom-n;o>=0&&c>=0&&u>=0&&d>=0&&(u<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"top",distance:u}),d<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"bottom",distance:d}),o<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:l,name:"left",distance:o}),c<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"right",distance:c}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new Qv(!1):new Wc(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class On extends Ig{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,rf(document.body),lf(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=i;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,sf(document.body),af(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new zc(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new qv,this.autoScroller=new Zv}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Xv{constructor(e){this.el=e,this.origRect=ks(e),this.scrollCaches=nc(e).map(n=>new Wc(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!Jv(i.getEventTarget())&&!hg(r,i.clientRect))return!1;return!0}}function Jv(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Hr{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,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 Or}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=ks(i),r=gg(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let a=ec(s,l.rect);a&&(r=pg(a))}this.coordAdjust=mg(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!Lr(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=lt(this.droppableStore,e=>(e.component.prepareHits(),new Xv(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let l in r){let a=r[l].component,o=i[l];if(o&&o.isWithinClipping(e,n)){let c=o.computeLeft(),u=o.computeTop(),d=e-c,h=n-u,{origRect:f}=o,g=f.right-f.left,m=f.bottom-f.top;if(d>=0&&d<g&&h>=0&&h<m){let p=a.queryHit(d,h,g,m);p&&xr(p.dateProfile.activeRange,p.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(d+c-window.scrollX,h+u-window.scrollY)))&&(!s||p.layer>s.layer)&&(p.componentId=l,p.context=a.context,p.rect.left+=c,p.rect.right+=c,p.rect.top+=u,p.rect.bottom+=u,s=p)}}}return s}}function Lr(t,e){return!t&&!e?!0:!!t!=!!e?!1:rg(t.dateSpan,e.dateSpan)}function Gc(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,Kv(t,e.dateEnv)),n}function Kv(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class eb extends sn{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&Lr(l,a)){let{context:o}=i,c=Object.assign(Object.assign({},Gc(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",c)}}},this.dragging=new On(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Hr(this.dragging,Rs(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class tb extends sn{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:c}=a.context,u=c.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!u),o.delay=l.isTouch?nb(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,c=null,u=!1;if(l){let d=this.hitDragging.initialHit;l.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,l)||(c=rb(d,l,o.pluginHooks.dateSelectionTransformers)),(!c||!Bg(c,l.dateProfile,o))&&(u=!0,c=null)}c?o.dispatch({type:"SELECT_DATES",selection:c}):a||o.dispatch({type:"UNSELECT_DATES"}),u?cs():us(),a||(this.dragSelection=c)},this.handlePointerUp=l=>{this.dragSelection&&(Yo(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new On(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Hr(this.dragging,Rs(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function nb(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function rb(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(ff);let l={};for(let a of n){let o=a(t,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class Nn extends sn{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let a=l.origEvent.target,{component:o,dragging:c}=this,{mirror:u}=c,{options:d}=o.context,h=o.context;this.subjectEl=l.subjectEl;let f=this.subjectSeg=Kt(l.subjectEl),m=(this.eventRange=f.eventRange).instance.instanceId;this.relevantEvents=Es(h.getCurrentData().eventStore,m),c.minDistance=l.isTouch?0:d.eventDragMinDistance,c.delay=l.isTouch&&m!==o.props.eventSelection?sb(o):null,d.fixedMirrorParent?u.parentNode=d.fixedMirrorParent:u.parentNode=Ee(a,".fc"),u.revertDuration=d.dragRevertDuration;let p=o.isValidSegDownEl(a)&&!Ee(a,".fc-event-resizer");c.setIgnoreMove(!p),this.isDragging=p&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,c=o.instance.instanceId;l.isTouch?c!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new oe(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,c=this.hitDragging.initialHit,u=this.component.context,d=null,h=null,f=null,g=!1,m={affectedEvents:o,mutatedEvents:Le(),isEvent:!0};if(l){d=l.context;let p=d.options;u===d||p.editable&&p.droppable?(h=ib(c,l,this.eventRange.instance.range.start,d.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(f=Cs(o,d.getCurrentData().eventUiBases,h,d),m.mutatedEvents=f,uc(m,l.dateProfile,d)||(g=!0,h=null,f=null,m.mutatedEvents=Le()))):d=null}this.displayDrag(d,m),g?cs():us(),a||(u===d&&Lr(c,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=d,this.validMutation=h,this.mutatedRelevantEvents=f)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:c,validMutation:u}=this,d=this.eventRange.def,h=this.eventRange.instance,f=new oe(a,d,h),g=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:p}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:f,jsEvent:l.origEvent,view:o}),u){if(c===a){let b=new oe(a,m.defs[d.defId],h?m.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:m});let w={oldEvent:f,event:b,relatedEvents:Nt(m,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}},D={};for(let C of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(D,C(u,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},w),D),{el:l.subjectEl,delta:u.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",w)}else if(c){let b={event:f,relatedEvents:Nt(g,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:g}),a.emitter.trigger("eventRemove",b);let w=m.defs[d.defId],D=m.instances[h.instanceId],C=new oe(c,w,D);c.dispatch({type:"MERGE_EVENTS",eventStore:m});let _={event:C,relatedEvents:Nt(m,c,D),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};c.emitter.trigger("eventAdd",_),l.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},Gc(p.dateSpan,c)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:p.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},_),{draggedEl:l.subjectEl,view:p.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new On(e.el);i.pointer.selector=Nn.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Hr(this.dragging,Pi);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,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Le(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&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}}Nn.SELECTOR=".fc-event-draggable, .fc-event-resizable";function ib(t,e,n,r){let i=t.dateSpan,s=e.dateSpan,l=i.range.start,a=s.range.start,o={};i.allDay!==s.allDay&&(o.allDay=s.allDay,o.hasEnd=e.context.options.allDayMaintainDuration,s.allDay?l=ie(n):l=n);let c=Wt(l,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(o.allDay=!1);let u={datesDelta:c,standardProps:o};for(let d of r)d(u,t,e);return u}function sb(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class lb extends sn{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,a=this.querySegEl(s),o=Kt(a),c=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=Es(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=Kt(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new oe(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,c=this.relevantEvents,u=this.hitDragging.initialHit,d=this.eventRange.instance,h=null,f=null,g=!1,m={affectedEvents:c,mutatedEvents:Le(),isEvent:!0};s&&(s.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,s)||(h=ab(u,s,a.subjectEl.classList.contains("fc-event-resizer-start"),d.range))),h&&(f=Cs(c,o.getCurrentData().eventUiBases,h,o),m.mutatedEvents=f,uc(m,s.dateProfile,o)||(g=!0,h=null,f=null,m.mutatedEvents=null)),f?o.dispatch({type:"SET_EVENT_RESIZE",state:m}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),g?cs():us(),l||(h&&Lr(u,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,c=new oe(l,a,o),u=this.relevantEvents,d=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new oe(l,d.defs[a.defId],o?d.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:d});let f={oldEvent:c,event:h,relatedEvents:Nt(d,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:u})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||K(0),endDelta:this.validMutation.endDelta||K(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",f)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new On(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Hr(this.dragging,Rs(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Ee(e.subjectEl,".fc-event")}}function ab(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=Wt(s,l,i,t.largeUnit);if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}class ob{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=Do(r.origEvent);this.matchesCancel=!!Ee(s,i),this.matchesEvent=!!Ee(s,Nn.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,l=i.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=i.options.unselectAuto;a&&(!a||!this.matchesCancel)&&i.calendarApi.unselect(r)}l.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new zc(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const cb={fixedMirrorParent:E},ub={dateClick:E,eventDragStart:E,eventDragStop:E,eventDrop:E,eventResizeStart:E,eventResizeStop:E,eventResize:E,drop:E,eventReceive:E,eventLeave:E};Is.dataAttrPrefix="";var db=Qe({name:"@fullcalendar/interaction",componentInteractions:[eb,tb,Nn,lb],calendarInteractions:[ob],elementDraggingImpl:On,optionRefiners:cb,listenerRefiners:ub});class fb extends ee{constructor(){super(...arguments),this.state={textId:vt()}}render(){let{theme:e,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:s,dayDate:l,todayRange:a}=this.props,{textId:o}=this.state,c=Ts(l,a),u=r.listDayFormat?n.format(l,r.listDayFormat):"",d=r.listDaySideFormat?n.format(l,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(l),view:i,textId:o,text:u,sideText:d,navLinkAttrs:en(this.context,l),sideNavLinkAttrs:en(this.context,l,"day",!1)},c);return v(Ce,{elTag:"tr",elClasses:["fc-list-day",...Nr(c,e)],elAttrs:{"data-date":Mn(l)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:hb,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},f=>v("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},v(f,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function hb(t){return v(re,null,t.text&&v("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&v("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const gb=se({hour:"numeric",minute:"2-digit",meridiem:"short"});class pb extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=r.eventTimeFormat||gb;return v(Pr,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>mb(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,u)=>v(re,null,vb(i,o,n,s,a),v("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},v("span",{className:"fc-list-event-dot",style:{borderColor:u.borderColor||u.backgroundColor}})),v(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${a}`}})))}}function mb(t,e){let n=_s(t,e);return v("a",Object.assign({},n),t.eventRange.def.title)}function vb(t,e,n,r,i){let{options:s}=n;if(s.displayEventTime!==!1){let l=t.eventRange.def,a=t.eventRange.instance,o=!1,c;if(l.allDay?o=!0:yh(t.eventRange.range)?t.isStart?c=hn(t,e,n,null,null,a.range.start,t.end):t.isEnd?c=hn(t,e,n,null,null,t.start,a.range.end):o=!0:c=hn(t,e,n),o){let u={text:n.options.allDayText,view:n.viewApi};return v(Ce,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:u,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:bb,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return v("td",{className:"fc-list-event-time"},c)}return null}function bb(t){return t.text}class yb extends We{constructor(){super(...arguments),this.computeDateVars=z(Eb),this.eventStoreToSegs=z(this._eventStoreToSegs),this.state={timeHeaderId:vt(),eventHeaderId:vt(),dateHeaderIdRoot:vt()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return v(mn,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},v(hc,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,r={text:e.noEventsText,view:n};return v(Ce,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:Sb,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},i=>v(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:r,options:i}=this.context,{timeHeaderId:s,eventHeaderId:l,dateHeaderIdRoot:a}=this.state,o=wb(e);return v(ln,{unit:"day"},(c,u)=>{let d=[];for(let h=0;h<o.length;h+=1){let f=o[h];if(f){let g=Mn(n[h]),m=a+"-"+g;d.push(v(fb,{key:g,cellId:m,dayDate:n[h],todayRange:u})),f=Ds(f,i.eventOrder);for(let p of f)d.push(v(pb,Object.assign({key:g+":"+p.eventRange.instance.instanceId,seg:p,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:l,dateHeaderId:m},rt(p,u,c))))}}return v("table",{className:"fc-list-table "+r.getClass("table")},v("thead",null,v("tr",null,v("th",{scope:"col",id:s},i.timeHint),v("th",{scope:"col","aria-hidden":!0}),v("th",{scope:"col",id:l},i.eventHint))),v("tbody",null,d))})}_eventStoreToSegs(e,n,r){return this.eventRangesToSegs(Ni(e,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(e,n){let r=[];for(let i of e)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(e,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,s=e.range,l=e.def.allDay,a,o,c,u=[];for(a=0;a<n.length;a+=1)if(o=Et(s,n[a]),o&&(c={component:this,eventRange:e,start:o.start,end:o.end,isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf(),dayIndex:a},u.push(c),!c.isEnd&&!l&&a+1<n.length&&s.end<r.add(n[a+1].start,i))){c.end=s.end,c.isEnd=!0;break}return u}}function Sb(t){return t.text}function Eb(t){let e=ie(t.renderRange.start),n=t.renderRange.end,r=[],i=[];for(;e<n;)r.push(e),i.push({start:e,end:be(e,1)}),e=be(e,1);return{dayDates:r,dayRanges:i}}function wb(t){let e=[],n,r;for(n=0;n<t.length;n+=1)r=t[n],(e[r.dayIndex]||(e[r.dayIndex]=[])).push(r);return e}var Ab=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';kr(Ab);const Cb={listDayFormat:ra,listDaySideFormat:ra,noEventsClassNames:E,noEventsContent:E,noEventsDidMount:E,noEventsWillUnmount:E};function ra(t){return t===!1?null:se(t)}var Db=Qe({name:"@fullcalendar/list",optionRefiners:Cb,views:{list:{component:yb,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}),_b={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"};function Rb(t){return Gu()?(Yu(t),!0):!1}function Tb(t){return typeof t=="function"?t():V(t)}const kb=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mb=()=>{};function xb(t){return xa()}function Ib(t,e=!0,n){xb()?Yi(t,n):e?t():Ma(t)}function Pn(t,e,n){let r;qu(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:s=void 0,shallow:l=!0,onError:a=Mb}=r,o=ne(!i),c=l?Ne(e):ne(e);let u=0;return Qu(async d=>{if(!o.value)return;u++;const h=u;let f=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const g=await t(m=>{d(()=>{s&&(s.value=!1),f||m()})});h===u&&(c.value=g)}catch(g){a(g)}finally{s&&h===u&&(s.value=!1),f=!0}}),i?F(()=>(o.value=!0,c.value)):c}function Gt(t){var e;const n=Tb(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Yc=kb?window:void 0;function Ob(){const t=ne(!1),e=xa();return e&&Yi(()=>{t.value=!0},e),t}function Nb(t){const e=Ob();return F(()=>(e.value,!!t()))}function Pb(t,e,n={}){const{window:r=Yc,...i}=n;let s;const l=Nb(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},o=F(()=>Array.isArray(t)?t.map(d=>Gt(d)):[Gt(t)]),c=jt(o,d=>{if(a(),l.value&&r){s=new ResizeObserver(e);for(const h of d)h&&s.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Rb(u),{isSupported:l,stop:u}}function YS(t,e={width:0,height:0},n={}){const{window:r=Yc,box:i="content-box"}=n,s=F(()=>{var d,h;return(h=(d=Gt(t))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),l=ne(e.width),a=ne(e.height),{stop:o}=Pb(t,([d])=>{const h=i==="border-box"?d.borderBoxSize:i==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&s.value){const f=Gt(t);if(f){const g=f.getBoundingClientRect();l.value=g.width,a.value=g.height}}else if(h){const f=Array.isArray(h)?h:[h];l.value=f.reduce((g,{inlineSize:m})=>g+m,0),a.value=f.reduce((g,{blockSize:m})=>g+m,0)}else l.value=d.contentRect.width,a.value=d.contentRect.height},n);Ib(()=>{const d=Gt(t);d&&(l.value="offsetWidth"in d?d.offsetWidth:e.width,a.value="offsetHeight"in d?d.offsetHeight:e.height)});const c=jt(()=>Gt(t),d=>{l.value=d?e.width:0,a.value=d?e.height:0});function u(){o(),c()}return{width:l,height:a,stop:u}}function Hb(t){const e=Ia({});return jt(t,()=>{for(const n of Object.keys(t))n.startsWith("_c_")&&(e[n]=t[n]);for(const n of Object.keys(e))t[n]===void 0&&delete e[n]},{immediate:!0}),e}const Xt=(t,e=0,n=1)=>Vs(Fs(e,t),n),js=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=Xt(t[e],0,255)):e===3&&(t[e]=Xt(t[e],0,1));return t},qc={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])qc[`[object ${t}]`]=t.toLowerCase();function X(t){return qc[Object.prototype.toString.call(t)]||"object"}const J=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):X(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0],Br=t=>{if(t.length<2)return null;const e=t.length-1;return X(t[e])=="string"?t[e].toLowerCase():null},{PI:jr,min:Vs,max:Fs}=Math,Je=jr*2,li=jr/3,Lb=jr/180,Bb=180/jr,q={format:{},autodetect:[]};class k{constructor(...e){const n=this;if(X(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=Br(e),i=!1;if(!r){i=!0,q.sorted||(q.autodetect=q.autodetect.sort((s,l)=>l.p-s.p),q.sorted=!0);for(let s of q.autodetect)if(r=s.test(...e),r)break}if(q.format[r]){const s=q.format[r].apply(null,i?e:e.slice(0,-1));n._rgb=js(s)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return X(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const jb="2.6.0",Q=(...t)=>new Q.Color(...t);Q.Color=k;Q.version=jb;const Vb=(...t)=>{t=J(t,"cmyk");const[e,n,r,i]=t,s=t.length>4?t[4]:1;return i===1?[0,0,0,s]:[e>=1?0:255*(1-e)*(1-i),n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),s]},{max:ia}=Math,Fb=(...t)=>{let[e,n,r]=J(t,"rgb");e=e/255,n=n/255,r=r/255;const i=1-ia(e,ia(n,r)),s=i<1?1/(1-i):0,l=(1-e-i)*s,a=(1-n-i)*s,o=(1-r-i)*s;return[l,a,o,i]};k.prototype.cmyk=function(){return Fb(this._rgb)};Q.cmyk=(...t)=>new k(...t,"cmyk");q.format.cmyk=Vb;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"cmyk"),X(t)==="array"&&t.length===4)return"cmyk"}});const ai=t=>Math.round(t*100)/100,zb=(...t)=>{const e=J(t,"hsla");let n=Br(t)||"lsa";return e[0]=ai(e[0]||0),e[1]=ai(e[1]*100)+"%",e[2]=ai(e[2]*100)+"%",n==="hsla"||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,n="hsla"):e.length=3,`${n}(${e.join(",")})`},Qc=(...t)=>{t=J(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const i=Vs(e,n,r),s=Fs(e,n,r),l=(s+i)/2;let a,o;return s===i?(a=0,o=Number.NaN):a=l<.5?(s-i)/(s+i):(s-i)/(2-s-i),e==s?o=(n-r)/(s-i):n==s?o=2+(r-e)/(s-i):r==s&&(o=4+(e-n)/(s-i)),o*=60,o<0&&(o+=360),t.length>3&&t[3]!==void 0?[o,a,l,t[3]]:[o,a,l]},{round:oi}=Math,Ub=(...t)=>{const e=J(t,"rgba");let n=Br(t)||"rgb";return n.substr(0,3)=="hsl"?zb(Qc(e),n):(e[0]=oi(e[0]),e[1]=oi(e[1]),e[2]=oi(e[2]),(n==="rgba"||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,n="rgba"),`${n}(${e.slice(0,n==="rgb"?3:4).join(",")})`)},{round:ci}=Math,zi=(...t)=>{t=J(t,"hsl");const[e,n,r]=t;let i,s,l;if(n===0)i=s=l=r*255;else{const a=[0,0,0],o=[0,0,0],c=r<.5?r*(1+n):r+n-r*n,u=2*r-c,d=e/360;a[0]=d+1/3,a[1]=d,a[2]=d-1/3;for(let h=0;h<3;h++)a[h]<0&&(a[h]+=1),a[h]>1&&(a[h]-=1),6*a[h]<1?o[h]=u+(c-u)*6*a[h]:2*a[h]<1?o[h]=c:3*a[h]<2?o[h]=u+(c-u)*(2/3-a[h])*6:o[h]=u;[i,s,l]=[ci(o[0]*255),ci(o[1]*255),ci(o[2]*255)]}return t.length>3?[i,s,l,t[3]]:[i,s,l,1]},Zc=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Xc=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Jc=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Kc=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,eu=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,tu=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:sa}=Math,zs=t=>{t=t.toLowerCase().trim();let e;if(q.format.named)try{return q.format.named(t)}catch{}if(e=t.match(Zc)){const n=e.slice(1,4);for(let r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(e=t.match(Xc)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+n[r];return n}if(e=t.match(Jc)){const n=e.slice(1,4);for(let r=0;r<3;r++)n[r]=sa(n[r]*2.55);return n[3]=1,n}if(e=t.match(Kc)){const n=e.slice(1,5);for(let r=0;r<3;r++)n[r]=sa(n[r]*2.55);return n[3]=+n[3],n}if(e=t.match(eu)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=zi(n);return r[3]=1,r}if(e=t.match(tu)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=zi(n);return r[3]=+e[4],r}};zs.test=t=>Zc.test(t)||Xc.test(t)||Jc.test(t)||Kc.test(t)||eu.test(t)||tu.test(t);k.prototype.css=function(t){return Ub(this._rgb,t)};Q.css=(...t)=>new k(...t,"css");q.format.css=zs;q.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&zs.test(t))return"css"}});q.format.gl=(...t)=>{const e=J(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};Q.gl=(...t)=>new k(...t,"gl");k.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};const{floor:$b}=Math,Wb=(...t)=>{t=J(t,"hcg");let[e,n,r]=t,i,s,l;r=r*255;const a=n*255;if(n===0)i=s=l=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const o=$b(e),c=e-o,u=r*(1-n),d=u+a*(1-c),h=u+a*c,f=u+a;switch(o){case 0:[i,s,l]=[f,h,u];break;case 1:[i,s,l]=[d,f,u];break;case 2:[i,s,l]=[u,f,h];break;case 3:[i,s,l]=[u,d,f];break;case 4:[i,s,l]=[h,u,f];break;case 5:[i,s,l]=[f,u,d];break}}return[i,s,l,t.length>3?t[3]:1]},Gb=(...t)=>{const[e,n,r]=J(t,"rgb"),i=Vs(e,n,r),s=Fs(e,n,r),l=s-i,a=l*100/255,o=i/(255-l)*100;let c;return l===0?c=Number.NaN:(e===s&&(c=(n-r)/l),n===s&&(c=2+(r-e)/l),r===s&&(c=4+(e-n)/l),c*=60,c<0&&(c+=360)),[c,a,o]};k.prototype.hcg=function(){return Gb(this._rgb)};Q.hcg=(...t)=>new k(...t,"hcg");q.format.hcg=Wb;q.autodetect.push({p:1,test:(...t)=>{if(t=J(t,"hcg"),X(t)==="array"&&t.length===3)return"hcg"}});const Yb=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,qb=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,nu=t=>{if(t.match(Yb)){(t.length===4||t.length===7)&&(t=t.substr(1)),t.length===3&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const e=parseInt(t,16),n=e>>16,r=e>>8&255,i=e&255;return[n,r,i,1]}if(t.match(qb)){(t.length===5||t.length===9)&&(t=t.substr(1)),t.length===4&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=parseInt(t,16),n=e>>24&255,r=e>>16&255,i=e>>8&255,s=Math.round((e&255)/255*100)/100;return[n,r,i,s]}throw new Error(`unknown hex color: ${t}`)},{round:Gn}=Math,ru=(...t)=>{let[e,n,r,i]=J(t,"rgba"),s=Br(t)||"auto";i===void 0&&(i=1),s==="auto"&&(s=i<1?"rgba":"rgb"),e=Gn(e),n=Gn(n),r=Gn(r);let a="000000"+(e<<16|n<<8|r).toString(16);a=a.substr(a.length-6);let o="0"+Gn(i*255).toString(16);switch(o=o.substr(o.length-2),s.toLowerCase()){case"rgba":return`#${a}${o}`;case"argb":return`#${o}${a}`;default:return`#${a}`}};k.prototype.hex=function(t){return ru(this._rgb,t)};Q.hex=(...t)=>new k(...t,"hex");q.format.hex=nu;q.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{cos:zt}=Math,Qb=(...t)=>{t=J(t,"hsi");let[e,n,r]=t,i,s,l;return isNaN(e)&&(e=0),isNaN(n)&&(n=0),e>360&&(e-=360),e<0&&(e+=360),e/=360,e<1/3?(l=(1-n)/3,i=(1+n*zt(Je*e)/zt(li-Je*e))/3,s=1-(l+i)):e<2/3?(e-=1/3,i=(1-n)/3,s=(1+n*zt(Je*e)/zt(li-Je*e))/3,l=1-(i+s)):(e-=2/3,s=(1-n)/3,l=(1+n*zt(Je*e)/zt(li-Je*e))/3,i=1-(s+l)),i=Xt(r*i*3),s=Xt(r*s*3),l=Xt(r*l*3),[i*255,s*255,l*255,t.length>3?t[3]:1]},{min:Zb,sqrt:Xb,acos:Jb}=Math,Kb=(...t)=>{let[e,n,r]=J(t,"rgb");e/=255,n/=255,r/=255;let i;const s=Zb(e,n,r),l=(e+n+r)/3,a=l>0?1-s/l:0;return a===0?i=NaN:(i=(e-n+(e-r))/2,i/=Xb((e-n)*(e-n)+(e-r)*(n-r)),i=Jb(i),r>n&&(i=Je-i),i/=Je),[i*360,a,l]};k.prototype.hsi=function(){return Kb(this._rgb)};Q.hsi=(...t)=>new k(...t,"hsi");q.format.hsi=Qb;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsi"),X(t)==="array"&&t.length===3)return"hsi"}});k.prototype.hsl=function(){return Qc(this._rgb)};Q.hsl=(...t)=>new k(...t,"hsl");q.format.hsl=zi;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsl"),X(t)==="array"&&t.length===3)return"hsl"}});const{floor:ey}=Math,ty=(...t)=>{t=J(t,"hsv");let[e,n,r]=t,i,s,l;if(r*=255,n===0)i=s=l=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const a=ey(e),o=e-a,c=r*(1-n),u=r*(1-n*o),d=r*(1-n*(1-o));switch(a){case 0:[i,s,l]=[r,d,c];break;case 1:[i,s,l]=[u,r,c];break;case 2:[i,s,l]=[c,r,d];break;case 3:[i,s,l]=[c,u,r];break;case 4:[i,s,l]=[d,c,r];break;case 5:[i,s,l]=[r,c,u];break}}return[i,s,l,t.length>3?t[3]:1]},{min:ny,max:ry}=Math,iy=(...t)=>{t=J(t,"rgb");let[e,n,r]=t;const i=ny(e,n,r),s=ry(e,n,r),l=s-i;let a,o,c;return c=s/255,s===0?(a=Number.NaN,o=0):(o=l/s,e===s&&(a=(n-r)/l),n===s&&(a=2+(r-e)/l),r===s&&(a=4+(e-n)/l),a*=60,a<0&&(a+=360)),[a,o,c]};k.prototype.hsv=function(){return iy(this._rgb)};Q.hsv=(...t)=>new k(...t,"hsv");q.format.hsv=ty;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsv"),X(t)==="array"&&t.length===3)return"hsv"}});const Ie={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},{pow:sy}=Math,iu=(...t)=>{t=J(t,"lab");const[e,n,r]=t;let i,s,l,a,o,c;return s=(e+16)/116,i=isNaN(n)?s:s+n/500,l=isNaN(r)?s:s-r/200,s=Ie.Yn*di(s),i=Ie.Xn*di(i),l=Ie.Zn*di(l),a=ui(3.2404542*i-1.5371385*s-.4985314*l),o=ui(-.969266*i+1.8760108*s+.041556*l),c=ui(.0556434*i-.2040259*s+1.0572252*l),[a,o,c,t.length>3?t[3]:1]},ui=t=>255*(t<=.00304?12.92*t:1.055*sy(t,1/2.4)-.055),di=t=>t>Ie.t1?t*t*t:Ie.t2*(t-Ie.t0),{pow:su}=Math,lu=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=ly(e,n,r),a=116*s-16;return[a<0?0:a,500*(i-s),200*(s-l)]},fi=t=>(t/=255)<=.04045?t/12.92:su((t+.055)/1.055,2.4),hi=t=>t>Ie.t3?su(t,1/3):t/Ie.t2+Ie.t0,ly=(t,e,n)=>{t=fi(t),e=fi(e),n=fi(n);const r=hi((.4124564*t+.3575761*e+.1804375*n)/Ie.Xn),i=hi((.2126729*t+.7151522*e+.072175*n)/Ie.Yn),s=hi((.0193339*t+.119192*e+.9503041*n)/Ie.Zn);return[r,i,s]};k.prototype.lab=function(){return lu(this._rgb)};Q.lab=(...t)=>new k(...t,"lab");q.format.lab=iu;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"lab"),X(t)==="array"&&t.length===3)return"lab"}});const{sin:ay,cos:oy}=Math,au=(...t)=>{let[e,n,r]=J(t,"lch");return isNaN(r)&&(r=0),r=r*Lb,[e,oy(r)*n,ay(r)*n]},ou=(...t)=>{t=J(t,"lch");const[e,n,r]=t,[i,s,l]=au(e,n,r),[a,o,c]=iu(i,s,l);return[a,o,c,t.length>3?t[3]:1]},cy=(...t)=>{const e=J(t,"hcl").reverse();return ou(...e)},{sqrt:uy,atan2:dy,round:fy}=Math,cu=(...t)=>{const[e,n,r]=J(t,"lab"),i=uy(n*n+r*r);let s=(dy(r,n)*Bb+360)%360;return fy(i*1e4)===0&&(s=Number.NaN),[e,i,s]},uu=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=lu(e,n,r);return cu(i,s,l)};k.prototype.lch=function(){return uu(this._rgb)};k.prototype.hcl=function(){return uu(this._rgb).reverse()};Q.lch=(...t)=>new k(...t,"lch");Q.hcl=(...t)=>new k(...t,"hcl");q.format.lch=ou;q.format.hcl=cy;["lch","hcl"].forEach(t=>q.autodetect.push({p:2,test:(...e)=>{if(e=J(e,t),X(e)==="array"&&e.length===3)return t}}));const nn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};k.prototype.name=function(){const t=ru(this._rgb,"rgb");for(let e of Object.keys(nn))if(nn[e]===t)return e.toLowerCase();return t};q.format.named=t=>{if(t=t.toLowerCase(),nn[t])return nu(nn[t]);throw new Error("unknown color name: "+t)};q.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&nn[t.toLowerCase()])return"named"}});const hy=t=>{if(X(t)=="number"&&t>=0&&t<=16777215){const e=t>>16,n=t>>8&255,r=t&255;return[e,n,r,1]}throw new Error("unknown num color: "+t)},gy=(...t)=>{const[e,n,r]=J(t,"rgb");return(e<<16)+(n<<8)+r};k.prototype.num=function(){return gy(this._rgb)};Q.num=(...t)=>new k(...t,"num");q.format.num=hy;q.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&X(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const{round:du}=Math;k.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(du)};k.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:du(e):e)};Q.rgb=(...t)=>new k(...t,"rgb");q.format.rgb=(...t)=>{const e=J(t,"rgba");return e[3]===void 0&&(e[3]=1),e};q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"rgba"),X(t)==="array"&&(t.length===3||t.length===4&&X(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const{log:Yn}=Math,fu=t=>{const e=t/100;let n,r,i;return e<66?(n=255,r=e<6?0:-155.25485562709179-.44596950469579133*(r=e-2)+104.49216199393888*Yn(r),i=e<20?0:-254.76935184120902+.8274096064007395*(i=e-10)+115.67994401066147*Yn(i)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*Yn(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*Yn(r),i=255),[n,r,i,1]},{round:py}=Math,my=(...t)=>{const e=J(t,"rgb"),n=e[0],r=e[2];let i=1e3,s=4e4;const l=.4;let a;for(;s-i>l;){a=(s+i)*.5;const o=fu(a);o[2]/o[0]>=r/n?s=a:i=a}return py(a)};k.prototype.temp=k.prototype.kelvin=k.prototype.temperature=function(){return my(this._rgb)};Q.temp=Q.kelvin=Q.temperature=(...t)=>new k(...t,"temp");q.format.temp=q.format.kelvin=q.format.temperature=fu;const{pow:tr,sign:vy}=Math,hu=(...t)=>{t=J(t,"lab");const[e,n,r]=t,i=tr(e+.3963377774*n+.2158037573*r,3),s=tr(e-.1055613458*n-.0638541728*r,3),l=tr(e-.0894841775*n-1.291485548*r,3);return[255*gi(4.0767416621*i-3.3077115913*s+.2309699292*l),255*gi(-1.2684380046*i+2.6097574011*s-.3413193965*l),255*gi(-.0041960863*i-.7034186147*s+1.707614701*l),t.length>3?t[3]:1]};function gi(t){const e=Math.abs(t);return e>.0031308?(vy(t)||1)*(1.055*tr(e,1/2.4)-.055):t*12.92}const{cbrt:pi,pow:by,sign:yy}=Math,gu=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=[mi(e/255),mi(n/255),mi(r/255)],a=pi(.4122214708*i+.5363325363*s+.0514459929*l),o=pi(.2119034982*i+.6806995451*s+.1073969566*l),c=pi(.0883024619*i+.2817188376*s+.6299787005*l);return[.2104542553*a+.793617785*o-.0040720468*c,1.9779984951*a-2.428592205*o+.4505937099*c,.0259040371*a+.7827717662*o-.808675766*c]};function mi(t){const e=Math.abs(t);return e<.04045?t/12.92:(yy(t)||1)*by((e+.055)/1.055,2.4)}k.prototype.oklab=function(){return gu(this._rgb)};Q.oklab=(...t)=>new k(...t,"oklab");q.format.oklab=hu;q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"oklab"),X(t)==="array"&&t.length===3)return"oklab"}});const Sy=(...t)=>{t=J(t,"lch");const[e,n,r]=t,[i,s,l]=au(e,n,r),[a,o,c]=hu(i,s,l);return[a,o,c,t.length>3?t[3]:1]},Ey=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=gu(e,n,r);return cu(i,s,l)};k.prototype.oklch=function(){return Ey(this._rgb)};Q.oklch=(...t)=>new k(...t,"oklch");q.format.oklch=Sy;q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"oklch"),X(t)==="array"&&t.length===3)return"oklch"}});k.prototype.alpha=function(t,e=!1){return t!==void 0&&X(t)==="number"?e?(this._rgb[3]=t,this):new k([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]};k.prototype.clipped=function(){return this._rgb._clipped||!1};k.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=Ie.Kn*t,new k(n,"lab").alpha(e.alpha(),!0)};k.prototype.brighten=function(t=1){return this.darken(-t)};k.prototype.darker=k.prototype.darken;k.prototype.brighter=k.prototype.brighten;k.prototype.get=function(t){const[e,n]=t.split("."),r=this[e]();if(n){const i=e.indexOf(n)-(e.substr(0,2)==="ok"?2:0);if(i>-1)return r[i];throw new Error(`unknown channel ${n} in mode ${e}`)}else return r};const{pow:wy}=Math,Ay=1e-7,Cy=20;k.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&X(t)==="number"){if(t===0)return new k([0,0,0,this._rgb[3]],"rgb");if(t===1)return new k([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=Cy;const i=(l,a)=>{const o=l.interpolate(a,.5,e),c=o.luminance();return Math.abs(t-c)<Ay||!r--?o:c>t?i(l,o):i(o,a)},s=(n>t?i(new k([0,0,0]),this):i(this,new k([255,255,255]))).rgb();return new k([...s,this._rgb[3]])}return Dy(...this._rgb.slice(0,3))};const Dy=(t,e,n)=>(t=vi(t),e=vi(e),n=vi(n),.2126*t+.7152*e+.0722*n),vi=t=>(t/=255,t<=.03928?t/12.92:wy((t+.055)/1.055,2.4)),we={},bn=(t,e,n=.5,...r)=>{let i=r[0]||"lrgb";if(!we[i]&&!r.length&&(i=Object.keys(we)[0]),!we[i])throw new Error(`interpolation mode ${i} is not defined`);return X(t)!=="object"&&(t=new k(t)),X(e)!=="object"&&(e=new k(e)),we[i](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};k.prototype.mix=k.prototype.interpolate=function(t,e=.5,...n){return bn(this,t,e,...n)};k.prototype.premultiply=function(t=!1){const e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new k([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};k.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=Ie.Kn*t,n[1]<0&&(n[1]=0),new k(n,"lch").alpha(e.alpha(),!0)};k.prototype.desaturate=function(t=1){return this.saturate(-t)};k.prototype.set=function(t,e,n=!1){const[r,i]=t.split("."),s=this[r]();if(i){const l=r.indexOf(i)-(r.substr(0,2)==="ok"?2:0);if(l>-1){if(X(e)=="string")switch(e.charAt(0)){case"+":s[l]+=+e;break;case"-":s[l]+=+e;break;case"*":s[l]*=+e.substr(1);break;case"/":s[l]/=+e.substr(1);break;default:s[l]=+e}else if(X(e)==="number")s[l]=e;else throw new Error("unsupported value for Color.set");const a=new k(s,r);return n?(this._rgb=a._rgb,this):a}throw new Error(`unknown channel ${i} in mode ${r}`)}else return s};k.prototype.tint=function(t=.5,...e){return bn(this,"white",t,...e)};k.prototype.shade=function(t=.5,...e){return bn(this,"black",t,...e)};const _y=(t,e,n)=>{const r=t._rgb,i=e._rgb;return new k(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};we.rgb=_y;const{sqrt:bi,pow:Ut}=Math,Ry=(t,e,n)=>{const[r,i,s]=t._rgb,[l,a,o]=e._rgb;return new k(bi(Ut(r,2)*(1-n)+Ut(l,2)*n),bi(Ut(i,2)*(1-n)+Ut(a,2)*n),bi(Ut(s,2)*(1-n)+Ut(o,2)*n),"rgb")};we.lrgb=Ry;const Ty=(t,e,n)=>{const r=t.lab(),i=e.lab();return new k(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};we.lab=Ty;const an=(t,e,n,r)=>{let i,s;r==="hsl"?(i=t.hsl(),s=e.hsl()):r==="hsv"?(i=t.hsv(),s=e.hsv()):r==="hcg"?(i=t.hcg(),s=e.hcg()):r==="hsi"?(i=t.hsi(),s=e.hsi()):r==="lch"||r==="hcl"?(r="hcl",i=t.hcl(),s=e.hcl()):r==="oklch"&&(i=t.oklch().reverse(),s=e.oklch().reverse());let l,a,o,c,u,d;(r.substr(0,1)==="h"||r==="oklch")&&([l,o,u]=i,[a,c,d]=s);let h,f,g,m;return!isNaN(l)&&!isNaN(a)?(a>l&&a-l>180?m=a-(l+360):a<l&&l-a>180?m=a+360-l:m=a-l,f=l+n*m):isNaN(l)?isNaN(a)?f=Number.NaN:(f=a,(u==1||u==0)&&r!="hsv"&&(h=c)):(f=l,(d==1||d==0)&&r!="hsv"&&(h=o)),h===void 0&&(h=o+n*(c-o)),g=u+n*(d-u),r==="oklch"?new k([g,h,f],r):new k([f,h,g],r)},pu=(t,e,n)=>an(t,e,n,"lch");we.lch=pu;we.hcl=pu;const ky=(t,e,n)=>{const r=t.num(),i=e.num();return new k(r+n*(i-r),"num")};we.num=ky;const My=(t,e,n)=>an(t,e,n,"hcg");we.hcg=My;const xy=(t,e,n)=>an(t,e,n,"hsi");we.hsi=xy;const Iy=(t,e,n)=>an(t,e,n,"hsl");we.hsl=Iy;const Oy=(t,e,n)=>an(t,e,n,"hsv");we.hsv=Oy;const Ny=(t,e,n)=>{const r=t.oklab(),i=e.oklab();return new k(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")};we.oklab=Ny;const Py=(t,e,n)=>an(t,e,n,"oklch");we.oklch=Py;const{pow:yi,sqrt:Si,PI:Ei,cos:la,sin:aa,atan2:Hy}=Math,Ly=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const i=r/n.reduce(function(d,h){return d+h});if(n.forEach((d,h)=>{n[h]*=i}),t=t.map(d=>new k(d)),e==="lrgb")return By(t,n);const s=t.shift(),l=s.get(e),a=[];let o=0,c=0;for(let d=0;d<l.length;d++)if(l[d]=(l[d]||0)*n[0],a.push(isNaN(l[d])?0:n[0]),e.charAt(d)==="h"&&!isNaN(l[d])){const h=l[d]/180*Ei;o+=la(h)*n[0],c+=aa(h)*n[0]}let u=s.alpha()*n[0];t.forEach((d,h)=>{const f=d.get(e);u+=d.alpha()*n[h+1];for(let g=0;g<l.length;g++)if(!isNaN(f[g]))if(a[g]+=n[h+1],e.charAt(g)==="h"){const m=f[g]/180*Ei;o+=la(m)*n[h+1],c+=aa(m)*n[h+1]}else l[g]+=f[g]*n[h+1]});for(let d=0;d<l.length;d++)if(e.charAt(d)==="h"){let h=Hy(c/a[d],o/a[d])/Ei*180;for(;h<0;)h+=360;for(;h>=360;)h-=360;l[d]=h}else l[d]=l[d]/a[d];return u/=r,new k(l,e).alpha(u>.99999?1:u,!0)},By=(t,e)=>{const n=t.length,r=[0,0,0,0];for(let i=0;i<t.length;i++){const s=t[i],l=e[i]/n,a=s._rgb;r[0]+=yi(a[0],2)*l,r[1]+=yi(a[1],2)*l,r[2]+=yi(a[2],2)*l,r[3]+=a[3]*l}return r[0]=Si(r[0]),r[1]=Si(r[1]),r[2]=Si(r[2]),r[3]>.9999999&&(r[3]=1),new k(js(r))},{pow:jy}=Math;function wr(t){let e="rgb",n=Q("#ccc"),r=0,i=[0,1],s=[],l=[0,0],a=!1,o=[],c=!1,u=0,d=1,h=!1,f={},g=!0,m=1;const p=function(y){if(y=y||["#fff","#000"],y&&X(y)==="string"&&Q.brewer&&Q.brewer[y.toLowerCase()]&&(y=Q.brewer[y.toLowerCase()]),X(y)==="array"){y.length===1&&(y=[y[0],y[0]]),y=y.slice(0);for(let A=0;A<y.length;A++)y[A]=Q(y[A]);s.length=0;for(let A=0;A<y.length;A++)s.push(A/(y.length-1))}return _(),o=y},b=function(y){if(a!=null){const A=a.length-1;let H=0;for(;H<A&&y>=a[H];)H++;return H-1}return 0};let w=y=>y,D=y=>y;const C=function(y,A){let H,M;if(A==null&&(A=!1),isNaN(y)||y===null)return n;A?M=y:a&&a.length>2?M=b(y)/(a.length-2):d!==u?M=(y-u)/(d-u):M=1,M=D(M),A||(M=w(M)),m!==1&&(M=jy(M,m)),M=l[0]+M*(1-l[0]-l[1]),M=Xt(M,0,1);const N=Math.floor(M*1e4);if(g&&f[N])H=f[N];else{if(X(o)==="array")for(let I=0;I<s.length;I++){const Y=s[I];if(M<=Y){H=o[I];break}if(M>=Y&&I===s.length-1){H=o[I];break}if(M>Y&&M<s[I+1]){M=(M-Y)/(s[I+1]-Y),H=Q.interpolate(o[I],o[I+1],M,e);break}}else X(o)==="function"&&(H=o(M));g&&(f[N]=H)}return H};var _=()=>f={};p(t);const S=function(y){const A=Q(C(y));return c&&A[c]?A[c]():A};return S.classes=function(y){if(y!=null){if(X(y)==="array")a=y,i=[y[0],y[y.length-1]];else{const A=Q.analyze(i);y===0?a=[A.min,A.max]:a=Q.limits(A,"e",y)}return S}return a},S.domain=function(y){if(!arguments.length)return i;u=y[0],d=y[y.length-1],s=[];const A=o.length;if(y.length===A&&u!==d)for(let H of Array.from(y))s.push((H-u)/(d-u));else{for(let H=0;H<A;H++)s.push(H/(A-1));if(y.length>2){const H=y.map((N,I)=>I/(y.length-1)),M=y.map(N=>(N-u)/(d-u));M.every((N,I)=>H[I]===N)||(D=N=>{if(N<=0||N>=1)return N;let I=0;for(;N>=M[I+1];)I++;const Y=(N-M[I])/(M[I+1]-M[I]);return H[I]+Y*(H[I+1]-H[I])})}}return i=[u,d],S},S.mode=function(y){return arguments.length?(e=y,_(),S):e},S.range=function(y,A){return p(y),S},S.out=function(y){return c=y,S},S.spread=function(y){return arguments.length?(r=y,S):r},S.correctLightness=function(y){return y==null&&(y=!0),h=y,_(),h?w=function(A){const H=C(0,!0).lab()[0],M=C(1,!0).lab()[0],N=H>M;let I=C(A,!0).lab()[0];const Y=H+(M-H)*A;let B=I-Y,P=0,O=1,j=20;for(;Math.abs(B)>.01&&j-- >0;)(function(){return N&&(B*=-1),B<0?(P=A,A+=(O-A)*.5):(O=A,A+=(P-A)*.5),I=C(A,!0).lab()[0],B=I-Y})();return A}:w=A=>A,S},S.padding=function(y){return y!=null?(X(y)==="number"&&(y=[y,y]),l=y,S):l},S.colors=function(y,A){arguments.length<2&&(A="hex");let H=[];if(arguments.length===0)H=o.slice(0);else if(y===1)H=[S(.5)];else if(y>1){const M=i[0],N=i[1]-M;H=Vy(0,y).map(I=>S(M+I/(y-1)*N))}else{t=[];let M=[];if(a&&a.length>2)for(let N=1,I=a.length,Y=1<=I;Y?N<I:N>I;Y?N++:N--)M.push((a[N-1]+a[N])*.5);else M=i;H=M.map(N=>S(N))}return Q[A]&&(H=H.map(M=>M[A]())),H},S.cache=function(y){return y!=null?(g=y,S):g},S.gamma=function(y){return y!=null?(m=y,S):m},S.nodata=function(y){return y!=null?(n=Q(y),S):n},S}function Vy(t,e,n){let r=[],i=t<e,s=e;for(let l=t;i?l<s:l>s;i?l++:l--)r.push(l);return r}const Fy=function(t){let e=[1,1];for(let n=1;n<t;n++){let r=[1];for(let i=1;i<=e.length;i++)r[i]=(e[i]||0)+e[i-1];e=r}return e},zy=function(t){let e,n,r,i;if(t=t.map(s=>new k(s)),t.length===2)[n,r]=t.map(s=>s.lab()),e=function(s){const l=[0,1,2].map(a=>n[a]+s*(r[a]-n[a]));return new k(l,"lab")};else if(t.length===3)[n,r,i]=t.map(s=>s.lab()),e=function(s){const l=[0,1,2].map(a=>(1-s)*(1-s)*n[a]+2*(1-s)*s*r[a]+s*s*i[a]);return new k(l,"lab")};else if(t.length===4){let s;[n,r,i,s]=t.map(l=>l.lab()),e=function(l){const a=[0,1,2].map(o=>(1-l)*(1-l)*(1-l)*n[o]+3*(1-l)*(1-l)*l*r[o]+3*(1-l)*l*l*i[o]+l*l*l*s[o]);return new k(a,"lab")}}else if(t.length>=5){let s,l,a;s=t.map(o=>o.lab()),a=t.length-1,l=Fy(a),e=function(o){const c=1-o,u=[0,1,2].map(d=>s.reduce((h,f,g)=>h+l[g]*c**(a-g)*o**g*f[d],0));return new k(u,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},Uy=t=>{const e=zy(t);return e.scale=()=>wr(e),e},$e=(t,e,n)=>{if(!$e[n])throw new Error("unknown blend mode "+n);return $e[n](t,e)},Dt=t=>(e,n)=>{const r=Q(n).rgb(),i=Q(e).rgb();return Q.rgb(t(r,i))},_t=t=>(e,n)=>{const r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r},$y=t=>t,Wy=(t,e)=>t*e/255,Gy=(t,e)=>t>e?e:t,Yy=(t,e)=>t>e?t:e,qy=(t,e)=>255*(1-(1-t/255)*(1-e/255)),Qy=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),Zy=(t,e)=>255*(1-(1-e/255)/(t/255)),Xy=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);$e.normal=Dt(_t($y));$e.multiply=Dt(_t(Wy));$e.screen=Dt(_t(qy));$e.overlay=Dt(_t(Qy));$e.darken=Dt(_t(Gy));$e.lighten=Dt(_t(Yy));$e.dodge=Dt(_t(Xy));$e.burn=Dt(_t(Zy));const{pow:Jy,sin:Ky,cos:e0}=Math;function t0(t=300,e=-1.5,n=1,r=1,i=[0,1]){let s=0,l;X(i)==="array"?l=i[1]-i[0]:(l=0,i=[i,i]);const a=function(o){const c=Je*((t+120)/360+e*o),u=Jy(i[0]+l*o,r),h=(s!==0?n[0]+o*s:n)*u*(1-u)/2,f=e0(c),g=Ky(c),m=u+h*(-.14861*f+1.78277*g),p=u+h*(-.29227*f-.90649*g),b=u+h*(1.97294*f);return Q(js([m*255,p*255,b*255,1]))};return a.start=function(o){return o==null?t:(t=o,a)},a.rotations=function(o){return o==null?e:(e=o,a)},a.gamma=function(o){return o==null?r:(r=o,a)},a.hue=function(o){return o==null?n:(n=o,X(n)==="array"?(s=n[1]-n[0],s===0&&(n=n[1])):s=0,a)},a.lightness=function(o){return o==null?i:(X(o)==="array"?(i=o,l=o[1]-o[0]):(i=[o,o],l=0),a)},a.scale=()=>Q.scale(a),a.hue(n),a}const n0="0123456789abcdef",{floor:r0,random:i0}=Math,s0=()=>{let t="#";for(let e=0;e<6;e++)t+=n0.charAt(r0(i0()*16));return new k(t,"hex")},{log:oa,pow:l0,floor:a0,abs:o0}=Math;function mu(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return X(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&X(r)==="object"&&(r=r[e]),r!=null&&!isNaN(r)&&(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(r,i)=>vu(n,r,i),n}function vu(t,e="equal",n=7){X(t)=="array"&&(t=mu(t));const{min:r,max:i}=t,s=t.values.sort((a,o)=>a-o);if(n===1)return[r,i];const l=[];if(e.substr(0,1)==="c"&&(l.push(r),l.push(i)),e.substr(0,1)==="e"){l.push(r);for(let a=1;a<n;a++)l.push(r+a/n*(i-r));l.push(i)}else if(e.substr(0,1)==="l"){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const a=Math.LOG10E*oa(r),o=Math.LOG10E*oa(i);l.push(r);for(let c=1;c<n;c++)l.push(l0(10,a+c/n*(o-a)));l.push(i)}else if(e.substr(0,1)==="q"){l.push(r);for(let a=1;a<n;a++){const o=(s.length-1)*a/n,c=a0(o);if(c===o)l.push(s[c]);else{const u=o-c;l.push(s[c]*(1-u)+s[c+1]*u)}}l.push(i)}else if(e.substr(0,1)==="k"){let a;const o=s.length,c=new Array(o),u=new Array(n);let d=!0,h=0,f=null;f=[],f.push(r);for(let p=1;p<n;p++)f.push(r+p/n*(i-r));for(f.push(i);d;){for(let b=0;b<n;b++)u[b]=0;for(let b=0;b<o;b++){const w=s[b];let D=Number.MAX_VALUE,C;for(let _=0;_<n;_++){const S=o0(f[_]-w);S<D&&(D=S,C=_),u[C]++,c[b]=C}}const p=new Array(n);for(let b=0;b<n;b++)p[b]=null;for(let b=0;b<o;b++)a=c[b],p[a]===null?p[a]=s[b]:p[a]+=s[b];for(let b=0;b<n;b++)p[b]*=1/u[b];d=!1;for(let b=0;b<n;b++)if(p[b]!==f[b]){d=!0;break}f=p,h++,h>200&&(d=!1)}const g={};for(let p=0;p<n;p++)g[p]=[];for(let p=0;p<o;p++)a=c[p],g[a].push(s[p]);let m=[];for(let p=0;p<n;p++)m.push(g[p][0]),m.push(g[p][g[p].length-1]);m=m.sort((p,b)=>p-b),l.push(m[0]);for(let p=1;p<m.length;p+=2){const b=m[p];!isNaN(b)&&l.indexOf(b)===-1&&l.push(b)}}return l}const c0=(t,e)=>{t=new k(t),e=new k(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},{sqrt:Xe,pow:de,min:u0,max:d0,atan2:ca,abs:ua,cos:qn,sin:da,exp:f0,PI:fa}=Math;function h0(t,e,n=1,r=1,i=1){var s=function(te){return 360*te/(2*fa)},l=function(te){return 2*fa*te/360};t=new k(t),e=new k(e);const[a,o,c]=Array.from(t.lab()),[u,d,h]=Array.from(e.lab()),f=(a+u)/2,g=Xe(de(o,2)+de(c,2)),m=Xe(de(d,2)+de(h,2)),p=(g+m)/2,b=.5*(1-Xe(de(p,7)/(de(p,7)+de(25,7)))),w=o*(1+b),D=d*(1+b),C=Xe(de(w,2)+de(c,2)),_=Xe(de(D,2)+de(h,2)),S=(C+_)/2,y=s(ca(c,w)),A=s(ca(h,D)),H=y>=0?y:y+360,M=A>=0?A:A+360,N=ua(H-M)>180?(H+M+360)/2:(H+M)/2,I=1-.17*qn(l(N-30))+.24*qn(l(2*N))+.32*qn(l(3*N+6))-.2*qn(l(4*N-63));let Y=M-H;Y=ua(Y)<=180?Y:M<=H?Y+360:Y-360,Y=2*Xe(C*_)*da(l(Y)/2);const B=u-a,P=_-C,O=1+.015*de(f-50,2)/Xe(20+de(f-50,2)),j=1+.045*S,L=1+.015*S*I,$=30*f0(-de((N-275)/25,2)),T=-(2*Xe(de(S,7)/(de(S,7)+de(25,7))))*da(2*l($)),W=Xe(de(B/(n*O),2)+de(P/(r*j),2)+de(Y/(i*L),2)+T*(P/(r*j))*(Y/(i*L)));return d0(0,u0(100,W))}function g0(t,e,n="lab"){t=new k(t),e=new k(e);const r=t.get(n),i=e.get(n);let s=0;for(let l in r){const a=(r[l]||0)-(i[l]||0);s+=a*a}return Math.sqrt(s)}const p0=(...t)=>{try{return new k(...t),!0}catch{return!1}},m0={cool(){return wr([Q.hsl(180,1,.9),Q.hsl(250,.7,.4)])},hot(){return wr(["#000","#f00","#ff0","#fff"]).mode("rgb")}},nr={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]};for(let t of Object.keys(nr))nr[t.toLowerCase()]=nr[t];Object.assign(Q,{average:Ly,bezier:Uy,blend:$e,cubehelix:t0,mix:bn,interpolate:bn,random:s0,scale:wr,analyze:mu,contrast:c0,deltaE:h0,distance:g0,limits:vu,valid:p0,scales:m0,input:q,colors:nn,brewer:nr});const Bt=ne(new Date().getTime()),v0=Hb(me),{config:ha,color:ke,mainDataset:Ui,startDateField:Rt,endDateField:Tt,dateField:ga,labelField:pa,layout:ma}=ot(),b0=Pn(async()=>{if((ke==null?void 0:ke.type)!=="multicolor")return;const t={};if(ke.colors.type==="palette"){const e=await Me(`${Ui.href}/values/${ke.field}?size=100`),n=Math.max(e.length,12),r=Q.scale(ke.colors.name).mode("lch").colors(n);e.forEach((i,s)=>{t[i]=r[(s+ke.colors.offset)%n]})}else ke.colors.categories.forEach(e=>{t[e.value]=`${e.color}`});return t},null,{onError:function(t){it.value=!0,st.value=t.message}}),y0=Pn(async()=>{if(!me.start&&!me.end)return[];const t={...v0,_c_date_match:me.start+","+me.end,size:1e3,select:"_id,"+pa};return ma!=="simple"?t.t=Bt.value:t.finalizedAt=Ui.finalizedAt,(ke==null?void 0:ke.type)==="multicolor"&&(t.select+=","+ha.color.field),Rt&&Tt?t.select+=","+Rt+","+Tt:t.select+=","+ga,(await Me(`${Ui.href}/lines`,{params:t})).results.map(n=>({editable:ma==="admin",id:n._id,title:n[pa],colorFieldValue:(ke==null?void 0:ke.type)==="multicolor"&&n[ha.color.field],start:n[Rt&&Tt?Rt:ga],end:Rt&&Tt?n[Tt]:void 0,allDay:!(Rt&&Tt)||new Date(n[Tt]).getTime()-new Date(n[Rt]).getTime()>2*24*60*60*1e3}))},null,{onError:function(t){it.value=!0,st.value=t.message}});var bu={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(An,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",l="second",a="minute",o="hour",c="day",u="week",d="month",h="quarter",f="year",g="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var P=["th","st","nd","rd"],O=B%100;return"["+B+(P[(O-20)%10]||P[O]||P[0])+"]"}},D=function(B,P,O){var j=String(B);return!j||j.length>=P?B:""+Array(P+1-j.length).join(O)+B},C={s:D,z:function(B){var P=-B.utcOffset(),O=Math.abs(P),j=Math.floor(O/60),L=O%60;return(P<=0?"+":"-")+D(j,2,"0")+":"+D(L,2,"0")},m:function B(P,O){if(P.date()<O.date())return-B(O,P);var j=12*(O.year()-P.year())+(O.month()-P.month()),L=P.clone().add(j,d),$=O-L<0,x=P.clone().add(j+($?-1:1),d);return+(-(j+(O-L)/($?L-x:x-L))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:d,y:f,w:u,d:c,D:g,h:o,m:a,s:l,ms:s,Q:h}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},_="en",S={};S[_]=w;var y="$isDayjsObject",A=function(B){return B instanceof I||!(!B||!B[y])},H=function B(P,O,j){var L;if(!P)return _;if(typeof P=="string"){var $=P.toLowerCase();S[$]&&(L=$),O&&(S[$]=O,L=$);var x=P.split("-");if(!L&&x.length>1)return B(x[0])}else{var T=P.name;S[T]=P,L=T}return!j&&L&&(_=L),L||!j&&_},M=function(B,P){if(A(B))return B.clone();var O=typeof P=="object"?P:{};return O.date=B,O.args=arguments,new I(O)},N=C;N.l=H,N.i=A,N.w=function(B,P){return M(B,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var I=function(){function B(O){this.$L=H(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[y]=!0}var P=B.prototype;return P.parse=function(O){this.$d=function(j){var L=j.date,$=j.utc;if(L===null)return new Date(NaN);if(N.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var x=L.match(p);if(x){var T=x[2]-1||0,W=(x[7]||"0").substring(0,3);return $?new Date(Date.UTC(x[1],T,x[3]||1,x[4]||0,x[5]||0,x[6]||0,W)):new Date(x[1],T,x[3]||1,x[4]||0,x[5]||0,x[6]||0,W)}}return new Date(L)}(O),this.init()},P.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},P.$utils=function(){return N},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function(O,j){var L=M(O);return this.startOf(j)<=L&&L<=this.endOf(j)},P.isAfter=function(O,j){return M(O)<this.startOf(j)},P.isBefore=function(O,j){return this.endOf(j)<M(O)},P.$g=function(O,j,L){return N.u(O)?this[j]:this.set(L,O)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(O,j){var L=this,$=!!N.u(j)||j,x=N.p(O),T=function(he,Te){var ft=N.w(L.$u?Date.UTC(L.$y,Te,he):new Date(L.$y,Te,he),L);return $?ft:ft.endOf(c)},W=function(he,Te){return N.w(L.toDate()[he].apply(L.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(Te)),L)},te=this.$W,le=this.$M,pe=this.$D,Ze="set"+(this.$u?"UTC":"");switch(x){case f:return $?T(1,0):T(31,11);case d:return $?T(1,le):T(0,le+1);case u:var Ve=this.$locale().weekStart||0,dt=(te<Ve?te+7:te)-Ve;return T($?pe-dt:pe+(6-dt),le);case c:case g:return W(Ze+"Hours",0);case o:return W(Ze+"Minutes",1);case a:return W(Ze+"Seconds",2);case l:return W(Ze+"Milliseconds",3);default:return this.clone()}},P.endOf=function(O){return this.startOf(O,!1)},P.$set=function(O,j){var L,$=N.p(O),x="set"+(this.$u?"UTC":""),T=(L={},L[c]=x+"Date",L[g]=x+"Date",L[d]=x+"Month",L[f]=x+"FullYear",L[o]=x+"Hours",L[a]=x+"Minutes",L[l]=x+"Seconds",L[s]=x+"Milliseconds",L)[$],W=$===c?this.$D+(j-this.$W):j;if($===d||$===f){var te=this.clone().set(g,1);te.$d[T](W),te.init(),this.$d=te.set(g,Math.min(this.$D,te.daysInMonth())).$d}else T&&this.$d[T](W);return this.init(),this},P.set=function(O,j){return this.clone().$set(O,j)},P.get=function(O){return this[N.p(O)]()},P.add=function(O,j){var L,$=this;O=Number(O);var x=N.p(j),T=function(le){var pe=M($);return N.w(pe.date(pe.date()+Math.round(le*O)),$)};if(x===d)return this.set(d,this.$M+O);if(x===f)return this.set(f,this.$y+O);if(x===c)return T(1);if(x===u)return T(7);var W=(L={},L[a]=r,L[o]=i,L[l]=n,L)[x]||1,te=this.$d.getTime()+O*W;return N.w(te,this)},P.subtract=function(O,j){return this.add(-1*O,j)},P.format=function(O){var j=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var $=O||"YYYY-MM-DDTHH:mm:ssZ",x=N.z(this),T=this.$H,W=this.$m,te=this.$M,le=L.weekdays,pe=L.months,Ze=L.meridiem,Ve=function(Te,ft,on,Hn){return Te&&(Te[ft]||Te(j,$))||on[ft].slice(0,Hn)},dt=function(Te){return N.s(T%12||12,Te,"0")},he=Ze||function(Te,ft,on){var Hn=Te<12?"AM":"PM";return on?Hn.toLowerCase():Hn};return $.replace(b,function(Te,ft){return ft||function(on){switch(on){case"YY":return String(j.$y).slice(-2);case"YYYY":return N.s(j.$y,4,"0");case"M":return te+1;case"MM":return N.s(te+1,2,"0");case"MMM":return Ve(L.monthsShort,te,pe,3);case"MMMM":return Ve(pe,te);case"D":return j.$D;case"DD":return N.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Ve(L.weekdaysMin,j.$W,le,2);case"ddd":return Ve(L.weekdaysShort,j.$W,le,3);case"dddd":return le[j.$W];case"H":return String(T);case"HH":return N.s(T,2,"0");case"h":return dt(1);case"hh":return dt(2);case"a":return he(T,W,!0);case"A":return he(T,W,!1);case"m":return String(W);case"mm":return N.s(W,2,"0");case"s":return String(j.$s);case"ss":return N.s(j.$s,2,"0");case"SSS":return N.s(j.$ms,3,"0");case"Z":return x}return null}(Te)||x.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(O,j,L){var $,x=this,T=N.p(j),W=M(O),te=(W.utcOffset()-this.utcOffset())*r,le=this-W,pe=function(){return N.m(x,W)};switch(T){case f:$=pe()/12;break;case d:$=pe();break;case h:$=pe()/3;break;case u:$=(le-te)/6048e5;break;case c:$=(le-te)/864e5;break;case o:$=le/i;break;case a:$=le/r;break;case l:$=le/n;break;default:$=le}return L?$:N.a($)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return S[this.$L]},P.locale=function(O,j){if(!O)return this.$L;var L=this.clone(),$=H(O,j,!0);return $&&(L.$L=$),L},P.clone=function(){return N.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},B}(),Y=I.prototype;return M.prototype=Y,[["$ms",s],["$s",l],["$m",a],["$H",o],["$W",c],["$M",d],["$y",f],["$D",g]].forEach(function(B){Y[B[1]]=function(P){return this.$g(P,B[0],B[1])}}),M.extend=function(B,P){return B.$i||(B(P,I,M),B.$i=!0),M},M.locale=H,M.isDayjs=A,M.unix=function(B){return M(1e3*B)},M.en=S[_],M.Ls=S,M.p={},M})})(bu);var yu=bu.exports;const yn=Ar(yu);function va(t,e){var r;const n=t[e.key];return n==null||n===""?"":(r=e["x-labels"])!=null&&r[""+t[e.key]]?e["x-labels"][""+t[e.key]]:e.type==="number"||e.type==="integer"?n.toLocaleString("fr"):typeof n=="boolean"?n?"Oui":"Non":typeof n=="string"&&(e["x-refersTo"]==="http://schema.org/Date"||e["x-refersTo"]==="https://schema.org/startDate"||e["x-refersTo"]==="https://schema.org/endDate"||e["x-refersTo"]==="http://schema.org/dateCreated")?e.format==="date-time"?yn(n).format("DD/MM/YYYY, HH[h]mm"):yn(n).format("DD/MM/YYYY"):""+n}const rn=Qa("v-spacer","div","VSpacer"),S0=Ae({id:String,text:String,...Cr(Ka({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Su=Re()({name:"VTooltip",props:S0(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=Yt(t,"modelValue"),{scopeId:i}=eo(),s=qi(),l=F(()=>t.id||`v-tooltip-${s}`),a=ne(),o=F(()=>t.location.split(" ").length>1?t.location:t.location+" center"),c=F(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),u=F(()=>t.transition?t.transition:r.value?"scale-transition":"fade-transition"),d=F(()=>Oe({"aria-describedby":l.value},t.activatorProps));return qe(()=>{const h=ar.filterProps(t);return R(ar,Oe({ref:a,class:["v-tooltip",t.class],style:t.style,id:l.value},h,{modelValue:r.value,"onUpdate:modelValue":f=>r.value=f,transition:u.value,absolute:!0,location:o.value,origin:c.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},i),{activator:n.activator,default:function(){var p;for(var f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return((p=n.default)==null?void 0:p.call(n,...g))??t.text}})}),to({},a)}}),E0={__name:"Actions",props:{item:{type:Object,required:!0}},setup(t){const{linkField:e,attachmentField:n,mainDataset:r}=ot();function i(s){const l=["Octets","Ko","Mo","Go"];if(s===0)return"0 Octet";const a=parseInt(Math.floor(Math.log(s)/Math.log(1e3)));return a===0?`${s} ${l[a]}`:`${(s/1e3**a).toFixed(2)} ${l[a]}`}return(s,l)=>(Z(),ae(Tn,null,{default:G(()=>[R(rn),V(e)&&t.item[V(e)]?(Z(),ae(je,{key:0,href:(t.item[V(e)].includes("http")?"":"http://")+t.item[V(e)],text:"",small:"",target:"_blank",class:"px-6",color:"primary"},{default:G(()=>[fe(" Page associée ")]),_:1},8,["href"])):ve("",!0),V(n)?(Z(),ae(Su,{key:1,top:""},{activator:G(({props:a})=>[R(je,Oe({href:t.item[V(n)].includes("http")?t.item[V(n)]:V(r).href+"/attachments/"+t.item[V(n)],color:"accent",icon:""},a),{default:G(()=>[R(et,null,{default:G(()=>[fe("mdi-download")]),_:1})]),_:2},1040,["href"])]),default:G(()=>[rr("span",null,"Télécharger le fichier de "+Fe(i(t.item["_file.content_length"])),1)]),_:1})):ve("",!0),R(rn)]),_:1}))}},w0=Ae({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Be(t,e,n){return Re()({name:t,props:w0({mode:n,origin:e}),setup(r,i){let{slots:s}=i;const l={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:o,offsetLeft:c,offsetWidth:u,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${o}px`,a.style.left=`${c}px`,a.style.width=`${u}px`,a.style.height=`${d}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:o,top:c,left:u,width:d,height:h}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=o||"",a.style.top=c||"",a.style.left=u||"",a.style.width=d||"",a.style.height=h||""}}};return()=>{const a=r.group?Oa:ir;return It(a,{name:r.disabled?"":t,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:l},s.default)}}})}function Eu(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Re()({name:t,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,i){let{slots:s}=i;const l=r.group?Oa:ir;return()=>It(l,{name:r.disabled?"":t,css:!r.disabled,...r.disabled?{}:e},s.default)}})}function wu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=Zu(`offset-${n}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[n]:l.style[n]}},onEnter(l){const a=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const o=`${l[r]}px`;l.style[n]="0",l.offsetHeight,l.style.transition=a.transition,t&&l._parent&&l._parent.classList.add(t),requestAnimationFrame(()=>{l.style[n]=o})},onAfterEnter:s,onEnterCancelled:s,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[n]:l.style[n]},l.style.overflow="hidden",l.style[n]=`${l[r]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(l){t&&l._parent&&l._parent.classList.remove(t),s(l)}function s(l){const a=l._initialStyle[n];l.style.overflow=l._initialStyle.overflow,a!=null&&(l.style[n]=a),delete l._initialStyle}}const A0=Ae({target:[Object,Array]},"v-dialog-transition"),C0=Re()({name:"VDialogTransition",props:A0(),setup(t,e){let{slots:n}=e;const r={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,s){var h;await new Promise(f=>requestAnimationFrame(f)),await new Promise(f=>requestAnimationFrame(f)),i.style.visibility="";const{x:l,y:a,sx:o,sy:c,speed:u}=ya(t.target,i),d=Ln(i,[{transform:`translate(${l}px, ${a}px) scale(${o}, ${c})`,opacity:0},{}],{duration:225*u,easing:wd});(h=ba(i))==null||h.forEach(f=>{Ln(f,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:Ks})}),d.finished.then(()=>s())},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,s){var h;await new Promise(f=>requestAnimationFrame(f));const{x:l,y:a,sx:o,sy:c,speed:u}=ya(t.target,i);Ln(i,[{},{transform:`translate(${l}px, ${a}px) scale(${o}, ${c})`,opacity:0}],{duration:125*u,easing:Ad}).finished.then(()=>s()),(h=ba(i))==null||h.forEach(f=>{Ln(f,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:Ks})})},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>t.target?R(ir,Oe({name:"dialog-transition"},r,{css:!1}),n):R(ir,{name:"dialog-transition"},n)}});function ba(t){var n;const e=(n=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return e&&[...e]}function ya(t,e){const n=Cd(t),r=Dd(e),[i,s]=getComputedStyle(e).transformOrigin.split(" ").map(b=>parseFloat(b)),[l,a]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let o=n.left+n.width/2;l==="left"||a==="left"?o-=n.width/2:(l==="right"||a==="right")&&(o+=n.width/2);let c=n.top+n.height/2;l==="top"||a==="top"?c-=n.height/2:(l==="bottom"||a==="bottom")&&(c+=n.height/2);const u=n.width/r.width,d=n.height/r.height,h=Math.max(1,u,d),f=u/h||0,g=d/h||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),p=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:o-(i+r.left),y:c-(s+r.top),sx:f,sy:g,speed:p}}Be("fab-transition","center center","out-in");Be("dialog-bottom-transition");Be("dialog-top-transition");const Sa=Be("fade-transition"),qS=Be("scale-transition");Be("scroll-x-transition");Be("scroll-x-reverse-transition");Be("scroll-y-transition");Be("scroll-y-reverse-transition");Be("slide-x-transition");const QS=Be("slide-x-reverse-transition"),ZS=Be("slide-y-transition");Be("slide-y-reverse-transition");const D0=Eu("expand-transition",wu()),_0=Eu("expand-x-transition",wu("",!0));function R0(t){let{selectedElement:e,containerElement:n,isRtl:r,isHorizontal:i}=t;const s=Sn(i,n),l=Au(i,r,n),a=Sn(i,e),o=Cu(i,e),c=a*.4;return l>o?o-c:l+s<o+a?o-s+a+c:l}function T0(t){let{selectedElement:e,containerElement:n,isHorizontal:r}=t;const i=Sn(r,n),s=Cu(r,e),l=Sn(r,e);return s-i/2+l/2}function Ea(t,e){const n=t?"scrollWidth":"scrollHeight";return(e==null?void 0:e[n])||0}function k0(t,e){const n=t?"clientWidth":"clientHeight";return(e==null?void 0:e[n])||0}function Au(t,e,n){if(!n)return 0;const{scrollLeft:r,offsetWidth:i,scrollWidth:s}=n;return t?e?s-i+r:r:n.scrollTop}function Sn(t,e){const n=t?"offsetWidth":"offsetHeight";return(e==null?void 0:e[n])||0}function Cu(t,e){const n=t?"offsetLeft":"offsetTop";return(e==null?void 0:e[n])||0}const M0=Symbol.for("vuetify:v-slide-group"),Du=Ae({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:M0},nextIcon:{type:ze,default:"$next"},prevIcon:{type:ze,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...ct(),...Xu({mobile:null}),...wt(),...Za({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),wa=Re()({name:"VSlideGroup",props:Du(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isRtl:r}=Na(),{displayClasses:i,mobile:s}=Pa(t),l=Xa(t,t.symbol),a=Ne(!1),o=Ne(0),c=Ne(0),u=Ne(0),d=F(()=>t.direction==="horizontal"),{resizeRef:h,contentRect:f}=Qs(),{resizeRef:g,contentRect:m}=Qs(),p=Ju(),b=F(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),w=F(()=>l.selected.value.length?l.items.value.findIndex(x=>x.id===l.selected.value[0]):-1),D=F(()=>l.selected.value.length?l.items.value.findIndex(x=>x.id===l.selected.value[l.selected.value.length-1]):-1);if(Ys){let x=-1;jt(()=>[l.selected.value,f.value,m.value,d.value],()=>{cancelAnimationFrame(x),x=requestAnimationFrame(()=>{if(f.value&&m.value){const T=d.value?"width":"height";c.value=f.value[T],u.value=m.value[T],a.value=c.value+1<u.value}if(w.value>=0&&g.el){const T=g.el.children[D.value];_(T,t.centerActive)}})})}const C=Ne(!1);function _(x,T){let W=0;T?W=T0({containerElement:h.el,isHorizontal:d.value,selectedElement:x}):W=R0({containerElement:h.el,isHorizontal:d.value,isRtl:r.value,selectedElement:x}),S(W)}function S(x){if(!Ys||!h.el)return;const T=Sn(d.value,h.el),W=Au(d.value,r.value,h.el);if(!(Ea(d.value,h.el)<=T||Math.abs(x-W)<16)){if(d.value&&r.value&&h.el){const{scrollWidth:le,offsetWidth:pe}=h.el;x=le-pe-x}d.value?p.horizontal(x,b.value):p(x,b.value)}}function y(x){const{scrollTop:T,scrollLeft:W}=x.target;o.value=d.value?W:T}function A(x){if(C.value=!0,!(!a.value||!g.el)){for(const T of x.composedPath())for(const W of g.el.children)if(W===T){_(W);return}}}function H(x){C.value=!1}let M=!1;function N(x){var T;!M&&!C.value&&!(x.relatedTarget&&((T=g.el)!=null&&T.contains(x.relatedTarget)))&&B(),M=!1}function I(){M=!0}function Y(x){if(!g.el)return;function T(W){x.preventDefault(),B(W)}d.value?x.key==="ArrowRight"?T(r.value?"prev":"next"):x.key==="ArrowLeft"&&T(r.value?"next":"prev"):x.key==="ArrowDown"?T("next"):x.key==="ArrowUp"&&T("prev"),x.key==="Home"?T("first"):x.key==="End"&&T("last")}function B(x){var W,te;if(!g.el)return;let T;if(!x)T=Ci(g.el)[0];else if(x==="next"){if(T=(W=g.el.querySelector(":focus"))==null?void 0:W.nextElementSibling,!T)return B("first")}else if(x==="prev"){if(T=(te=g.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!T)return B("last")}else x==="first"?T=g.el.firstElementChild:x==="last"&&(T=g.el.lastElementChild);T&&T.focus({preventScroll:!0})}function P(x){const T=d.value&&r.value?-1:1,W=(x==="prev"?-T:T)*c.value;let te=o.value+W;if(d.value&&r.value&&h.el){const{scrollWidth:le,offsetWidth:pe}=h.el;te+=le-pe}S(te)}const O=F(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),j=F(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!s.value;case!0:return a.value||Math.abs(o.value)>0;case"mobile":return s.value||a.value||Math.abs(o.value)>0;default:return!s.value&&(a.value||Math.abs(o.value)>0)}}),L=F(()=>Math.abs(o.value)>1),$=F(()=>{if(!h.value)return!1;const x=Ea(d.value,h.el),T=k0(d.value,h.el);return x-T-Math.abs(o.value)>1});return qe(()=>R(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":j.value,"v-slide-group--is-overflowing":a.value},i.value,t.class],style:t.style,tabindex:C.value||l.selected.value.length?-1:0,onFocus:N},{default:()=>{var x,T,W;return[j.value&&R("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!L.value}],onMousedown:I,onClick:()=>L.value&&P("prev")},[((x=n.prev)==null?void 0:x.call(n,O.value))??R(Sa,null,{default:()=>[R(et,{icon:r.value?t.nextIcon:t.prevIcon},null)]})]),R("div",{key:"container",ref:h,class:"v-slide-group__container",onScroll:y},[R("div",{ref:g,class:"v-slide-group__content",onFocusin:A,onFocusout:H,onKeydown:Y},[(T=n.default)==null?void 0:T.call(n,O.value)])]),j.value&&R("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!$.value}],onMousedown:I,onClick:()=>$.value&&P("next")},[((W=n.next)==null?void 0:W.call(n,O.value))??R(Sa,null,{default:()=>[R(et,{icon:r.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:P,scrollOffset:o,focus:B,hasPrev:L,hasNext:$}}}),_u=Symbol.for("vuetify:v-chip-group"),x0=Ae({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Ha},...Du(),...ct(),...Za({selectedClass:"v-chip--selected"}),...wt(),...Cn(),...Dr({variant:"tonal"})},"VChipGroup");Re()({name:"VChipGroup",props:x0(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{themeClasses:r}=Dn(t),{isSelected:i,select:s,next:l,prev:a,selected:o}=Xa(t,_u);return La({VChip:{color:ce(t,"color"),disabled:ce(t,"disabled"),filter:ce(t,"filter"),variant:ce(t,"variant")}}),qe(()=>{const c=wa.filterProps(t);return R(wa,Oe(c,{class:["v-chip-group",{"v-chip-group--column":t.column},r.value,t.class],style:t.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:i,select:s,next:l,prev:a,selected:o.value})]}})}),{}}});const I0=Ae({activeClass:String,appendAvatar:String,appendIcon:ze,closable:Boolean,closeIcon:{type:ze,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:ze,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Ot(),onClickOnce:Ot(),...Ki(),...ct(),...es(),...ts(),...bd(),...Qi(),...Wa(),...yd(),...wt({tag:"span"}),...Cn(),...Dr({variant:"tonal"})},"VChip"),Ru=Re()({name:"VChip",directives:{Ripple:Ja},props:I0(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:n,emit:r,slots:i}=e;const{t:s}=Ku(),{borderClasses:l}=ns(t),{colorClasses:a,colorStyles:o,variantClasses:c}=Ga(t),{densityClasses:u}=rs(t),{elevationClasses:d}=is(t),{roundedClasses:h}=Zi(t),{sizeClasses:f}=Sd(t),{themeClasses:g}=Dn(t),m=Yt(t,"modelValue"),p=Ed(t,_u,!1),b=Ya(t,n),w=F(()=>t.link!==!1&&b.isLink.value),D=F(()=>!t.disabled&&t.link!==!1&&(!!p||t.link||b.isClickable.value)),C=F(()=>({"aria-label":s(t.closeLabel),onClick(y){y.preventDefault(),y.stopPropagation(),m.value=!1,r("click:close",y)}}));function _(y){var A;r("click",y),D.value&&((A=b.navigate)==null||A.call(b,y),p==null||p.toggle())}function S(y){(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),_(y))}return()=>{const y=b.isLink.value?"a":t.tag,A=!!(t.appendIcon||t.appendAvatar),H=!!(A||i.append),M=!!(i.close||t.closable),N=!!(i.filter||t.filter)&&p,I=!!(t.prependIcon||t.prependAvatar),Y=!!(I||i.prepend),B=!p||p.isSelected.value;return m.value&&bt(R(y,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":D.value,"v-chip--filter":N,"v-chip--pill":t.pill},g.value,l.value,B?a.value:void 0,u.value,d.value,h.value,f.value,c.value,p==null?void 0:p.selectedClass.value,t.class],style:[B?o.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:b.href.value,tabindex:D.value?0:void 0,onClick:_,onKeydown:D.value&&!w.value&&S},{default:()=>{var P;return[qa(D.value,"v-chip"),N&&R(_0,{key:"filter"},{default:()=>[bt(R("div",{class:"v-chip__filter"},[i.filter?R(ht,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},i.filter):R(et,{key:"filter-icon",icon:t.filterIcon},null)]),[[ja,p.isSelected.value]])]}),Y&&R("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?R(ht,{key:"prepend-defaults",disabled:!I,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},i.prepend):R(Se,null,[t.prependIcon&&R(et,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&R(lr,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),R("div",{class:"v-chip__content","data-no-activator":""},[((P=i.default)==null?void 0:P.call(i,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:t.disabled}))??t.text]),H&&R("div",{key:"append",class:"v-chip__append"},[i.append?R(ht,{key:"append-defaults",disabled:!A,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},i.append):R(Se,null,[t.appendIcon&&R(et,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&R(lr,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),M&&R("button",Oe({key:"close",class:"v-chip__close",type:"button"},C.value),[i.close?R(ht,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},i.close):R(et,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[Ba("ripple"),D.value&&t.ripple,null]])}}}),$i=Symbol.for("vuetify:list");function Tu(){const t=_n($i,{hasPrepend:Ne(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ne(!1),updateHasPrepend:n=>{n&&(e.hasPrepend.value=n)}};return Rn($i,e),t}function ku(){return _n($i,null)}const Us=t=>{const e={activate:n=>{let{id:r,value:i,activated:s}=n;return r=ue(r),t&&!i&&s.size===1&&s.has(r)||(i?s.add(r):s.delete(r)),s},in:(n,r,i)=>{let s=new Set;if(n!=null)for(const l of Va(n))s=e.activate({id:l,value:!0,activated:new Set(s),children:r,parents:i});return s},out:n=>Array.from(n)};return e},Mu=t=>{const e=Us(t);return{activate:r=>{let{activated:i,id:s,...l}=r;s=ue(s);const a=i.has(s)?new Set([s]):new Set;return e.activate({...l,id:s,activated:a})},in:(r,i,s)=>{let l=new Set;if(r!=null){const a=Va(r);a.length&&(l=e.in(a.slice(0,1),i,s))}return l},out:(r,i,s)=>e.out(r,i,s)}},O0=t=>{const e=Us(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},N0=t=>{const e=Mu(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},P0={open:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(n){const s=new Set;s.add(e);let l=i.get(e);for(;l!=null;)s.add(l),l=i.get(l);return s}else return r.delete(e),r},select:()=>null},xu={open:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(n){let s=ue(i.get(e));for(r.add(e);s!=null&&s!==e;)r.add(s),s=ue(i.get(s));return r}else r.delete(e);return r},select:()=>null},H0={open:xu.open,select:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(!n)return r;const s=[];let l=i.get(e);for(;l!=null;)s.push(l),l=i.get(l);return new Set(s)}},$s=t=>{const e={select:n=>{let{id:r,value:i,selected:s}=n;if(r=ue(r),t&&!i){const l=Array.from(s.entries()).reduce((a,o)=>{let[c,u]=o;return u==="on"&&a.push(c),a},[]);if(l.length===1&&l[0]===r)return s}return s.set(r,i?"on":"off"),s},in:(n,r,i)=>{let s=new Map;for(const l of n||[])s=e.select({id:l,value:!0,selected:new Map(s),children:r,parents:i});return s},out:n=>{const r=[];for(const[i,s]of n.entries())s==="on"&&r.push(i);return r}};return e},Iu=t=>{const e=$s(t);return{select:r=>{let{selected:i,id:s,...l}=r;s=ue(s);const a=i.has(s)?new Map([[s,i.get(s)]]):new Map;return e.select({...l,id:s,selected:a})},in:(r,i,s)=>{let l=new Map;return r!=null&&r.length&&(l=e.in(r.slice(0,1),i,s)),l},out:(r,i,s)=>e.out(r,i,s)}},L0=t=>{const e=$s(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},B0=t=>{const e=Iu(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},j0=t=>{const e={select:n=>{let{id:r,value:i,selected:s,children:l,parents:a}=n;r=ue(r);const o=new Map(s),c=[r];for(;c.length;){const d=c.shift();s.set(ue(d),i?"on":"off"),l.has(d)&&c.push(...l.get(d))}let u=ue(a.get(r));for(;u;){const d=l.get(u),h=d.every(g=>s.get(ue(g))==="on"),f=d.every(g=>!s.has(ue(g))||s.get(ue(g))==="off");s.set(u,h?"on":f?"off":"indeterminate"),u=ue(a.get(u))}return t&&!i&&Array.from(s.entries()).reduce((h,f)=>{let[g,m]=f;return m==="on"&&h.push(g),h},[]).length===0?o:s},in:(n,r,i)=>{let s=new Map;for(const l of n||[])s=e.select({id:l,value:!0,selected:new Map(s),children:r,parents:i});return s},out:(n,r)=>{const i=[];for(const[s,l]of n.entries())l==="on"&&!r.has(s)&&i.push(s);return i}};return e},En=Symbol.for("vuetify:nested"),Ou={id:Ne(),root:{register:()=>null,unregister:()=>null,parents:ne(new Map),children:ne(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ne(!1),selectable:ne(!1),opened:ne(new Set),activated:ne(new Set),selected:ne(new Map),selectedValues:ne([])}},V0=Ae({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),F0=t=>{let e=!1;const n=ne(new Map),r=ne(new Map),i=Yt(t,"opened",t.opened,f=>new Set(ue(f)),f=>[...f.values()]),s=F(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return O0(t.mandatory);case"single-leaf":return N0(t.mandatory);case"independent":return Us(t.mandatory);case"single-independent":default:return Mu(t.mandatory)}}),l=F(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return B0(t.mandatory);case"leaf":return L0(t.mandatory);case"independent":return $s(t.mandatory);case"single-independent":return Iu(t.mandatory);case"classic":default:return j0(t.mandatory)}}),a=F(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return H0;case"single":return P0;case"multiple":default:return xu}}),o=Yt(t,"activated",t.activated,f=>s.value.in(f,n.value,r.value),f=>s.value.out(f,n.value,r.value)),c=Yt(t,"selected",t.selected,f=>l.value.in(f,n.value,r.value),f=>l.value.out(f,n.value,r.value));Xi(()=>{e=!0});function u(f){const g=[];let m=f;for(;m!=null;)g.unshift(m),m=r.value.get(m);return g}const d=ed("nested"),h={id:Ne(),root:{opened:i,activatable:ce(t,"activatable"),selectable:ce(t,"selectable"),activated:o,selected:c,selectedValues:F(()=>{const f=[];for(const[g,m]of c.value.entries())m==="on"&&f.push(g);return f}),register:(f,g,m)=>{g&&f!==g&&r.value.set(f,g),m&&n.value.set(f,[]),g!=null&&n.value.set(g,[...n.value.get(g)||[],f])},unregister:f=>{if(e)return;n.value.delete(f);const g=r.value.get(f);if(g){const m=n.value.get(g)??[];n.value.set(g,m.filter(p=>p!==f))}r.value.delete(f)},open:(f,g,m)=>{d.emit("click:open",{id:f,value:g,path:u(f),event:m});const p=a.value.open({id:f,value:g,opened:new Set(i.value),children:n.value,parents:r.value,event:m});p&&(i.value=p)},openOnSelect:(f,g,m)=>{const p=a.value.select({id:f,value:g,selected:new Map(c.value),opened:new Set(i.value),children:n.value,parents:r.value,event:m});p&&(i.value=p)},select:(f,g,m)=>{d.emit("click:select",{id:f,value:g,path:u(f),event:m});const p=l.value.select({id:f,value:g,selected:new Map(c.value),children:n.value,parents:r.value,event:m});p&&(c.value=p),h.root.openOnSelect(f,g,m)},activate:(f,g,m)=>{if(!t.activatable)return h.root.select(f,!0,m);d.emit("click:activate",{id:f,value:g,path:u(f),event:m});const p=s.value.activate({id:f,value:g,activated:new Set(o.value),children:n.value,parents:r.value,event:m});p&&(o.value=p)},children:n,parents:r}};return Rn(En,h),h.root},Nu=(t,e)=>{const n=_n(En,Ou),r=Symbol(qi()),i=F(()=>t.value!==void 0?t.value:r),s={...n,id:i,open:(l,a)=>n.root.open(ue(i.value),l,a),openOnSelect:(l,a)=>n.root.openOnSelect(i.value,l,a),isOpen:F(()=>n.root.opened.value.has(ue(i.value))),parent:F(()=>n.root.parents.value.get(i.value)),activate:(l,a)=>n.root.activate(i.value,l,a),isActivated:F(()=>n.root.activated.value.has(ue(i.value))),select:(l,a)=>n.root.select(i.value,l,a),isSelected:F(()=>n.root.selected.value.get(ue(i.value))==="on"),isIndeterminate:F(()=>n.root.selected.value.get(i.value)==="indeterminate"),isLeaf:F(()=>!n.root.children.value.get(i.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(i.value,n.id.value,e),Xi(()=>{!n.isGroupActivator&&n.root.unregister(i.value)}),e&&Rn(En,s),s},z0=()=>{const t=_n(En,Ou);Rn(En,{...t,isGroupActivator:!0})};function U0(){const t=Ne(!1);return Yi(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:F(()=>t.value?void 0:{transition:"none !important"}),isBooted:td(t)}}const $0=nd({name:"VListGroupActivator",setup(t,e){let{slots:n}=e;return z0(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),W0=Ae({activeColor:String,baseColor:String,color:String,collapseIcon:{type:ze,default:"$collapse"},expandIcon:{type:ze,default:"$expand"},prependIcon:ze,appendIcon:ze,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ct(),...wt()},"VListGroup"),Aa=Re()({name:"VListGroup",props:W0(),setup(t,e){let{slots:n}=e;const{isOpen:r,open:i,id:s}=Nu(ce(t,"value"),!0),l=F(()=>`v-list-group--id-${String(s.value)}`),a=ku(),{isBooted:o}=U0();function c(f){f.stopPropagation(),i(!r.value,f)}const u=F(()=>({onClick:c,class:"v-list-group__header",id:l.value})),d=F(()=>r.value?t.collapseIcon:t.expandIcon),h=F(()=>({VListItem:{active:r.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&d.value,appendIcon:t.appendIcon||!t.subgroup&&d.value,title:t.title,value:t.value}}));return qe(()=>R(t.tag,{class:["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":r.value},t.class],style:t.style},{default:()=>[n.activator&&R(ht,{defaults:h.value},{default:()=>[R($0,null,{default:()=>[n.activator({props:u.value,isOpen:r.value})]})]}),R(rd,{transition:{component:D0},disabled:!o.value},{default:()=>{var f;return[bt(R("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(f=n.default)==null?void 0:f.call(n)]),[[ja,r.value]])]}})]})),{isOpen:r}}}),G0=Ae({opacity:[Number,String],...ct(),...wt()},"VListItemSubtitle"),Pu=Re()({name:"VListItemSubtitle",props:G0(),setup(t,e){let{slots:n}=e;return qe(()=>R(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},n)),{}}}),Y0=Qa("v-list-item-title"),q0=Ae({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:ze,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:ze,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Ot(),onClickOnce:Ot(),...Ki(),...ct(),...es(),...Fa(),...ts(),...Qi(),...Wa(),...wt(),...Cn(),...Dr({variant:"text"})},"VListItem"),Wi=Re()({name:"VListItem",directives:{Ripple:Ja},props:q0(),emits:{click:t=>!0},setup(t,e){let{attrs:n,slots:r,emit:i}=e;const s=Ya(t,n),l=F(()=>t.value===void 0?s.href.value:t.value),{activate:a,isActivated:o,select:c,isOpen:u,isSelected:d,isIndeterminate:h,isGroupActivator:f,root:g,parent:m,openOnSelect:p}=Nu(l,!1),b=ku(),w=F(()=>{var T;return t.active!==!1&&(t.active||((T=s.isActive)==null?void 0:T.value)||(g.activatable.value?o.value:d.value))}),D=F(()=>t.link!==!1&&s.isLink.value),C=F(()=>!t.disabled&&t.link!==!1&&(t.link||s.isClickable.value||!!b&&(g.selectable.value||g.activatable.value||t.value!=null))),_=F(()=>t.rounded||t.nav),S=F(()=>t.color??t.activeColor),y=F(()=>({color:w.value?S.value??t.baseColor:t.baseColor,variant:t.variant}));jt(()=>{var T;return(T=s.isActive)==null?void 0:T.value},T=>{T&&m.value!=null&&g.open(m.value,!0),T&&p(T)},{immediate:!0});const{themeClasses:A}=Dn(t),{borderClasses:H}=ns(t),{colorClasses:M,colorStyles:N,variantClasses:I}=Ga(y),{densityClasses:Y}=rs(t),{dimensionStyles:B}=za(t),{elevationClasses:P}=is(t),{roundedClasses:O}=Zi(_),j=F(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),L=F(()=>({isActive:w.value,select:c,isOpen:u.value,isSelected:d.value,isIndeterminate:h.value}));function $(T){var W;i("click",T),C.value&&((W=s.navigate)==null||W.call(s,T),!f&&(g.activatable.value?a(!o.value,T):(g.selectable.value||t.value!=null)&&c(!d.value,T)))}function x(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),T.target.dispatchEvent(new MouseEvent("click",T)))}return qe(()=>{const T=D.value?"a":t.tag,W=r.title||t.title!=null,te=r.subtitle||t.subtitle!=null,le=!!(t.appendAvatar||t.appendIcon),pe=!!(le||r.append),Ze=!!(t.prependAvatar||t.prependIcon),Ve=!!(Ze||r.prepend);return b==null||b.updateHasPrepend(Ve),t.activeColor&&id("active-color",["color","base-color"]),bt(R(T,{class:["v-list-item",{"v-list-item--active":w.value,"v-list-item--disabled":t.disabled,"v-list-item--link":C.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!Ve&&(b==null?void 0:b.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&w.value},A.value,H.value,M.value,Y.value,P.value,j.value,O.value,I.value,t.class],style:[N.value,B.value,t.style],href:s.href.value,tabindex:C.value?b?-2:0:void 0,onClick:$,onKeydown:C.value&&!D.value&&x},{default:()=>{var dt;return[qa(C.value||w.value,"v-list-item"),Ve&&R("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?R(ht,{key:"prepend-defaults",disabled:!Ze,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var he;return[(he=r.prepend)==null?void 0:he.call(r,L.value)]}}):R(Se,null,[t.prependAvatar&&R(lr,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&R(et,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),R("div",{class:"v-list-item__spacer"},null)]),R("div",{class:"v-list-item__content","data-no-activator":""},[W&&R(Y0,{key:"title"},{default:()=>{var he;return[((he=r.title)==null?void 0:he.call(r,{title:t.title}))??t.title]}}),te&&R(Pu,{key:"subtitle"},{default:()=>{var he;return[((he=r.subtitle)==null?void 0:he.call(r,{subtitle:t.subtitle}))??t.subtitle]}}),(dt=r.default)==null?void 0:dt.call(r,L.value)]),pe&&R("div",{key:"append",class:"v-list-item__append"},[r.append?R(ht,{key:"append-defaults",disabled:!le,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var he;return[(he=r.append)==null?void 0:he.call(r,L.value)]}}):R(Se,null,[t.appendIcon&&R(et,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&R(lr,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),R("div",{class:"v-list-item__spacer"},null)])]}}),[[Ba("ripple"),C.value&&t.ripple]])}),{activate:a,isActivated:o,isGroupActivator:f,isSelected:d,list:b,select:c}}}),Q0=Ae({color:String,inset:Boolean,sticky:Boolean,title:String,...ct(),...wt()},"VListSubheader"),Z0=Re()({name:"VListSubheader",props:Q0(),setup(t,e){let{slots:n}=e;const{textColorClasses:r,textColorStyles:i}=Ua(ce(t,"color"));return qe(()=>{const s=!!(n.default||t.title);return R(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},r.value,t.class],style:[{textColorStyles:i},t.style]},{default:()=>{var l;return[s&&R("div",{class:"v-list-subheader__text"},[((l=n.default)==null?void 0:l.call(n))??t.title])]}})}),{}}}),X0=Ae({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ct(),...Cn()},"VDivider"),J0=Re()({name:"VDivider",props:X0(),setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=Dn(t),{textColorClasses:s,textColorStyles:l}=Ua(ce(t,"color")),a=F(()=>{const o={};return t.length&&(o[t.vertical?"height":"width"]=qs(t.length)),t.thickness&&(o[t.vertical?"borderRightWidth":"borderTopWidth"]=qs(t.thickness)),o});return qe(()=>{const o=R("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},i.value,s.value,t.class],style:[a.value,l.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!n.role||n.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?R("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[o,R("div",{class:"v-divider__content"},[r.default()]),o]):o}),{}}}),K0=Ae({items:Array,returnObject:Boolean},"VListChildren"),Hu=Re()({name:"VListChildren",props:K0(),setup(t,e){let{slots:n}=e;return Tu(),()=>{var r,i;return((r=n.default)==null?void 0:r.call(n))??((i=t.items)==null?void 0:i.map(s=>{var h,f;let{children:l,props:a,type:o,raw:c}=s;if(o==="divider")return((h=n.divider)==null?void 0:h.call(n,{props:a}))??R(J0,a,null);if(o==="subheader")return((f=n.subheader)==null?void 0:f.call(n,{props:a}))??R(Z0,a,null);const u={subtitle:n.subtitle?g=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...g,item:c})}:void 0,prepend:n.prepend?g=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...g,item:c})}:void 0,append:n.append?g=>{var m;return(m=n.append)==null?void 0:m.call(n,{...g,item:c})}:void 0,title:n.title?g=>{var m;return(m=n.title)==null?void 0:m.call(n,{...g,item:c})}:void 0},d=Aa.filterProps(a);return l?R(Aa,Oe({value:a==null?void 0:a.value},d),{activator:g=>{let{props:m}=g;const p={...a,...m,value:t.returnObject?c:a.value};return n.header?n.header({props:p}):R(Wi,p,u)},default:()=>R(Hu,{items:l,returnObject:t.returnObject},n)}):n.item?n.item({props:a}):R(Wi,Oe(a,{value:t.returnObject?c:a.value}),u)}))}}}),eS=Ae({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:Ha}},"list-items");function Gi(t,e){const n=Ke(e,t.itemTitle,e),r=Ke(e,t.itemValue,n),i=Ke(e,t.itemChildren),s=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?Cr(e,["children"]):e:void 0:Ke(e,t.itemProps),l={title:n,value:r,...s};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(i)?Lu(t,i):void 0,raw:e}}function Lu(t,e){const n=[];for(const r of e)n.push(Gi(t,r));return n}function XS(t){const e=F(()=>Lu(t,t.items)),n=F(()=>e.value.some(s=>s.value===null));function r(s){return n.value||(s=s.filter(l=>l!==null)),s.map(l=>t.returnObject&&typeof l=="string"?Gi(t,l):e.value.find(a=>t.valueComparator(l,a.value))||Gi(t,l))}function i(s){return t.returnObject?s.map(l=>{let{raw:a}=l;return a}):s.map(l=>{let{value:a}=l;return a})}return{items:e,transformIn:r,transformOut:i}}function tS(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function nS(t,e){const n=Ke(e,t.itemType,"item"),r=tS(e)?e:Ke(e,t.itemTitle),i=Ke(e,t.itemValue,void 0),s=Ke(e,t.itemChildren),l=t.itemProps===!0?Cr(e,["children"]):Ke(e,t.itemProps),a={title:r,value:i,...l};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&s?Bu(t,s):void 0,raw:e}}function Bu(t,e){const n=[];for(const r of e)n.push(nS(t,r));return n}function rS(t){return{items:F(()=>Bu(t,t.items))}}const iS=Ae({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":Ot(),"onClick:select":Ot(),"onUpdate:opened":Ot(),...V0({selectStrategy:"single-leaf",openStrategy:"list"}),...Ki(),...ct(),...es(),...Fa(),...ts(),itemType:{type:String,default:"type"},...eS(),...Qi(),...wt(),...Cn(),...Dr({variant:"text"})},"VList"),sS=Re()({name:"VList",props:iS(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:n}=e;const{items:r}=rS(t),{themeClasses:i}=Dn(t),{backgroundColorClasses:s,backgroundColorStyles:l}=sd(ce(t,"bgColor")),{borderClasses:a}=ns(t),{densityClasses:o}=rs(t),{dimensionStyles:c}=za(t),{elevationClasses:u}=is(t),{roundedClasses:d}=Zi(t),{children:h,open:f,parents:g,select:m}=F0(t),p=F(()=>t.lines?`v-list--${t.lines}-line`:void 0),b=ce(t,"activeColor"),w=ce(t,"baseColor"),D=ce(t,"color");Tu(),La({VListGroup:{activeColor:b,baseColor:w,color:D,expandIcon:ce(t,"expandIcon"),collapseIcon:ce(t,"collapseIcon")},VListItem:{activeClass:ce(t,"activeClass"),activeColor:b,baseColor:w,color:D,density:ce(t,"density"),disabled:ce(t,"disabled"),lines:ce(t,"lines"),nav:ce(t,"nav"),slim:ce(t,"slim"),variant:ce(t,"variant")}});const C=Ne(!1),_=ne();function S(I){C.value=!0}function y(I){C.value=!1}function A(I){var Y;!C.value&&!(I.relatedTarget&&((Y=_.value)!=null&&Y.contains(I.relatedTarget)))&&N()}function H(I){const Y=I.target;if(!(!_.value||["INPUT","TEXTAREA"].includes(Y.tagName))){if(I.key==="ArrowDown")N("next");else if(I.key==="ArrowUp")N("prev");else if(I.key==="Home")N("first");else if(I.key==="End")N("last");else return;I.preventDefault()}}function M(I){C.value=!0}function N(I){if(_.value)return Qn(_.value,I)}return qe(()=>R(t.tag,{ref:_,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},i.value,s.value,a.value,o.value,u.value,p.value,d.value,t.class],style:[l.value,c.value,t.style],tabindex:t.disabled||C.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:S,onFocusout:y,onFocus:A,onKeydown:H,onMousedown:M},{default:()=>[R(Hu,{items:r.value,returnObject:t.returnObject},n)]})),{open:f,select:m,focus:N,children:h,parents:g}}}),lS=["innerHTML"],aS={style:{"white-space":"normal"}},oS=["innerHTML"],cS={__name:"EventView",props:{item:{type:Object,required:!0}},setup(t){const{config:e,labelField:n,descriptionField:r,imageField:i,attachmentField:s,linkField:l,fields:a}=ot();return(o,c)=>(Z(),ye(Se,null,[V(i)?(Z(),ye(Se,{key:0},[t.item[V(i)]?(Z(),ae(ld,{key:0,src:t.item._thumbnail||t.item[V(i)],"aspect-ratio":V(e).aspectRatio||3,cover:V(e).imageDisplay!=="contain"},null,8,["src","aspect-ratio","cover"])):ve("",!0)],64)):ve("",!0),V(n)&&t.item[V(n)]?(Z(),ae(_r,{key:1},{default:G(()=>[rr("h4",null,Fe(t.item[V(n)]),1)]),_:1})):ve("",!0),R(Rr,null,{default:G(()=>[V(r)&&t.item[V(r)]?(Z(),ye("div",{key:0,innerHTML:t.item[V(r)]},null,8,lS)):ve("",!0),R(sS,{dense:"",class:"transparent",lines:"two"},{default:G(()=>[(Z(!0),ye(Se,null,sr(V(e).additionalFields.filter(u=>!!t.item[u]),u=>(Z(),ae(Wi,{key:u,style:{"min-height":"24px","max-width":"100%"}},{default:G(()=>[R(Pu,{class:"font-weight-bold"},{default:G(()=>[fe(Fe(V(a)[u].title?V(a)[u].title:V(a)[u]["x-originalName"]||u),1)]),_:2},1024),rr("div",aS,[V(a)[u].separator?t.item[u]?(Z(!0),ye(Se,{key:1},sr(t.item[u].split(V(a)[u].separator).sort(),d=>(Z(),ae(Ru,{key:d,small:"",style:{flex:"none"},class:"my-1 mr-1"},{default:G(()=>[fe(Fe(V(va)({[u]:d},V(a)[u])+""),1)]),_:2},1024))),128)):ve("",!0):(Z(),ye(Se,{key:0},[V(a)[u]["x-display"]==="markdown"?(Z(),ye("div",{key:0,innerHTML:t.item[u]},null,8,oS)):(Z(),ye(Se,{key:1},[fe(Fe(V(va)(t.item,V(a)[u])+""),1)],64))],64))])]),_:2},1024))),128))]),_:1})]),_:1}),V(s)||V(l)?(Z(),ae(E0,{key:2,item:t.item},null,8,["item"])):ve("",!0)],64))}},uS=Ae({id:String,submenu:Boolean,...Cr(Ka({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:C0}}),["absolute"])},"VMenu"),Vr=Re()({name:"VMenu",props:uS(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=Yt(t,"modelValue"),{scopeId:i}=eo(),{isRtl:s}=Na(),l=qi(),a=F(()=>t.id||`v-menu-${l}`),o=ne(),c=_n(el,null),u=Ne(new Set);Rn(el,{register(){u.value.add(l)},unregister(){u.value.delete(l)},closeParents(p){setTimeout(()=>{var b;!u.value.size&&!t.persistent&&(p==null||(b=o.value)!=null&&b.contentEl&&!ad(p,o.value.contentEl))&&(r.value=!1,c==null||c.closeParents())},40)}}),Xi(()=>c==null?void 0:c.unregister()),od(()=>r.value=!1);async function d(p){var D,C,_;const b=p.relatedTarget,w=p.target;await Ma(),r.value&&b!==w&&((D=o.value)!=null&&D.contentEl)&&((C=o.value)!=null&&C.globalTop)&&![document,o.value.contentEl].includes(w)&&!o.value.contentEl.contains(w)&&((_=Ci(o.value.contentEl)[0])==null||_.focus())}jt(r,p=>{p?(c==null||c.register(),document.addEventListener("focusin",d,{once:!0})):(c==null||c.unregister(),document.removeEventListener("focusin",d))});function h(p){c==null||c.closeParents(p)}function f(p){var b,w,D,C,_;if(!t.disabled)if(p.key==="Tab"||p.key==="Enter"&&!t.closeOnContentClick){if(p.key==="Enter"&&(p.target instanceof HTMLTextAreaElement||p.target instanceof HTMLInputElement&&p.target.closest("form")))return;p.key==="Enter"&&p.preventDefault(),cd(Ci((b=o.value)==null?void 0:b.contentEl,!1),p.shiftKey?"prev":"next",y=>y.tabIndex>=0)||(r.value=!1,(D=(w=o.value)==null?void 0:w.activatorEl)==null||D.focus())}else t.submenu&&p.key===(s.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,(_=(C=o.value)==null?void 0:C.activatorEl)==null||_.focus())}function g(p){var w;if(t.disabled)return;const b=(w=o.value)==null?void 0:w.contentEl;b&&r.value?p.key==="ArrowDown"?(p.preventDefault(),p.stopImmediatePropagation(),Qn(b,"next")):p.key==="ArrowUp"?(p.preventDefault(),p.stopImmediatePropagation(),Qn(b,"prev")):t.submenu&&(p.key===(s.value?"ArrowRight":"ArrowLeft")?r.value=!1:p.key===(s.value?"ArrowLeft":"ArrowRight")&&(p.preventDefault(),Qn(b,"first"))):(t.submenu?p.key===(s.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(p.key))&&(r.value=!0,p.preventDefault(),setTimeout(()=>setTimeout(()=>g(p))))}const m=F(()=>Oe({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":a.value,onKeydown:g},t.activatorProps));return qe(()=>{const p=ar.filterProps(t);return R(ar,Oe({ref:o,id:a.value,class:["v-menu",t.class],style:t.style},p,{modelValue:r.value,"onUpdate:modelValue":b=>r.value=b,absolute:!0,activatorProps:m.value,location:t.location??(t.submenu?"end":"bottom"),"onClick:outside":h,onKeydown:f},i),{activator:n.activator,default:function(){for(var b=arguments.length,w=new Array(b),D=0;D<b;D++)w[D]=arguments[D];return R(ht,{root:"VMenu"},{default:()=>{var C;return[(C=n.default)==null?void 0:C.call(n,...w)]}})}})}),to({id:a,ΨopenChildren:u},o)}});function dS(t,e){const n=typeof t=="string"?ud(t):t,r=fS(n,e);return{mounted:r,updated:r,unmounted(i){$a(null,i)}}}function fS(t,e){return function(n,r,i){var d,h,f;const s=typeof e=="function"?e(r):e,l=((d=r.value)==null?void 0:d.text)??r.value??(s==null?void 0:s.text),a=dd(r.value)?r.value:{},o=()=>l??n.innerHTML,c=(i.ctx===r.instance.$?(h=hS(i,r.instance.$))==null?void 0:h.provides:(f=i.ctx)==null?void 0:f.provides)??r.instance.$.provides,u=It(t,Oe(s,a),o);u.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:c}),$a(u,n)}}function hS(t,e){const n=new Set,r=s=>{var l,a;for(const o of s){if(!o)continue;if(o===t)return!0;n.add(o);let c;if(o.suspense?c=r([o.ssContent]):Array.isArray(o.children)?c=r(o.children):(l=o.component)!=null&&l.vnode&&(c=r([(a=o.component)==null?void 0:a.subTree])),c)return c;n.delete(o)}return!1};if(!r([e.subTree]))throw new Error("Could not find original vnode");const i=Array.from(n).reverse();for(const s of i)if(s.component)return s.component;return e}const Fr=dS(Su,t=>{var e;return{activator:"parent",location:((e=t.arg)==null?void 0:e.replace("-"," "))??"top",text:typeof t.value=="boolean"?void 0:t.value}}),gS={__name:"DeleteEvent",props:{event:{type:[Object,null],required:!0}},emits:["deleted"],setup(t,{emit:e}){const{mainDataset:n,contribsDataset:r,layout:i,labelField:s}=ot(),l=ne(!1),a=Ji(),o=t,c=e;async function u(){var f,g;const d={method:"POST"};let h=`${i==="contrib"?r.href+`/own/user:${(g=(f=a==null?void 0:a.state)==null?void 0:f.user)==null?void 0:g.id}`:n.href}/lines`;i==="contrib"&&o.event.isContrib||i==="admin"&&!o.event.isContrib?(h+="/"+o.event.id,d.method="DELETE"):d.body={operation:"delete",status:"submitted",start:new Date(o.event.start).toISOString(),end:new Date(o.event.end).toISOString(),target_id:o.event.id,payload:JSON.stringify({[s]:o.event.title})};try{await Me(h,d),l.value=!1,c("deleted"),Bt.value=new Date().getTime()}catch(m){st.value=m.status+" - "+m._data,it.value=!0}}return(d,h)=>(Z(),ae(Vr,{modelValue:l.value,"onUpdate:modelValue":h[2]||(h[2]=f=>l.value=f),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:G(({props:f})=>[bt(R(je,Oe({icon:"mdi-delete",color:"error"},f),null,16),[[Fr,{text:"Supprimer l'événement",location:"right",openDelay:"500"}]])]),default:G(()=>[R(kn,{outlined:"","data-iframe-height":""},{default:G(()=>[R(_r,{"primary-title":""},{default:G(()=>[fe(" Supprimer l'événement ? ")]),_:1}),R(Rr,null,{default:G(()=>[R(ss,{"model-value":!0,type:"error"},{default:G(()=>[fe(" Voulez vous vraiment supprimer l'événement ? ")]),_:1})]),_:1}),R(Tn,null,{default:G(()=>[R(rn),R(je,{text:"",onClick:h[0]||(h[0]=f=>l.value=!1)},{default:G(()=>[fe(" Annuler ")]),_:1}),R(je,{color:"error",onClick:h[1]||(h[1]=f=>u())},{default:G(()=>[fe(" Supprimer ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},pS={__name:"AcceptContribution",props:{event:{type:[Object,null],required:!0}},emits:["accepted"],setup(t,{emit:e}){const{config:n,mainDataset:r,contribsDataset:i}=ot(),s=ne(!1),l=t,a=e;async function o(){const c={method:n.deleteModeratedContribs?"DELETE":"PATCH"};if(!n.deleteModeratedContribs&&(c.body={status:"accepted"},l.event.operation==="update")){const f=(await Me(`${r.href}/lines?_id_eq=${l.event.target_id}`)).results.pop();Object.keys(f).filter(g=>g.startsWith("_")).forEach(g=>delete f[g]),c.body.original=JSON.stringify(f)}const u=new FormData,{_attachment_url:d,...h}=l.event.payload;for(const[f,g]of Object.entries(h))u.append(f,g);if(d){const f=await Me(d,{responseType:"blob"}),g=l.event.attachmentPath.split("/").pop();u.append("attachment",new File([f],g))}try{await Me(`${r.href}/lines${l.event.target_id?"/"+l.event.target_id:""}`,{method:l.event.target_id?"PUT":"POST",body:u,headers:{"Content-Disposition":u}}),await Me(`${i.href}/lines/${l.event.id}`,c),s.value=!1,a("accepted"),Bt.value=new Date().getTime()}catch(f){console.log(f),st.value=f.status+" - "+f._data,it.value=!0}}return(c,u)=>(Z(),ae(Vr,{modelValue:s.value,"onUpdate:modelValue":u[2]||(u[2]=d=>s.value=d),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:G(({props:d})=>[bt(R(je,Oe({icon:"mdi-check",color:"success"},d),null,16),[[Fr,{text:"Accepter la contribution",location:"right",openDelay:"500"}]])]),default:G(()=>[R(kn,{outlined:"","data-iframe-height":""},{default:G(()=>[R(_r,{"primary-title":""},{default:G(()=>[fe(" Accepter la contribution ? ")]),_:1}),R(Rr,null,{default:G(()=>[R(ss,{"model-value":!0,type:"success"},{default:G(()=>[fe(" Voulez vous vraiment accepter la contribution ? ")]),_:1})]),_:1}),R(Tn,null,{default:G(()=>[R(rn),R(je,{text:"",onClick:u[0]||(u[0]=d=>s.value=!1)},{default:G(()=>[fe(" Annuler ")]),_:1}),R(je,{color:"success",onClick:u[1]||(u[1]=d=>o())},{default:G(()=>[fe(" Accepter ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},mS={__name:"RefuseContribution",props:{event:{type:[Object,null],required:!0}},emits:["refused"],setup(t,{emit:e}){const{mainDataset:n,contribsDataset:r,config:i}=ot(),s=ne(!1),l=t,a=e;async function o(){const c=`${r.href}/lines/${l.event.id}`,u={method:i.deleteModeratedContribs?"DELETE":"PATCH"};if(!i.deleteModeratedContribs&&(u.body={status:"refused"},l.event.operation==="update")){const d=(await Me(`${n.href}/lines?_id_eq=${l.event.target_id}`)).results.pop();Object.keys(d).filter(h=>h.startsWith("_")).forEach(h=>delete d[h]),u.body.original=JSON.stringify(d)}try{await Me(c,u),s.value=!1,a("refused"),Bt.value=new Date().getTime()}catch(d){st.value=d.status+" - "+d._data,it.value=!0}}return(c,u)=>(Z(),ae(Vr,{modelValue:s.value,"onUpdate:modelValue":u[2]||(u[2]=d=>s.value=d),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:G(({props:d})=>[bt(R(je,Oe({icon:"mdi-close",color:"error"},d),null,16),[[Fr,{text:"Refuser la contribution",location:"right",openDelay:"500"}]])]),default:G(()=>[R(kn,{outlined:"","data-iframe-height":""},{default:G(()=>[R(_r,{"primary-title":""},{default:G(()=>[fe(" Refuser la contribution ? ")]),_:1}),R(Rr,null,{default:G(()=>[R(ss,{"model-value":!0,type:"error"},{default:G(()=>[fe(" Voulez vous vraiment refuser la contribution ? ")]),_:1})]),_:1}),R(Tn,null,{default:G(()=>[R(rn),R(je,{text:"",onClick:u[0]||(u[0]=d=>s.value=!1)},{default:G(()=>[fe(" Annuler ")]),_:1}),R(je,{color:"error",onClick:u[1]||(u[1]=d=>o())},{default:G(()=>[fe(" Refuser ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},vS={__name:"ContributionStatus",props:{value:{type:String,required:!0}},setup(t){const e={submitted:"Attente de validation",accepted:"Acceptée",refused:"Refusée"},n={submitted:"warning",accepted:"success",refused:"error"};return(r,i)=>(Z(),ae(Ru,{density:"compact",size:"small",variant:"flat",color:n[t.value]},{default:G(()=>[fe(Fe(e[t.value]),1)]),_:1},8,["color"]))}};var Pe=-1,De=1,ge=0;function wn(t,e,n,r,i){if(t===e)return t?[[ge,t]]:[];if(n!=null){var s=_S(t,e,n);if(s)return s}var l=Ws(t,e),a=t.substring(0,l);t=t.substring(l),e=e.substring(l),l=zr(t,e);var o=t.substring(t.length-l);t=t.substring(0,t.length-l),e=e.substring(0,e.length-l);var c=bS(t,e);return a&&c.unshift([ge,a]),o&&c.push([ge,o]),Gs(c,i),r&&ES(c),c}function bS(t,e){var n;if(!t)return[[De,e]];if(!e)return[[Pe,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,s=r.indexOf(i);if(s!==-1)return n=[[De,r.substring(0,s)],[ge,i],[De,r.substring(s+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=Pe),n;if(i.length===1)return[[Pe,t],[De,e]];var l=SS(t,e);if(l){var a=l[0],o=l[1],c=l[2],u=l[3],d=l[4],h=wn(a,c),f=wn(o,u);return h.concat([[ge,d]],f)}return yS(t,e)}function yS(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),s=i,l=2*i,a=new Array(l),o=new Array(l),c=0;c<l;c++)a[c]=-1,o[c]=-1;a[s+1]=0,o[s+1]=0;for(var u=n-r,d=u%2!==0,h=0,f=0,g=0,m=0,p=0;p<i;p++){for(var b=-p+h;b<=p-f;b+=2){var w=s+b,D;b===-p||b!==p&&a[w-1]<a[w+1]?D=a[w+1]:D=a[w-1]+1;for(var C=D-b;D<n&&C<r&&t.charAt(D)===e.charAt(C);)D++,C++;if(a[w]=D,D>n)f+=2;else if(C>r)h+=2;else if(d){var _=s+u-b;if(_>=0&&_<l&&o[_]!==-1){var S=n-o[_];if(D>=S)return Ca(t,e,D,C)}}}for(var y=-p+g;y<=p-m;y+=2){var _=s+y,S;y===-p||y!==p&&o[_-1]<o[_+1]?S=o[_+1]:S=o[_-1]+1;for(var A=S-y;S<n&&A<r&&t.charAt(n-S-1)===e.charAt(r-A-1);)S++,A++;if(o[_]=S,S>n)m+=2;else if(A>r)g+=2;else if(!d){var w=s+u-y;if(w>=0&&w<l&&a[w]!==-1){var D=a[w],C=s+D-w;if(S=n-S,D>=S)return Ca(t,e,D,C)}}}}return[[Pe,t],[De,e]]}function Ca(t,e,n,r){var i=t.substring(0,n),s=e.substring(0,r),l=t.substring(n),a=e.substring(r),o=wn(i,s),c=wn(l,a);return o.concat(c)}function Ws(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,s=0;n<i;)t.substring(s,i)==e.substring(s,i)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return ju(t.charCodeAt(i-1))&&i--,i}function Da(t,e){var n=t.length,r=e.length;if(n==0||r==0)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var s=0,l=1;;){var a=t.substring(i-l),o=e.indexOf(a);if(o==-1)return s;l+=o,(o==0||t.substring(i-l)==e.substring(0,l))&&(s=l,l++)}}function zr(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,s=0;n<i;)t.substring(t.length-i,t.length-s)==e.substring(e.length-i,e.length-s)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return Vu(t.charCodeAt(t.length-i))&&i--,i}function SS(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||r.length*2<n.length)return null;function i(f,g,m){for(var p=f.substring(m,m+Math.floor(f.length/4)),b=-1,w="",D,C,_,S;(b=g.indexOf(p,b+1))!==-1;){var y=Ws(f.substring(m),g.substring(b)),A=zr(f.substring(0,m),g.substring(0,b));w.length<A+y&&(w=g.substring(b-A,b)+g.substring(b,b+y),D=f.substring(0,m-A),C=f.substring(m+y),_=g.substring(0,b-A),S=g.substring(b+y))}return w.length*2>=f.length?[D,C,_,S,w]:null}var s=i(n,r,Math.ceil(n.length/4)),l=i(n,r,Math.ceil(n.length/2)),a;if(!s&&!l)return null;l?s?a=s[4].length>l[4].length?s:l:a=l:a=s;var o,c,u,d;t.length>e.length?(o=a[0],c=a[1],u=a[2],d=a[3]):(u=a[0],d=a[1],o=a[2],c=a[3]);var h=a[4];return[o,c,u,d,h]}function ES(t){for(var e=!1,n=[],r=0,i=null,s=0,l=0,a=0,o=0,c=0;s<t.length;)t[s][0]==ge?(n[r++]=s,l=o,a=c,o=0,c=0,i=t[s][1]):(t[s][0]==De?o+=t[s][1].length:c+=t[s][1].length,i&&i.length<=Math.max(l,a)&&i.length<=Math.max(o,c)&&(t.splice(n[r-1],0,[Pe,i]),t[n[r-1]+1][0]=De,r--,r--,s=r>0?n[r-1]:-1,l=0,a=0,o=0,c=0,i=null,e=!0)),s++;for(e&&Gs(t),CS(t),s=1;s<t.length;){if(t[s-1][0]==Pe&&t[s][0]==De){var u=t[s-1][1],d=t[s][1],h=Da(u,d),f=Da(d,u);h>=f?(h>=u.length/2||h>=d.length/2)&&(t.splice(s,0,[ge,d.substring(0,h)]),t[s-1][1]=u.substring(0,u.length-h),t[s+1][1]=d.substring(h),s++):(f>=u.length/2||f>=d.length/2)&&(t.splice(s,0,[ge,u.substring(0,f)]),t[s-1][0]=De,t[s-1][1]=d.substring(0,d.length-f),t[s+1][0]=Pe,t[s+1][1]=u.substring(f),s++),s++}s++}}var _a=/[^a-zA-Z0-9]/,Ra=/\s/,Ta=/[\r\n]/,wS=/\n\r?\n$/,AS=/^\r?\n\r?\n/;function CS(t){function e(f,g){if(!f||!g)return 6;var m=f.charAt(f.length-1),p=g.charAt(0),b=m.match(_a),w=p.match(_a),D=b&&m.match(Ra),C=w&&p.match(Ra),_=D&&m.match(Ta),S=C&&p.match(Ta),y=_&&f.match(wS),A=S&&g.match(AS);return y||A?5:_||S?4:b&&!D&&C?3:D||C?2:b||w?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==ge&&t[n+1][0]==ge){var r=t[n-1][1],i=t[n][1],s=t[n+1][1],l=zr(r,i);if(l){var a=i.substring(i.length-l);r=r.substring(0,r.length-l),i=a+i.substring(0,i.length-l),s=a+s}for(var o=r,c=i,u=s,d=e(r,i)+e(i,s);i.charAt(0)===s.charAt(0);){r+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var h=e(r,i)+e(i,s);h>=d&&(d=h,o=r,c=i,u=s)}t[n-1][1]!=o&&(o?t[n-1][1]=o:(t.splice(n-1,1),n--),t[n][1]=c,u?t[n+1][1]=u:(t.splice(n+1,1),n--))}n++}}function Gs(t,e){t.push([ge,""]);for(var n=0,r=0,i=0,s="",l="",a;n<t.length;){if(n<t.length-1&&!t[n][1]){t.splice(n,1);continue}switch(t[n][0]){case De:i++,l+=t[n][1],n++;break;case Pe:r++,s+=t[n][1],n++;break;case ge:var o=n-i-r-1;if(e){if(o>=0&&zu(t[o][1])){var c=t[o][1].slice(-1);if(t[o][1]=t[o][1].slice(0,-1),s=c+s,l=c+l,!t[o][1]){t.splice(o,1),n--;var u=o-1;t[u]&&t[u][0]===De&&(i++,l=t[u][1]+l,u--),t[u]&&t[u][0]===Pe&&(r++,s=t[u][1]+s,u--),o=u}}if(Fu(t[n][1])){var c=t[n][1].charAt(0);t[n][1]=t[n][1].slice(1),s+=c,l+=c}}if(n<t.length-1&&!t[n][1]){t.splice(n,1);break}if(s.length>0||l.length>0){s.length>0&&l.length>0&&(a=Ws(l,s),a!==0&&(o>=0?t[o][1]+=l.substring(0,a):(t.splice(0,0,[ge,l.substring(0,a)]),n++),l=l.substring(a),s=s.substring(a)),a=zr(l,s),a!==0&&(t[n][1]=l.substring(l.length-a)+t[n][1],l=l.substring(0,l.length-a),s=s.substring(0,s.length-a)));var d=i+r;s.length===0&&l.length===0?(t.splice(n-d,d),n=n-d):s.length===0?(t.splice(n-d,d,[De,l]),n=n-d+1):l.length===0?(t.splice(n-d,d,[Pe,s]),n=n-d+1):(t.splice(n-d,d,[Pe,s],[De,l]),n=n-d+2)}n!==0&&t[n-1][0]===ge?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,s="",l="";break}}t[t.length-1][1]===""&&t.pop();var h=!1;for(n=1;n<t.length-1;)t[n-1][0]===ge&&t[n+1][0]===ge&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),h=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),h=!0)),n++;h&&Gs(t,e)}function ju(t){return t>=55296&&t<=56319}function Vu(t){return t>=56320&&t<=57343}function Fu(t){return Vu(t.charCodeAt(0))}function zu(t){return ju(t.charCodeAt(t.length-1))}function DS(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function wi(t,e,n,r){return zu(t)||Fu(r)?null:DS([[ge,t],[Pe,e],[De,n],[ge,r]])}function _S(t,e,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,s=t.length,l=e.length;if(r.length===0&&(i===null||i.length===0)){var a=r.index,o=t.slice(0,a),c=t.slice(a),u=i?i.index:null;e:{var d=a+l-s;if(u!==null&&u!==d||d<0||d>l)break e;var h=e.slice(0,d),f=e.slice(d);if(f!==c)break e;var g=Math.min(a,d),m=o.slice(0,g),p=h.slice(0,g);if(m!==p)break e;var b=o.slice(g),w=h.slice(g);return wi(m,b,w,c)}e:{if(u!==null&&u!==a)break e;var D=a,h=e.slice(0,D),f=e.slice(D);if(h!==o)break e;var C=Math.min(s-D,l-D),_=c.slice(c.length-C),S=f.slice(f.length-C);if(_!==S)break e;var b=c.slice(0,c.length-C),w=f.slice(0,f.length-C);return wi(o,b,w,_)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),_=t.slice(r.index+r.length),g=m.length,C=_.length;if(l<g+C)break e;var p=e.slice(0,g),S=e.slice(l-C);if(m!==p||_!==S)break e;var b=t.slice(g,s-C),w=e.slice(g,l-C);return wi(m,b,w,_)}return null}function Ur(t,e,n,r){return wn(t,e,n,r,!0)}Ur.INSERT=De;Ur.DELETE=Pe;Ur.EQUAL=ge;var RS=Ur;const TS=Ar(RS),kS={class:"caption grey--text text--darken-1 pt-2"},MS={__name:"DiffView",props:{item:{type:Object,required:!0},old:{type:Object,required:!0}},setup(t){const{fields:e,mainDataset:n}=ot(),r=t,i=Pn(async()=>Object.keys(r.old).length>1?r.old:(await Me(`${n.href}/lines?_id_eq=${r.old.id}`)).results.pop(),null),s=F(()=>Object.keys(r.item||{}).concat(Object.keys(i.value||{})).filter((l,a,o)=>o.indexOf(l)===a&&!l.startsWith("_")));return(l,a)=>(Z(!0),ye(Se,null,sr(s.value,o=>(Z(),ae(kn,{key:o,class:"px-2",flat:""},{default:G(()=>{var c,u;return[rr("div",kS,Fe(V(e)[o].title?V(e)[o].title:V(e)[o]["x-originalName"]||o),1),(Z(!0),ye(Se,null,sr(V(TS)([(c=V(i))==null?void 0:c[o]].join("").replace(/\r\n/g,`
|
|
3
3
|
`),[(u=t.item)==null?void 0:u[o]].join("").replace(/\r\n/g,`
|
|
4
4
|
`)),(d,h)=>(Z(),ye("span",{key:h,style:fd("white-space: pre-wrap;"+(d[0]?`background:${d[0]>0?"lightgreen":"lightcoral"}`:""))},Fe(d[0]?d[1].replace(/\n/g,`
|
|
5
|
-
`):d[1]),5))),128))]}),_:2},1024))),128))}};var xS={exports:{}};(function(t,e){(function(n,r){t.exports=r(yu)})(An,function(n){function r(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var i=r(n),s={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(l){return""+l+(l===1?"er":"")}};return i.default.locale(s,null,!0),s})})(xS);var IS={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(An,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}})})(IS);var Uu={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(An,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,s){var l=i.prototype,a=l.format;s.en.formats=n,l.format=function(o){o===void 0&&(o="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,h){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,g,m){var p=m&&m.toUpperCase();return g||h[m]||n[m]||h[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,w,D){return w||D.slice(1)})})}(o,c===void 0?{}:c);return a.call(this,u)}}})})(Uu);var OS=Uu.exports;const NS=Ar(OS);var $u={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(An,function(){return function(n,r,i){n=n||{};var s=r.prototype,l={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(c,u,d,h){return s.fromToBase(c,u,d,h)}i.en.relativeTime=l,s.fromToBase=function(c,u,d,h,f){for(var g,m,p,b=d.$locale().relativeTime||l,w=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],D=w.length,C=0;C<D;C+=1){var _=w[C];_.d&&(g=h?i(c).diff(d,_.d,!0):d.diff(c,_.d,!0));var S=(n.rounding||Math.round)(Math.abs(g));if(p=g>0,S<=_.r||!_.r){S<=1&&C>0&&(_=w[C-1]);var y=b[_.l];f&&(S=f(""+S)),m=typeof y=="string"?y.replace("%d",S):y(S,u,_.l,p);break}}if(u)return m;var A=p?b.future:b.past;return typeof A=="function"?A(m):A.replace("%s",m)},s.to=function(c,u){return a(c,u,this,!0)},s.from=function(c,u){return a(c,u,this)};var o=function(c){return c.$u?i.utc():i()};s.toNow=function(c){return this.to(o(this),c)},s.fromNow=function(c){return this.from(o(this),c)}}})})($u);var PS=$u.exports;const HS=Ar(PS);yn.extend(NS);yn.extend(HS);function LS(t){const e=ne("fr");return{locale:e,dayjs:n=>yn(n).locale(e.value)}}const{locale:JS,dayjs:Ai}=LS(),BS={key:0},jS={key:0},VS={__name:"EventDetails",props:{event:{type:[Object,null],required:!0}},emits:["updated"],setup(t,{emit:e}){const n=gd(()=>pd(()=>import("./EventEdit-B1QYjYMV.js").then(_=>_.E),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),{width:r,height:i}=Pa(),{config:s,mainDataset:l,contribsDataset:a,layout:o,startDateField:c,endDateField:u,dateField:d}=ot(),h=e,f=ne("read"),g=t,m=Ji();jt(()=>g.event,_=>{f.value="read"});const p={create:"d'ajout",update:"de modification",delete:"de suppression"},b=Pn(async()=>{if(!g.event)return null;if(g.event.id||(f.value="edit"),g.event.isContrib){const _={...g.event.payload||{}};return c&&u?(_[c]||(_[c]=g.event.start),_[u]||(_[u]=g.event.end)):d&&!_[d]&&(_[d]=g.event.start),_}else return g.event.id?(await Me(`${l.href}/lines?_id_eq=${g.event.id}`)).results.pop():{...g.event}},null,{onError:function(_){it.value=!0,st.value=_.message}});async function w(_){var I,Y,B,P,O,j;const S=new FormData,{__file:y,...A}=_,H=o==="contrib"?{payload:JSON.stringify(A)}:A;o==="contrib"&&(H.operation=g.event.isContrib?g.event.operation:"update",H.status="submitted",H.start=A[c&&u?c:d],H.end=A[c&&u?u:d],H._owner=(Y=(I=m==null?void 0:m.state)==null?void 0:I.user)==null?void 0:Y.id,H._ownerName=(P=(B=m==null?void 0:m.state)==null?void 0:B.user)==null?void 0:P.name,g.event.target_id?H.target_id=g.event.target_id:o==="contrib"&&!g.event.isContrib&&(H.target_id=g.event.id));for(const[L,$]of Object.entries(H))S.append(L,$);y&&S.append("attachment",y);const M={method:"POST",body:S,headers:{"Content-Disposition":S}};let N=`${o==="contrib"?a.href+`/own/user:${(j=(O=m==null?void 0:m.state)==null?void 0:O.user)==null?void 0:j.id}`:l.href}/lines`;(o==="contrib"&&g.event.isContrib||o==="admin"&&!g.event.isContrib)&&g.event.id&&(N+="/"+g.event.id,M.method="PUT");try{await Me(N,M),h("updated"),Bt.value=new Date().getTime()}catch(L){st.value=L.status+" - "+L._data,it.value=!0}}const D=F(()=>{if(c&&u){const _=Ai(b.value[c]),S=Ai(b.value[u]);return _.isSame(S,"day")?_.format("ddd D MMM YYYY")+", "+_.format("HH:mm")+" - "+S.format("HH:mm"):_.format("ddd D MMM YYYY, HH:mm")+" - "+S.format("ddd D MMM YYYY, HH:mm")}else return Ai(b.value[d]).format("dd, MMM YYYY")});function C(){f.value="read",g.event.id||h("updated")}return(_,S)=>(Z(),ae(kn,{"max-width":f.value==="read"?800:V(r)*V(s).formWidth/10,"min-width":200,"max-height":V(i)*.8},{default:G(()=>[V(b)?(Z(),ye(Se,{key:0},[f.value==="read"?(Z(),ye(Se,{key:0},[t.event.isContrib?(Z(),ye("div",BS,[fe(" Proposition "+Fe(p[t.event.operation])+" ",1),V(o)==="admin"?(Z(),ye("span",jS," par "+Fe(t.event._ownerName),1)):ve("",!0)])):ve("",!0),V(o)==="admin"||V(o)==="contrib"&&!V(s).createOnlyContribs?(Z(),ae(Tn,{key:1,class:"py-0"},{default:G(()=>[fe(Fe(D.value)+" ",1),R(rn),!t.event.isContrib||V(o)==="contrib"&&t.event.operation!=="delete"&&t.event.status==="submitted"?bt((Z(),ae(je,{key:0,icon:"mdi-pencil",color:"primary",onClick:S[0]||(S[0]=y=>f.value="edit")},null,512)),[[Fr,{text:"Modifier l'événement",location:"right",openDelay:"500"}]]):ve("",!0),V(o)==="contrib"&&t.event.status==="submitted"||!t.event.isContrib?(Z(),ae(gS,{key:1,event:t.event,onDeleted:S[1]||(S[1]=y=>h("updated"))},null,8,["event"])):ve("",!0),V(o)==="admin"&&t.event.isContrib&&t.event.status==="submitted"?(Z(),ae(mS,{key:2,event:t.event,onRefused:S[2]||(S[2]=y=>h("updated"))},null,8,["event"])):ve("",!0),V(o)==="admin"&&t.event.isContrib&&t.event.status==="submitted"?(Z(),ae(pS,{key:3,event:t.event,onAccepted:S[3]||(S[3]=y=>h("updated"))},null,8,["event"])):ve("",!0),t.event.isContrib&&(V(o)==="contrib"||t.event.status!=="submitted")?(Z(),ae(vS,{key:4,value:t.event.status},null,8,["value"])):ve("",!0)]),_:1})):ve("",!0),t.event.isContrib&&t.event.operation==="update"?(Z(),ae(MS,{key:2,item:V(b),old:t.event.original||{id:t.event.target_id}},null,8,["item","old"])):(Z(),ae(cS,{key:3,item:V(b)},null,8,["item"]))],64)):ve("",!0),f.value==="edit"?(Z(),ae(hd,{key:1},{fallback:G(()=>[R(Zs,{align:"center",style:{height:"200px"},class:"ma-0"},{default:G(()=>[R(Xs,{class:"text-center"},{default:G(()=>[R(Js,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1})]),default:G(()=>[R(V(n),{item:V(b),onValidate:w,onCancel:C},null,8,["item"])]),_:1})):ve("",!0)],64)):(Z(),ae(Zs,{key:1,align:"center",style:{height:"200px"},class:"ma-0"},{default:G(()=>[R(Xs,{class:"text-center"},{default:G(()=>[R(Js,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1}))]),_:1},8,["max-width","max-height"]))}},FS={__name:"Calendar",setup(t){var _;md(S=>({"3037ab5d":V(n).current.value.colors.primary,"3e0d240f":V(n).current.value.colors.secondary}));const e=Ji(),n=vd(),{config:r,color:i,mainDataset:s,contribsDataset:l,layout:a,startDateField:o,endDateField:c,dateField:u,labelField:d}=ot(),h=ne(null),f=ne(null),g=ne(null);me.view=me.view||"dayGridMonth";function m(S){return i.type==="monochrome"?i.colors.type==="custom"?i.colors.hexValue:n.current.value.colors[i.colors.strValue]:b0.value[S]}const p={create:"Ajout",update:"Modification",delete:"Suppression"},b=Pn(async()=>{var y,A;const S=(y0.value||[]).map(H=>({...H,color:m(H.colorFieldValue)}));if(r.crowdSourcing&&(a==="admin"||a==="contrib"&&!r.hideContribs)){const H={_c_date_match:me.start+","+me.end,size:1e3,t:Bt.value},N=(await Me(`${l.href+(a==="contrib"?`/own/user:${(A=(y=e==null?void 0:e.state)==null?void 0:y.user)==null?void 0:A.id}`:"")}/lines`,{params:H})).results.map(I=>{const Y=JSON.parse(I.payload||"{}");I._attachment_url&&(Y._attachment_url=I._attachment_url);const B=I.original?JSON.parse(I.original):void 0;return{editable:a==="contrib",isContrib:!0,operation:I.operation,status:I.status,_owner:I._owner,_ownerName:I._ownerName,id:I._id,target_id:I.target_id,payload:Y,attachmentPath:I.attachmentPath,original:B,title:`${Y[d]} - ${p[I.operation]}`,color:r.colorContrib,start:Y[o&&c?o:u],end:o&&c?Y[c]:void 0,allDay:!(o&&c)||new Date(I.end).getTime()-new Date(I.start).getTime()>2*24*60*60*1e3}});return[...S,...N]}else return S},null,{onError:function(S){it.value=!0,st.value=S.message}});async function w(S){var M,N,I,Y,B,P;const y={};o&&c?(y[(M=S.extendedProps)!=null&&M.isContrib?"start":o]=S.start.toISOString(),y[(N=S.extendedProps)!=null&&N.isContrib?"end":c]=S.end.toISOString()):u&&(y[(I=S.extendedProps)!=null&&I.isContrib?"start":u]=S.start.toISOString(),(Y=S.extendedProps)!=null&&Y.isContrib&&(y.end=S.end.toISOString()));const A=`${(B=S.extendedProps)!=null&&B.isContrib?l.href+`/own/${(P=S.extendedProps)==null?void 0:P._owner}`:s.href}/lines/${S.id}`,H={method:"PATCH",body:y};try{await Me(A,H),f.value=!1,Bt.value=new Date().getTime()}catch(O){st.value=O.status+" - "+O._data,it.value=!0}}const D=me.start&&me.end&&new Date((new Date(me.start).getTime()+new Date(me.end).getTime())/2),C=Ia({plugins:[iv,db,Uv,Db],initialView:me.view||"dayGridMonth",initialDate:D&&new Date(D)||((_=s.timePeriod)==null?void 0:_.startDate)&&new Date(s.timePeriod.startDate)||new Date,locale:_b,headerToolbar:{start:"prev,next today",center:"title",end:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},events:b,selectable:a!=="simple",datesSet(S){me.start=S.startStr,me.end=S.endStr,me.view=S.view.type},eventClick(S){S.jsEvent.preventDefault();const y=S.event.toJSON();h.value={...y,...y.extendedProps},delete h.value.extendedProps,setTimeout(()=>{f.value=!0},0),g.value=S.el},eventDrop(S){w(S.event)},eventResize(S){w(S.event)},select(S){var A;const y={};if(a!=="contrib")o&&c?(y[o]=S.start.toISOString(),y[c]=S.end.toISOString()):u&&(y[u]=S.start.toISOString());else{y.isContrib=!0,y.operation="create",y.status="submitted",y.start=S.start.toISOString(),y.end=S.end.toISOString();const H=(A=e==null?void 0:e.state)==null?void 0:A.user;H&&(y._owner="user:"+H.id,y._ownerName=H.name)}h.value=y,g.value=S.jsEvent.target,f.value=!0}});return(S,y)=>(Z(),ye(Se,null,[R(V(Tm),{options:C},null,8,["options"]),R(Vr,{modelValue:f.value,"onUpdate:modelValue":y[1]||(y[1]=A=>f.value=A),"close-on-content-click":!1,activator:g.value,location:V(me).view==="dayGridMonth"?"bottom":"start center"},{default:G(()=>[R(VS,{event:h.value,onUpdated:y[0]||(y[0]=A=>f.value=!1)},null,8,["event"])]),_:1},8,["modelValue","activator","location"])],64))}},KS=Object.freeze(Object.defineProperty({__proto__:null,default:FS},Symbol.toStringTag,{value:"Module"}));export{KS as C,QS as V,ZS as a,_0 as b,Wi as c,qS as d,Vr as e,rn as f,Sa as g,U0 as h,wa as i,eS as j,C0 as k,XS as l,Du as m,sS as n,Ru as o,D0 as p,J0 as q,Z0 as r,Y0 as s,Gi as t,YS as u};
|
|
5
|
+
`):d[1]),5))),128))]}),_:2},1024))),128))}};var xS={exports:{}};(function(t,e){(function(n,r){t.exports=r(yu)})(An,function(n){function r(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var i=r(n),s={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(l){return""+l+(l===1?"er":"")}};return i.default.locale(s,null,!0),s})})(xS);var IS={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(An,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}})})(IS);var Uu={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(An,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,s){var l=i.prototype,a=l.format;s.en.formats=n,l.format=function(o){o===void 0&&(o="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,h){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,g,m){var p=m&&m.toUpperCase();return g||h[m]||n[m]||h[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,w,D){return w||D.slice(1)})})}(o,c===void 0?{}:c);return a.call(this,u)}}})})(Uu);var OS=Uu.exports;const NS=Ar(OS);var $u={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(An,function(){return function(n,r,i){n=n||{};var s=r.prototype,l={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(c,u,d,h){return s.fromToBase(c,u,d,h)}i.en.relativeTime=l,s.fromToBase=function(c,u,d,h,f){for(var g,m,p,b=d.$locale().relativeTime||l,w=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],D=w.length,C=0;C<D;C+=1){var _=w[C];_.d&&(g=h?i(c).diff(d,_.d,!0):d.diff(c,_.d,!0));var S=(n.rounding||Math.round)(Math.abs(g));if(p=g>0,S<=_.r||!_.r){S<=1&&C>0&&(_=w[C-1]);var y=b[_.l];f&&(S=f(""+S)),m=typeof y=="string"?y.replace("%d",S):y(S,u,_.l,p);break}}if(u)return m;var A=p?b.future:b.past;return typeof A=="function"?A(m):A.replace("%s",m)},s.to=function(c,u){return a(c,u,this,!0)},s.from=function(c,u){return a(c,u,this)};var o=function(c){return c.$u?i.utc():i()};s.toNow=function(c){return this.to(o(this),c)},s.fromNow=function(c){return this.from(o(this),c)}}})})($u);var PS=$u.exports;const HS=Ar(PS);yn.extend(NS);yn.extend(HS);function LS(t){const e=ne("fr");return{locale:e,dayjs:n=>yn(n).locale(e.value)}}const{locale:JS,dayjs:Ai}=LS(),BS={key:0},jS={key:0},VS={__name:"EventDetails",props:{event:{type:[Object,null],required:!0}},emits:["updated"],setup(t,{emit:e}){const n=gd(()=>pd(()=>import("./EventEdit-qkI-WyUQ.js").then(_=>_.E),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),{width:r,height:i}=Pa(),{config:s,mainDataset:l,contribsDataset:a,layout:o,startDateField:c,endDateField:u,dateField:d}=ot(),h=e,f=ne("read"),g=t,m=Ji();jt(()=>g.event,_=>{f.value="read"});const p={create:"d'ajout",update:"de modification",delete:"de suppression"},b=Pn(async()=>{if(!g.event)return null;if(g.event.id||(f.value="edit"),g.event.isContrib){const _={...g.event.payload||{}};return c&&u?(_[c]||(_[c]=g.event.start),_[u]||(_[u]=g.event.end)):d&&!_[d]&&(_[d]=g.event.start),_}else return g.event.id?(await Me(`${l.href}/lines?_id_eq=${g.event.id}`)).results.pop():{...g.event}},null,{onError:function(_){it.value=!0,st.value=_.message}});async function w(_){var I,Y,B,P,O,j;const S=new FormData,{__file:y,...A}=_,H=o==="contrib"?{payload:JSON.stringify(A)}:A;o==="contrib"&&(H.operation=g.event.isContrib?g.event.operation:"update",H.status="submitted",H.start=A[c&&u?c:d],H.end=A[c&&u?u:d],H._owner=(Y=(I=m==null?void 0:m.state)==null?void 0:I.user)==null?void 0:Y.id,H._ownerName=(P=(B=m==null?void 0:m.state)==null?void 0:B.user)==null?void 0:P.name,g.event.target_id?H.target_id=g.event.target_id:o==="contrib"&&!g.event.isContrib&&(H.target_id=g.event.id));for(const[L,$]of Object.entries(H))S.append(L,$);y&&S.append("attachment",y);const M={method:"POST",body:S,headers:{"Content-Disposition":S}};let N=`${o==="contrib"?a.href+`/own/user:${(j=(O=m==null?void 0:m.state)==null?void 0:O.user)==null?void 0:j.id}`:l.href}/lines`;(o==="contrib"&&g.event.isContrib||o==="admin"&&!g.event.isContrib)&&g.event.id&&(N+="/"+g.event.id,M.method="PUT");try{await Me(N,M),h("updated"),Bt.value=new Date().getTime()}catch(L){st.value=L.status+" - "+L._data,it.value=!0}}const D=F(()=>{if(c&&u){const _=Ai(b.value[c]),S=Ai(b.value[u]);return _.isSame(S,"day")?_.format("ddd D MMM YYYY")+", "+_.format("HH:mm")+" - "+S.format("HH:mm"):_.format("ddd D MMM YYYY, HH:mm")+" - "+S.format("ddd D MMM YYYY, HH:mm")}else return Ai(b.value[d]).format("dd, MMM YYYY")});function C(){f.value="read",g.event.id||h("updated")}return(_,S)=>(Z(),ae(kn,{"max-width":f.value==="read"?800:V(r)*V(s).formWidth/10,"min-width":200,"max-height":V(i)*.8},{default:G(()=>[V(b)?(Z(),ye(Se,{key:0},[f.value==="read"?(Z(),ye(Se,{key:0},[t.event.isContrib?(Z(),ye("div",BS,[fe(" Proposition "+Fe(p[t.event.operation])+" ",1),V(o)==="admin"?(Z(),ye("span",jS," par "+Fe(t.event._ownerName),1)):ve("",!0)])):ve("",!0),V(o)==="admin"||V(o)==="contrib"&&!V(s).createOnlyContribs?(Z(),ae(Tn,{key:1,class:"py-0"},{default:G(()=>[fe(Fe(D.value)+" ",1),R(rn),!t.event.isContrib||V(o)==="contrib"&&t.event.operation!=="delete"&&t.event.status==="submitted"?bt((Z(),ae(je,{key:0,icon:"mdi-pencil",color:"primary",onClick:S[0]||(S[0]=y=>f.value="edit")},null,512)),[[Fr,{text:"Modifier l'événement",location:"right",openDelay:"500"}]]):ve("",!0),V(o)==="contrib"&&t.event.status==="submitted"||!t.event.isContrib?(Z(),ae(gS,{key:1,event:t.event,onDeleted:S[1]||(S[1]=y=>h("updated"))},null,8,["event"])):ve("",!0),V(o)==="admin"&&t.event.isContrib&&t.event.status==="submitted"?(Z(),ae(mS,{key:2,event:t.event,onRefused:S[2]||(S[2]=y=>h("updated"))},null,8,["event"])):ve("",!0),V(o)==="admin"&&t.event.isContrib&&t.event.status==="submitted"?(Z(),ae(pS,{key:3,event:t.event,onAccepted:S[3]||(S[3]=y=>h("updated"))},null,8,["event"])):ve("",!0),t.event.isContrib&&(V(o)==="contrib"||t.event.status!=="submitted")?(Z(),ae(vS,{key:4,value:t.event.status},null,8,["value"])):ve("",!0)]),_:1})):ve("",!0),t.event.isContrib&&t.event.operation==="update"?(Z(),ae(MS,{key:2,item:V(b),old:t.event.original||{id:t.event.target_id}},null,8,["item","old"])):(Z(),ae(cS,{key:3,item:V(b)},null,8,["item"]))],64)):ve("",!0),f.value==="edit"?(Z(),ae(hd,{key:1},{fallback:G(()=>[R(Zs,{align:"center",style:{height:"200px"},class:"ma-0"},{default:G(()=>[R(Xs,{class:"text-center"},{default:G(()=>[R(Js,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1})]),default:G(()=>[R(V(n),{item:V(b),onValidate:w,onCancel:C},null,8,["item"])]),_:1})):ve("",!0)],64)):(Z(),ae(Zs,{key:1,align:"center",style:{height:"200px"},class:"ma-0"},{default:G(()=>[R(Xs,{class:"text-center"},{default:G(()=>[R(Js,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1}))]),_:1},8,["max-width","max-height"]))}},FS={__name:"Calendar",setup(t){var _;md(S=>({"3037ab5d":V(n).current.value.colors.primary,"3e0d240f":V(n).current.value.colors.secondary}));const e=Ji(),n=vd(),{config:r,color:i,mainDataset:s,contribsDataset:l,layout:a,startDateField:o,endDateField:c,dateField:u,labelField:d}=ot(),h=ne(null),f=ne(null),g=ne(null);me.view=me.view||"dayGridMonth";function m(S){return i.type==="monochrome"?i.colors.type==="custom"?i.colors.hexValue:n.current.value.colors[i.colors.strValue]:b0.value[S]}const p={create:"Ajout",update:"Modification",delete:"Suppression"},b=Pn(async()=>{var y,A;const S=(y0.value||[]).map(H=>({...H,color:m(H.colorFieldValue)}));if(r.crowdSourcing&&(a==="admin"||a==="contrib"&&!r.hideContribs)){const H={_c_date_match:me.start+","+me.end,size:1e3,t:Bt.value},N=(await Me(`${l.href+(a==="contrib"?`/own/user:${(A=(y=e==null?void 0:e.state)==null?void 0:y.user)==null?void 0:A.id}`:"")}/lines`,{params:H})).results.map(I=>{const Y=JSON.parse(I.payload||"{}");I._attachment_url&&(Y._attachment_url=I._attachment_url);const B=I.original?JSON.parse(I.original):void 0;return{editable:a==="contrib",isContrib:!0,operation:I.operation,status:I.status,_owner:I._owner,_ownerName:I._ownerName,id:I._id,target_id:I.target_id,payload:Y,attachmentPath:I.attachmentPath,original:B,title:`${Y[d]} - ${p[I.operation]}`,color:r.colorContrib,start:Y[o&&c?o:u],end:o&&c?Y[c]:void 0,allDay:!(o&&c)||new Date(I.end).getTime()-new Date(I.start).getTime()>2*24*60*60*1e3}});return[...S,...N]}else return S},null,{onError:function(S){it.value=!0,st.value=S.message}});async function w(S){var M,N,I,Y,B,P;const y={};o&&c?(y[(M=S.extendedProps)!=null&&M.isContrib?"start":o]=S.start.toISOString(),y[(N=S.extendedProps)!=null&&N.isContrib?"end":c]=S.end.toISOString()):u&&(y[(I=S.extendedProps)!=null&&I.isContrib?"start":u]=S.start.toISOString(),(Y=S.extendedProps)!=null&&Y.isContrib&&(y.end=S.end.toISOString()));const A=`${(B=S.extendedProps)!=null&&B.isContrib?l.href+`/own/${(P=S.extendedProps)==null?void 0:P._owner}`:s.href}/lines/${S.id}`,H={method:"PATCH",body:y};try{await Me(A,H),f.value=!1,Bt.value=new Date().getTime()}catch(O){st.value=O.status+" - "+O._data,it.value=!0}}const D=me.start&&me.end&&new Date((new Date(me.start).getTime()+new Date(me.end).getTime())/2),C=Ia({plugins:[iv,db,Uv,Db],initialView:me.view||"dayGridMonth",initialDate:D&&new Date(D)||((_=s.timePeriod)==null?void 0:_.startDate)&&new Date(s.timePeriod.startDate)||new Date,locale:_b,headerToolbar:{start:"prev,next today",center:"title",end:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},events:b,selectable:a!=="simple",datesSet(S){me.start=S.startStr,me.end=S.endStr,me.view=S.view.type},eventClick(S){S.jsEvent.preventDefault();const y=S.event.toJSON();h.value={...y,...y.extendedProps},delete h.value.extendedProps,setTimeout(()=>{f.value=!0},0),g.value=S.el},eventDrop(S){w(S.event)},eventResize(S){w(S.event)},select(S){var A;const y={};if(a!=="contrib")o&&c?(y[o]=S.start.toISOString(),y[c]=S.end.toISOString()):u&&(y[u]=S.start.toISOString());else{y.isContrib=!0,y.operation="create",y.status="submitted",y.start=S.start.toISOString(),y.end=S.end.toISOString();const H=(A=e==null?void 0:e.state)==null?void 0:A.user;H&&(y._owner="user:"+H.id,y._ownerName=H.name)}h.value=y,g.value=S.jsEvent.target,f.value=!0}});return(S,y)=>(Z(),ye(Se,null,[R(V(Tm),{options:C},null,8,["options"]),R(Vr,{modelValue:f.value,"onUpdate:modelValue":y[1]||(y[1]=A=>f.value=A),"close-on-content-click":!1,activator:g.value,location:V(me).view==="dayGridMonth"?"bottom":"start center"},{default:G(()=>[R(VS,{event:h.value,onUpdated:y[0]||(y[0]=A=>f.value=!1)},null,8,["event"])]),_:1},8,["modelValue","activator","location"])],64))}},KS=Object.freeze(Object.defineProperty({__proto__:null,default:FS},Symbol.toStringTag,{value:"Module"}));export{KS as C,QS as V,ZS as a,_0 as b,Wi as c,qS as d,Vr as e,rn as f,Sa as g,U0 as h,wa as i,eS as j,C0 as k,XS as l,Du as m,sS as n,Ru as o,D0 as p,J0 as q,Z0 as r,Y0 as s,Gi as t,YS as u};
|