@data-fair/app-calendar 1.1.2 → 1.1.4

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.
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EventEdit-CTSGk95O.js","assets/index-rmhZFHuL.js","assets/index-CJongqRm.css","assets/forwardRefs-VddbaOeZ.js","assets/forwardRefs-DxCpTRRo.css","assets/EventEdit-CZ57WmFy.css"])))=>i.map(i=>d[i]);
2
- import{g as ne,c as Hr,a as Xa,m as de,h as Qe,t as Dd,r as ie,I as zi,o as mn,w as Xe,b as Ka,d as Ja,F as we,T as Rd,e as hs,f as Lr,n as gs,i as kd,j as Td,u as $,k as eo,l as ps,s as Ne,p as to,q as N,v as vn,x as Ee,y as ln,z as zn,A as ms,B as X,C as Br,D as At,E as ze,G as je,H as Ct,J as Vr,K as J,L as he,M as y,N as vs,O as zr,P as jt,Q as bn,R as mt,S as xd,U as bs,V as ys,W as Md,X as Ie,Y as Id,Z as Nd,_ as vt,$ as pe,a0 as Od,a1 as an,a2 as Pd,a3 as Hd,a4 as no,a5 as vl,a6 as jn,a7 as Fn,a8 as yt,a9 as Ss,aa as Es,ab as jr,ac as Fr,ad as ce,ae as Ve,af as re,ag as qe,ah as Ue,ai as ro,aj as Xt,ak as io,al as vr,am as Ld,an as so,ao as lo,ap as Bd,aq as ji,ar as Pt,as as ao,at as oo,au as fe,av as Vd,aw as zd,ax as jd,ay as nt,az as Fd,aA as cr,aB as Be,aC as Ud,aD as bl,aE as $d,aF as Wd,aG as Gd,aH as Yd,aI as co,aJ as qd,aK as Qd,aL as Zd,aM as Xd,aN as Kd}from"./index-rmhZFHuL.js";import{d as on,e as cn,m as ve,a as ot,u as Jd,V as ef,b as ws,c as As,f as Ur,g as Cs,h as _s,i as $r,j as yn,k as Sn,l as Se,n as uo,o as fo,p as br,q as ho,r as Xn,s as tf,t as yl,v as nf,w as rf,x as sf,y as Sl}from"./forwardRefs-VddbaOeZ.js";function Wr(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ne()({name:n??Hr(Xa(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...de()},setup(r,i){let{slots:s}=i;return()=>{var l;return Qe(r.tag,{class:[t,r.class],style:r.style},(l=s.default)==null?void 0:l.call(s))}}})}function Fi(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=Dd(),r=ie();if(zi){const i=new ResizeObserver(s=>{t==null||t(s,i),s.length&&(e==="content"?r.value=s[0].contentRect:r.value=s[0].target.getBoundingClientRect())});mn(()=>{i.disconnect()}),Xe(()=>n.el,(s,l)=>{l&&(i.unobserve(l),r.value=void 0),s&&i.observe(s)},{flush:"post"})}return{resizeRef:n,contentRect:Ka(r)}}var Gr,F,go,po,un,Ot,El,mo,vo,yr={},bo=[],lf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ht(t,e){for(var n in e)t[n]=e[n];return t}function yo(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?Gr.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 ur(t,l,r,i,null)}function ur(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??++go};return i==null&&F.vnode!=null&&F.vnode(s),s}function Re(){return{current:null}}function se(t){return t.children}function af(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||Sr(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]||Sr(t,s,e[s],n[s],r)}function wl(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||lf.test(e)?n:n+"px"}function Sr(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||wl(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||wl(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?Cl:Al,s):t.removeEventListener(e,s?Cl:Al,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 Al(t){un=!0;try{return this.l[t.type+!1](F.event?F.event(t):t)}finally{un=!1}}function Cl(t){un=!0;try{return this.l[t.type+!0](F.event?F.event(t):t)}finally{un=!1}}function Pe(t,e){this.props=t,this.context=e}function xn(t,e){if(e==null)return t.__?xn(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"?xn(t):null}function So(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 So(t)}}function of(t){un?setTimeout(t):mo(t)}function Ui(t){(!t.__d&&(t.__d=!0)&&Ot.push(t)&&!Er.__r++||El!==F.debounceRendering)&&((El=F.debounceRendering)||of)(Er)}function Er(){var t,e,n,r,i,s,l,a;for(Ot.sort(function(o,c){return o.__v.__b-c.__v.__b});t=Ot.shift();)t.__d&&(e=Ot.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=ht({},s)).__v=s.__v+1,Ds(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??xn(s),s.__h),_o(r,s),s.__e!=l&&So(s)),Ot.length>e&&Ot.sort(function(o,c){return o.__v.__b-c.__v.__b}));Er.__r=0}function Eo(t,e,n,r,i,s,l,a,o,c){var u,h,f,d,g,m,p,b=r&&r.__k||bo,E=b.length;for(n.__k=[],u=0;u<e.length;u++)if((d=n.__k[u]=(d=e[u])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?ur(null,d,null,null,d):Array.isArray(d)?ur(se,{children:d},null,null,null):d.__b>0?ur(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(f=b[u])===null||f&&d.key==f.key&&d.type===f.type)b[u]=void 0;else for(h=0;h<E;h++){if((f=b[h])&&d.key==f.key&&d.type===f.type){b[h]=void 0;break}f=null}Ds(t,d,f=f||yr,i,s,l,a,o,c),g=d.__e,(h=d.ref)&&f.ref!=h&&(p||(p=[]),f.ref&&p.push(f.ref,null,d),p.push(h,d.__c||g,d)),g!=null?(m==null&&(m=g),typeof d.type=="function"&&d.__k===f.__k?d.__d=o=wo(d,o,t):o=Ao(t,d,f,b,g,o),typeof n.type=="function"&&(n.__d=o)):o&&f.__e==o&&o.parentNode!=t&&(o=xn(f))}for(n.__e=m,u=E;u--;)b[u]!=null&&(typeof n.type=="function"&&b[u].__e!=null&&b[u].__e==n.__d&&(n.__d=Co(r).nextSibling),Ro(b[u],b[u]));if(p)for(u=0;u<p.length;u++)Do(p[u],p[++u],p[++u])}function wo(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"?wo(r,e,n):Ao(n,r,r,i,r.__e,e));return e}function wr(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){wr(n,e)}):e.push(t)),e}function Ao(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 Co(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=Co(n)))return r}return null}function Ds(t,e,n,r,i,s,l,a,o){var c,u,h,f,d,g,m,p,b,E,A,_,O,D,S,C=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=F.__b)&&c(e);try{e:if(typeof C=="function"){if(p=e.props,b=(c=C.contextType)&&r[c.__c],E=c?b?b.props.value:c.__:r,n.__c?m=(u=e.__c=n.__c).__=u.__E:("prototype"in C&&C.prototype.render?e.__c=u=new C(p,E):(e.__c=u=new Pe(p,E),u.constructor=C,u.render=uf),b&&b.sub(u),u.props=p,u.state||(u.state={}),u.context=E,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),C.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ht({},u.__s)),ht(u.__s,C.getDerivedStateFromProps(p,u.__s))),f=u.props,d=u.state,u.__v=e,h)C.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C.getDerivedStateFromProps==null&&p!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(p,E),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(p,u.__s,E)===!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(B){B&&(B.__=e)}),A=0;A<u._sb.length;A++)u.__h.push(u._sb[A]);u._sb=[],u.__h.length&&l.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(p,u.__s,E),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,d,g)})}if(u.context=E,u.props=p,u.__P=t,_=F.__r,O=0,"prototype"in C&&C.prototype.render){for(u.state=u.__s,u.__d=!1,_&&_(e),c=u.render(u.props,u.state,u.context),D=0;D<u._sb.length;D++)u.__h.push(u._sb[D]);u._sb=[]}else do u.__d=!1,_&&_(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++O<25);u.state=u.__s,u.getChildContext!=null&&(r=ht(ht({},r),u.getChildContext())),h||u.getSnapshotBeforeUpdate==null||(g=u.getSnapshotBeforeUpdate(f,d)),S=c!=null&&c.type===se&&c.key==null?c.props.children:c,Eo(t,Array.isArray(S)?S:[S],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=cf(n.__e,e,n,r,i,s,l,o);(c=F.diffed)&&c(e)}catch(B){e.__v=null,(o||s!=null)&&(e.__e=a,e.__h=!!o,s[s.indexOf(a)]=null),F.__e(B,e,n)}}function _o(t,e){F.__c&&F.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){F.__e(r,n.__v)}})}function cf(t,e,n,r,i,s,l,a){var o,c,u,h=n.props,f=e.props,d=e.type,g=0;if(d==="svg"&&(i=!0),s!=null){for(;g<s.length;g++)if((o=s[g])&&"setAttribute"in o==!!d&&(d?o.localName===d:o.nodeType===3)){t=o,s[g]=null;break}}if(t==null){if(d===null)return document.createTextNode(f);t=i?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),s=null,a=!1}if(d===null)h===f||a&&t.data===f||(t.data=f);else{if(s=s&&Gr.call(t.childNodes),c=(h=n.props||yr).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!a){if(s!=null)for(h={},g=0;g<t.attributes.length;g++)h[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(af(t,f,h,i,a),u)e.__k=[];else if(g=e.props.children,Eo(t,Array.isArray(g)?g:[g],e,n,r,i&&d!=="foreignObject",s,l,s?s[0]:n.__k&&xn(n,0),a),s!=null)for(g=s.length;g--;)s[g]!=null&&yo(s[g]);a||("value"in f&&(g=f.value)!==void 0&&(g!==t.value||d==="progress"&&!g||d==="option"&&g!==h.value)&&Sr(t,"value",g,h.value,!1),"checked"in f&&(g=f.checked)!==void 0&&g!==t.checked&&Sr(t,"checked",g,h.checked,!1))}return t}function Do(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){F.__e(r,n)}}function Ro(t,e,n){var r,i;if(F.unmount&&F.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Do(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){F.__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]&&Ro(r[i],e,n||typeof t.type!="function");n||t.__e==null||yo(t.__e),t.__=t.__e=t.__d=void 0}function uf(t,e,n){return this.constructor(t,n)}function Mn(t,e,n){var r,i,s;F.__&&F.__(t,e),i=(r=typeof n=="function")?null:e.__k,s=[],Ds(e,t=(!r&&n||e).__k=v(se,null,[t]),i||yr,yr,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?Gr.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),_o(s,t)}function df(t,e){var n={__c:e="__cC"+vo++,__: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,Ui(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}Gr=bo.slice,F={__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}},go=0,po=function(t){return t!=null&&t.constructor===void 0},un=!1,Pe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ht({},this.state),typeof t=="function"&&(t=t(ht({},n),this.props)),t&&ht(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ui(this))},Pe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ui(this))},Pe.prototype.render=se,Ot=[],mo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Er.__r=0,vo=0;var Ye,ai,_l,ko=[],oi=[],Dl=F.__b,Rl=F.__r,kl=F.diffed,Tl=F.__c,xl=F.unmount;function ff(){for(var t;t=ko.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(dr),t.__H.__h.forEach($i),t.__H.__h=[]}catch(e){t.__H.__h=[],F.__e(e,t.__v)}}F.__b=function(t){Ye=null,Dl&&Dl(t)},F.__r=function(t){Rl&&Rl(t);var e=(Ye=t.__c).__H;e&&(ai===Ye?(e.__h=[],Ye.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=oi,n.__N=n.i=void 0})):(e.__h.forEach(dr),e.__h.forEach($i),e.__h=[])),ai=Ye},F.diffed=function(t){kl&&kl(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ko.push(e)!==1&&_l===F.requestAnimationFrame||((_l=F.requestAnimationFrame)||hf)(ff)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==oi&&(n.__=n.__V),n.i=void 0,n.__V=oi})),ai=Ye=null},F.__c=function(t,e){e.some(function(n){try{n.__h.forEach(dr),n.__h=n.__h.filter(function(r){return!r.__||$i(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],F.__e(r,n.__v)}}),Tl&&Tl(t,e)},F.unmount=function(t){xl&&xl(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{dr(r)}catch(i){e=i}}),n.__H=void 0,e&&F.__e(e,n.__v))};var Ml=typeof requestAnimationFrame=="function";function hf(t){var e,n=function(){clearTimeout(r),Ml&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Ml&&(e=requestAnimationFrame(n))}function dr(t){var e=Ye,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Ye=e}function $i(t){var e=Ye;t.__c=t.__(),Ye=e}function gf(t,e){for(var n in e)t[n]=e[n];return t}function Il(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 Nl(t){this.props=t}(Nl.prototype=new Pe).isPureReactComponent=!0,Nl.prototype.shouldComponentUpdate=function(t,e){return Il(this.props,t)||Il(this.state,e)};var Ol=F.__b;F.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ol&&Ol(t)};var pf=F.__e;F.__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)}pf(t,e,n,r)};var Pl=F.unmount;function To(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=gf({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return To(r,e,n)})),t}function xo(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return xo(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 ci(){this.__u=0,this.t=null,this.__b=null}function Mo(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Kn(){this.u=null,this.o=null}F.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Pl&&Pl(t)},(ci.prototype=new Pe).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Mo(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]=xo(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)},ci.prototype.componentWillUnmount=function(){this.t=[]},ci.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]=To(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&v(se,null,t.fallback);return i&&(i.__h=null),[v(se,null,e.__a?null:t.children),i]};var Hl=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 mf(t){return this.getChildContext=function(){return t.context},t.children}function vf(t){var e=this,n=t.i;e.componentWillUnmount=function(){Mn(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)}}),Mn(v(mf,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function bf(t,e){var n=v(vf,{__v:t,i:e});return n.containerInfo=e,n}(Kn.prototype=new Pe).__a=function(t){var e=this,n=Mo(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),Hl(e,t,r)):i()};n?n(s):s()}},Kn.prototype.render=function(t){this.u=null,this.o=new Map;var e=wr(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},Kn.prototype.componentDidUpdate=Kn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Hl(t,n,e)})};var yf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Sf=/^(?: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]/,Ef=typeof document<"u",wf=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Pe.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ll=F.event;function Af(){}function Cf(){return this.cancelBubble}function _f(){return this.defaultPrevented}F.event=function(t){return Ll&&(t=Ll(t)),t.persist=Af,t.isPropagationStopped=Cf,t.isDefaultPrevented=_f,t.nativeEvent=t};var Bl={configurable:!0,get:function(){return this.class}},Vl=F.vnode;F.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];Ef&&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)&&!wf(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&&Sf.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=wr(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=wr(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=yf,Vl&&Vl(t)};var zl=F.__r;F.__r=function(t){zl&&zl(t),t.__c};const Io=[],Wi=new Map;function Yr(t){Io.push(t),Wi.forEach(e=>{Oo(e,t)})}function Df(t){t.isConnected&&t.getRootNode&&No(t.getRootNode())}function No(t){let e=Wi.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=kf();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)}Wi.set(t,e),Rf(e)}}function Rf(t){for(const e of Io)Oo(t,e)}function Oo(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 ui;function kf(){return ui===void 0&&(ui=Tf()),ui}function Tf(){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"&&No(document);var xf=':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)}';Yr(xf);class Rs{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 ks(t){t.parentNode&&t.parentNode.removeChild(t)}function Ae(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Mf(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Mf(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function If(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 Nf=/(top|left|right|bottom|width|height)$/i;function Dn(t,e){for(let n in e)Po(t,n,e[n])}function Po(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Nf.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Ho(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 jl=0;function bt(){return jl+=1,"fc-dom-"+jl}function qr(t){t.preventDefault()}function Of(t,e){return n=>{let r=Ae(n.target,t);r&&e.call(r,n,r)}}function Lo(t,e,n,r){let i=Of(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function Pf(t,e,n,r){let i;return Lo(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 Fl=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Hf(t,e){let n=r=>{e(r),Fl.forEach(i=>{t.removeEventListener(i,n)})};Fl.forEach(r=>{t.addEventListener(r,n)})}function Bo(t){return Object.assign({onClick:t},Vo(t))}function Vo(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Ul=0;function Ft(){return Ul+=1,String(Ul)}function Ts(){document.body.classList.add("fc-not-allowed")}function xs(){document.body.classList.remove("fc-not-allowed")}function Lf(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",qr)}function Bf(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",qr)}function Vf(t){t.addEventListener("contextmenu",qr)}function zf(t){t.removeEventListener("contextmenu",qr)}function jf(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 Ff(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):$f(t[n.field],e[n.field])*(n.order||1)}function $f(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 en(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Rn(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Wf(t,e){return t-e}function fr(t){return t%1===0}function Gf(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 $l=["years","months","days","milliseconds"],Yf=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function K(t,e){return typeof t=="string"?qf(t):typeof t=="object"&&t?Wl(t):typeof t=="number"?Wl({[e||"milliseconds"]:t}):null}function qf(t){let e=Yf.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 Wl(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 Qf(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Gi(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Zf(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Xf(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function Kf(t){return tn(t)/365}function Jf(t){return tn(t)/30}function tn(t){return $e(t)/864e5}function $e(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Ms(t,e){let n=null;for(let r=0;r<$l.length;r+=1){let i=$l[r];if(e[i]){let s=t[i]/e[i];if(!fr(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function Yi(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 St(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 eh=["sun","mon","tue","wed","thu","fri","sat"];function Gl(t,e){let n=gt(t);return n[2]+=e*7,xe(n)}function ye(t,e){let n=gt(t);return n[2]+=e,xe(n)}function Et(t,e){let n=gt(t);return n[6]+=e,xe(n)}function th(t,e){return _t(t,e)/7}function _t(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function nh(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function rh(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function ih(t,e){return(e.valueOf()-t.valueOf())/1e3}function sh(t,e){let n=le(t),r=le(e);return{years:0,months:0,days:Math.round(_t(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function lh(t,e){let n=Ar(t,e);return n!==null&&n%7===0?n/7:null}function Ar(t,e){return pt(t)===pt(e)?Math.round(_t(t,e)):null}function le(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function ah(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function oh(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function ch(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function uh(t,e,n){let r=t.getUTCFullYear(),i=di(t,r,e,n);if(i<1)return di(t,r-1,e,n);let s=di(t,r+1,e,n);return s>=1?Math.min(i,s):i}function di(t,e,n,r){let i=xe([e,0,1+dh(e,n,r)]),s=le(t),l=Math.round(_t(i,s));return Math.floor(l/7)+1}function dh(t,e,n){let r=7+e-n;return-((7+xe([t,0,r]).getUTCDay()-e)%7)+r-1}function Yl(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function ql(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 gt(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 zo(t){return!isNaN(t.valueOf())}function pt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function jo(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",Is(e,!0)))),r}function Un(t){return t.toISOString().replace(/T.*$/,"")}function fh(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function hh(t){return en(t.getUTCHours(),2)+":"+en(t.getUTCMinutes(),2)+":"+en(t.getUTCSeconds(),2)}function Is(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+en(i,2)}:${en(s,2)}`:`GMT${n}${i}${s?`:${en(s,2)}`:""}`}function j(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!St(r,s)){let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function hr(t,e,n){let r,i;return s=>(r?Ze(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const Ql={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Cr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Jn=/\s*([ap])\.?m\.?/i,gh=/,/g,ph=/\s+/g,mh=/\u200e/g,vh=/UTC|GMT/;class bh{constructor(e){let n={},r={},i=0;for(let s in e)s in Ql?(r[s]=e[s],i=Math.max(Ql[s],i)):(n[s]=e[s],s in Cr&&(i=Math.max(Cr[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=j(Zl)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,a=Ch(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 h=_h(s,o),f=Zl(h,l,r),d=f(e),g=f(n),m=Dh(c,d,u,g),p=l.separator||i||r.defaultSeparator||"";return m?m.before+d+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 Zl(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>Is(i.timeZoneOffset):r===0&&e.week?i=>Ah(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):yh(t,e,n)}function yh(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Sh(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 Eh(o,s,t,e,n)}}function Sh(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 Eh(t,e,n,r,i){return t=t.replace(mh,""),n.timeZoneName==="short"&&(t=wh(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Is(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(gh,"").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(ph," "),t=t.trim(),t}function wh(t,e){let n=!1;return t=t.replace(vh,()=>(n=!0,e)),n||(t+=` ${e}`),t}function Ah(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 Ch(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:pt(t)!==pt(e)?1:0}function _h(t,e){let n={};for(let r in t)(!(r in Cr)||Cr[r]<=e)&&(n[r]=t[r]);return n}function Dh(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 h=n.substr(o);if(l===u&&a===h)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 _r(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 Rh{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,_r(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,_r(e,n,r,i))}}class kh{constructor(e){this.func=e}format(e,n,r){return this.func(_r(e,null,n,r))}formatRange(e,n,r,i){return this.func(_r(e,n,r,i))}}function ae(t){return typeof t=="object"&&t?new bh(t):typeof t=="string"?new Rh(t):typeof t=="function"?new kh(t):null}const Kl={navLinkDayClick:w,navLinkWeekClick:w,duration:K,bootstrapFontAwesome:w,buttonIcons:w,customButtons:w,defaultAllDayEventDuration:K,defaultTimedEventDuration:K,nextDayThreshold:K,scrollTime:K,scrollTimeReset:Boolean,slotMinTime:K,slotMaxTime:K,dayPopoverFormat:ae,slotDuration:K,snapDuration:K,headerToolbar:w,footerToolbar:w,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ae,dayHeaderClassNames:w,dayHeaderContent:w,dayHeaderDidMount:w,dayHeaderWillUnmount:w,dayCellClassNames:w,dayCellContent:w,dayCellDidMount:w,dayCellWillUnmount:w,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:w,weekNumbers:Boolean,weekNumberClassNames:w,weekNumberContent:w,weekNumberDidMount:w,weekNumberWillUnmount:w,editable:Boolean,viewClassNames:w,viewDidMount:w,viewWillUnmount:w,nowIndicator:Boolean,nowIndicatorClassNames:w,nowIndicatorContent:w,nowIndicatorDidMount:w,nowIndicatorWillUnmount:w,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:w,locale:w,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:w,eventOrder:jf,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:w,contentHeight:w,direction:String,weekNumberFormat:ae,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:w,initialDate:w,now:w,eventDataTransform:w,stickyHeaderDates:w,stickyFooterScrollbar:w,viewHeight:w,defaultAllDay:Boolean,eventSourceFailure:w,eventSourceSuccess:w,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:w,eventConstraint:w,eventAllow:w,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:w,eventContent:w,eventDidMount:w,eventWillUnmount:w,selectConstraint:w,selectOverlap:w,selectAllow:w,droppable:Boolean,unselectCancel:String,slotLabelFormat:w,slotLaneClassNames:w,slotLaneContent:w,slotLaneDidMount:w,slotLaneWillUnmount:w,slotLabelClassNames:w,slotLabelContent:w,slotLabelDidMount:w,slotLabelWillUnmount:w,dayMaxEvents:w,dayMaxEventRows:w,dayMinWidth:Number,slotLabelInterval:K,allDayText:String,allDayClassNames:w,allDayContent:w,allDayDidMount:w,allDayWillUnmount:w,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ae,rerenderDelay:Number,moreLinkText:w,moreLinkHint:w,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:w,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:K,hiddenDays:w,fixedWeekCount:Boolean,validRange:w,visibleRange:w,titleFormat:w,eventInteractive:Boolean,noEventsText:String,viewHint:w,navLinkHint:w,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:w,moreLinkClassNames:w,moreLinkContent:w,moreLinkDidMount:w,moreLinkWillUnmount:w,monthStartFormat:ae,handleCustomRendering:w,customRenderingMetaMap:w,customRenderingReplaces:Boolean},kn={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"}},Jl={datesSet:w,eventsSet:w,eventAdd:w,eventChange:w,eventRemove:w,windowResize:w,eventClick:w,eventMouseEnter:w,eventMouseLeave:w,select:w,unselect:w,loading:w,_unmount:w,_beforeprint:w,_afterprint:w,_noEventDrop:w,_noEventResize:w,_resize:w,_scrollRequest:w},ea={buttonText:w,buttonHints:w,views:w,plugins:w,initialEvents:w,events:w,eventSources:w},It={headerToolbar:Nt,footerToolbar:Nt,buttonText:Nt,buttonHints:Nt,buttonIcons:Nt,dateIncrement:Nt,plugins:er,events:er,eventSources:er,resources:er};function Nt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Ze(t,e):t===e}function er(t,e){return Array.isArray(t)&&Array.isArray(e)?St(t,e):t===e}const Th={type:String,component:w,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:w,usesMinMaxTime:Boolean,classNames:w,content:w,didMount:w,willUnmount:w};function fi(t){return Os(t,It)}function Ns(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 w(t){return t}const{hasOwnProperty:Dr}=Object.prototype;function Os(t,e){let n={};if(e){for(let r in e)if(e[r]===Nt){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]=Os(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 Vt(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 Fo(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 Ze(t,e){if(t===e)return!0;for(let n in t)if(Dr.call(t,n)&&!(n in e))return!1;for(let n in e)if(Dr.call(e,n)&&t[n]!==e[n])return!1;return!0}const xh=/^on[A-Z]/;function Mh(t,e){const n=qi(t,e);for(let r of n)if(!xh.test(r))return!1;return!0}function qi(t,e){let n=[];for(let r in t)Dr.call(t,r)&&(r in e||n.push(r));for(let r in e)Dr.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function hi(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Ih(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Ih(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function Nh(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 Uo={};function Oh(t,e){Uo[t]=e}function Ph(t){return new Uo[t]}class Hh{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return xe(e)}markerToArray(e){return gt(e)}}Oh("gregory",Hh);const Lh=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Bh(t){let e=Lh.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(zo(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 Vh{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=Ph(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(Yl(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||!zo(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=Bh(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 pt(e)===pt(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 pt(e)===pt(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=lh(e,n),r!==null?{unit:"week",value:r}:(r=Ar(e,n),r!==null?{unit:"day",value:r}:(r=nh(e,n),fr(r)?{unit:"hour",value:r}:(r=rh(e,n),fr(r)?{unit:"minute",value:r}:(r=ih(e,n),fr(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/Kf(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Jf(r):r.days&&(i=Ar(e,n),i!==null)?i/tn(r):(n.valueOf()-e.valueOf())/$e(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?le(e):n==="hour"?ah(e):n==="minute"?oh(e):n==="second"?ch(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)):uh(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=Et(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)),jo(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?xe(Yl(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):xe(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-ql(gt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(gt(e)):null}toDate(e,n){return this.timeZone==="local"?ql(gt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(gt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class $n{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)}`:""}}$n.prototype.classes={};$n.prototype.iconClasses={};$n.prototype.baseIconClass="";$n.prototype.iconOverridePrefix="";function Rr(t){t();let e=F.debounceRendering,n=[];function r(i){n.push(i)}for(F.debounceRendering=r,Mn(v(zh,{}),document.createElement("div"));n.length;)n.shift()();F.debounceRendering=e}class zh extends Pe{render(){return v("div",{})}componentDidMount(){this.setState({})}}function $o(t){let e=df(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 jh{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 ct=$o({});function Fh(t,e,n,r,i,s,l,a,o,c,u,h,f){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(d){c.on("_resize",d)},removeResizeHandler(d){c.off("_resize",d)},createScrollResponder(d){return new jh(d,c,K(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:f}}class Ut extends Pe{shouldComponentUpdate(e,n){return this.debug&&console.log(qi(e,this.props),qi(n,this.state)),!hi(this.props,e,this.propEquality)||!hi(this.state,n,this.stateEquality)}safeSetState(e){hi(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ut.addPropsEquality=Uh;Ut.addStateEquality=$h;Ut.contextType=ct;Ut.prototype.propEquality={};Ut.prototype.stateEquality={};class ee extends Ut{}ee.contextType=ct;function Uh(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function $h(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 Hs extends ee{constructor(){super(...arguments),this.id=Ft(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Qi(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=Wo(e,[],this.handleEl);let o=!1,c,u=[],h;if(i!=null){const f=typeof i=="function"?i(l,v):i;if(f===!0)o=!0;else{const d=f&&typeof f=="object";d&&"html"in f?a.dangerouslySetInnerHTML={__html:f.html}:d&&"domNodes"in f?u=Array.prototype.slice.call(f.domNodes):(d?po(f):typeof f!="function")?c=f:h=f}}else o=!Qi(e.generatorName,r);return o&&s&&(c=s(l)),this.queuedDomNodes=u,this.currentGeneratorMeta=h,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(Wh)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!St(e,n)){n.forEach(ks);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}Hs.addPropsEquality({elClasses:St,elStyle:Ze,elAttrs:Mh,renderProps:Ze});function Qi(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Wo(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 Wh(t){return!!t}const Go=$o(0);class De extends Pe{constructor(){super(...arguments),this.InnerContent=Gh.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=Yh(e.classNameGenerator,e.renderProps);if(e.children){const r=Wo(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?v(e.elTag,r,i):i}else return v(Hs,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}))}}De.contextType=Go;function Gh(t,e){const n=t.props;return v(Hs,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Yh(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class In extends ee{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return v(De,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Yo(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Yo(t){return[`fc-${t.type}-view`,"fc-view"]}function qh(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 ta(t,e){let n=[],{start:r}=e,i,s;for(t.sort(Qh),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 Qh(t,e){return t.start.valueOf()-e.start.valueOf()}function wt(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 Zh(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 Ls(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Qr(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function it(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Xh(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 qo(t){let e=Math.floor(_t(t.start,t.end))||1,n=le(t.start),r=ye(n,e);return{start:n,end:r}}function Bs(t,e=K(0)){let n=null,r=null;if(t.end){r=le(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=$e(e)&&(r=ye(r,1))}return t.start&&(n=le(t.start),r&&r<=n&&(r=ye(n,1))),{start:n,end:r}}function Kh(t){let e=Bs(t);return _t(e.start,e.end)>1}function Kt(t,e,n,r){return r==="year"?K(n.diffWholeYears(t,e),"year"):r==="month"?K(n.diffWholeMonths(t,e),"month"):sh(t,e)}function Jh(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function eg(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):Wn(t.now,e)}function Wn(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Qo{constructor(e){this.props=e,this.nowDate=Wn(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=Xh(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=wt(c,l.range)),c=this.adjustActiveRange(c),c=wt(c,s),u=Ls(l.range,s),it(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=Yi(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&&(tn(i)<0&&(l=le(l),l=n.add(l,i)),tn(s)>1&&(a=le(a),a=ye(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:h}=this.props;h&&$e(h)<$e(r)?l=Yi(h).unit:l=i}tn(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=le(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=le(a),a=this.skipHiddenDays(a,n),o=a;do o=ye(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=qh(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=ye(e,n);return e}}function Vs(t,e,n,r){return{instanceId:Ft(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function tg(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 zt(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:a}=t;a=Vt(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 h=ng(c,u,e,r,i.recurringTypes);for(let f of h){let d=Vs(o,{start:f,end:r.add(f,u)});a[d.instanceId]=d}}}return{defs:l,instances:a}}function ng(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(le)),l}const gr={id:String,groupId:String,title:String,url:String,interactive:Boolean},Zo={start:w,end:w,date:w,allDay:Boolean},rg=Object.assign(Object.assign(Object.assign({},gr),Zo),{extendedProps:w});function Xo(t,e,n,r,i=zs(n),s,l){let{refined:a,extra:o}=Ko(t,n,i),c=sg(e,n),u=tg(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let f=Zi(a,o,e?e.sourceId:"",u.allDay,!!u.duration,n,s);return f.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:f,instance:null}}let h=ig(a,c,n,r);if(h){let f=Zi(a,o,e?e.sourceId:"",h.allDay,h.hasEnd,n,s),d=Vs(f.defId,h.range,h.forcedStartTzo,h.forcedEndTzo);return l&&f.publicId&&l[f.publicId]&&(d.instanceId=l[f.publicId]),{def:f,instance:d}}return null}function Ko(t,e,n=zs(e)){return Ns(t,n)}function zs(t){return Object.assign(Object.assign(Object.assign({},kr),rg),t.pluginHooks.eventRefiners)}function Zi(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]:"")||Ft(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:Tr(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 ig(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=le(l)),o&&(c=o.marker,i&&(c=le(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 sg(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function Nn(t,e,n,r,i,s){let l=He(),a=zs(n);for(let o of t){let c=Xo(o,e,n,r,a,i,s);c&&Xi(c,l)}return l}function Xi(t,e=He()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function js(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Zr(t,s=>lg(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return He()}function lg(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function He(){return{defs:{},instances:{}}}function Fs(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Zr(t,e){let n=Vt(t.defs,e),r=Vt(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function ag(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 og(t,e){return Array.isArray(t)?Nn(t,null,e,!0):typeof t=="object"&&t?Nn([t],null,e,!0):t!=null?String(t):null}function na(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const kr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:w,overlap:w,allow:w,className:na,classNames:na,color:String,backgroundColor:String,borderColor:String,textColor:String},cg={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Tr(t,e){let n=og(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 Jo(t){return t.reduce(ug,cg)}function ug(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 dg={id:String,defaultAllDay:Boolean,url:String,format:String,events:w,eventDataTransform:w,success:w,failure:w};function ec(t,e,n=tc(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}=Ns(r,n),l=fg(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:Ft(),sourceDefId:l.sourceDefId,meta:l.meta,ui:Tr(i,e),extendedProps:s}}return null}function tc(t){return Object.assign(Object.assign(Object.assign({},kr),dg),t.pluginHooks.eventSourceRefiners)}function fg(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 hg(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return gg(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return pg(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return mg(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Fs(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?zt(t,r.activeRange,i):t;case"REMOVE_EVENTS":return ag(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return rc(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Zr(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return He();default:return t}}function gg(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=Nn(nc(i,e,s),e,s);return r&&(l=zt(l,r,s)),Fs(rc(t,e.sourceId),l)}return t}function pg(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=bg(t);let a=Nn(nc(n,e,i),e,i,!1,s,l);return zt(a,r,i)}function nc(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=ra(t,i)),r&&(t=ra(t,r)),t}function ra(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 mg(t,e,n,r){return n&&(e=zt(e,n,r)),Fs(t,e)}function ia(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 rc(t,e){return Zr(t,n=>n.sourceId!==e)}function vg(t,e){return{defs:t.defs,instances:Vt(t.instances,n=>!e[n.instanceId])}}function bg(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 Xr{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){yg(this.handlers,e,n)}off(e,n){Sg(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 yg(t,e,n){(t[e]||(t[e]=[])).push(n)}function Sg(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const Eg={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function wg(t,e){return Nn(Ag(t),null,e)}function Ag(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({},Eg),n)),e}function ic(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Us(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Cg(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Us(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,Bg(t,e.dateEnv)),n}function sa(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=le(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function $s(t,e,n,r){let i=xr(t.defs,e),s=He();for(let l in t.defs){let a=t.defs[l];s.defs[l]=_g(a,i[l],n,r)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=Dg(a,o,i[a.defId],n,r)}return s}function _g(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 Dg(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=qo(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:sa(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:le(o.range.start),end:le(o.range.end)}),o.range.end<o.range.start&&(o.range.end=sa(e.allDay,o.range.start,i)),o}class Zt{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 ue{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in Zo)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=gr[e](n),this.mutate({standardProps:{publicId:n}});else if(e in gr)n=gr[e](n),this.mutate({standardProps:{[e]:n}});else if(e in kr){let r=kr[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=Kt(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=Kt(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=qo(o));let c=Kt(o.start,l,i,r.granularity);if(a){let u=Kt(o.end,a,i,r.granularity);Qf(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=ae(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=js(s,n.instanceId);l=$s(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let o=new ue(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:Ht(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=sc(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 Zt(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 sc(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Ht(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 ue(e,c,o))}return s}function Ki(t,e,n,r){let i={},s={},l={},a=[],o=[],c=xr(t.defs,e);for(let u in t.defs){let h=t.defs[u];c[h.defId].display==="inverse-background"&&(h.groupId?(i[h.groupId]=[],l[h.groupId]||(l[h.groupId]=h)):s[u]=[])}for(let u in t.instances){let h=t.instances[u],f=t.defs[h.defId],d=c[f.defId],g=h.range,m=!f.allDay&&r?Bs(g,r):g,p=wt(m,n);p&&(d.display==="inverse-background"?f.groupId?i[f.groupId].push(p):s[h.defId].push(p):d.display!=="none"&&(d.display==="background"?a:o).push({def:f,ui:d,instance:h,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 h=i[u],f=ta(h,n);for(let d of f){let g=l[u],m=c[g.defId];a.push({def:g,ui:m,instance:null,range:d,isStart:!1,isEnd:!1})}}for(let u in s){let h=s[u],f=ta(h,n);for(let d of f)a.push({def:t.defs[u],ui:c[u],instance:null,range:d,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function Rg(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function la(t,e){t.fcSeg=e}function dn(t){return t.fcSeg||t.parentNode.fcSeg||null}function xr(t,e){return lt(t,n=>lc(n,e))}function lc(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Jo(n)}function Ws(t,e){let n=t.map(kg);return n.sort((r,i)=>Ff(r,i,e)),n.map(r=>r._seg)}function kg(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 Tg(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 xg(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Mg(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Tn(t,e,n,r,i,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:c,displayEventEnd:u}=o,h=t.eventRange.def,f=t.eventRange.instance;c==null&&(c=r!==!1),u==null&&(u=i!==!1);let d=f.range.start,g=f.range.end,m=s||t.start||t.eventRange.range.start,p=l||t.end||t.eventRange.range.end,b=le(d).valueOf()===le(m).valueOf(),E=le(Et(g,-1)).valueOf()===le(Et(p,-1)).valueOf();return c&&!h.allDay&&(b||E)?(m=b?d:m,p=E?g:p,u&&h.hasEnd?a.formatRange(m,p,e,{forcedStartTzo:s?null:f.forcedStartTzo,forcedEndTzo:l?null:f.forcedEndTzo}):a.format(m,e,{forcedTzo:s?null:f.forcedStartTzo})):""}function st(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&it(e,r.start)}}function Ig(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 ac(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Gs(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?Vo(o=>{s.trigger("eventClick",{el:o.target,event:new ue(e,n,r),jsEvent:o,view:e.viewApi})}):{}}const Ng={start:w,end:w,allDay:Boolean};function Og(t,e,n){let r=Pg(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 Pg(t,e){let{refined:n,extra:r}=Ns(t,Ng),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 Hg(t,e){return Zh(t.range,e.range)&&t.allDay===e.allDay&&Lg(t,e)}function Lg(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 Bg(t,e){return Object.assign(Object.assign({},cc(t.range,e,t.allDay)),{allDay:t.allDay})}function oc(t,e,n){return Object.assign(Object.assign({},cc(t,e,n)),{timeZone:e.timeZone})}function cc(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 Vg(t,e,n){let r=Ko({editable:!1},n),i=Zi(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:lc(i,e),instance:Vs(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function zg(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 aa extends Error{constructor(e,n){super(e),this.response=n}}function jg(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 aa("Failure parsing JSON",i)});throw new aa("Request failed",i)})}let gi;function uc(){return gi==null&&(gi=Fg()),gi}function Fg(){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=()=>{Rr(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Rr(()=>{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 uc()||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 En{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function $g(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Ys(t){return{[t.component.uid]:t}}const Ji={};class Wg{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:Wn(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),ae(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),ae(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=Og(r,i.dateEnv,K({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),ic(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Cg(e,n))}addEvent(e,n){if(e instanceof ue){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Xi({def:l,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Zt)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=Xo(e,i,r,!1);if(s){let l=new ue(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Xi(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:sc(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 ue(n,l,null);for(let a in i){let o=i[a];if(o.defId===l.defId)return new ue(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Ht(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 Zt(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 Zt(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Zt)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=ec(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Zt(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 Gg(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function dc(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 Yg(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 qg(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Qg(t,e){return{left:t.left-e.left,top:t.top-e.top}}const pi=He();class Zg{constructor(){this.getKeysForEventDefs=j(this._getKeysForEventDefs),this.splitDateSelection=j(this._splitDateSpan),this.splitEventStore=j(this._splitEventStore),this.splitIndividualUi=j(this._splitIndividualUi),this.splitEventDrag=j(this._splitInteraction),this.splitEventResize=j(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,h)=>this.eventUiBuilders[h]||j(Xg));for(let u in n){let h=n[u],f=l[u]||pi,d=this.eventUiBuilders[u];c[u]={businessHours:h.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:f,eventUiBases:d(e.eventUiBases[""],h.ui,s[u]),eventSelection:f.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]=He()),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]||pi,mutatedEvents:s[a]||pi,isEvent:e.isEvent})};for(let a in r)l(a);for(let a in s)l(a)}return n}}function Xg(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":Jo(r)};return n&&Object.assign(i,n),i}function qs(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!it(r.activeRange,t)),isOther:!!(r&&!it(r.currentRange,t)),isToday:!!(e&&it(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function Kr(t,e){let n=["fc-day",`fc-day-${eh[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 Kg=ae({year:"numeric",month:"long",day:"numeric"}),Jg=ae({week:"long"});function fn(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let a=i.format(e,n==="week"?Jg:Kg);if(s.navLinks){let o=i.toDate(e);const c=u=>{let h=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof h=="function"?h.call(l,i.toDate(e),u):(typeof h=="string"&&(n=h),l.zoomTo(e,n))};return Object.assign({title:Rn(s.navLinkHint,[a,o],a),"data-navlink":""},r?Bo(c):{onClick:c})}return{"aria-label":a}}let mi=null;function ep(){return mi===null&&(mi=tp()),mi}function tp(){let t=document.createElement("div");Dn(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 ks(t),n}let vi;function np(){return vi||(vi=rp()),vi}function rp(){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=fc(t);return document.body.removeChild(t),e}function fc(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function ip(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=fc(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 ep()&&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 sp(t,e=!1,n){let r=Qs(t),i=ip(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 Qs(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 lp(t){let e=hc(t),n=t.getBoundingClientRect();for(let r of e){let i=dc(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function hc(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 hn{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 tr(this.tops||[],e.tops||[])&&tr(this.bottoms||[],e.bottoms||[])&&tr(this.lefts||[],e.lefts||[])&&tr(this.rights||[],e.rights||[])}}function tr(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 Zs{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 ap extends Zs{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 op extends Zs{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 Ge extends ee{constructor(){super(...arguments),this.uid=Ft()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Ae(e,".fc-event-mirror")}isValidDateDownEl(e){return!Ae(e,".fc-event:not(.fc-bg-event)")&&!Ae(e,".fc-more-link")&&!Ae(e,"a[data-navlink]")&&!Ae(e,".fc-popover")}}class gc{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?(bi(i,n.level,n.levelCoord),bi(r,n.level,[e])):bi(r[n.level],n.lateral,e),this.stackCnts[Lt(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,h=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,E=ts(p,e.span.start,es),A=E[0]+E[1];for(;(b=p[A])&&b.span.start<e.span.end;){let _=m+this.getEntryThickness(b);_>a&&(a=_,u=b,o=g,c=A),_===a&&(h=Math.max(h,s[Lt(b)]+1)),A+=1}}let f=0;if(u)for(f=o+1;f<l&&n[f]<a;)f+=1;let d=-1;return f<l&&n[f]===a&&(d=ts(r[f],e.span.end,es)[0]),{touchingLevel:o,touchingLateral:c,touchingEntry:u,stackCnt:h,levelCoord:a,level:f,lateral:d}}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 es(t){return t.span.end}function Lt(t){return t.index+":"+t.span.start}function cp(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:up(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function up(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 bi(t,e,n){t.splice(e,0,n)}function ts(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 dp{constructor(e,n){this.emitter=new Xr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Ks={};function fp(t,e){return!t||e>10?ae({weekday:"short"}):e>1?ae({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):ae({weekday:"long"})}const pc="fc-col-header-cell";function mc(t){return t.text}class hp extends ee{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=qs(l,s.todayRange,null,a),c=[pc].concat(Kr(o,r)),u=e.format(l,s.dayHeaderFormat),h=!o.isDisabled&&s.colCnt>1?fn(this.context,l):{},f=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:u}),o);return v(De,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:Un(l)},s.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:mc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},d=>v("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&v(d,{elTag:"a",elAttrs:h,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const gp=ae({weekday:"long"});class pp extends ee{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=ye(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(De,{elTag:"th",elClasses:[pc,...Kr(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:mc,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,gp)}})))}}class wn extends Pe{constructor(e,n){super(e,n),this.initialNowDate=Wn(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=Et(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:oa(i)},nextState:{nowDate:s,todayRange:oa(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)}}wn.contextType=ct;function oa(t){let e=le(t),n=ye(e,1);return{start:e,end:n}}class vc extends ee{constructor(){super(...arguments),this.createDayHeaderFormatter=j(mp)}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(wn,{unit:"day"},(a,o)=>v("tr",{role:"row"},s&&s("day"),n.map(c=>i?v(hp,{key:c.toISOString(),date:c,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):v(pp,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:l}))))}}function mp(t,e,n){return t||fp(e,n)}class bc{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=ye(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(ye(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(_t(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class yc{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 Sc{constructor(){this.sliceBusinessHours=j(this._sliceBusinessHours),this.sliceDateSelection=j(this._sliceDateSpan),this.sliceEventStore=j(this._sliceEventStore),this.sliceEventDrag=j(this._sliceInteraction),this.sliceEventResize=j(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:Et(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(zt(e,nr(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=Ki(e,n,nr(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=Ki(e.mutatedEvents,n,nr(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=nr(n,!!r),o=wt(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let c=Vg(e,i,s),u=this.sliceRange(e.range,...l);for(let h of u)h.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:ye(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 nr(t,e){let n=t.activeRange;return e?n:{start:Et(n.start,t.slotMinTime.milliseconds),end:Et(n.end,t.slotMaxTime.milliseconds-864e5)}}function Ec(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!Qr(e.validRange,r[i].range))return!1;return wc({eventDrag:t},n)}function vp(t,e,n){return Qr(e.validRange,t.range)?wc({dateSelection:t},n):!1}function wc(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||bp)(r,e)}function bp(t,e,n={},r){return!(t.eventDrag&&!yp(t,e,n,r)||t.dateSelection&&!Sp(t,e,n,r))}function yp(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,c=xr(a,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(c=lt(c,r));let u=vg(t.eventStore,s.affectedEvents.instances),h=u.defs,f=u.instances,d=xr(h,t.eventUiBases);for(let g in o){let m=o[g],p=m.range,b=c[m.defId],E=a[m.defId];if(!Ac(b.constraints,p,u,t.businessHours,e))return!1;let{eventOverlap:A}=e.options,_=typeof A=="function"?A:null;for(let D in f){let S=f[D];if(Ls(p,S.range)&&(d[S.defId].overlap===!1&&s.isEvent||b.overlap===!1||_&&!_(new ue(e,h[S.defId],S),new ue(e,E,m))))return!1}let O=i.eventStore;for(let D of b.allows){let S=Object.assign(Object.assign({},n),{range:m.range,allDay:E.allDay}),C=O.defs[E.defId],B=O.instances[g],R;if(C?R=new ue(e,C,B):R=new ue(e,E),!D(Us(S,e),R))return!1}}return!0}function Sp(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)),!Ac(c.constraints,o,i,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,h=typeof u=="function"?u:null;for(let f in l){let d=l[f];if(Ls(o,d.range)&&(c.overlap===!1||h&&!h(new ue(e,s[d.defId],d),null)))return!1}for(let f of c.allows){let d=Object.assign(Object.assign({},n),a);if(!f(Us(d,e),null))return!1}return!0}function Ac(t,e,n,r,i){for(let s of t)if(!wp(Ep(s,e,n,r,i),e))return!1;return!0}function Ep(t,e,n,r,i){return t==="businessHours"?yi(zt(r,e,i)):typeof t=="string"?yi(Zr(n,s=>s.groupId===t)):typeof t=="object"&&t?yi(zt(t,e,i)):[]}function yi(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function wp(t,e){for(let n of t)if(Qr(n,e))return!0;return!1}const rr=/^(visible|hidden)$/;class Cc 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(rr.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(rr.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 rr.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return rr.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class rt{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 Nh(this.currentMap,e,n,r)}getAll(){return Ps(this.currentMap)}}function Ap(t){let e=If(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Gf(r));return Math.ceil(n)}function _c(t,e){return t.liquid&&e.liquid}function Cp(t,e){return e.maxHeight!=null||_c(t,e)}function _p(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 Dp(t,e){return St(t,e,Ze)}function Rp(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"?kp(e):r.width||"",minWidth:r.minWidth||""}}))}return v("colgroup",{},...n)}function kp(t){return t??4}function Tp(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function xp(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Mp(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 ns(t){return v("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Mr(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Dc(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Js extends ee{constructor(){super(...arguments),this.processCols=j(e=>e,Dp),this.renderMicroColGroup=j(Rp),this.scrollerRefs=new rt,this.scrollerElRefs=new rt(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=xp(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=i.length,c=0,u,h=[],f=[],d=[];for(;c<o&&(u=i[c]).type==="header";)h.push(this.renderSection(u,l,!0)),c+=1;for(;c<o&&(u=i[c]).type==="body";)f.push(this.renderSection(u,l,!1)),c+=1;for(;c<o&&(u=i[c]).type==="footer";)d.push(this.renderSection(u,l,!0)),c+=1;let g=!uc();const m={role:"rowgroup"};return v("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!g&&h.length)&&v("thead",m,...h),!!(!g&&f.length)&&v("tbody",m,...f),!!(!g&&d.length)&&v("tfoot",m,...d),g&&v("tbody",m,...h,...f,...d))}renderSection(e,n,r){return"outerContent"in e?v(se,{key:e.key},e.outerContent):v("tr",{key:e.key,role:"presentation",className:Mp(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=Cp(s,e),u=_c(s,e),h=s.liquid?l?"scroll":c?"auto":"hidden":"visible",f=e.key,d=_p(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[f]!==void 0?a[f]:null,clientHeight:o[f]!==void 0?o[f]: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(Cc,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:h,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},d)))}_handleScrollerEl(e,n){let r=Ip(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 Tp(this.props.cols)?Ap(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=np(),{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}}}Js.addStateEquality({scrollerClientWidths:Ze,scrollerClientHeights:Ze});function Ip(t,e){for(let n of t)if(n.key===e)return n;return null}class Jr extends ee{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&la(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 ue(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&Tg(i,n),isStartResizable:!e.disableResizing&&xg(i,n),isEndResizable:!e.disableResizing&&Mg(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(De,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Ig(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&&la(this.el,this.props.seg)}}class Rc 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=Tn(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return v(Jr,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:Gs(i,n),defaultGenerator:Np,timeText:a}),(o,c)=>v(se,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 Np(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(se,null," "))))}const el=t=>v(ct.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return v(De,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Op=ae({day:"numeric"});class tl extends ee{constructor(){super(...arguments),this.refineRenderProps=hr(Pp)}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(De,Object.assign({},e,{elClasses:[...Kr(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Un(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 nl(t){return!!(t.dayCellContent||Qi("dayCellContent",t))}function Pp(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=qs(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:Op):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class kc extends ee{render(){let{props:e}=this,{seg:n}=e;return v(Jr,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Hp,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 Hp(t){let{title:e}=t.event;return e&&v("div",{className:"fc-event-title"},t.event.title)}function Tc(t){return v("div",{className:`fc-${t}`})}const xc=t=>v(ct.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(De,Object.assign({},t,{renderProps:{num:l,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Lp,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function Lp(t){return t.text}const Si=10;class Bp extends ee{constructor(){super(...arguments),this.state={titleId:bt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&at(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Ho(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 bf(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=lp(n);if(s){let l=i.getBoundingClientRect(),a=r?Ae(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,Si),o=Math.min(o,document.documentElement.clientWidth-Si-l.width),o=Math.max(o,Si);let c=i.offsetParent.getBoundingClientRect();Dn(i,{top:a-c.top,left:o-c.left})}}}class Vp extends Ge{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(tl,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(o,c,u)=>v(Bp,{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},nl(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 Mc extends ee{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:bt()},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=ca(n).start;function l(a){let{def:o,instance:c,range:u}=a.eventRange;return{event:new ue(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(ct.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:a}=s,{moreCnt:o}=e,c=ca(e),u=typeof a=="function"?a.call(l,o):`+${o} ${a}`,h=Rn(s.moreLinkHint,[o],u),f={num:o,shortText:`+${o}`,text:u,view:i};return v(se,null,!!e.moreCnt&&v(De,{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),Bo(this.handleClick)),{title:h,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:f,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||zp,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&v(Vp,{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=Ae(this.linkEl,".fc-view-harness"))}}function zp(t){return t.text}function ca(t){if(t.allDayDate)return{start:t.allDayDate,end:ye(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Ic(e),end:Fp(e)}}function Ic(t){return t.reduce(jp).eventRange.range.start}function jp(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Fp(t){return t.reduce(Up).eventRange.range.end}function Up(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class $p{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 Wp extends $p{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 Gp=[],Nc={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"},Oc=Object.assign(Object.assign({},Nc),{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 Yp(t){let e=t.length>0?t[0].code:"en",n=Gp.concat(t),r={en:Oc};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Pc(t,e){return typeof t=="object"&&!Array.isArray(t)?Hc(t.code,[t.code],t):qp(t,e)}function qp(t,e){let n=[].concat(t||[]),r=Qp(n,e)||Oc;return Hc(t,n,r)}function Qp(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 Hc(t,e,n){let r=Os([Nc,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 Ke(t){return{id:Ft(),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 Zp(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=Kp(r,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function Xp(){let t=[],e=[],n;return(r,i)=>((!n||!St(r,t)||!St(i,e))&&(n=Zp(r,i)),t=r,e=i,n)}function Kp(t,e){return{premiumReleaseDate:Jp(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 Jp(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Dt extends $n{}Dt.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Dt.prototype.baseIconClass="fc-icon";Dt.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"};Dt.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Dt.prototype.iconOverrideOption="buttonIcons";Dt.prototype.iconOverrideCustomButtonOption="icon";Dt.prototype.iconOverridePrefix="fc-icon-";function em(t,e){let n={},r;for(r in t)rs(r,n,t,e);for(r in e)rs(r,n,t,e);return n}function rs(t,e,n,r){if(e[t])return e[t];let i=tm(t,e,n,r);return i&&(e[t]=i),i}function tm(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=rs(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 ua(t){return lt(t,nm)}function nm(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=da(e):n&&!(n.prototype instanceof ee)&&(n=da(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function da(t){return e=>v(ct.Consumer,null,n=>v(De,{elTag:"div",elClasses:Yo(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 rm(t,e,n,r){let i=ua(t),s=ua(e.views),l=em(i,s);return lt(l,a=>im(a,s,e,n,r))}function im(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=sm(s),l)){let f=Yi(l);a=f.unit,f.value===1&&(o=a,c=e[a]?e[a].rawOptions:{})}let u=f=>{let d=f.buttonText||{},g=t.defaults.buttonTextKey;return g!=null&&d[g]!=null?d[g]:d[t.type]!=null?d[t.type]:d[o]!=null?d[o]:null},h=f=>{let d=f.buttonHints||{},g=t.defaults.buttonTextKey;return g!=null&&d[g]!=null?d[g]:d[t.type]!=null?d[t.type]:d[o]!=null?d[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(kn)||t.type,buttonTitleOverride:h(r)||h(n)||t.overrides.buttonHint,buttonTitleDefault:h(i)||t.defaults.buttonHint||h(kn)}}let fa={};function sm(t){let e=JSON.stringify(t),n=fa[e];return n===void 0&&(n=K(t),fa[e]=n),n}function lm(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function am(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function om(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 cm(t,e,n){let r=e?e.activeRange:null;return Bc({},mm(t,n),r,n)}function um(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Bc(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return fm(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Vc(t,i,r):t;case"FETCH_EVENT_SOURCES":return rl(t,e.sourceIds?Fo(e.sourceIds):zc(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return pm(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function dm(t,e,n){let r=e?e.activeRange:null;return rl(t,zc(t,n),r,!0,n)}function Lc(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Bc(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Vc(i,n,r)),Object.assign(Object.assign({},t),i)}function fm(t,e){return Vt(t,n=>n.sourceId!==e)}function Vc(t,e,n){return rl(t,Vt(t,r=>hm(r,e,n)),e,!1,n)}function hm(t,e,n){return jc(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function rl(t,e,n,r,i){let s={};for(let l in t){let a=t[l];e[l]?s[l]=gm(a,n,r,i):s[l]=a}return s}function gm(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=Ft();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 pm(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 zc(t,e){return Vt(t,n=>jc(n,e))}function mm(t,e){let n=tc(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=ec(s,e,n);l&&i.push(l)}return i}function jc(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function vm(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function bm(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function ym(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 Sm(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 Em(t,e,n,r,i){let s=t.headerToolbar?ha(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?ha(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function ha(t,e,n,r,i,s){let l={},a=[],o=!1;for(let c in t){let u=t[c],h=wm(u,e,n,r,i,s);l[c]=h.widgets,a.push(...h.viewsWithButtons),o=o||h.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function wm(t,e,n,r,i,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},h=e.buttonHints||{},f=t?t.split(" "):[],d=[],g=!1;return{widgets:f.map(p=>p.split(",").map(b=>{if(b==="title")return g=!0,{buttonName:b};let E,A,_,O,D,S;if(E=a[b])_=C=>{E.click&&E.click.call(C.target,C,C.target)},(O=r.getCustomButtonIconClass(E))||(O=r.getIconClass(b,l))||(D=E.text),S=E.hint||E.text;else if(A=i[b]){d.push(b),_=()=>{s.changeView(b)},(D=A.buttonTextOverride)||(O=r.getIconClass(b,l))||(D=A.buttonTextDefault);let C=A.buttonTextOverride||A.buttonTextDefault;S=Rn(A.buttonTitleOverride||A.buttonTitleDefault||e.viewHint,[C,b],C)}else if(s[b])if(_=()=>{s[b]()},(D=o[b])||(O=r.getIconClass(b,l))||(D=c[b]),b==="prevYear"||b==="nextYear"){let C=b==="prevYear"?"prev":"next";S=Rn(u[C]||h[C],[c.year||"year","year"],c[b])}else S=C=>Rn(u[b]||h[b],[c[C]||C,C],c[b]);return{buttonName:b,buttonClick:_,buttonIcon:O,buttonText:D,buttonHint:S}})),viewsWithButtons:d,hasTitle:g}}class Am{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 Cm={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const _m=Ke({name:"array-event-source",eventSourceDefs:[Cm]});let Dm={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;zg(i.bind(null,oc(t.range,r)),s=>e({rawEvents:s}),n)}};const Rm=Ke({name:"func-event-source",eventSourceDefs:[Dm]}),km={method:String,extraParams:w,startParam:String,endParam:String,timeZoneParam:String};let Tm={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=Mm(r,t.range,t.context);jg(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const xm=Ke({name:"json-event-source",eventSourceRefiners:km,eventSourceDefs:[Tm]});function Mm(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 Im={daysOfWeek:w,startTime:K,endTime:K,duration:K,startRecur:w,endRecur:w};let Nm={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=Zf(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=wt(e,{start:t.startRecur,end:t.endRecur});return r?Pm(t.daysOfWeek,t.startTime,r,n):[]}};const Om=Ke({name:"simple-recurring-event",recurringTypes:[Nm],eventRefiners:Im});function Pm(t,e,n,r){let i=t?Fo(t):null,s=le(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=ye(s,1)}return a}const Hm=Ke({name:"change-handler",optionChangeHandlers:{events(t,e){ga([t],e)},eventSources:ga}});function ga(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 Lm(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},oc(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Bm(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Ht(t,e))}const Vm=[_m,Rm,xm,Om,Hm,Ke({name:"misc",isLoadingFuncs:[t=>Lc(t.eventSources)],propSetHandlers:{dateProfile:Lm,eventStore:Bm}})];class zm{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Rs(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 jm(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,ae(e.titleFormat||Fm(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Fm(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Ar(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=j(this._computeCurrentViewData),this.organizeRawLocales=j(Yp),this.buildLocale=j(Pc),this.buildPluginHooks=Xp(),this.buildDateEnv=j($m),this.buildTheme=j(Wm),this.parseToolbars=j(Em),this.buildViewSpecs=j(rm),this.buildDateProfileGenerator=hr(Gm),this.buildViewApi=j(Ym),this.buildViewUiProps=hr(Zm),this.buildEventUiBySource=j(qm,Ze),this.buildEventUiBases=j(Qm),this.parseContextBusinessHours=hr(Xm),this.buildTitle=j(jm),this.emitter=new Xr,this.actionRunner=new zm(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=f=>{this.actionRunner.request(f)},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=eg(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(l);it(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 f of r.pluginHooks.contextInit)f(o);let c=cm(r.calendarOptions,a,o),u={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:c,eventUiBases:{},eventStore:He(),renderableEventStore:He(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},h=Object.assign(Object.assign({},o),u);for(let f of r.pluginHooks.reducers)Object.assign(u,f(null,null,h));Ei(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=am(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=lm(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:h}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(h=o.dateProfileGenerator.build(u)),u=Jh(u,e),h=om(h,e,u,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!it(h.currentRange,u))&&(u=h.currentRange.start);let f=um(r.eventSources,e,h,c),d=hg(r.eventStore,e,f,h,c),m=Lc(f)&&!o.options.progressiveEventRendering&&r.renderableEventStore||d,{eventUiSingleBase:p,selectionConfig:b}=this.buildViewUiProps(c),E=this.buildEventUiBySource(f),A=this.buildEventUiBases(m.defs,p,E),_={dynamicOptionOverrides:s,currentViewType:a,currentDate:u,dateProfile:h,eventSources:f,eventStore:d,renderableEventStore:m,selectionConfig:b,eventUiBases:A,businessHours:this.parseContextBusinessHours(c),dateSelection:vm(r.dateSelection,e),eventSelection:bm(r.eventSelection,e),eventDrag:ym(r.eventDrag,e),eventResize:Sm(r.eventResize,e)},O=Object.assign(Object.assign({},c),_);for(let C of l.pluginHooks.reducers)Object.assign(_,C(r,e,O));let D=Ei(r,c),S=Ei(_,c);!D&&S?i.trigger("loading",!0):D&&!S&&i.trigger("loading",!1),this.state=_,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=dm(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=ia(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=ia(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);pa(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),h=this.buildTheme(i,s),f=this.parseToolbars(i,this.stableOptionOverrides,h,u,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:c,viewSpecs:u,theme:h,toolbarConfig:f,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=fi([kn,e,n]),s=this.organizeRawLocales(r),l=s.map,a=this.buildLocale(i||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],Vm),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kl),Jl),ea),o.listenerRefiners),o.optionRefiners),u={},h=fi([kn,a,e,n]),f={},d=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,m=!1;for(let p in h)this.optionsForRefining.indexOf(p)===-1&&(h[p]===d[p]||It[p]&&p in d&&It[p](d[p],h[p]))?f[p]=g[p]:c[p]?(f[p]=c[p](h[p]),m=!0):u[p]=d[p];return m&&(this.currentCalendarOptionsInput=h,this.currentCalendarOptionsRefined=f,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);pa(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=fi([kn,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kl),Jl),ea),Th),n.listenerRefiners),n.optionRefiners),o={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,h=!1,f={};for(let d in l)l[d]===c[d]||It[d]&&It[d](l[d],c[d])?o[d]=u[d]:(l[d]===this.currentCalendarOptionsInput[d]||It[d]&&It[d](l[d],this.currentCalendarOptionsInput[d])?d in this.currentCalendarOptionsRefined&&(o[d]=this.currentCalendarOptionsRefined[d]):a[d]?o[d]=a[d](l[d]):f[d]=l[d],h=!0);return h&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:f}}}function $m(t,e,n,r,i,s,l,a){let o=Pc(e||l.defaultCode,l.map);return new Vh({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Wm(t,e){let n=e.themeClasses[t.themeSystem]||Dt;return new n(t)}function Gm(t){let e=t.dateProfileGeneratorClass||Qo;return new e(t)}function Ym(t,e,n){return new Am(t,e,n)}function qm(t){return lt(t,e=>e.ui)}function Qm(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 Zm(t){let{options:e}=t;return{eventUiSingleBase:Tr({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:Tr({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Ei(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Xm(t){return wg(t.options.businessHours,t)}function pa(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class Km 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:h}=l;if(a==="title")s=!1,i.push(v("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let f=a===n.activeButton,d=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",g=[`fc-${a}-button`,r.getClass("button")];f&&g.push(r.getClass("buttonActive")),i.push(v("button",{type:"button",title:typeof h=="function"?h(n.navUnit):h,disabled:d,"aria-pressed":f,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 ma 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(Km,{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 Jm 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 ev extends En{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=dn(r);if(l&&i.isValidSegDownEl(n.target)){let a=Ae(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new ue(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=Lo(e.el,"click",".fc-event",this.handleSegClick)}}class tv extends En{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{dn(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=Pf(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=dn(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new ue(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class nv extends Ut{constructor(){super(...arguments),this.buildViewContext=j(Fh),this.buildViewPropTransformers=j(iv),this.buildToolbarProps=j(rv),this.headerRef=Re(),this.footerRef=Re(),this.interactionsStore={},this.state={viewLabelId:bt()},this.registerInteractiveComponent=(e,n)=>{let r=$g(e,n),l=[ev,tv].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=l,Ji[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 Ji[e.uid]},this.resizeRunner=new Rs(()=>{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,Wn(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(ct.Provider,{value:o},n.header&&v(ma,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),v(Jm,{liquid:s,height:l,aspectRatio:a,labeledById:c},this.renderView(e),this.buildAppendContent()),n.footer&&v(ma,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(se,{},...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 rv(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&&!it(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function iv(t){return t.map(e=>new e)}let sv=class extends Wg{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;Rr(()=>{Mn(v(Ug,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,a)=>(this.setClassNames(i),this.setHeight(s),v(Go.Provider,{value:this.customContentRenderId},v(nv,Object.assign({isHeightAuto:l,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Mn(null,this.el),this.setClassNames([]),this.setHeight(""))},Df(e),this.el=e,this.renderRunner=new Rs(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(){Rr(()=>{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(!St(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){Po(this.el,"height",e)}};const lv={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},av=Ja({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:uv(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(Qe(ov,{key:e.id,customRendering:e}));return Qe("div",{attrs:{"data-fc-render-id":this.renderId}},Qe(we,t))},mounted(){const t=new Wp;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new sv(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:cv()}),ov=Ja({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return Qe(Rd,{to:t.containerEl},e)}});function cv(){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 lv)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 uv(t){const e={};for(const n in t)e[dv(n)]=t[n];return e}function dv(t){return t.split("-").map((e,n)=>n?fv(e):e).join("")}function fv(t){return t.charAt(0).toUpperCase()+t.slice(1)}class hv extends Ge{constructor(){super(...arguments),this.headerElRef=Re()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=Mr(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(In,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},v(Js,{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&&Mr(a.options),c=!l.forPrint&&Dc(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:ns}]}),v(In,{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 ir(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 sr(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 va(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 Fc=ae({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Uc(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 $c extends ee{render(){let{props:e}=this;return v(Rc,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Fc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Wc extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||Fc,l=Tn(i,s,n,!0,e.defaultDisplayEventEnd);return v(Jr,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Gs(e.seg,n),defaultGenerator:gv,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function gv(t){return v(se,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(se,null," ")))}class pv extends ee{constructor(){super(...arguments),this.compileSegs=j(mv)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return v(Mc,{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(se,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":""}},Uc(s)?v(Wc,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},st(s,e.todayRange))):v($c,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},st(s,e.todayRange))))}))}})}}function mv(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 vv=ae({week:"narrow"});class bv extends Ge{constructor(){super(...arguments),this.rootElRef=Re(),this.state={dayNumberId:bt()},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&&Sv(a,o.currentRange,l);return v(tl,{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:yv,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(u,h)=>v("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&v(xc,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:fn(e,a,"week"),date:a,defaultFormat:vv}),!h.isDisabled&&(n.showDayNumber||nl(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({},fn(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(pv,{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 yv(t){return t.dayNumberText||v(se,null," ")}function Sv(t,e,n){const{start:r,end:i}=e,s=Et(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 Gc(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Yc(t){return Gc(t)+":"+t.lastCol}function Ev(t,e,n,r,i,s,l){let a=new Cv(b=>{let E=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return i[E]||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 E=t[b],A=Yc(E);i[A]!=null?o.push({index:b,span:{start:E.firstCol,end:E.lastCol+1}}):c.push(E)}let u=a.addSegs(o),h=a.toRects(),{singleColPlacements:f,multiColPlacements:d,leftoverMargins:g}=wv(h,t,l),m=[],p=[];for(let b of c){d[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let E=b.firstCol;E<=b.lastCol;E+=1)f[E].push({seg:nn(b,E,E+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 E=t[b.index],A=b.span;d[A.start].push({seg:nn(E,A.start,A.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let _=A.start;_<A.end;_+=1)m[_]+=1,f[_].push({seg:nn(E,_,_+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:f,multiColPlacements:d,moreCnts:m,moreMarginTops:p}}function wv(t,e,n){let r=Av(t,n.length),i=[],s=[],l=[];for(let a=0;a<n.length;a+=1){let o=r[a],c=[],u=0,h=0;for(let d of o){let g=e[d.index];c.push({seg:nn(g,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:d.levelCoord,marginTop:d.levelCoord-u}),u=d.levelCoord+d.thickness}let f=[];u=0,h=0;for(let d of o){let g=e[d.index],m=d.span.end-d.span.start>1,p=d.span.start===a;h+=d.levelCoord-u,u=d.levelCoord+d.thickness,m?(h+=d.thickness,p&&f.push({seg:nn(g,d.span.start,d.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:d.levelCoord,marginTop:0})):p&&(f.push({seg:nn(g,d.span.start,d.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:d.levelCoord,marginTop:h}),h=0)}i.push(c),s.push(f),l.push(h)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function Av(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 nn(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=wt(s,{start:r[e].date,end:ye(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 Cv extends gc{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Lt(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=Lt(l);if(!s[c])if(this.allowReslicing){const u=Object.assign(Object.assign({},l),{span:Xs(l.span,n.span)}),h=Lt(u);s[h]=!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 qc extends Ge{constructor(){super(...arguments),this.cellElRefs=new rt,this.frameElRefs=new rt,this.fgElRefs=new rt,this.segHarnessRefs=new rt,this.rootElRef=Re(),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=sr(e.businessHourSegs,s),a=sr(e.bgEventSegs,s),o=sr(this.getHighlightSegs(),s),c=sr(this.getMirrorSegs(),s),{singleColPlacements:u,multiColPlacements:h,moreCnts:f,moreMarginTops:d}=Ev(Ws(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]:h[p],e.todayRange,g),E=this.renderFgSegs(p,_v(c[p],h),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return v(bv,{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:f[p],moreMarginTop:d[p],singlePlacements:u[p],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:v(se,null,v(se,null,b),v(se,null,E)),bgContent:v(se,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(!Ze(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,h=this.props.cells.length===1,f=s||l||a,d=[];if(u)for(let g of n){let{seg:m}=g,{instanceId:p}=m.eventRange.instance,b=g.isVisible&&!i[p],E=g.isAbsolute,A="",_="";E&&(o.isRtl?(_=0,A=u.lefts[m.lastCol]-u.lefts[m.firstCol]):(A=0,_=u.rights[m.firstCol]-u.rights[m.lastCol])),d.push(v("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:Gc(m),ref:f?null:this.segHarnessRefs.createRef(Yc(m)),style:{visibility:b?"":"hidden",marginTop:E?"":g.marginTop,top:E?g.absoluteTop:"",left:A,right:_}},Uc(m)?v(Wc,Object.assign({seg:m,isDragging:s,isSelected:p===c,defaultDisplayEventEnd:h},st(m,r))):v($c,Object.assign({seg:m,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:p===c,defaultDisplayEventEnd:h},st(m,r)))))}return d}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:ac(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?v(kc,Object.assign({seg:a},st(a,i))):Tc(n)))}return v(se,{},...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 hn(c,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(u))&&this.setState({framePositions:new hn(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])}}qc.addStateEquality({segHeights:Ze});function _v(t,e){if(!t.length)return[];let n=Dv(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function Dv(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class Rv extends Ge{constructor(){super(...arguments),this.splitBusinessHourSegs=j(ir),this.splitBgEventSegs=j(ir),this.splitFgEventSegs=j(ir),this.splitDateSelectionSegs=j(ir),this.splitEventDrag=j(va),this.splitEventResize=j(va),this.rowRefs=new rt}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(wn,{unit:"day"},(h,f)=>v(se,null,e.cells.map((d,g)=>v(qc,{ref:this.rowRefs.createRef(g),key:d.length?d[0].date.toISOString():g,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:f,dateProfile:e.dateProfile,cells:d,renderIntro:e.renderRowIntro,businessHourSegs:i[g],eventSelection:e.eventSelection,bgEventSegs:s[g].filter(kv),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 hn(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new hn(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=ye(r,1);return{start:r,end:i}}}function kv(t){return t.eventRange.def.allDay}class Tv extends Ge{constructor(){super(...arguments),this.elRef=Re(),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(Rv,{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=xv(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 xv(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${fh(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Un(e.currentDate)}"]`)),n}class Mv extends Sc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Qc extends Ge{constructor(){super(...arguments),this.slicer=new Mv,this.tableRef=Re()}render(){let{props:e,context:n}=this;return v(Tv,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 Iv extends hv{constructor(){super(...arguments),this.buildDayTableModel=j(Nv),this.headerRef=Re(),this.tableRef=Re()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&v(vc,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=a=>v(Qc,{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 Nv(t,e){let n=new bc(t.renderRange,e);return new yc(n,/year|month|week/.test(t.currentRangeUnit))}class Ov extends Qo{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return Pv({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function Pv(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=Gl(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(ye(n.end,-1))),a=Math.ceil(th(l,i));i=Gl(i,6-a)}return{start:r,end:i}}var Hv=':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}';Yr(Hv);var Lv=Ke({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Iv,dateProfileGeneratorClass:Ov},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 Bv extends Zg{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Rg(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Vv=ae({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Zc(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return v(ct.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?Vv:Array.isArray(i.slotLabelFormat)?ae(i.slotLabelFormat[0]):ae(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return v(De,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:zv,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 zv(t){return t.text}class jv extends ee{render(){return this.props.slatMetas.map(e=>v("tr",{key:e.key},v(Zc,Object.assign({},e))))}}const Fv=ae({week:"short"}),Uv=5;class $v extends Ge{constructor(){super(...arguments),this.allDaySplitter=new Bv,this.headerElRef=Re(),this.rootElRef=Re(),this.scrollerElRef=Re(),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=_t(s.start,s.end)===1?fn(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?v(xc,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:Fv},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(De,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:Wv,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=Mr(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(In,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},v(Js,{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,h=!u.forPrint&&Mr(c.options),f=!u.forPrint&&Dc(c.options),d=[];e&&d.push({type:"header",key:"header",isSticky:h,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&&(d.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}]}),d.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 d.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(jv,{slatMetas:l}))),v("div",{className:"fc-timegrid-now-indicator-container"},v(wn,{unit:g?"minute":"day"},p=>{let b=g&&a&&a.safeComputeTop(p);return typeof b=="number"?v(el,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:p}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),f&&d.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:ns},{key:"cols",content:ns}]}),v(In,{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:d}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=Uv),{dayMaxEvents:e,dayMaxEventRows:n}}}function Wv(t){return t.text}class Gv{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(it(n.currentRange,e)){let r=le(e),i=e.valueOf()-r.valueOf();if(i>=$e(n.slotMinTime)&&i<$e(n.slotMaxTime))return this.computeTimeTop(K(i))}return null}computeDateTop(e,n){return n||(n=le(e)),this.computeTimeTop(K(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-$e(r.slotMinTime))/$e(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 Yv 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(Zc,Object.assign({},s)),v(De,{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 qv extends ee{constructor(){super(...arguments),this.rootElRef=Re(),this.slatElRefs=new rt}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(Yv,{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 Gv(new hn(this.rootElRef.current,Qv(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Qv(t,e){return e.map(n=>t[n.key])}function _n(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 ba(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 Zv extends ee{render(){let{props:e}=this;return v(Mc,{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:()=>Kc(e.hiddenSegs,e),defaultGenerator:Xv,forceTimed:!0},n=>v(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Xv(t){return t.shortText}function Kv(t,e,n){let r=new gc;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=cp(i),l=Jv(r);return l=rb(l,1),{segRects:ib(l),hiddenGroups:s}}function Jv(t){const{entriesByLevel:e}=t,n=il((r,i)=>r+":"+i,(r,i)=>{let s=nb(t,r,i),l=ya(s,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:l[0]}),a.thickness+l[1]]});return ya(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function ya(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(eb),[l.map(tb),l[0][1]]}function eb(t,e){return e[1]-t[1]}function tb(t){return t[0]}function nb(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,h=ts(c,s.span.start,es),f=h[0]+h[1],d=f;for(;(u=c[d])&&u.span.start<s.span.end;)d+=1;if(f<d)return{level:o,lateralStart:f,lateralEnd:d}}return null}function rb(t,e){const n=il((r,i,s)=>Lt(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:a}=r,o=a+s,c=a/o,u,h=[];if(!l.length)u=e;else for(let d of l)if(u===void 0){let g=n(d,i,o);u=g[0],h.push(g[1])}else{let g=n(d,u,0);h.push(g[1])}let f=(u-i)*c;return[u-f,Object.assign(Object.assign({},r),{thickness:f,nextLevelNodes:h})]});return t.map(r=>n(r,0,0)[1])}function ib(t){let e=[];const n=il((i,s,l)=>Lt(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 il(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function Sa(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 sb(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}=Kv(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 lb=ae({hour:"numeric",minute:"2-digit",meridiem:!1});class Xc extends ee{render(){return v(Rc,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:lb}))}}class ab extends ee{constructor(){super(...arguments),this.sortEventSegs=j(Ws)}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(tl,{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)),nl(r)&&v(o,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:a}=this;return a.forPrint?Kc(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:h,slatCoords:f,eventSelection:d,todayRange:g,nowDate:m}=this.props,p=r||i||s,b=Sa(e,h,f,u),{segPlacements:E,hiddenGroups:A}=sb(e,b,c,a);return v(se,null,this.renderHiddenGroups(A,e),E.map(_=>{let{seg:O,rect:D}=_,S=O.eventRange.instance.instanceId,C=p||!!(!n[S]&&D),B=wi(D&&D.span),R=!p&&D?this.computeSegHStyle(D):{left:0,right:0},k=!!D&&D.stackForward>0,H=!!D&&D.span.end-D.span.start<o;return v("div",{className:"fc-timegrid-event-harness"+(k?" fc-timegrid-event-harness-inset":""),key:l||S,style:Object.assign(Object.assign({visibility:C?"":"hidden"},B),R)},v(Xc,Object.assign({seg:O,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:S===d,isShort:H},st(O,g,m))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:c}=this.props;return v(se,null,e.map(u=>{let h=wi(u.span),f=ob(u.entries,n);return v(Zv,{key:jo(Ic(f)),hiddenSegs:f,top:h.top,bottom:h.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=Sa(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,o)=>{let c=e[o];return v("div",{key:ac(c.eventRange),className:"fc-timegrid-bg-harness",style:wi(a)},n==="bg-event"?v(kc,Object.assign({seg:c},st(c,r.todayRange,r.nowDate))):Tc(n))});return v(se,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>v(el,{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 Kc(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return v(se,null,t.map(a=>{let o=a.eventRange.instance.instanceId;return v("div",{key:o,style:{visibility:l[o]?"hidden":""}},v(Xc,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},st(a,e,n))))}))}function wi(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function ob(t,e){return t.map(n=>e[n.index])}class cb extends ee{constructor(){super(...arguments),this.splitFgEventSegs=j(_n),this.splitBgEventSegs=j(_n),this.splitBusinessHourSegs=j(_n),this.splitNowIndicatorSegs=j(_n),this.splitDateSelectionSegs=j(_n),this.splitEventDrag=j(ba),this.splitEventResize=j(ba),this.rootElRef=Re(),this.cellElRefs=new rt}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),h=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(el,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((f,d)=>v(ab,{key:f.key,elRef:this.cellElRefs.createRef(f.key),dateProfile:e.dateProfile,date:f.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:f.extraRenderProps,extraDataAttrs:f.extraDataAttrs,extraClassNames:f.extraClassNames,extraDateSpan:f.extraDateSpan,fgEventSegs:s[d],bgEventSegs:l[d],businessHourSegs:a[d],nowIndicatorSegs:o[d],dateSelectionSegs:c[d],eventDrag:u[d],eventResize:h[d],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 hn(this.rootElRef.current,ub(this.cellElRefs.currentMap,e.cells),!0,!1))}}function ub(t,e){return e.map(n=>t[n.key])}class db extends Ge{constructor(){super(...arguments),this.processSlotOptions=j(fb),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(qv,{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(cb,{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),h=a.positions.topToIndex(n);if(u!=null&&h!=null){let f=this.props.cells[u],d=a.positions.tops[h],g=a.positions.getHeight(h),m=(n-d)/g,p=Math.floor(m*c),b=h*c+p,E=this.props.cells[u].date,A=Gi(l.slotMinTime,Xf(o,b)),_=r.add(E,A),O=r.add(_,o);return{dateProfile:l,dateSpan:Object.assign({range:{start:_,end:O},allDay:!1},f.extraDateSpan),dayEl:s.els[u],rect:{left:s.lefts[u],right:s.rights[u],top:d,bottom:d+g},layer:0}}return null}}function fb(t,e){let n=e||t,r=Ms(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class hb extends Sc{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=wt(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 gb extends Ge{constructor(){super(...arguments),this.buildDayRanges=j(pb),this.slicer=new hb,this.timeColsRef=Re()}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(wn,{unit:s?"minute":"day"},(o,c)=>v(db,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 pb(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 Ea=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function mb(t,e,n,r,i){let s=new Date(0),l=t,a=K(0),o=n||vb(r),c=[];for(;$e(l)<$e(e);){let u=i.add(s,l),h=Ms(a,o)!==null;c.push({date:u,time:l,key:u.toISOString(),isoTimeStr:hh(u),isLabeled:h}),l=Gi(l,r),a=Gi(a,r)}return c}function vb(t){let e,n,r;for(e=Ea.length-1;e>=0;e-=1)if(n=K(Ea[e]),r=Ms(n,t),r!==null&&r>1)return n;return t}class bb extends $v{constructor(){super(...arguments),this.buildTimeColsModel=j(yb),this.buildSlatMetas=j(mb)}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,h=c,f=e.dayHeaders&&v(vc,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),d=e.allDaySlot!==!1&&(m=>v(Qc,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(gb,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 h?this.renderHScrollLayout(f,d,g,l.colCnt,c,o,this.state.slatCoords):this.renderSimpleLayout(f,d,g)}}function yb(t,e){let n=new bc(t.renderRange,e);return new yc(n,!1)}var Sb='.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}';Yr(Sb);const Eb={allDaySlot:Boolean};var wb=Ke({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:Eb,views:{timeGrid:{component:bb,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Ks.touchMouseIgnoreWait=500;let is=0,Ir=0,ss=!1;class Jc{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()&&Ab(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,Cb()}},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 Xr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),_b()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Db()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Ae(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){ss=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Ae(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return is||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(ss=!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 Ab(t){return t.button===0&&!t.ctrlKey}function Cb(){is+=1,setTimeout(()=>{is-=1},Ks.touchMouseIgnoreWait)}function _b(){Ir+=1,Ir===1&&window.addEventListener("touchmove",eu,{passive:!1})}function Db(){Ir-=1,Ir||window.removeEventListener("touchmove",eu,{passive:!1})}function eu(t){ss&&t.preventDefault()}class Rb{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",Dn(r,{left:i.left,top:i.top}),Hf(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(ks(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Dn(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"),Dn(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 tu extends Zs{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 nu extends tu{constructor(e,n){super(new ap(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return sp(this.scrollController.el)}}class kb extends tu{constructor(e){super(new op,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 wa=typeof performance=="function"?performance.now:Date.now;class Tb{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=wa();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(wa()))}}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,h=a.bottom-n;o>=0&&c>=0&&u>=0&&h>=0&&(u<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"top",distance:u}),h<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>h)&&(i={scrollCache:l,name:"bottom",distance:h}),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 kb(!1):new nu(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 Gn extends dp{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,Lf(document.body),Vf(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,Bf(document.body),zf(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 Jc(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 Rb,this.autoScroller=new Tb}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 xb{constructor(e){this.el=e,this.origRect=Qs(e),this.scrollCaches=hc(e).map(n=>new nu(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(!Mb(i.getEventTarget())&&!Gg(r,i.clientRect))return!1;return!0}}function Mb(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class ei{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 Xr}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=Qs(i),r=Yg(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let a=dc(s,l.rect);a&&(r=qg(a))}this.coordAdjust=Qg(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||!ti(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=lt(this.droppableStore,e=>(e.component.prepareHits(),new xb(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(),h=e-c,f=n-u,{origRect:d}=o,g=d.right-d.left,m=d.bottom-d.top;if(h>=0&&h<g&&f>=0&&f<m){let p=a.queryHit(h,f,g,m);p&&Qr(p.dateProfile.activeRange,p.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(h+c-window.scrollX,f+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 ti(t,e){return!t&&!e?!0:!!t!=!!e?!1:Hg(t.dateSpan,e.dateSpan)}function ru(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,Ib(t,e.dateEnv)),n}function Ib(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class Nb extends En{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&&ti(l,a)){let{context:o}=i,c=Object.assign(Object.assign({},ru(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",c)}}},this.dragging=new Gn(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new ei(this.dragging,Ys(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Ob extends En{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?Pb(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 h=this.hitDragging.initialHit;l.componentId===h.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(h,l)||(c=Hb(h,l,o.pluginHooks.dateSelectionTransformers)),(!c||!vp(c,l.dateProfile,o))&&(u=!0,c=null)}c?o.dispatch({type:"SELECT_DATES",selection:c}):a||o.dispatch({type:"UNSELECT_DATES"}),u?Ts():xs(),a||(this.dragSelection=c)},this.handlePointerUp=l=>{this.dragSelection&&(ic(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new Gn(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new ei(this.dragging,Ys(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 Pb(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Hb(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(Wf);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 Yn extends En{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:h}=o.context,f=o.context;this.subjectEl=l.subjectEl;let d=this.subjectSeg=dn(l.subjectEl),m=(this.eventRange=d.eventRange).instance.instanceId;this.relevantEvents=js(f.getCurrentData().eventStore,m),c.minDistance=l.isTouch?0:h.eventDragMinDistance,c.delay=l.isTouch&&m!==o.props.eventSelection?Bb(o):null,h.fixedMirrorParent?u.parentNode=h.fixedMirrorParent:u.parentNode=Ae(a,".fc"),u.revertDuration=h.dragRevertDuration;let p=o.isValidSegDownEl(a)&&!Ae(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 ue(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,h=null,f=null,d=null,g=!1,m={affectedEvents:o,mutatedEvents:He(),isEvent:!0};if(l){h=l.context;let p=h.options;u===h||p.editable&&p.droppable?(f=Lb(c,l,this.eventRange.instance.range.start,h.getCurrentData().pluginHooks.eventDragMutationMassagers),f&&(d=$s(o,h.getCurrentData().eventUiBases,f,h),m.mutatedEvents=d,Ec(m,l.dateProfile,h)||(g=!0,f=null,d=null,m.mutatedEvents=He()))):h=null}this.displayDrag(h,m),g?Ts():xs(),a||(u===h&&ti(c,l)&&(f=null),this.dragging.setMirrorNeedsRevert(!f),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=h,this.validMutation=f,this.mutatedRelevantEvents=d)},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,h=this.eventRange.def,f=this.eventRange.instance,d=new ue(a,h,f),g=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:p}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:d,jsEvent:l.origEvent,view:o}),u){if(c===a){let b=new ue(a,m.defs[h.defId],f?m.instances[f.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:m});let E={oldEvent:d,event:b,relatedEvents:Ht(m,a,f),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}},A={};for(let _ of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(A,_(u,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},E),A),{el:l.subjectEl,delta:u.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",E)}else if(c){let b={event:d,relatedEvents:Ht(g,a,f),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 E=m.defs[h.defId],A=m.instances[f.instanceId],_=new ue(c,E,A);c.dispatch({type:"MERGE_EVENTS",eventStore:m});let O={event:_,relatedEvents:Ht(m,c,A),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};c.emitter.trigger("eventAdd",O),l.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:f.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},ru(p.dateSpan,c)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:p.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},O),{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 Gn(e.el);i.pointer.selector=Yn.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new ei(this.dragging,Ji);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:He(),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}}Yn.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Lb(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=le(n):l=n);let c=Kt(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 h of r)h(u,t,e);return u}function Bb(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Vb extends En{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=dn(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=js(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=dn(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new ue(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,h=this.eventRange.instance,f=null,d=null,g=!1,m={affectedEvents:c,mutatedEvents:He(),isEvent:!0};s&&(s.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,s)||(f=zb(u,s,a.subjectEl.classList.contains("fc-event-resizer-start"),h.range))),f&&(d=$s(c,o.getCurrentData().eventUiBases,f,o),m.mutatedEvents=d,Ec(m,s.dateProfile,o)||(g=!0,f=null,d=null,m.mutatedEvents=null)),d?o.dispatch({type:"SET_EVENT_RESIZE",state:m}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),g?Ts():xs(),l||(f&&ti(u,s)&&(f=null),this.validMutation=f,this.mutatedRelevantEvents=d)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,c=new ue(l,a,o),u=this.relevantEvents,h=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let f=new ue(l,h.defs[a.defId],o?h.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:h});let d={oldEvent:c,event:f,relatedEvents:Ht(h,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:u})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},d),{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",d)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Gn(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new ei(this.dragging,Ys(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 Ae(e.subjectEl,".fc-event")}}function zb(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=Kt(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 jb{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=Ho(r.origEvent);this.matchesCancel=!!Ae(s,i),this.matchesEvent=!!Ae(s,Yn.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 Jc(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 Fb={fixedMirrorParent:w},Ub={dateClick:w,eventDragStart:w,eventDragStop:w,eventDrop:w,eventResizeStart:w,eventResizeStop:w,eventResize:w,drop:w,eventReceive:w,eventLeave:w};Ks.dataAttrPrefix="";var $b=Ke({name:"@fullcalendar/interaction",componentInteractions:[Nb,Ob,Yn,Vb],calendarInteractions:[jb],elementDraggingImpl:Gn,optionRefiners:Fb,listenerRefiners:Ub});class Wb extends ee{constructor(){super(...arguments),this.state={textId:bt()}}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=qs(l,a),u=r.listDayFormat?n.format(l,r.listDayFormat):"",h=r.listDaySideFormat?n.format(l,r.listDaySideFormat):"",f=Object.assign({date:n.toDate(l),view:i,textId:o,text:u,sideText:h,navLinkAttrs:fn(this.context,l),sideNavLinkAttrs:fn(this.context,l,"day",!1)},c);return v(De,{elTag:"tr",elClasses:["fc-list-day",...Kr(c,e)],elAttrs:{"data-date":Un(l)},renderProps:f,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Gb,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},d=>v("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},v(d,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function Gb(t){return v(se,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 Yb=ae({hour:"numeric",minute:"2-digit",meridiem:"short"});class qb extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=r.eventTimeFormat||Yb;return v(Jr,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>Qb(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,u)=>v(se,null,Zb(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 Qb(t,e){let n=Gs(t,e);return v("a",Object.assign({},n),t.eventRange.def.title)}function Zb(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:Kh(t.eventRange.range)?t.isStart?c=Tn(t,e,n,null,null,a.range.start,t.end):t.isEnd?c=Tn(t,e,n,null,null,t.start,a.range.end):o=!0:c=Tn(t,e,n),o){let u={text:n.options.allDayText,view:n.viewApi};return v(De,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:u,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:Xb,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return v("td",{className:"fc-list-event-time"},c)}return null}function Xb(t){return t.text}class Kb extends Ge{constructor(){super(...arguments),this.computeDateVars=j(ey),this.eventStoreToSegs=j(this._eventStoreToSegs),this.state={timeHeaderId:bt(),eventHeaderId:bt(),dateHeaderIdRoot:bt()},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(In,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},v(Cc,{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(De,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:Jb,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=ty(e);return v(wn,{unit:"day"},(c,u)=>{let h=[];for(let f=0;f<o.length;f+=1){let d=o[f];if(d){let g=Un(n[f]),m=a+"-"+g;h.push(v(Wb,{key:g,cellId:m,dayDate:n[f],todayRange:u})),d=Ws(d,i.eventOrder);for(let p of d)h.push(v(qb,Object.assign({key:g+":"+p.eventRange.instance.instanceId,seg:p,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:l,dateHeaderId:m},st(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,h))})}_eventStoreToSegs(e,n,r){return this.eventRangesToSegs(Ki(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=wt(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 Jb(t){return t.text}function ey(t){let e=le(t.renderRange.start),n=t.renderRange.end,r=[],i=[];for(;e<n;)r.push(e),i.push({start:e,end:ye(e,1)}),e=ye(e,1);return{dayDates:r,dayRanges:i}}function ty(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 ny=':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}';Yr(ny);const ry={listDayFormat:Aa,listDaySideFormat:Aa,noEventsClassNames:w,noEventsContent:w,noEventsDidMount:w,noEventsWillUnmount:w};function Aa(t){return t===!1?null:ae(t)}var iy=Ke({name:"@fullcalendar/list",optionRefiners:ry,views:{list:{component:Kb,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"}}}}),sy={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 ly(t,e){const n=hs({}),r=e&&`_d_${e}_`;return Xe(t,()=>{for(const i of Object.keys(t))i.startsWith("_c_")&&(n[i]=t[i]),r&&i.startsWith(r)&&(n[i.replace(r,"")]=t[i]);for(const i of Object.keys(n))i.startsWith("_c_")&&t[i]===void 0&&delete n[i],r&&!i.startsWith("_c_")&&t[r+i]===void 0&&delete n[i]},{immediate:!0}),n}function ay(t){return kd()?(Td(t),!0):!1}function oy(t){return typeof t=="function"?t():$(t)}const cy=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const uy=()=>{};function dy(t){return eo()}function fy(t,e=!0,n){dy()?Lr(t,n):e?t():gs(t)}function sl(t,e,n){let r;ps(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:s=void 0,shallow:l=!0,onError:a=uy}=r,o=ie(!i),c=l?Ne(e):ie(e);let u=0;return to(async h=>{if(!o.value)return;u++;const f=u;let d=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const g=await t(m=>{h(()=>{s&&(s.value=!1),d||m()})});f===u&&(c.value=g)}catch(g){a(g)}finally{s&&f===u&&(s.value=!1),d=!0}}),i?N(()=>(o.value=!0,c.value)):c}function Jt(t){var e;const n=oy(t);return(e=n==null?void 0:n.$el)!=null?e:n}const iu=cy?window:void 0;function hy(){const t=ie(!1),e=eo();return e&&Lr(()=>{t.value=!0},e),t}function gy(t){const e=hy();return N(()=>(e.value,!!t()))}function py(t,e,n={}){const{window:r=iu,...i}=n;let s;const l=gy(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},o=N(()=>Array.isArray(t)?t.map(h=>Jt(h)):[Jt(t)]),c=Xe(o,h=>{if(a(),l.value&&r){s=new ResizeObserver(e);for(const f of h)f&&s.observe(f,i)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ay(u),{isSupported:l,stop:u}}function UE(t,e={width:0,height:0},n={}){const{window:r=iu,box:i="content-box"}=n,s=N(()=>{var h,f;return(f=(h=Jt(t))==null?void 0:h.namespaceURI)==null?void 0:f.includes("svg")}),l=ie(e.width),a=ie(e.height),{stop:o}=py(t,([h])=>{const f=i==="border-box"?h.borderBoxSize:i==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(r&&s.value){const d=Jt(t);if(d){const g=d.getBoundingClientRect();l.value=g.width,a.value=g.height}}else if(f){const d=Array.isArray(f)?f:[f];l.value=d.reduce((g,{inlineSize:m})=>g+m,0),a.value=d.reduce((g,{blockSize:m})=>g+m,0)}else l.value=h.contentRect.width,a.value=h.contentRect.height},n);fy(()=>{const h=Jt(t);h&&(l.value="offsetWidth"in h?h.offsetWidth:e.width,a.value="offsetHeight"in h?h.offsetHeight:e.height)});const c=Xe(()=>Jt(t),h=>{l.value=h?e.width:0,a.value=h?e.height:0});function u(){o(),c()}return{width:l,height:a,stop:u}}const rn=(t,e=0,n=1)=>al(ol(e,t),n),ll=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]=rn(t[e],0,255)):e===3&&(t[e]=rn(t[e],0,1));return t},su={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])su[`[object ${t}]`]=t.toLowerCase();function Q(t){return su[Object.prototype.toString.call(t)]||"object"}const Z=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):Q(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0],ni=t=>{if(t.length<2)return null;const e=t.length-1;return Q(t[e])=="string"?t[e].toLowerCase():null},{PI:ri,min:al,max:ol}=Math,tt=ri*2,Ai=ri/3,my=ri/180,vy=180/ri,Y={format:{},autodetect:[]};class x{constructor(...e){const n=this;if(Q(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=ni(e),i=!1;if(!r){i=!0,Y.sorted||(Y.autodetect=Y.autodetect.sort((s,l)=>l.p-s.p),Y.sorted=!0);for(let s of Y.autodetect)if(r=s.test(...e),r)break}if(Y.format[r]){const s=Y.format[r].apply(null,i?e:e.slice(0,-1));n._rgb=ll(s)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return Q(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const by="2.6.0",q=(...t)=>new q.Color(...t);q.Color=x;q.version=by;const yy=(...t)=>{t=Z(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:Ca}=Math,Sy=(...t)=>{let[e,n,r]=Z(t,"rgb");e=e/255,n=n/255,r=r/255;const i=1-Ca(e,Ca(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]};x.prototype.cmyk=function(){return Sy(this._rgb)};q.cmyk=(...t)=>new x(...t,"cmyk");Y.format.cmyk=yy;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"cmyk"),Q(t)==="array"&&t.length===4)return"cmyk"}});const Ci=t=>Math.round(t*100)/100,Ey=(...t)=>{const e=Z(t,"hsla");let n=ni(t)||"lsa";return e[0]=Ci(e[0]||0),e[1]=Ci(e[1]*100)+"%",e[2]=Ci(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(",")})`},lu=(...t)=>{t=Z(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const i=al(e,n,r),s=ol(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:_i}=Math,wy=(...t)=>{const e=Z(t,"rgba");let n=ni(t)||"rgb";return n.substr(0,3)=="hsl"?Ey(lu(e),n):(e[0]=_i(e[0]),e[1]=_i(e[1]),e[2]=_i(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:Di}=Math,ls=(...t)=>{t=Z(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,h=e/360;a[0]=h+1/3,a[1]=h,a[2]=h-1/3;for(let f=0;f<3;f++)a[f]<0&&(a[f]+=1),a[f]>1&&(a[f]-=1),6*a[f]<1?o[f]=u+(c-u)*6*a[f]:2*a[f]<1?o[f]=c:3*a[f]<2?o[f]=u+(c-u)*(2/3-a[f])*6:o[f]=u;[i,s,l]=[Di(o[0]*255),Di(o[1]*255),Di(o[2]*255)]}return t.length>3?[i,s,l,t[3]]:[i,s,l,1]},au=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,ou=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,cu=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,uu=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,du=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,fu=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:_a}=Math,cl=t=>{t=t.toLowerCase().trim();let e;if(Y.format.named)try{return Y.format.named(t)}catch{}if(e=t.match(au)){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(ou)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+n[r];return n}if(e=t.match(cu)){const n=e.slice(1,4);for(let r=0;r<3;r++)n[r]=_a(n[r]*2.55);return n[3]=1,n}if(e=t.match(uu)){const n=e.slice(1,5);for(let r=0;r<3;r++)n[r]=_a(n[r]*2.55);return n[3]=+n[3],n}if(e=t.match(du)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=ls(n);return r[3]=1,r}if(e=t.match(fu)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=ls(n);return r[3]=+e[4],r}};cl.test=t=>au.test(t)||ou.test(t)||cu.test(t)||uu.test(t)||du.test(t)||fu.test(t);x.prototype.css=function(t){return wy(this._rgb,t)};q.css=(...t)=>new x(...t,"css");Y.format.css=cl;Y.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Q(t)==="string"&&cl.test(t))return"css"}});Y.format.gl=(...t)=>{const e=Z(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};q.gl=(...t)=>new x(...t,"gl");x.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};const{floor:Ay}=Math,Cy=(...t)=>{t=Z(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=Ay(e),c=e-o,u=r*(1-n),h=u+a*(1-c),f=u+a*c,d=u+a;switch(o){case 0:[i,s,l]=[d,f,u];break;case 1:[i,s,l]=[h,d,u];break;case 2:[i,s,l]=[u,d,f];break;case 3:[i,s,l]=[u,h,d];break;case 4:[i,s,l]=[f,u,d];break;case 5:[i,s,l]=[d,u,h];break}}return[i,s,l,t.length>3?t[3]:1]},_y=(...t)=>{const[e,n,r]=Z(t,"rgb"),i=al(e,n,r),s=ol(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]};x.prototype.hcg=function(){return _y(this._rgb)};q.hcg=(...t)=>new x(...t,"hcg");Y.format.hcg=Cy;Y.autodetect.push({p:1,test:(...t)=>{if(t=Z(t,"hcg"),Q(t)==="array"&&t.length===3)return"hcg"}});const Dy=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ry=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,hu=t=>{if(t.match(Dy)){(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(Ry)){(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:lr}=Math,gu=(...t)=>{let[e,n,r,i]=Z(t,"rgba"),s=ni(t)||"auto";i===void 0&&(i=1),s==="auto"&&(s=i<1?"rgba":"rgb"),e=lr(e),n=lr(n),r=lr(r);let a="000000"+(e<<16|n<<8|r).toString(16);a=a.substr(a.length-6);let o="0"+lr(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}`}};x.prototype.hex=function(t){return gu(this._rgb,t)};q.hex=(...t)=>new x(...t,"hex");Y.format.hex=hu;Y.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&Q(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{cos:qt}=Math,ky=(...t)=>{t=Z(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*qt(tt*e)/qt(Ai-tt*e))/3,s=1-(l+i)):e<2/3?(e-=1/3,i=(1-n)/3,s=(1+n*qt(tt*e)/qt(Ai-tt*e))/3,l=1-(i+s)):(e-=2/3,s=(1-n)/3,l=(1+n*qt(tt*e)/qt(Ai-tt*e))/3,i=1-(s+l)),i=rn(r*i*3),s=rn(r*s*3),l=rn(r*l*3),[i*255,s*255,l*255,t.length>3?t[3]:1]},{min:Ty,sqrt:xy,acos:My}=Math,Iy=(...t)=>{let[e,n,r]=Z(t,"rgb");e/=255,n/=255,r/=255;let i;const s=Ty(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/=xy((e-n)*(e-n)+(e-r)*(n-r)),i=My(i),r>n&&(i=tt-i),i/=tt),[i*360,a,l]};x.prototype.hsi=function(){return Iy(this._rgb)};q.hsi=(...t)=>new x(...t,"hsi");Y.format.hsi=ky;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"hsi"),Q(t)==="array"&&t.length===3)return"hsi"}});x.prototype.hsl=function(){return lu(this._rgb)};q.hsl=(...t)=>new x(...t,"hsl");Y.format.hsl=ls;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"hsl"),Q(t)==="array"&&t.length===3)return"hsl"}});const{floor:Ny}=Math,Oy=(...t)=>{t=Z(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=Ny(e),o=e-a,c=r*(1-n),u=r*(1-n*o),h=r*(1-n*(1-o));switch(a){case 0:[i,s,l]=[r,h,c];break;case 1:[i,s,l]=[u,r,c];break;case 2:[i,s,l]=[c,r,h];break;case 3:[i,s,l]=[c,u,r];break;case 4:[i,s,l]=[h,c,r];break;case 5:[i,s,l]=[r,c,u];break}}return[i,s,l,t.length>3?t[3]:1]},{min:Py,max:Hy}=Math,Ly=(...t)=>{t=Z(t,"rgb");let[e,n,r]=t;const i=Py(e,n,r),s=Hy(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]};x.prototype.hsv=function(){return Ly(this._rgb)};q.hsv=(...t)=>new x(...t,"hsv");Y.format.hsv=Oy;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"hsv"),Q(t)==="array"&&t.length===3)return"hsv"}});const Me={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},{pow:By}=Math,pu=(...t)=>{t=Z(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=Me.Yn*ki(s),i=Me.Xn*ki(i),l=Me.Zn*ki(l),a=Ri(3.2404542*i-1.5371385*s-.4985314*l),o=Ri(-.969266*i+1.8760108*s+.041556*l),c=Ri(.0556434*i-.2040259*s+1.0572252*l),[a,o,c,t.length>3?t[3]:1]},Ri=t=>255*(t<=.00304?12.92*t:1.055*By(t,1/2.4)-.055),ki=t=>t>Me.t1?t*t*t:Me.t2*(t-Me.t0),{pow:mu}=Math,vu=(...t)=>{const[e,n,r]=Z(t,"rgb"),[i,s,l]=Vy(e,n,r),a=116*s-16;return[a<0?0:a,500*(i-s),200*(s-l)]},Ti=t=>(t/=255)<=.04045?t/12.92:mu((t+.055)/1.055,2.4),xi=t=>t>Me.t3?mu(t,1/3):t/Me.t2+Me.t0,Vy=(t,e,n)=>{t=Ti(t),e=Ti(e),n=Ti(n);const r=xi((.4124564*t+.3575761*e+.1804375*n)/Me.Xn),i=xi((.2126729*t+.7151522*e+.072175*n)/Me.Yn),s=xi((.0193339*t+.119192*e+.9503041*n)/Me.Zn);return[r,i,s]};x.prototype.lab=function(){return vu(this._rgb)};q.lab=(...t)=>new x(...t,"lab");Y.format.lab=pu;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"lab"),Q(t)==="array"&&t.length===3)return"lab"}});const{sin:zy,cos:jy}=Math,bu=(...t)=>{let[e,n,r]=Z(t,"lch");return isNaN(r)&&(r=0),r=r*my,[e,jy(r)*n,zy(r)*n]},yu=(...t)=>{t=Z(t,"lch");const[e,n,r]=t,[i,s,l]=bu(e,n,r),[a,o,c]=pu(i,s,l);return[a,o,c,t.length>3?t[3]:1]},Fy=(...t)=>{const e=Z(t,"hcl").reverse();return yu(...e)},{sqrt:Uy,atan2:$y,round:Wy}=Math,Su=(...t)=>{const[e,n,r]=Z(t,"lab"),i=Uy(n*n+r*r);let s=($y(r,n)*vy+360)%360;return Wy(i*1e4)===0&&(s=Number.NaN),[e,i,s]},Eu=(...t)=>{const[e,n,r]=Z(t,"rgb"),[i,s,l]=vu(e,n,r);return Su(i,s,l)};x.prototype.lch=function(){return Eu(this._rgb)};x.prototype.hcl=function(){return Eu(this._rgb).reverse()};q.lch=(...t)=>new x(...t,"lch");q.hcl=(...t)=>new x(...t,"hcl");Y.format.lch=yu;Y.format.hcl=Fy;["lch","hcl"].forEach(t=>Y.autodetect.push({p:2,test:(...e)=>{if(e=Z(e,t),Q(e)==="array"&&e.length===3)return t}}));const gn={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"};x.prototype.name=function(){const t=gu(this._rgb,"rgb");for(let e of Object.keys(gn))if(gn[e]===t)return e.toLowerCase();return t};Y.format.named=t=>{if(t=t.toLowerCase(),gn[t])return hu(gn[t]);throw new Error("unknown color name: "+t)};Y.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Q(t)==="string"&&gn[t.toLowerCase()])return"named"}});const Gy=t=>{if(Q(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)},Yy=(...t)=>{const[e,n,r]=Z(t,"rgb");return(e<<16)+(n<<8)+r};x.prototype.num=function(){return Yy(this._rgb)};q.num=(...t)=>new x(...t,"num");Y.format.num=Gy;Y.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&Q(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const{round:wu}=Math;x.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(wu)};x.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:wu(e):e)};q.rgb=(...t)=>new x(...t,"rgb");Y.format.rgb=(...t)=>{const e=Z(t,"rgba");return e[3]===void 0&&(e[3]=1),e};Y.autodetect.push({p:3,test:(...t)=>{if(t=Z(t,"rgba"),Q(t)==="array"&&(t.length===3||t.length===4&&Q(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const{log:ar}=Math,Au=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*ar(r),i=e<20?0:-254.76935184120902+.8274096064007395*(i=e-10)+115.67994401066147*ar(i)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*ar(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*ar(r),i=255),[n,r,i,1]},{round:qy}=Math,Qy=(...t)=>{const e=Z(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=Au(a);o[2]/o[0]>=r/n?s=a:i=a}return qy(a)};x.prototype.temp=x.prototype.kelvin=x.prototype.temperature=function(){return Qy(this._rgb)};q.temp=q.kelvin=q.temperature=(...t)=>new x(...t,"temp");Y.format.temp=Y.format.kelvin=Y.format.temperature=Au;const{pow:pr,sign:Zy}=Math,Cu=(...t)=>{t=Z(t,"lab");const[e,n,r]=t,i=pr(e+.3963377774*n+.2158037573*r,3),s=pr(e-.1055613458*n-.0638541728*r,3),l=pr(e-.0894841775*n-1.291485548*r,3);return[255*Mi(4.0767416621*i-3.3077115913*s+.2309699292*l),255*Mi(-1.2684380046*i+2.6097574011*s-.3413193965*l),255*Mi(-.0041960863*i-.7034186147*s+1.707614701*l),t.length>3?t[3]:1]};function Mi(t){const e=Math.abs(t);return e>.0031308?(Zy(t)||1)*(1.055*pr(e,1/2.4)-.055):t*12.92}const{cbrt:Ii,pow:Xy,sign:Ky}=Math,_u=(...t)=>{const[e,n,r]=Z(t,"rgb"),[i,s,l]=[Ni(e/255),Ni(n/255),Ni(r/255)],a=Ii(.4122214708*i+.5363325363*s+.0514459929*l),o=Ii(.2119034982*i+.6806995451*s+.1073969566*l),c=Ii(.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 Ni(t){const e=Math.abs(t);return e<.04045?t/12.92:(Ky(t)||1)*Xy((e+.055)/1.055,2.4)}x.prototype.oklab=function(){return _u(this._rgb)};q.oklab=(...t)=>new x(...t,"oklab");Y.format.oklab=Cu;Y.autodetect.push({p:3,test:(...t)=>{if(t=Z(t,"oklab"),Q(t)==="array"&&t.length===3)return"oklab"}});const Jy=(...t)=>{t=Z(t,"lch");const[e,n,r]=t,[i,s,l]=bu(e,n,r),[a,o,c]=Cu(i,s,l);return[a,o,c,t.length>3?t[3]:1]},e0=(...t)=>{const[e,n,r]=Z(t,"rgb"),[i,s,l]=_u(e,n,r);return Su(i,s,l)};x.prototype.oklch=function(){return e0(this._rgb)};q.oklch=(...t)=>new x(...t,"oklch");Y.format.oklch=Jy;Y.autodetect.push({p:3,test:(...t)=>{if(t=Z(t,"oklch"),Q(t)==="array"&&t.length===3)return"oklch"}});x.prototype.alpha=function(t,e=!1){return t!==void 0&&Q(t)==="number"?e?(this._rgb[3]=t,this):new x([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]};x.prototype.clipped=function(){return this._rgb._clipped||!1};x.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=Me.Kn*t,new x(n,"lab").alpha(e.alpha(),!0)};x.prototype.brighten=function(t=1){return this.darken(-t)};x.prototype.darker=x.prototype.darken;x.prototype.brighter=x.prototype.brighten;x.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:t0}=Math,n0=1e-7,r0=20;x.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&Q(t)==="number"){if(t===0)return new x([0,0,0,this._rgb[3]],"rgb");if(t===1)return new x([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=r0;const i=(l,a)=>{const o=l.interpolate(a,.5,e),c=o.luminance();return Math.abs(t-c)<n0||!r--?o:c>t?i(l,o):i(o,a)},s=(n>t?i(new x([0,0,0]),this):i(this,new x([255,255,255]))).rgb();return new x([...s,this._rgb[3]])}return i0(...this._rgb.slice(0,3))};const i0=(t,e,n)=>(t=Oi(t),e=Oi(e),n=Oi(n),.2126*t+.7152*e+.0722*n),Oi=t=>(t/=255,t<=.03928?t/12.92:t0((t+.055)/1.055,2.4)),Ce={},On=(t,e,n=.5,...r)=>{let i=r[0]||"lrgb";if(!Ce[i]&&!r.length&&(i=Object.keys(Ce)[0]),!Ce[i])throw new Error(`interpolation mode ${i} is not defined`);return Q(t)!=="object"&&(t=new x(t)),Q(e)!=="object"&&(e=new x(e)),Ce[i](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};x.prototype.mix=x.prototype.interpolate=function(t,e=.5,...n){return On(this,t,e,...n)};x.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 x([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};x.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=Me.Kn*t,n[1]<0&&(n[1]=0),new x(n,"lch").alpha(e.alpha(),!0)};x.prototype.desaturate=function(t=1){return this.saturate(-t)};x.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(Q(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(Q(e)==="number")s[l]=e;else throw new Error("unsupported value for Color.set");const a=new x(s,r);return n?(this._rgb=a._rgb,this):a}throw new Error(`unknown channel ${i} in mode ${r}`)}else return s};x.prototype.tint=function(t=.5,...e){return On(this,"white",t,...e)};x.prototype.shade=function(t=.5,...e){return On(this,"black",t,...e)};const s0=(t,e,n)=>{const r=t._rgb,i=e._rgb;return new x(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};Ce.rgb=s0;const{sqrt:Pi,pow:Qt}=Math,l0=(t,e,n)=>{const[r,i,s]=t._rgb,[l,a,o]=e._rgb;return new x(Pi(Qt(r,2)*(1-n)+Qt(l,2)*n),Pi(Qt(i,2)*(1-n)+Qt(a,2)*n),Pi(Qt(s,2)*(1-n)+Qt(o,2)*n),"rgb")};Ce.lrgb=l0;const a0=(t,e,n)=>{const r=t.lab(),i=e.lab();return new x(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};Ce.lab=a0;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,h;(r.substr(0,1)==="h"||r==="oklch")&&([l,o,u]=i,[a,c,h]=s);let f,d,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,d=l+n*m):isNaN(l)?isNaN(a)?d=Number.NaN:(d=a,(u==1||u==0)&&r!="hsv"&&(f=c)):(d=l,(h==1||h==0)&&r!="hsv"&&(f=o)),f===void 0&&(f=o+n*(c-o)),g=u+n*(h-u),r==="oklch"?new x([g,f,d],r):new x([d,f,g],r)},Du=(t,e,n)=>An(t,e,n,"lch");Ce.lch=Du;Ce.hcl=Du;const o0=(t,e,n)=>{const r=t.num(),i=e.num();return new x(r+n*(i-r),"num")};Ce.num=o0;const c0=(t,e,n)=>An(t,e,n,"hcg");Ce.hcg=c0;const u0=(t,e,n)=>An(t,e,n,"hsi");Ce.hsi=u0;const d0=(t,e,n)=>An(t,e,n,"hsl");Ce.hsl=d0;const f0=(t,e,n)=>An(t,e,n,"hsv");Ce.hsv=f0;const h0=(t,e,n)=>{const r=t.oklab(),i=e.oklab();return new x(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")};Ce.oklab=h0;const g0=(t,e,n)=>An(t,e,n,"oklch");Ce.oklch=g0;const{pow:Hi,sqrt:Li,PI:Bi,cos:Da,sin:Ra,atan2:p0}=Math,m0=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const i=r/n.reduce(function(h,f){return h+f});if(n.forEach((h,f)=>{n[f]*=i}),t=t.map(h=>new x(h)),e==="lrgb")return v0(t,n);const s=t.shift(),l=s.get(e),a=[];let o=0,c=0;for(let h=0;h<l.length;h++)if(l[h]=(l[h]||0)*n[0],a.push(isNaN(l[h])?0:n[0]),e.charAt(h)==="h"&&!isNaN(l[h])){const f=l[h]/180*Bi;o+=Da(f)*n[0],c+=Ra(f)*n[0]}let u=s.alpha()*n[0];t.forEach((h,f)=>{const d=h.get(e);u+=h.alpha()*n[f+1];for(let g=0;g<l.length;g++)if(!isNaN(d[g]))if(a[g]+=n[f+1],e.charAt(g)==="h"){const m=d[g]/180*Bi;o+=Da(m)*n[f+1],c+=Ra(m)*n[f+1]}else l[g]+=d[g]*n[f+1]});for(let h=0;h<l.length;h++)if(e.charAt(h)==="h"){let f=p0(c/a[h],o/a[h])/Bi*180;for(;f<0;)f+=360;for(;f>=360;)f-=360;l[h]=f}else l[h]=l[h]/a[h];return u/=r,new x(l,e).alpha(u>.99999?1:u,!0)},v0=(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]+=Hi(a[0],2)*l,r[1]+=Hi(a[1],2)*l,r[2]+=Hi(a[2],2)*l,r[3]+=a[3]*l}return r[0]=Li(r[0]),r[1]=Li(r[1]),r[2]=Li(r[2]),r[3]>.9999999&&(r[3]=1),new x(ll(r))},{pow:b0}=Math;function Nr(t){let e="rgb",n=q("#ccc"),r=0,i=[0,1],s=[],l=[0,0],a=!1,o=[],c=!1,u=0,h=1,f=!1,d={},g=!0,m=1;const p=function(S){if(S=S||["#fff","#000"],S&&Q(S)==="string"&&q.brewer&&q.brewer[S.toLowerCase()]&&(S=q.brewer[S.toLowerCase()]),Q(S)==="array"){S.length===1&&(S=[S[0],S[0]]),S=S.slice(0);for(let C=0;C<S.length;C++)S[C]=q(S[C]);s.length=0;for(let C=0;C<S.length;C++)s.push(C/(S.length-1))}return O(),o=S},b=function(S){if(a!=null){const C=a.length-1;let B=0;for(;B<C&&S>=a[B];)B++;return B-1}return 0};let E=S=>S,A=S=>S;const _=function(S,C){let B,R;if(C==null&&(C=!1),isNaN(S)||S===null)return n;C?R=S:a&&a.length>2?R=b(S)/(a.length-2):h!==u?R=(S-u)/(h-u):R=1,R=A(R),C||(R=E(R)),m!==1&&(R=b0(R,m)),R=l[0]+R*(1-l[0]-l[1]),R=rn(R,0,1);const k=Math.floor(R*1e4);if(g&&d[k])B=d[k];else{if(Q(o)==="array")for(let H=0;H<s.length;H++){const G=s[H];if(R<=G){B=o[H];break}if(R>=G&&H===s.length-1){B=o[H];break}if(R>G&&R<s[H+1]){R=(R-G)/(s[H+1]-G),B=q.interpolate(o[H],o[H+1],R,e);break}}else Q(o)==="function"&&(B=o(R));g&&(d[k]=B)}return B};var O=()=>d={};p(t);const D=function(S){const C=q(_(S));return c&&C[c]?C[c]():C};return D.classes=function(S){if(S!=null){if(Q(S)==="array")a=S,i=[S[0],S[S.length-1]];else{const C=q.analyze(i);S===0?a=[C.min,C.max]:a=q.limits(C,"e",S)}return D}return a},D.domain=function(S){if(!arguments.length)return i;u=S[0],h=S[S.length-1],s=[];const C=o.length;if(S.length===C&&u!==h)for(let B of Array.from(S))s.push((B-u)/(h-u));else{for(let B=0;B<C;B++)s.push(B/(C-1));if(S.length>2){const B=S.map((k,H)=>H/(S.length-1)),R=S.map(k=>(k-u)/(h-u));R.every((k,H)=>B[H]===k)||(A=k=>{if(k<=0||k>=1)return k;let H=0;for(;k>=R[H+1];)H++;const G=(k-R[H])/(R[H+1]-R[H]);return B[H]+G*(B[H+1]-B[H])})}}return i=[u,h],D},D.mode=function(S){return arguments.length?(e=S,O(),D):e},D.range=function(S,C){return p(S),D},D.out=function(S){return c=S,D},D.spread=function(S){return arguments.length?(r=S,D):r},D.correctLightness=function(S){return S==null&&(S=!0),f=S,O(),f?E=function(C){const B=_(0,!0).lab()[0],R=_(1,!0).lab()[0],k=B>R;let H=_(C,!0).lab()[0];const G=B+(R-B)*C;let V=H-G,P=0,I=1,z=20;for(;Math.abs(V)>.01&&z-- >0;)(function(){return k&&(V*=-1),V<0?(P=C,C+=(I-C)*.5):(I=C,C+=(P-C)*.5),H=_(C,!0).lab()[0],V=H-G})();return C}:E=C=>C,D},D.padding=function(S){return S!=null?(Q(S)==="number"&&(S=[S,S]),l=S,D):l},D.colors=function(S,C){arguments.length<2&&(C="hex");let B=[];if(arguments.length===0)B=o.slice(0);else if(S===1)B=[D(.5)];else if(S>1){const R=i[0],k=i[1]-R;B=y0(0,S).map(H=>D(R+H/(S-1)*k))}else{t=[];let R=[];if(a&&a.length>2)for(let k=1,H=a.length,G=1<=H;G?k<H:k>H;G?k++:k--)R.push((a[k-1]+a[k])*.5);else R=i;B=R.map(k=>D(k))}return q[C]&&(B=B.map(R=>R[C]())),B},D.cache=function(S){return S!=null?(g=S,D):g},D.gamma=function(S){return S!=null?(m=S,D):m},D.nodata=function(S){return S!=null?(n=q(S),D):n},D}function y0(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 S0=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},E0=function(t){let e,n,r,i;if(t=t.map(s=>new x(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 x(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 x(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 x(a,"lab")}}else if(t.length>=5){let s,l,a;s=t.map(o=>o.lab()),a=t.length-1,l=S0(a),e=function(o){const c=1-o,u=[0,1,2].map(h=>s.reduce((f,d,g)=>f+l[g]*c**(a-g)*o**g*d[h],0));return new x(u,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},w0=t=>{const e=E0(t);return e.scale=()=>Nr(e),e},We=(t,e,n)=>{if(!We[n])throw new Error("unknown blend mode "+n);return We[n](t,e)},Rt=t=>(e,n)=>{const r=q(n).rgb(),i=q(e).rgb();return q.rgb(t(r,i))},kt=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},A0=t=>t,C0=(t,e)=>t*e/255,_0=(t,e)=>t>e?e:t,D0=(t,e)=>t>e?t:e,R0=(t,e)=>255*(1-(1-t/255)*(1-e/255)),k0=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),T0=(t,e)=>255*(1-(1-e/255)/(t/255)),x0=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);We.normal=Rt(kt(A0));We.multiply=Rt(kt(C0));We.screen=Rt(kt(R0));We.overlay=Rt(kt(k0));We.darken=Rt(kt(_0));We.lighten=Rt(kt(D0));We.dodge=Rt(kt(x0));We.burn=Rt(kt(T0));const{pow:M0,sin:I0,cos:N0}=Math;function O0(t=300,e=-1.5,n=1,r=1,i=[0,1]){let s=0,l;Q(i)==="array"?l=i[1]-i[0]:(l=0,i=[i,i]);const a=function(o){const c=tt*((t+120)/360+e*o),u=M0(i[0]+l*o,r),f=(s!==0?n[0]+o*s:n)*u*(1-u)/2,d=N0(c),g=I0(c),m=u+f*(-.14861*d+1.78277*g),p=u+f*(-.29227*d-.90649*g),b=u+f*(1.97294*d);return q(ll([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,Q(n)==="array"?(s=n[1]-n[0],s===0&&(n=n[1])):s=0,a)},a.lightness=function(o){return o==null?i:(Q(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 P0="0123456789abcdef",{floor:H0,random:L0}=Math,B0=()=>{let t="#";for(let e=0;e<6;e++)t+=P0.charAt(H0(L0()*16));return new x(t,"hex")},{log:ka,pow:V0,floor:z0,abs:j0}=Math;function Ru(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Q(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&Q(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)=>ku(n,r,i),n}function ku(t,e="equal",n=7){Q(t)=="array"&&(t=Ru(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*ka(r),o=Math.LOG10E*ka(i);l.push(r);for(let c=1;c<n;c++)l.push(V0(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=z0(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 h=!0,f=0,d=null;d=[],d.push(r);for(let p=1;p<n;p++)d.push(r+p/n*(i-r));for(d.push(i);h;){for(let b=0;b<n;b++)u[b]=0;for(let b=0;b<o;b++){const E=s[b];let A=Number.MAX_VALUE,_;for(let O=0;O<n;O++){const D=j0(d[O]-E);D<A&&(A=D,_=O),u[_]++,c[b]=_}}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];h=!1;for(let b=0;b<n;b++)if(p[b]!==d[b]){h=!0;break}d=p,f++,f>200&&(h=!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 F0=(t,e)=>{t=new x(t),e=new x(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},{sqrt:et,pow:ge,min:U0,max:$0,atan2:Ta,abs:xa,cos:or,sin:Ma,exp:W0,PI:Ia}=Math;function G0(t,e,n=1,r=1,i=1){var s=function(te){return 360*te/(2*Ia)},l=function(te){return 2*Ia*te/360};t=new x(t),e=new x(e);const[a,o,c]=Array.from(t.lab()),[u,h,f]=Array.from(e.lab()),d=(a+u)/2,g=et(ge(o,2)+ge(c,2)),m=et(ge(h,2)+ge(f,2)),p=(g+m)/2,b=.5*(1-et(ge(p,7)/(ge(p,7)+ge(25,7)))),E=o*(1+b),A=h*(1+b),_=et(ge(E,2)+ge(c,2)),O=et(ge(A,2)+ge(f,2)),D=(_+O)/2,S=s(Ta(c,E)),C=s(Ta(f,A)),B=S>=0?S:S+360,R=C>=0?C:C+360,k=xa(B-R)>180?(B+R+360)/2:(B+R)/2,H=1-.17*or(l(k-30))+.24*or(l(2*k))+.32*or(l(3*k+6))-.2*or(l(4*k-63));let G=R-B;G=xa(G)<=180?G:R<=B?G+360:G-360,G=2*et(_*O)*Ma(l(G)/2);const V=u-a,P=O-_,I=1+.015*ge(d-50,2)/et(20+ge(d-50,2)),z=1+.045*D,L=1+.015*D*H,W=30*W0(-ge((k-275)/25,2)),T=-(2*et(ge(D,7)/(ge(D,7)+ge(25,7))))*Ma(2*l(W)),U=et(ge(V/(n*I),2)+ge(P/(r*z),2)+ge(G/(i*L),2)+T*(P/(r*z))*(G/(i*L)));return $0(0,U0(100,U))}function Y0(t,e,n="lab"){t=new x(t),e=new x(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 q0=(...t)=>{try{return new x(...t),!0}catch{return!1}},Q0={cool(){return Nr([q.hsl(180,1,.9),q.hsl(250,.7,.4)])},hot(){return Nr(["#000","#f00","#ff0","#fff"]).mode("rgb")}},mr={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(mr))mr[t.toLowerCase()]=mr[t];Object.assign(q,{average:m0,bezier:w0,blend:We,cubehelix:O0,mix:On,interpolate:On,random:B0,scale:Nr,analyze:Ru,contrast:F0,deltaE:G0,distance:Y0,limits:ku,valid:q0,scales:Q0,input:Y,colors:gn,brewer:mr});const ii=ie(new Date().getTime()),{config:Na,color:Te,mainDataset:sn,startDateField:xt,endDateField:Mt,dateField:Oa,labelField:Pa,layout:Ha}=vn(),Z0=ly(Ee,sn==null?void 0:sn.id),X0=sl(async()=>{if((Te==null?void 0:Te.type)!=="multicolor")return;const t={};if(Te.colors.type==="palette"){const e=await ln(`${sn.href}/values/${Te.field}?size=100`),n=Math.max(e.length,12),r=q.scale(Te.colors.name).mode("lch").colors(n);e.forEach((i,s)=>{t[i]=r[(s+Te.colors.offset)%n]})}else Te.colors.categories.forEach(e=>{t[e.value]=`${e.color}`});return t},null,{onError:function(t){on.value=!0,cn.value=t.message}}),K0=sl(async()=>{if(!Ee.start&&!Ee.end)return[];const t={...Z0,_c_date_match:Ee.start+","+Ee.end,size:1e3,select:"_id,"+Pa};return Ha!=="simple"?t.t=ii.value:t.finalizedAt=sn.finalizedAt,(Te==null?void 0:Te.type)==="multicolor"&&(t.select+=","+Na.color.field),xt&&Mt?t.select+=","+xt+","+Mt:t.select+=","+Oa,(await ln(`${sn.href}/lines`,{params:t})).results.map(n=>({editable:Ha==="admin",id:n._id,title:n[Pa],colorFieldValue:(Te==null?void 0:Te.type)==="multicolor"&&n[Na.color.field],start:n[xt&&Mt?xt:Oa],end:xt&&Mt?n[Mt]:void 0,allDay:!(xt&&Mt)||new Date(n[Mt]).getTime()-new Date(n[xt]).getTime()>2*24*60*60*1e3}))},null,{onError:function(t){on.value=!0,cn.value=t.message}});var Tu={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zn,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",l="second",a="minute",o="hour",c="day",u="week",h="month",f="quarter",d="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,E={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(V){var P=["th","st","nd","rd"],I=V%100;return"["+V+(P[(I-20)%10]||P[I]||P[0])+"]"}},A=function(V,P,I){var z=String(V);return!z||z.length>=P?V:""+Array(P+1-z.length).join(I)+V},_={s:A,z:function(V){var P=-V.utcOffset(),I=Math.abs(P),z=Math.floor(I/60),L=I%60;return(P<=0?"+":"-")+A(z,2,"0")+":"+A(L,2,"0")},m:function V(P,I){if(P.date()<I.date())return-V(I,P);var z=12*(I.year()-P.year())+(I.month()-P.month()),L=P.clone().add(z,h),W=I-L<0,M=P.clone().add(z+(W?-1:1),h);return+(-(z+(I-L)/(W?L-M:M-L))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:h,y:d,w:u,d:c,D:g,h:o,m:a,s:l,ms:s,Q:f}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},O="en",D={};D[O]=E;var S="$isDayjsObject",C=function(V){return V instanceof H||!(!V||!V[S])},B=function V(P,I,z){var L;if(!P)return O;if(typeof P=="string"){var W=P.toLowerCase();D[W]&&(L=W),I&&(D[W]=I,L=W);var M=P.split("-");if(!L&&M.length>1)return V(M[0])}else{var T=P.name;D[T]=P,L=T}return!z&&L&&(O=L),L||!z&&O},R=function(V,P){if(C(V))return V.clone();var I=typeof P=="object"?P:{};return I.date=V,I.args=arguments,new H(I)},k=_;k.l=B,k.i=C,k.w=function(V,P){return R(V,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var H=function(){function V(I){this.$L=B(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[S]=!0}var P=V.prototype;return P.parse=function(I){this.$d=function(z){var L=z.date,W=z.utc;if(L===null)return new Date(NaN);if(k.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var M=L.match(p);if(M){var T=M[2]-1||0,U=(M[7]||"0").substring(0,3);return W?new Date(Date.UTC(M[1],T,M[3]||1,M[4]||0,M[5]||0,M[6]||0,U)):new Date(M[1],T,M[3]||1,M[4]||0,M[5]||0,M[6]||0,U)}}return new Date(L)}(I),this.init()},P.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},P.$utils=function(){return k},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function(I,z){var L=R(I);return this.startOf(z)<=L&&L<=this.endOf(z)},P.isAfter=function(I,z){return R(I)<this.startOf(z)},P.isBefore=function(I,z){return this.endOf(z)<R(I)},P.$g=function(I,z,L){return k.u(I)?this[z]:this.set(L,I)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(I,z){var L=this,W=!!k.u(z)||z,M=k.p(I),T=function(me,ke){var ft=k.w(L.$u?Date.UTC(L.$y,ke,me):new Date(L.$y,ke,me),L);return W?ft:ft.endOf(c)},U=function(me,ke){return k.w(L.toDate()[me].apply(L.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(ke)),L)},te=this.$W,oe=this.$M,be=this.$D,Je="set"+(this.$u?"UTC":"");switch(M){case d:return W?T(1,0):T(31,11);case h:return W?T(1,oe):T(0,oe+1);case u:var Fe=this.$locale().weekStart||0,dt=(te<Fe?te+7:te)-Fe;return T(W?be-dt:be+(6-dt),oe);case c:case g:return U(Je+"Hours",0);case o:return U(Je+"Minutes",1);case a:return U(Je+"Seconds",2);case l:return U(Je+"Milliseconds",3);default:return this.clone()}},P.endOf=function(I){return this.startOf(I,!1)},P.$set=function(I,z){var L,W=k.p(I),M="set"+(this.$u?"UTC":""),T=(L={},L[c]=M+"Date",L[g]=M+"Date",L[h]=M+"Month",L[d]=M+"FullYear",L[o]=M+"Hours",L[a]=M+"Minutes",L[l]=M+"Seconds",L[s]=M+"Milliseconds",L)[W],U=W===c?this.$D+(z-this.$W):z;if(W===h||W===d){var te=this.clone().set(g,1);te.$d[T](U),te.init(),this.$d=te.set(g,Math.min(this.$D,te.daysInMonth())).$d}else T&&this.$d[T](U);return this.init(),this},P.set=function(I,z){return this.clone().$set(I,z)},P.get=function(I){return this[k.p(I)]()},P.add=function(I,z){var L,W=this;I=Number(I);var M=k.p(z),T=function(oe){var be=R(W);return k.w(be.date(be.date()+Math.round(oe*I)),W)};if(M===h)return this.set(h,this.$M+I);if(M===d)return this.set(d,this.$y+I);if(M===c)return T(1);if(M===u)return T(7);var U=(L={},L[a]=r,L[o]=i,L[l]=n,L)[M]||1,te=this.$d.getTime()+I*U;return k.w(te,this)},P.subtract=function(I,z){return this.add(-1*I,z)},P.format=function(I){var z=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var W=I||"YYYY-MM-DDTHH:mm:ssZ",M=k.z(this),T=this.$H,U=this.$m,te=this.$M,oe=L.weekdays,be=L.months,Je=L.meridiem,Fe=function(ke,ft,Cn,Zn){return ke&&(ke[ft]||ke(z,W))||Cn[ft].slice(0,Zn)},dt=function(ke){return k.s(T%12||12,ke,"0")},me=Je||function(ke,ft,Cn){var Zn=ke<12?"AM":"PM";return Cn?Zn.toLowerCase():Zn};return W.replace(b,function(ke,ft){return ft||function(Cn){switch(Cn){case"YY":return String(z.$y).slice(-2);case"YYYY":return k.s(z.$y,4,"0");case"M":return te+1;case"MM":return k.s(te+1,2,"0");case"MMM":return Fe(L.monthsShort,te,be,3);case"MMMM":return Fe(be,te);case"D":return z.$D;case"DD":return k.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return Fe(L.weekdaysMin,z.$W,oe,2);case"ddd":return Fe(L.weekdaysShort,z.$W,oe,3);case"dddd":return oe[z.$W];case"H":return String(T);case"HH":return k.s(T,2,"0");case"h":return dt(1);case"hh":return dt(2);case"a":return me(T,U,!0);case"A":return me(T,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(z.$s);case"ss":return k.s(z.$s,2,"0");case"SSS":return k.s(z.$ms,3,"0");case"Z":return M}return null}(ke)||M.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(I,z,L){var W,M=this,T=k.p(z),U=R(I),te=(U.utcOffset()-this.utcOffset())*r,oe=this-U,be=function(){return k.m(M,U)};switch(T){case d:W=be()/12;break;case h:W=be();break;case f:W=be()/3;break;case u:W=(oe-te)/6048e5;break;case c:W=(oe-te)/864e5;break;case o:W=oe/i;break;case a:W=oe/r;break;case l:W=oe/n;break;default:W=oe}return L?W:k.a(W)},P.daysInMonth=function(){return this.endOf(h).$D},P.$locale=function(){return D[this.$L]},P.locale=function(I,z){if(!I)return this.$L;var L=this.clone(),W=B(I,z,!0);return W&&(L.$L=W),L},P.clone=function(){return k.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()},V}(),G=H.prototype;return R.prototype=G,[["$ms",s],["$s",l],["$m",a],["$H",o],["$W",c],["$M",h],["$y",d],["$D",g]].forEach(function(V){G[V[1]]=function(P){return this.$g(P,V[0],V[1])}}),R.extend=function(V,P){return V.$i||(V(P,H,R),V.$i=!0),R},R.locale=B,R.isDayjs=C,R.unix=function(V){return R(1e3*V)},R.en=D[O],R.Ls=D,R.p={},R})})(Tu);var xu=Tu.exports;const Pn=ms(xu);function La(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"?Pn(n).format("DD/MM/YYYY, HH[h]mm"):Pn(n).format("DD/MM/YYYY"):""+n}const $t=X({border:[Boolean,Number,String]},"border");function Wt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br();return{borderClasses:N(()=>{const r=ps(t)?t.value:t.border,i=[];if(r===!0||r==="")i.push(`${e}--border`);else if(typeof r=="string"||r===0)for(const s of String(r).split(" "))i.push(`border-${s}`);return i})}}const J0=[null,"default","comfortable","compact"],ut=X({density:{type:String,default:"default",validator:t=>J0.includes(t)}},"density");function Tt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br();return{densityClasses:N(()=>`${e}--density-${t.density}`)}}const Gt=X({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function Yt(t){return{elevationClasses:N(()=>{const n=ps(t)?t.value:t.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const Mu=X({baseColor:String,divided:Boolean,...$t(),...de(),...ut(),...Gt(),...At(),...ve(),...ze(),...ot()},"VBtnGroup"),Ba=ne()({name:"VBtnGroup",props:Mu(),setup(t,e){let{slots:n}=e;const{themeClasses:r}=je(t),{densityClasses:i}=Tt(t),{borderClasses:s}=Wt(t),{elevationClasses:l}=Yt(t),{roundedClasses:a}=Ct(t);Vr({VBtn:{height:"auto",baseColor:J(t,"baseColor"),color:J(t,"color"),density:J(t,"density"),flat:!0,variant:J(t,"variant")}}),he(()=>y(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},r.value,s.value,i.value,l.value,a.value,t.class],style:t.style},n))}}),ul=X({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Iu=X({value:null,disabled:Boolean,selectedClass:String},"group-item");function Nu(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=vs("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=zr();jt(Symbol.for(`${e.description}:id`),i);const s=bn(e,null);if(!s){if(!n)return s;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const l=J(t,"value"),a=N(()=>!!(s.disabled.value||t.disabled));s.register({id:i,value:l,disabled:a},r),mn(()=>{s.unregister(i)});const o=N(()=>s.isSelected(i)),c=N(()=>s.items.value[0].id===i),u=N(()=>s.items.value[s.items.value.length-1].id===i),h=N(()=>o.value&&[s.selectedClass.value,t.selectedClass]);return Xe(o,f=>{r.emit("group:selected",{value:f})},{flush:"sync"}),{id:i,isSelected:o,isFirst:c,isLast:u,toggle:()=>s.select(i,!o.value),select:f=>s.select(i,f),selectedClass:h,value:l,disabled:a,group:s}}function dl(t,e){let n=!1;const r=hs([]),i=mt(t,"modelValue",[],f=>f==null?[]:Ou(r,ys(f)),f=>{const d=tS(r,f);return t.multiple?d:d[0]}),s=vs("useGroup");function l(f,d){const g=f,m=Symbol.for(`${e.description}:id`),b=Md(m,s==null?void 0:s.vnode).indexOf(d);$(g.value)==null&&(g.value=b,g.useIndexAsValue=!0),b>-1?r.splice(b,0,g):r.push(g)}function a(f){if(n)return;o();const d=r.findIndex(g=>g.id===f);r.splice(d,1)}function o(){const f=r.find(d=>!d.disabled);f&&t.mandatory==="force"&&!i.value.length&&(i.value=[f.id])}Lr(()=>{o()}),mn(()=>{n=!0}),xd(()=>{for(let f=0;f<r.length;f++)r[f].useIndexAsValue&&(r[f].value=f)});function c(f,d){const g=r.find(m=>m.id===f);if(!(d&&(g!=null&&g.disabled)))if(t.multiple){const m=i.value.slice(),p=m.findIndex(E=>E===f),b=~p;if(d=d??!b,b&&t.mandatory&&m.length<=1||!b&&t.max!=null&&m.length+1>t.max)return;p<0&&d?m.push(f):p>=0&&!d&&m.splice(p,1),i.value=m}else{const m=i.value.includes(f);if(t.mandatory&&m)return;i.value=d??!m?[f]:[]}}function u(f){if(t.multiple,i.value.length){const d=i.value[0],g=r.findIndex(b=>b.id===d);let m=(g+f)%r.length,p=r[m];for(;p.disabled&&m!==g;)m=(m+f)%r.length,p=r[m];if(p.disabled)return;i.value=[r[m].id]}else{const d=r.find(g=>!g.disabled);d&&(i.value=[d.id])}}const h={register:l,unregister:a,selected:i,select:c,disabled:J(t,"disabled"),prev:()=>u(r.length-1),next:()=>u(1),isSelected:f=>i.value.includes(f),selectedClass:N(()=>t.selectedClass),items:N(()=>r),getItemIndex:f=>eS(r,f)};return jt(e,h),h}function eS(t,e){const n=Ou(t,[e]);return n.length?t.findIndex(r=>r.id===n[0]):-1}function Ou(t,e){const n=[];return e.forEach(r=>{const i=t.find(l=>bs(r,l.value)),s=t[r];(i==null?void 0:i.value)!=null?n.push(i.id):s!=null&&n.push(s.id)}),n}function tS(t,e){const n=[];return e.forEach(r=>{const i=t.findIndex(s=>s.id===r);if(~i){const s=t[i];n.push(s.value!=null?s.value:i)}}),n}const Pu=Symbol.for("vuetify:v-btn-toggle"),nS=X({...Mu(),...ul()},"VBtnToggle");ne()({name:"VBtnToggle",props:nS(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isSelected:r,next:i,prev:s,select:l,selected:a}=dl(t,Pu);return he(()=>{const o=Ba.filterProps(t);return y(Ba,Ie({class:["v-btn-toggle",t.class]},o,{style:t.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:r,next:i,prev:s,select:l,selected:a})]}})}),{next:i,prev:s,select:l}}});const rS=["x-small","small","default","large","x-large"],qn=X({size:{type:[String,Number],default:"default"}},"size");function Qn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br();return Id(()=>{let n,r;return Nd(rS,t.size)?n=`${e}--size-${t.size}`:t.size&&(r={width:vt(t.size),height:vt(t.size)}),{sizeClasses:n,sizeStyles:r}})}const iS=X({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:pe,...de(),...qn(),...ve({tag:"i"}),...ze()},"VIcon"),_e=ne()({name:"VIcon",props:iS(),setup(t,e){let{attrs:n,slots:r}=e;const i=ie(),{themeClasses:s}=je(t),{iconData:l}=Od(N(()=>i.value||t.icon)),{sizeClasses:a}=Qn(t),{textColorClasses:o,textColorStyles:c}=an(J(t,"color"));return he(()=>{var f,d;const u=(f=r.default)==null?void 0:f.call(r);u&&(i.value=(d=Pd(u).filter(g=>g.type===Hd&&g.children&&typeof g.children=="string")[0])==null?void 0:d.children);const h=!!(n.onClick||n.onClickOnce);return y(l.value.component,{tag:t.tag,icon:l.value.icon,class:["v-icon","notranslate",s.value,a.value,o.value,{"v-icon--clickable":h,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[a.value?void 0:{fontSize:vt(t.size),height:vt(t.size),width:vt(t.size)},c.value,t.style],role:h?"button":void 0,"aria-hidden":!h,tabindex:h?t.disabled?-1:0:void 0},{default:()=>[u]})}),{}}}),sS=X({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...de(),...qn(),...ve({tag:"div"}),...ze()},"VProgressCircular"),as=ne()({name:"VProgressCircular",props:sS(),setup(t,e){let{slots:n}=e;const r=20,i=2*Math.PI*r,s=ie(),{themeClasses:l}=je(t),{sizeClasses:a,sizeStyles:o}=Qn(t),{textColorClasses:c,textColorStyles:u}=an(J(t,"color")),{textColorClasses:h,textColorStyles:f}=an(J(t,"bgColor")),{intersectionRef:d,isIntersecting:g}=Jd(),{resizeRef:m,contentRect:p}=Fi(),b=N(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),E=N(()=>Number(t.width)),A=N(()=>o.value?Number(t.size):p.value?p.value.width:Math.max(E.value,32)),_=N(()=>r/(1-E.value/A.value)*2),O=N(()=>E.value/A.value*_.value),D=N(()=>vt((100-b.value)/100*i));return to(()=>{d.value=s.value,m.value=s.value}),he(()=>y(t.tag,{ref:s,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},l.value,a.value,c.value,t.class],style:[o.value,u.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:b.value},{default:()=>[y("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[y("circle",{class:["v-progress-circular__underlay",h.value],style:f.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":O.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),y("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":O.value,"stroke-dasharray":i,"stroke-dashoffset":D.value},null)]),n.default&&y("div",{class:"v-progress-circular__content"},[n.default({value:b.value})])]})),{}}}),Hu=X({loading:[Boolean,String]},"loader");function Lu(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br();return{loaderClasses:N(()=>({[`${e}--loading`]:t.loading}))}}function lS(t,e){var r;let{slots:n}=e;return y("div",{class:`${t.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:t.color,isActive:t.active}))||y(ef,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}function aS(t,e){Xe(()=>{var n;return(n=t.isActive)==null?void 0:n.value},n=>{t.isLink.value&&n&&e&&gs(()=>{e(!0)})},{immediate:!0})}const os=Symbol("rippleStop"),oS=80;function Va(t,e){t.style.transform=e,t.style.webkitTransform=e}function cs(t){return t.constructor.name==="TouchEvent"}function Bu(t){return t.constructor.name==="KeyboardEvent"}const cS=function(t,e){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,i=0;if(!Bu(t)){const f=e.getBoundingClientRect(),d=cs(t)?t.touches[t.touches.length-1]:t;r=d.clientX-f.left,i=d.clientY-f.top}let s=0,l=.3;(h=e._ripple)!=null&&h.circle?(l=.15,s=e.clientWidth/2,s=n.center?s:s+Math.sqrt((r-s)**2+(i-s)**2)/4):s=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const a=`${(e.clientWidth-s*2)/2}px`,o=`${(e.clientHeight-s*2)/2}px`,c=n.center?a:`${r-s}px`,u=n.center?o:`${i-s}px`;return{radius:s,scale:l,x:c,y:u,centerX:a,centerY:o}},Or={show(t,e){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((d=e==null?void 0:e._ripple)!=null&&d.enabled))return;const r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:s,scale:l,x:a,y:o,centerX:c,centerY:u}=cS(t,e,n),h=`${s*2}px`;i.className="v-ripple__animation",i.style.width=h,i.style.height=h,e.appendChild(r);const f=window.getComputedStyle(e);f&&f.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),Va(i,`translate(${a}, ${o}) scale3d(${l},${l},${l})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),Va(i,`translate(${c}, ${u}) scale3d(1,1,1)`)},0)},hide(t){var s;if(!((s=t==null?void 0:t._ripple)!=null&&s.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const n=e[e.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===t&&t.removeChild(n.parentNode)},300)},i)}};function Vu(t){return typeof t>"u"||!!t}function Hn(t){const e={},n=t.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||t[os])){if(t[os]=!0,cs(t))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(e.center=n._ripple.centered||Bu(t),n._ripple.class&&(e.class=n._ripple.class),cs(t)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Or.show(t,n,e)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},oS)}else Or.show(t,n,e)}}function za(t){t[os]=!0}function Oe(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Oe(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),Or.hide(e)}}function zu(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let Ln=!1;function ju(t){!Ln&&(t.keyCode===vl.enter||t.keyCode===vl.space)&&(Ln=!0,Hn(t))}function Fu(t){Ln=!1,Oe(t)}function Uu(t){Ln&&(Ln=!1,Oe(t))}function $u(t,e,n){const{value:r,modifiers:i}=e,s=Vu(r);if(s||Or.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=s,t._ripple.centered=i.center,t._ripple.circle=i.circle,no(r)&&r.class&&(t._ripple.class=r.class),s&&!n){if(i.stop){t.addEventListener("touchstart",za,{passive:!0}),t.addEventListener("mousedown",za);return}t.addEventListener("touchstart",Hn,{passive:!0}),t.addEventListener("touchend",Oe,{passive:!0}),t.addEventListener("touchmove",zu,{passive:!0}),t.addEventListener("touchcancel",Oe),t.addEventListener("mousedown",Hn),t.addEventListener("mouseup",Oe),t.addEventListener("mouseleave",Oe),t.addEventListener("keydown",ju),t.addEventListener("keyup",Fu),t.addEventListener("blur",Uu),t.addEventListener("dragstart",Oe,{passive:!0})}else!s&&n&&Wu(t)}function Wu(t){t.removeEventListener("mousedown",Hn),t.removeEventListener("touchstart",Hn),t.removeEventListener("touchend",Oe),t.removeEventListener("touchmove",zu),t.removeEventListener("touchcancel",Oe),t.removeEventListener("mouseup",Oe),t.removeEventListener("mouseleave",Oe),t.removeEventListener("keydown",ju),t.removeEventListener("keyup",Fu),t.removeEventListener("dragstart",Oe),t.removeEventListener("blur",Uu)}function uS(t,e){$u(t,e,!1)}function dS(t){delete t._ripple,Wu(t)}function fS(t,e){if(e.value===e.oldValue)return;const n=Vu(e.oldValue);$u(t,e,n)}const si={mounted:uS,unmounted:dS,updated:fS},hS=X({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Pu},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:pe,appendIcon:pe,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...$t(),...de(),...ut(),...jn(),...Gt(),...Iu(),...Hu(),...ws(),...As(),...At(),...Ur(),...qn(),...ve({tag:"button"}),...ze(),...ot({variant:"elevated"})},"VBtn"),Bt=ne()({name:"VBtn",props:hS(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=je(t),{borderClasses:s}=Wt(t),{densityClasses:l}=Tt(t),{dimensionStyles:a}=Fn(t),{elevationClasses:o}=Yt(t),{loaderClasses:c}=Lu(t),{locationStyles:u}=Cs(t),{positionClasses:h}=_s(t),{roundedClasses:f}=Ct(t),{sizeClasses:d,sizeStyles:g}=Qn(t),m=Nu(t,t.symbol,!1),p=$r(t,n),b=N(()=>{var k;return t.active!==void 0?t.active:p.isLink.value?(k=p.isActive)==null?void 0:k.value:m==null?void 0:m.isSelected.value}),E=N(()=>b.value?t.activeColor??t.color:t.color),A=N(()=>{var H,G;return{color:(m==null?void 0:m.isSelected.value)&&(!p.isLink.value||((H=p.isActive)==null?void 0:H.value))||!m||((G=p.isActive)==null?void 0:G.value)?E.value??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:_,colorStyles:O,variantClasses:D}=yn(A),S=N(()=>(m==null?void 0:m.disabled.value)||t.disabled),C=N(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),B=N(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function R(k){var H;S.value||p.isLink.value&&(k.metaKey||k.ctrlKey||k.shiftKey||k.button!==0||n.target==="_blank")||((H=p.navigate)==null||H.call(p,k),m==null||m.toggle())}return aS(p,m==null?void 0:m.select),he(()=>{const k=p.isLink.value?"a":t.tag,H=!!(t.prependIcon||r.prepend),G=!!(t.appendIcon||r.append),V=!!(t.icon&&t.icon!==!0);return yt(y(k,{type:k==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":t.block,"v-btn--disabled":S.value,"v-btn--elevated":C.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},i.value,s.value,_.value,l.value,o.value,c.value,h.value,f.value,d.value,D.value,t.class],style:[O.value,a.value,u.value,g.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:S.value||void 0,href:p.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:R,value:B.value},{default:()=>{var P;return[Sn(!0,"v-btn"),!t.icon&&H&&y("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?y(Se,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},r.prepend):y(_e,{key:"prepend-icon",icon:t.prependIcon},null)]),y("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&V?y(_e,{key:"content-icon",icon:t.icon},null):y(Se,{key:"content-defaults",disabled:!V,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var I;return[((I=r.default)==null?void 0:I.call(r))??t.text]}})]),!t.icon&&G&&y("span",{key:"append",class:"v-btn__append"},[r.append?y(Se,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},r.append):y(_e,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&y("span",{key:"loader",class:"v-btn__loader"},[((P=r.loader)==null?void 0:P.call(r))??y(as,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[si,!S.value&&t.ripple,"",{center:!!t.icon}]])}),{group:m}}}),li=ne()({name:"VCardActions",props:de(),setup(t,e){let{slots:n}=e;return Vr({VBtn:{slim:!0,variant:"text"}}),he(()=>{var r;return y("div",{class:["v-card-actions",t.class],style:t.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),gS=X({opacity:[Number,String],...de(),...ve()},"VCardSubtitle"),pS=ne()({name:"VCardSubtitle",props:gS(),setup(t,e){let{slots:n}=e;return he(()=>y(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},n)),{}}}),Gu=Wr("v-card-title"),mS=X({start:Boolean,end:Boolean,icon:pe,image:String,text:String,...$t(),...de(),...ut(),...At(),...qn(),...ve(),...ze(),...ot({variant:"flat"})},"VAvatar"),pn=ne()({name:"VAvatar",props:mS(),setup(t,e){let{slots:n}=e;const{themeClasses:r}=je(t),{borderClasses:i}=Wt(t),{colorClasses:s,colorStyles:l,variantClasses:a}=yn(t),{densityClasses:o}=Tt(t),{roundedClasses:c}=Ct(t),{sizeClasses:u,sizeStyles:h}=Qn(t);return he(()=>y(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},r.value,i.value,s.value,o.value,c.value,u.value,a.value,t.class],style:[l.value,h.value,t.style]},{default:()=>[n.default?y(Se,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[n.default()]}):t.image?y(Ss,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?y(_e,{key:"icon",icon:t.icon},null):t.text,Sn(!1,"v-avatar")]})),{}}}),vS=X({appendAvatar:String,appendIcon:pe,prependAvatar:String,prependIcon:pe,subtitle:[String,Number],title:[String,Number],...de(),...ut()},"VCardItem"),bS=ne()({name:"VCardItem",props:vS(),setup(t,e){let{slots:n}=e;return he(()=>{var c;const r=!!(t.prependAvatar||t.prependIcon),i=!!(r||n.prepend),s=!!(t.appendAvatar||t.appendIcon),l=!!(s||n.append),a=!!(t.title!=null||n.title),o=!!(t.subtitle!=null||n.subtitle);return y("div",{class:["v-card-item",t.class],style:t.style},[i&&y("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?y(Se,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},n.prepend):y(we,null,[t.prependAvatar&&y(pn,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&y(_e,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),y("div",{class:"v-card-item__content"},[a&&y(Gu,{key:"title"},{default:()=>{var u;return[((u=n.title)==null?void 0:u.call(n))??t.title]}}),o&&y(pS,{key:"subtitle"},{default:()=>{var u;return[((u=n.subtitle)==null?void 0:u.call(n))??t.subtitle]}}),(c=n.default)==null?void 0:c.call(n)]),l&&y("div",{key:"append",class:"v-card-item__append"},[n.append?y(Se,{key:"append-defaults",disabled:!s,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},n.append):y(we,null,[t.appendIcon&&y(_e,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&y(pn,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),yS=X({opacity:[Number,String],...de(),...ve()},"VCardText"),fl=ne()({name:"VCardText",props:yS(),setup(t,e){let{slots:n}=e;return he(()=>y(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},n)),{}}}),SS=X({appendAvatar:String,appendIcon:pe,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:pe,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...$t(),...de(),...ut(),...jn(),...Gt(),...Hu(),...ws(),...As(),...At(),...Ur(),...ve(),...ze(),...ot({variant:"elevated"})},"VCard"),Yu=ne()({name:"VCard",directives:{Ripple:si},props:SS(),setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=je(t),{borderClasses:s}=Wt(t),{colorClasses:l,colorStyles:a,variantClasses:o}=yn(t),{densityClasses:c}=Tt(t),{dimensionStyles:u}=Fn(t),{elevationClasses:h}=Yt(t),{loaderClasses:f}=Lu(t),{locationStyles:d}=Cs(t),{positionClasses:g}=_s(t),{roundedClasses:m}=Ct(t),p=$r(t,n),b=N(()=>t.link!==!1&&p.isLink.value),E=N(()=>!t.disabled&&t.link!==!1&&(t.link||p.isClickable.value));return he(()=>{const A=b.value?"a":t.tag,_=!!(r.title||t.title!=null),O=!!(r.subtitle||t.subtitle!=null),D=_||O,S=!!(r.append||t.appendAvatar||t.appendIcon),C=!!(r.prepend||t.prependAvatar||t.prependIcon),B=!!(r.image||t.image),R=D||C||S,k=!!(r.text||t.text!=null);return yt(y(A,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":E.value},i.value,s.value,l.value,c.value,h.value,f.value,g.value,m.value,o.value,t.class],style:[a.value,u.value,d.value,t.style],href:p.href.value,onClick:E.value&&p.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var H;return[B&&y("div",{key:"image",class:"v-card__image"},[r.image?y(Se,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},r.image):y(Ss,{key:"image-img",cover:!0,src:t.image},null)]),y(lS,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:r.loader}),R&&y(bS,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),k&&y(fl,{key:"text"},{default:()=>{var G;return[((G=r.text)==null?void 0:G.call(r))??t.text]}}),(H=r.default)==null?void 0:H.call(r),r.actions&&y(li,null,{default:r.actions}),Sn(E.value,"v-card")]}}),[[Es("ripple"),E.value&&t.ripple]])}),{}}}),qu=jr.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}),Qu=jr.reduce((t,e)=>{const n="offset"+Hr(e);return t[n]={type:[String,Number],default:null},t},{}),Zu=jr.reduce((t,e)=>{const n="order"+Hr(e);return t[n]={type:[String,Number],default:null},t},{}),ja={col:Object.keys(qu),offset:Object.keys(Qu),order:Object.keys(Zu)};function ES(t,e,n){let r=t;if(!(n==null||n===!1)){if(e){const i=e.replace(t,"");r+=`-${i}`}return t==="col"&&(r="v-"+r),t==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const wS=["auto","start","end","center","baseline","stretch"],AS=X({cols:{type:[Boolean,String,Number],default:!1},...qu,offset:{type:[String,Number],default:null},...Qu,order:{type:[String,Number],default:null},...Zu,alignSelf:{type:String,default:null,validator:t=>wS.includes(t)},...de(),...ve()},"VCol"),Fa=ne()({name:"VCol",props:AS(),setup(t,e){let{slots:n}=e;const r=N(()=>{const i=[];let s;for(s in ja)ja[s].forEach(a=>{const o=t[a],c=ES(s,a,o);c&&i.push(c)});const l=i.some(a=>a.startsWith("v-col-"));return i.push({"v-col":!l||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),i});return()=>{var i;return Qe(t.tag,{class:[r.value,t.class],style:t.style},(i=n.default)==null?void 0:i.call(n))}}}),hl=["start","end","center"],Xu=["space-between","space-around","space-evenly"];function gl(t,e){return jr.reduce((n,r)=>{const i=t+Hr(r);return n[i]=e(),n},{})}const CS=[...hl,"baseline","stretch"],Ku=t=>CS.includes(t),Ju=gl("align",()=>({type:String,default:null,validator:Ku})),_S=[...hl,...Xu],ed=t=>_S.includes(t),td=gl("justify",()=>({type:String,default:null,validator:ed})),DS=[...hl,...Xu,"stretch"],nd=t=>DS.includes(t),rd=gl("alignContent",()=>({type:String,default:null,validator:nd})),Ua={align:Object.keys(Ju),justify:Object.keys(td),alignContent:Object.keys(rd)},RS={align:"align",justify:"justify",alignContent:"align-content"};function kS(t,e,n){let r=RS[t];if(n!=null){if(e){const i=e.replace(t,"");r+=`-${i}`}return r+=`-${n}`,r.toLowerCase()}}const TS=X({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:Ku},...Ju,justify:{type:String,default:null,validator:ed},...td,alignContent:{type:String,default:null,validator:nd},...rd,...de(),...ve()},"VRow"),$a=ne()({name:"VRow",props:TS(),setup(t,e){let{slots:n}=e;const r=N(()=>{const i=[];let s;for(s in Ua)Ua[s].forEach(l=>{const a=t[l],o=kS(s,l,a);o&&i.push(o)});return i.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),i});return()=>{var i;return Qe(t.tag,{class:["v-row",r.value,t.class],style:t.style},(i=n.default)==null?void 0:i.call(n))}}}),Pr=Wr("v-spacer","div","VSpacer"),xS=X({id:String,text:String,...Fr(uo({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"),id=ne()({name:"VTooltip",props:xS(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=mt(t,"modelValue"),{scopeId:i}=fo(),s=zr(),l=N(()=>t.id||`v-tooltip-${s}`),a=ie(),o=N(()=>t.location.split(" ").length>1?t.location:t.location+" center"),c=N(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),u=N(()=>t.transition?t.transition:r.value?"scale-transition":"fade-transition"),h=N(()=>Ie({"aria-describedby":l.value},t.activatorProps));return he(()=>{const f=br.filterProps(t);return y(br,Ie({ref:a,class:["v-tooltip",t.class],style:t.style,id:l.value},f,{modelValue:r.value,"onUpdate:modelValue":d=>r.value=d,transition:u.value,absolute:!0,location:o.value,origin:c.value,persistent:!0,role:"tooltip",activatorProps:h.value,_disableGlobalStack:!0},i),{activator:n.activator,default:function(){var p;for(var d=arguments.length,g=new Array(d),m=0;m<d;m++)g[m]=arguments[m];return((p=n.default)==null?void 0:p.call(n,...g))??t.text}})}),ho({},a)}}),MS={__name:"Actions",props:{item:{type:Object,required:!0}},setup(t){const{linkField:e,attachmentField:n,mainDataset:r}=vn();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)=>(ce(),Ve(li,null,{default:re(()=>[y(Pr),$(e)&&t.item[$(e)]?(ce(),Ve(Bt,{key:0,href:(t.item[$(e)].includes("http")?"":"http://")+t.item[$(e)],text:"",small:"",target:"_blank",class:"px-6",color:"primary"},{default:re(()=>[qe(" Page associée ")]),_:1},8,["href"])):Ue("",!0),$(n)?(ce(),Ve(id,{key:1,top:""},{activator:re(({props:a})=>[y(Bt,Ie({href:t.item[$(n)].includes("http")?t.item[$(n)]:$(r).href+"/attachments/"+t.item[$(n)],color:"accent",icon:""},a),{default:re(()=>[y(_e,null,{default:re(()=>[qe("mdi-download")]),_:1})]),_:2},1040,["href"])]),default:re(()=>[ro("span",null,"Télécharger le fichier de "+Xt(i(t.item["_file.content_length"])),1)]),_:1})):Ue("",!0),y(Pr)]),_:1}))}},IS=X({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Le(t,e,n){return ne()({name:t,props:IS({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:h}=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=`${h}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:h,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=o||"",a.style.top=c||"",a.style.left=u||"",a.style.width=h||"",a.style.height=f||""}}};return()=>{const a=r.group?io:vr;return Qe(a,{name:r.disabled?"":t,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:l},s.default)}}})}function sd(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ne()({name:t,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,i){let{slots:s}=i;const l=r.group?io:vr;return()=>Qe(l,{name:r.disabled?"":t,css:!r.disabled,...r.disabled?{}:e},s.default)}})}function ld(){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=Xa(`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 NS=X({target:[Object,Array]},"v-dialog-transition"),OS=ne()({name:"VDialogTransition",props:NS(),setup(t,e){let{slots:n}=e;const r={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,s){var f;await new Promise(d=>requestAnimationFrame(d)),await new Promise(d=>requestAnimationFrame(d)),i.style.visibility="";const{x:l,y:a,sx:o,sy:c,speed:u}=Ga(t.target,i),h=Xn(i,[{transform:`translate(${l}px, ${a}px) scale(${o}, ${c})`,opacity:0},{}],{duration:225*u,easing:tf});(f=Wa(i))==null||f.forEach(d=>{Xn(d,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:yl})}),h.finished.then(()=>s())},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,s){var f;await new Promise(d=>requestAnimationFrame(d));const{x:l,y:a,sx:o,sy:c,speed:u}=Ga(t.target,i);Xn(i,[{},{transform:`translate(${l}px, ${a}px) scale(${o}, ${c})`,opacity:0}],{duration:125*u,easing:nf}).finished.then(()=>s()),(f=Wa(i))==null||f.forEach(d=>{Xn(d,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:yl})})},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>t.target?y(vr,Ie({name:"dialog-transition"},r,{css:!1}),n):y(vr,{name:"dialog-transition"},n)}});function Wa(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 Ga(t,e){const n=rf(t),r=sf(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,h=n.height/r.height,f=Math.max(1,u,h),d=u/f||0,g=h/f||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:d,sy:g,speed:p}}Le("fab-transition","center center","out-in");Le("dialog-bottom-transition");Le("dialog-top-transition");const Ya=Le("fade-transition"),$E=Le("scale-transition");Le("scroll-x-transition");Le("scroll-x-reverse-transition");Le("scroll-y-transition");Le("scroll-y-reverse-transition");Le("slide-x-transition");const WE=Le("slide-x-reverse-transition"),GE=Le("slide-y-transition");Le("slide-y-reverse-transition");const PS=sd("expand-transition",ld()),HS=sd("expand-x-transition",ld("",!0));function LS(t){let{selectedElement:e,containerElement:n,isRtl:r,isHorizontal:i}=t;const s=Bn(i,n),l=ad(i,r,n),a=Bn(i,e),o=od(i,e),c=a*.4;return l>o?o-c:l+s<o+a?o-s+a+c:l}function BS(t){let{selectedElement:e,containerElement:n,isHorizontal:r}=t;const i=Bn(r,n),s=od(r,e),l=Bn(r,e);return s-i/2+l/2}function qa(t,e){const n=t?"scrollWidth":"scrollHeight";return(e==null?void 0:e[n])||0}function VS(t,e){const n=t?"clientWidth":"clientHeight";return(e==null?void 0:e[n])||0}function ad(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 Bn(t,e){const n=t?"offsetWidth":"offsetHeight";return(e==null?void 0:e[n])||0}function od(t,e){const n=t?"offsetLeft":"offsetTop";return(e==null?void 0:e[n])||0}const zS=Symbol.for("vuetify:v-slide-group"),cd=X({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:zS},nextIcon:{type:pe,default:"$next"},prevIcon:{type:pe,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...de(),...Ld({mobile:null}),...ve(),...ul({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Qa=ne()({name:"VSlideGroup",props:cd(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isRtl:r}=so(),{displayClasses:i,mobile:s}=lo(t),l=dl(t,t.symbol),a=Ne(!1),o=Ne(0),c=Ne(0),u=Ne(0),h=N(()=>t.direction==="horizontal"),{resizeRef:f,contentRect:d}=Fi(),{resizeRef:g,contentRect:m}=Fi(),p=Bd(),b=N(()=>({container:f.el,duration:200,easing:"easeOutQuart"})),E=N(()=>l.selected.value.length?l.items.value.findIndex(M=>M.id===l.selected.value[0]):-1),A=N(()=>l.selected.value.length?l.items.value.findIndex(M=>M.id===l.selected.value[l.selected.value.length-1]):-1);if(zi){let M=-1;Xe(()=>[l.selected.value,d.value,m.value,h.value],()=>{cancelAnimationFrame(M),M=requestAnimationFrame(()=>{if(d.value&&m.value){const T=h.value?"width":"height";c.value=d.value[T],u.value=m.value[T],a.value=c.value+1<u.value}if(E.value>=0&&g.el){const T=g.el.children[A.value];O(T,t.centerActive)}})})}const _=Ne(!1);function O(M,T){let U=0;T?U=BS({containerElement:f.el,isHorizontal:h.value,selectedElement:M}):U=LS({containerElement:f.el,isHorizontal:h.value,isRtl:r.value,selectedElement:M}),D(U)}function D(M){if(!zi||!f.el)return;const T=Bn(h.value,f.el),U=ad(h.value,r.value,f.el);if(!(qa(h.value,f.el)<=T||Math.abs(M-U)<16)){if(h.value&&r.value&&f.el){const{scrollWidth:oe,offsetWidth:be}=f.el;M=oe-be-M}h.value?p.horizontal(M,b.value):p(M,b.value)}}function S(M){const{scrollTop:T,scrollLeft:U}=M.target;o.value=h.value?U:T}function C(M){if(_.value=!0,!(!a.value||!g.el)){for(const T of M.composedPath())for(const U of g.el.children)if(U===T){O(U);return}}}function B(M){_.value=!1}let R=!1;function k(M){var T;!R&&!_.value&&!(M.relatedTarget&&((T=g.el)!=null&&T.contains(M.relatedTarget)))&&V(),R=!1}function H(){R=!0}function G(M){if(!g.el)return;function T(U){M.preventDefault(),V(U)}h.value?M.key==="ArrowRight"?T(r.value?"prev":"next"):M.key==="ArrowLeft"&&T(r.value?"next":"prev"):M.key==="ArrowDown"?T("next"):M.key==="ArrowUp"&&T("prev"),M.key==="Home"?T("first"):M.key==="End"&&T("last")}function V(M){var U,te;if(!g.el)return;let T;if(!M)T=ji(g.el)[0];else if(M==="next"){if(T=(U=g.el.querySelector(":focus"))==null?void 0:U.nextElementSibling,!T)return V("first")}else if(M==="prev"){if(T=(te=g.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!T)return V("last")}else M==="first"?T=g.el.firstElementChild:M==="last"&&(T=g.el.lastElementChild);T&&T.focus({preventScroll:!0})}function P(M){const T=h.value&&r.value?-1:1,U=(M==="prev"?-T:T)*c.value;let te=o.value+U;if(h.value&&r.value&&f.el){const{scrollWidth:oe,offsetWidth:be}=f.el;te+=oe-be}D(te)}const I=N(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),z=N(()=>{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=N(()=>Math.abs(o.value)>1),W=N(()=>{if(!f.value)return!1;const M=qa(h.value,f.el),T=VS(h.value,f.el);return M-T-Math.abs(o.value)>1});return he(()=>y(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!h.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":a.value},i.value,t.class],style:t.style,tabindex:_.value||l.selected.value.length?-1:0,onFocus:k},{default:()=>{var M,T,U;return[z.value&&y("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!L.value}],onMousedown:H,onClick:()=>L.value&&P("prev")},[((M=n.prev)==null?void 0:M.call(n,I.value))??y(Ya,null,{default:()=>[y(_e,{icon:r.value?t.nextIcon:t.prevIcon},null)]})]),y("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:S},[y("div",{ref:g,class:"v-slide-group__content",onFocusin:C,onFocusout:B,onKeydown:G},[(T=n.default)==null?void 0:T.call(n,I.value)])]),z.value&&y("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!W.value}],onMousedown:H,onClick:()=>W.value&&P("next")},[((U=n.next)==null?void 0:U.call(n,I.value))??y(Ya,null,{default:()=>[y(_e,{icon:r.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:P,scrollOffset:o,focus:V,hasPrev:L,hasNext:W}}}),ud=Symbol.for("vuetify:v-chip-group"),jS=X({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:bs},...cd(),...de(),...ul({selectedClass:"v-chip--selected"}),...ve(),...ze(),...ot({variant:"tonal"})},"VChipGroup");ne()({name:"VChipGroup",props:jS(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{themeClasses:r}=je(t),{isSelected:i,select:s,next:l,prev:a,selected:o}=dl(t,ud);return Vr({VChip:{color:J(t,"color"),disabled:J(t,"disabled"),filter:J(t,"filter"),variant:J(t,"variant")}}),he(()=>{const c=Qa.filterProps(t);return y(Qa,Ie(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 FS=X({activeClass:String,appendAvatar:String,appendIcon:pe,closable:Boolean,closeIcon:{type:pe,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:pe,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Pt(),onClickOnce:Pt(),...$t(),...de(),...ut(),...Gt(),...Iu(),...At(),...Ur(),...qn(),...ve({tag:"span"}),...ze(),...ot({variant:"tonal"})},"VChip"),US=ne()({name:"VChip",directives:{Ripple:si},props:FS(),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}=ao(),{borderClasses:l}=Wt(t),{colorClasses:a,colorStyles:o,variantClasses:c}=yn(t),{densityClasses:u}=Tt(t),{elevationClasses:h}=Yt(t),{roundedClasses:f}=Ct(t),{sizeClasses:d}=Qn(t),{themeClasses:g}=je(t),m=mt(t,"modelValue"),p=Nu(t,ud,!1),b=$r(t,n),E=N(()=>t.link!==!1&&b.isLink.value),A=N(()=>!t.disabled&&t.link!==!1&&(!!p||t.link||b.isClickable.value)),_=N(()=>({"aria-label":s(t.closeLabel),onClick(S){S.preventDefault(),S.stopPropagation(),m.value=!1,r("click:close",S)}}));function O(S){var C;r("click",S),A.value&&((C=b.navigate)==null||C.call(b,S),p==null||p.toggle())}function D(S){(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),O(S))}return()=>{const S=b.isLink.value?"a":t.tag,C=!!(t.appendIcon||t.appendAvatar),B=!!(C||i.append),R=!!(i.close||t.closable),k=!!(i.filter||t.filter)&&p,H=!!(t.prependIcon||t.prependAvatar),G=!!(H||i.prepend),V=!p||p.isSelected.value;return m.value&&yt(y(S,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":A.value,"v-chip--filter":k,"v-chip--pill":t.pill},g.value,l.value,V?a.value:void 0,u.value,h.value,f.value,d.value,c.value,p==null?void 0:p.selectedClass.value,t.class],style:[V?o.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:b.href.value,tabindex:A.value?0:void 0,onClick:O,onKeydown:A.value&&!E.value&&D},{default:()=>{var P;return[Sn(A.value,"v-chip"),k&&y(HS,{key:"filter"},{default:()=>[yt(y("div",{class:"v-chip__filter"},[i.filter?y(Se,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},i.filter):y(_e,{key:"filter-icon",icon:t.filterIcon},null)]),[[oo,p.isSelected.value]])]}),G&&y("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?y(Se,{key:"prepend-defaults",disabled:!H,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},i.prepend):y(we,null,[t.prependIcon&&y(_e,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&y(pn,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),y("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]),B&&y("div",{key:"append",class:"v-chip__append"},[i.append?y(Se,{key:"append-defaults",disabled:!C,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},i.append):y(we,null,[t.appendIcon&&y(_e,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&y(pn,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),R&&y("button",Ie({key:"close",class:"v-chip__close",type:"button"},_.value),[i.close?y(Se,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},i.close):y(_e,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[Es("ripple"),A.value&&t.ripple,null]])}}}),us=Symbol.for("vuetify:list");function dd(){const t=bn(us,{hasPrepend:Ne(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ne(!1),updateHasPrepend:n=>{n&&(e.hasPrepend.value=n)}};return jt(us,e),t}function fd(){return bn(us,null)}const pl=t=>{const e={activate:n=>{let{id:r,value:i,activated:s}=n;return r=fe(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 ys(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},hd=t=>{const e=pl(t);return{activate:r=>{let{activated:i,id:s,...l}=r;s=fe(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=ys(r);a.length&&(l=e.in(a.slice(0,1),i,s))}return l},out:(r,i,s)=>e.out(r,i,s)}},$S=t=>{const e=pl(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=fe(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},WS=t=>{const e=hd(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=fe(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},GS={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},gd={open:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(n){let s=fe(i.get(e));for(r.add(e);s!=null&&s!==e;)r.add(s),s=fe(i.get(s));return r}else r.delete(e);return r},select:()=>null},YS={open:gd.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)}},ml=t=>{const e={select:n=>{let{id:r,value:i,selected:s}=n;if(r=fe(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},pd=t=>{const e=ml(t);return{select:r=>{let{selected:i,id:s,...l}=r;s=fe(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)}},qS=t=>{const e=ml(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=fe(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},QS=t=>{const e=pd(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=fe(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},ZS=t=>{const e={select:n=>{let{id:r,value:i,selected:s,children:l,parents:a}=n;r=fe(r);const o=new Map(s),c=[r];for(;c.length;){const h=c.shift();s.set(fe(h),i?"on":"off"),l.has(h)&&c.push(...l.get(h))}let u=fe(a.get(r));for(;u;){const h=l.get(u),f=h.every(g=>s.get(fe(g))==="on"),d=h.every(g=>!s.has(fe(g))||s.get(fe(g))==="off");s.set(u,f?"on":d?"off":"indeterminate"),u=fe(a.get(u))}return t&&!i&&Array.from(s.entries()).reduce((f,d)=>{let[g,m]=d;return m==="on"&&f.push(g),f},[]).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},Vn=Symbol.for("vuetify:nested"),md={id:Ne(),root:{register:()=>null,unregister:()=>null,parents:ie(new Map),children:ie(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ie(!1),selectable:ie(!1),opened:ie(new Set),activated:ie(new Set),selected:ie(new Map),selectedValues:ie([])}},XS=X({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),KS=t=>{let e=!1;const n=ie(new Map),r=ie(new Map),i=mt(t,"opened",t.opened,d=>new Set(fe(d)),d=>[...d.values()]),s=N(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return $S(t.mandatory);case"single-leaf":return WS(t.mandatory);case"independent":return pl(t.mandatory);case"single-independent":default:return hd(t.mandatory)}}),l=N(()=>{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 QS(t.mandatory);case"leaf":return qS(t.mandatory);case"independent":return ml(t.mandatory);case"single-independent":return pd(t.mandatory);case"classic":default:return ZS(t.mandatory)}}),a=N(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return YS;case"single":return GS;case"multiple":default:return gd}}),o=mt(t,"activated",t.activated,d=>s.value.in(d,n.value,r.value),d=>s.value.out(d,n.value,r.value)),c=mt(t,"selected",t.selected,d=>l.value.in(d,n.value,r.value),d=>l.value.out(d,n.value,r.value));mn(()=>{e=!0});function u(d){const g=[];let m=d;for(;m!=null;)g.unshift(m),m=r.value.get(m);return g}const h=vs("nested"),f={id:Ne(),root:{opened:i,activatable:J(t,"activatable"),selectable:J(t,"selectable"),activated:o,selected:c,selectedValues:N(()=>{const d=[];for(const[g,m]of c.value.entries())m==="on"&&d.push(g);return d}),register:(d,g,m)=>{g&&d!==g&&r.value.set(d,g),m&&n.value.set(d,[]),g!=null&&n.value.set(g,[...n.value.get(g)||[],d])},unregister:d=>{if(e)return;n.value.delete(d);const g=r.value.get(d);if(g){const m=n.value.get(g)??[];n.value.set(g,m.filter(p=>p!==d))}r.value.delete(d)},open:(d,g,m)=>{h.emit("click:open",{id:d,value:g,path:u(d),event:m});const p=a.value.open({id:d,value:g,opened:new Set(i.value),children:n.value,parents:r.value,event:m});p&&(i.value=p)},openOnSelect:(d,g,m)=>{const p=a.value.select({id:d,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:(d,g,m)=>{h.emit("click:select",{id:d,value:g,path:u(d),event:m});const p=l.value.select({id:d,value:g,selected:new Map(c.value),children:n.value,parents:r.value,event:m});p&&(c.value=p),f.root.openOnSelect(d,g,m)},activate:(d,g,m)=>{if(!t.activatable)return f.root.select(d,!0,m);h.emit("click:activate",{id:d,value:g,path:u(d),event:m});const p=s.value.activate({id:d,value:g,activated:new Set(o.value),children:n.value,parents:r.value,event:m});p&&(o.value=p)},children:n,parents:r}};return jt(Vn,f),f.root},vd=(t,e)=>{const n=bn(Vn,md),r=Symbol(zr()),i=N(()=>t.value!==void 0?t.value:r),s={...n,id:i,open:(l,a)=>n.root.open(fe(i.value),l,a),openOnSelect:(l,a)=>n.root.openOnSelect(i.value,l,a),isOpen:N(()=>n.root.opened.value.has(fe(i.value))),parent:N(()=>n.root.parents.value.get(i.value)),activate:(l,a)=>n.root.activate(i.value,l,a),isActivated:N(()=>n.root.activated.value.has(fe(i.value))),select:(l,a)=>n.root.select(i.value,l,a),isSelected:N(()=>n.root.selected.value.get(fe(i.value))==="on"),isIndeterminate:N(()=>n.root.selected.value.get(i.value)==="indeterminate"),isLeaf:N(()=>!n.root.children.value.get(i.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(i.value,n.id.value,e),mn(()=>{!n.isGroupActivator&&n.root.unregister(i.value)}),e&&jt(Vn,s),s},JS=()=>{const t=bn(Vn,md);jt(Vn,{...t,isGroupActivator:!0})};function eE(){const t=Ne(!1);return Lr(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:N(()=>t.value?void 0:{transition:"none !important"}),isBooted:Ka(t)}}const tE=Vd({name:"VListGroupActivator",setup(t,e){let{slots:n}=e;return JS(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),nE=X({activeColor:String,baseColor:String,color:String,collapseIcon:{type:pe,default:"$collapse"},expandIcon:{type:pe,default:"$expand"},prependIcon:pe,appendIcon:pe,fluid:Boolean,subgroup:Boolean,title:String,value:null,...de(),...ve()},"VListGroup"),Za=ne()({name:"VListGroup",props:nE(),setup(t,e){let{slots:n}=e;const{isOpen:r,open:i,id:s}=vd(J(t,"value"),!0),l=N(()=>`v-list-group--id-${String(s.value)}`),a=fd(),{isBooted:o}=eE();function c(d){d.stopPropagation(),i(!r.value,d)}const u=N(()=>({onClick:c,class:"v-list-group__header",id:l.value})),h=N(()=>r.value?t.collapseIcon:t.expandIcon),f=N(()=>({VListItem:{active:r.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&h.value,appendIcon:t.appendIcon||!t.subgroup&&h.value,title:t.title,value:t.value}}));return he(()=>y(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&&y(Se,{defaults:f.value},{default:()=>[y(tE,null,{default:()=>[n.activator({props:u.value,isOpen:r.value})]})]}),y(zd,{transition:{component:PS},disabled:!o.value},{default:()=>{var d;return[yt(y("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(d=n.default)==null?void 0:d.call(n)]),[[oo,r.value]])]}})]})),{isOpen:r}}}),rE=X({opacity:[Number,String],...de(),...ve()},"VListItemSubtitle"),bd=ne()({name:"VListItemSubtitle",props:rE(),setup(t,e){let{slots:n}=e;return he(()=>y(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},n)),{}}}),iE=Wr("v-list-item-title"),sE=X({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:pe,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:pe,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Pt(),onClickOnce:Pt(),...$t(),...de(),...ut(),...jn(),...Gt(),...At(),...Ur(),...ve(),...ze(),...ot({variant:"text"})},"VListItem"),ds=ne()({name:"VListItem",directives:{Ripple:si},props:sE(),emits:{click:t=>!0},setup(t,e){let{attrs:n,slots:r,emit:i}=e;const s=$r(t,n),l=N(()=>t.value===void 0?s.href.value:t.value),{activate:a,isActivated:o,select:c,isOpen:u,isSelected:h,isIndeterminate:f,isGroupActivator:d,root:g,parent:m,openOnSelect:p}=vd(l,!1),b=fd(),E=N(()=>{var T;return t.active!==!1&&(t.active||((T=s.isActive)==null?void 0:T.value)||(g.activatable.value?o.value:h.value))}),A=N(()=>t.link!==!1&&s.isLink.value),_=N(()=>!t.disabled&&t.link!==!1&&(t.link||s.isClickable.value||!!b&&(g.selectable.value||g.activatable.value||t.value!=null))),O=N(()=>t.rounded||t.nav),D=N(()=>t.color??t.activeColor),S=N(()=>({color:E.value?D.value??t.baseColor:t.baseColor,variant:t.variant}));Xe(()=>{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:C}=je(t),{borderClasses:B}=Wt(t),{colorClasses:R,colorStyles:k,variantClasses:H}=yn(S),{densityClasses:G}=Tt(t),{dimensionStyles:V}=Fn(t),{elevationClasses:P}=Yt(t),{roundedClasses:I}=Ct(O),z=N(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),L=N(()=>({isActive:E.value,select:c,isOpen:u.value,isSelected:h.value,isIndeterminate:f.value}));function W(T){var U;i("click",T),_.value&&((U=s.navigate)==null||U.call(s,T),!d&&(g.activatable.value?a(!o.value,T):(g.selectable.value||t.value!=null)&&c(!h.value,T)))}function M(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),T.target.dispatchEvent(new MouseEvent("click",T)))}return he(()=>{const T=A.value?"a":t.tag,U=r.title||t.title!=null,te=r.subtitle||t.subtitle!=null,oe=!!(t.appendAvatar||t.appendIcon),be=!!(oe||r.append),Je=!!(t.prependAvatar||t.prependIcon),Fe=!!(Je||r.prepend);return b==null||b.updateHasPrepend(Fe),t.activeColor&&jd("active-color",["color","base-color"]),yt(y(T,{class:["v-list-item",{"v-list-item--active":E.value,"v-list-item--disabled":t.disabled,"v-list-item--link":_.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!Fe&&(b==null?void 0:b.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&E.value},C.value,B.value,R.value,G.value,P.value,z.value,I.value,H.value,t.class],style:[k.value,V.value,t.style],href:s.href.value,tabindex:_.value?b?-2:0:void 0,onClick:W,onKeydown:_.value&&!A.value&&M},{default:()=>{var dt;return[Sn(_.value||E.value,"v-list-item"),Fe&&y("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?y(Se,{key:"prepend-defaults",disabled:!Je,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var me;return[(me=r.prepend)==null?void 0:me.call(r,L.value)]}}):y(we,null,[t.prependAvatar&&y(pn,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&y(_e,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),y("div",{class:"v-list-item__spacer"},null)]),y("div",{class:"v-list-item__content","data-no-activator":""},[U&&y(iE,{key:"title"},{default:()=>{var me;return[((me=r.title)==null?void 0:me.call(r,{title:t.title}))??t.title]}}),te&&y(bd,{key:"subtitle"},{default:()=>{var me;return[((me=r.subtitle)==null?void 0:me.call(r,{subtitle:t.subtitle}))??t.subtitle]}}),(dt=r.default)==null?void 0:dt.call(r,L.value)]),be&&y("div",{key:"append",class:"v-list-item__append"},[r.append?y(Se,{key:"append-defaults",disabled:!oe,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var me;return[(me=r.append)==null?void 0:me.call(r,L.value)]}}):y(we,null,[t.appendIcon&&y(_e,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&y(pn,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),y("div",{class:"v-list-item__spacer"},null)])]}}),[[Es("ripple"),_.value&&t.ripple]])}),{activate:a,isActivated:o,isGroupActivator:d,isSelected:h,list:b,select:c}}}),lE=X({color:String,inset:Boolean,sticky:Boolean,title:String,...de(),...ve()},"VListSubheader"),aE=ne()({name:"VListSubheader",props:lE(),setup(t,e){let{slots:n}=e;const{textColorClasses:r,textColorStyles:i}=an(J(t,"color"));return he(()=>{const s=!!(n.default||t.title);return y(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&&y("div",{class:"v-list-subheader__text"},[((l=n.default)==null?void 0:l.call(n))??t.title])]}})}),{}}}),oE=X({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...de(),...ze()},"VDivider"),cE=ne()({name:"VDivider",props:oE(),setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=je(t),{textColorClasses:s,textColorStyles:l}=an(J(t,"color")),a=N(()=>{const o={};return t.length&&(o[t.vertical?"height":"width"]=vt(t.length)),t.thickness&&(o[t.vertical?"borderRightWidth":"borderTopWidth"]=vt(t.thickness)),o});return he(()=>{const o=y("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?y("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[o,y("div",{class:"v-divider__content"},[r.default()]),o]):o}),{}}}),uE=X({items:Array,returnObject:Boolean},"VListChildren"),yd=ne()({name:"VListChildren",props:uE(),setup(t,e){let{slots:n}=e;return dd(),()=>{var r,i;return((r=n.default)==null?void 0:r.call(n))??((i=t.items)==null?void 0:i.map(s=>{var f,d;let{children:l,props:a,type:o,raw:c}=s;if(o==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:a}))??y(cE,a,null);if(o==="subheader")return((d=n.subheader)==null?void 0:d.call(n,{props:a}))??y(aE,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},h=Za.filterProps(a);return l?y(Za,Ie({value:a==null?void 0:a.value},h),{activator:g=>{let{props:m}=g;const p={...a,...m,value:t.returnObject?c:a.value};return n.header?n.header({props:p}):y(ds,p,u)},default:()=>y(yd,{items:l,returnObject:t.returnObject},n)}):n.item?n.item({props:a}):y(ds,Ie(a,{value:t.returnObject?c:a.value}),u)}))}}}),dE=X({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:bs}},"list-items");function fs(t,e){const n=nt(e,t.itemTitle,e),r=nt(e,t.itemValue,n),i=nt(e,t.itemChildren),s=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?Fr(e,["children"]):e:void 0:nt(e,t.itemProps),l={title:n,value:r,...s};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(i)?Sd(t,i):void 0,raw:e}}function Sd(t,e){const n=[];for(const r of e)n.push(fs(t,r));return n}function YE(t){const e=N(()=>Sd(t,t.items)),n=N(()=>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"?fs(t,l):e.value.find(a=>t.valueComparator(l,a.value))||fs(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 fE(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function hE(t,e){const n=nt(e,t.itemType,"item"),r=fE(e)?e:nt(e,t.itemTitle),i=nt(e,t.itemValue,void 0),s=nt(e,t.itemChildren),l=t.itemProps===!0?Fr(e,["children"]):nt(e,t.itemProps),a={title:r,value:i,...l};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&s?Ed(t,s):void 0,raw:e}}function Ed(t,e){const n=[];for(const r of e)n.push(hE(t,r));return n}function gE(t){return{items:N(()=>Ed(t,t.items))}}const pE=X({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":Pt(),"onClick:select":Pt(),"onUpdate:opened":Pt(),...XS({selectStrategy:"single-leaf",openStrategy:"list"}),...$t(),...de(),...ut(),...jn(),...Gt(),itemType:{type:String,default:"type"},...dE(),...At(),...ve(),...ze(),...ot({variant:"text"})},"VList"),mE=ne()({name:"VList",props:pE(),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}=gE(t),{themeClasses:i}=je(t),{backgroundColorClasses:s,backgroundColorStyles:l}=Fd(J(t,"bgColor")),{borderClasses:a}=Wt(t),{densityClasses:o}=Tt(t),{dimensionStyles:c}=Fn(t),{elevationClasses:u}=Yt(t),{roundedClasses:h}=Ct(t),{children:f,open:d,parents:g,select:m}=KS(t),p=N(()=>t.lines?`v-list--${t.lines}-line`:void 0),b=J(t,"activeColor"),E=J(t,"baseColor"),A=J(t,"color");dd(),Vr({VListGroup:{activeColor:b,baseColor:E,color:A,expandIcon:J(t,"expandIcon"),collapseIcon:J(t,"collapseIcon")},VListItem:{activeClass:J(t,"activeClass"),activeColor:b,baseColor:E,color:A,density:J(t,"density"),disabled:J(t,"disabled"),lines:J(t,"lines"),nav:J(t,"nav"),slim:J(t,"slim"),variant:J(t,"variant")}});const _=Ne(!1),O=ie();function D(H){_.value=!0}function S(H){_.value=!1}function C(H){var G;!_.value&&!(H.relatedTarget&&((G=O.value)!=null&&G.contains(H.relatedTarget)))&&k()}function B(H){const G=H.target;if(!(!O.value||["INPUT","TEXTAREA"].includes(G.tagName))){if(H.key==="ArrowDown")k("next");else if(H.key==="ArrowUp")k("prev");else if(H.key==="Home")k("first");else if(H.key==="End")k("last");else return;H.preventDefault()}}function R(H){_.value=!0}function k(H){if(O.value)return cr(O.value,H)}return he(()=>y(t.tag,{ref:O,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,h.value,t.class],style:[l.value,c.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:D,onFocusout:S,onFocus:C,onKeydown:B,onMousedown:R},{default:()=>[y(yd,{items:r.value,returnObject:t.returnObject},n)]})),{open:d,select:m,focus:k,children:f,parents:g}}}),vE={key:0,class:"my-2"},bE=["innerHTML"],yE={style:{"white-space":"normal"}},SE=["innerHTML"],EE={__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}=vn();return(o,c)=>(ce(),Be(we,null,[$(i)?(ce(),Be(we,{key:0},[t.item[$(i)]?(ce(),Ve(Ss,{key:0,src:t.item._thumbnail||t.item[$(i)],"aspect-ratio":$(e).aspectRatio||3,cover:$(e).imageDisplay!=="contain",style:Ud(`width:${$(e).imageWidth||100}%${$(e).imagePosition!=="top"?";float:"+$(e).imagePosition:""}`)},null,8,["src","aspect-ratio","cover","style"])):Ue("",!0)],64)):Ue("",!0),y(fl,{class:"pt-0"},{default:re(()=>[$(n)&&t.item[$(n)]?(ce(),Be("h3",vE,Xt(t.item[$(n)]),1)):Ue("",!0),$(r)&&t.item[$(r)]?(ce(),Be("div",{key:1,innerHTML:t.item[$(r)]},null,8,bE)):Ue("",!0),y(mE,{dense:"",class:"transparent",lines:"two"},{default:re(()=>[(ce(!0),Be(we,null,bl($(e).additionalFields.filter(u=>!!t.item[u]),u=>(ce(),Ve(ds,{key:u,style:{"min-height":"24px","max-width":"100%"}},{default:re(()=>[y(bd,{class:"font-weight-bold"},{default:re(()=>[qe(Xt($(a)[u].title?$(a)[u].title:$(a)[u]["x-originalName"]||u),1)]),_:2},1024),ro("div",yE,[$(a)[u].separator?t.item[u]?(ce(!0),Be(we,{key:1},bl(t.item[u].split($(a)[u].separator).sort(),h=>(ce(),Ve(US,{key:h,small:"",style:{flex:"none"},class:"my-1 mr-1"},{default:re(()=>[qe(Xt($(La)({[u]:h},$(a)[u])+""),1)]),_:2},1024))),128)):Ue("",!0):(ce(),Be(we,{key:0},[$(a)[u]["x-display"]==="markdown"?(ce(),Be("div",{key:0,innerHTML:t.item[u]},null,8,SE)):(ce(),Be(we,{key:1},[qe(Xt($(La)(t.item,$(a)[u])+""),1)],64))],64))])]),_:2},1024))),128))]),_:1})]),_:1}),$(s)||$(l)?(ce(),Ve(MS,{key:1,item:t.item},null,8,["item"])):Ue("",!0)],64))}},wE=Wr("v-alert-title"),AE=["success","info","warning","error"],CE=X({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:pe,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>AE.includes(t)},...de(),...ut(),...jn(),...Gt(),...ws(),...As(),...At(),...ve(),...ze(),...ot({variant:"flat"})},"VAlert"),_E=ne()({name:"VAlert",props:CE(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:n,slots:r}=e;const i=mt(t,"modelValue"),s=N(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),l=N(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:a}=je(t),{colorClasses:o,colorStyles:c,variantClasses:u}=yn(l),{densityClasses:h}=Tt(t),{dimensionStyles:f}=Fn(t),{elevationClasses:d}=Yt(t),{locationStyles:g}=Cs(t),{positionClasses:m}=_s(t),{roundedClasses:p}=Ct(t),{textColorClasses:b,textColorStyles:E}=an(J(t,"borderColor")),{t:A}=ao(),_=N(()=>({"aria-label":A(t.closeLabel),onClick(O){i.value=!1,n("click:close",O)}}));return()=>{const O=!!(r.prepend||s.value),D=!!(r.title||t.title),S=!!(r.close||t.closable);return i.value&&y(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},a.value,o.value,h.value,d.value,m.value,p.value,u.value,t.class],style:[c.value,f.value,g.value,t.style],role:"alert"},{default:()=>{var C,B;return[Sn(!1,"v-alert"),t.border&&y("div",{key:"border",class:["v-alert__border",b.value],style:E.value},null),O&&y("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?y(Se,{key:"prepend-defaults",disabled:!s.value,defaults:{VIcon:{density:t.density,icon:s.value,size:t.prominent?44:28}}},r.prepend):y(_e,{key:"prepend-icon",density:t.density,icon:s.value,size:t.prominent?44:28},null)]),y("div",{class:"v-alert__content"},[D&&y(wE,{key:"title"},{default:()=>{var R;return[((R=r.title)==null?void 0:R.call(r))??t.title]}}),((C=r.text)==null?void 0:C.call(r))??t.text,(B=r.default)==null?void 0:B.call(r)]),r.append&&y("div",{key:"append",class:"v-alert__append"},[r.append()]),S&&y("div",{key:"close",class:"v-alert__close"},[r.close?y(Se,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var R;return[(R=r.close)==null?void 0:R.call(r,{props:_.value})]}}):y(Bt,Ie({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}}),DE=X({id:String,submenu:Boolean,...Fr(uo({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:OS}}),["absolute"])},"VMenu"),wd=ne()({name:"VMenu",props:DE(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=mt(t,"modelValue"),{scopeId:i}=fo(),{isRtl:s}=so(),l=zr(),a=N(()=>t.id||`v-menu-${l}`),o=ie(),c=bn(Sl,null),u=Ne(new Set);jt(Sl,{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&&!$d(p,o.value.contentEl))&&(r.value=!1,c==null||c.closeParents())},40)}}),mn(()=>c==null?void 0:c.unregister()),Wd(()=>r.value=!1);async function h(p){var A,_,O;const b=p.relatedTarget,E=p.target;await gs(),r.value&&b!==E&&((A=o.value)!=null&&A.contentEl)&&((_=o.value)!=null&&_.globalTop)&&![document,o.value.contentEl].includes(E)&&!o.value.contentEl.contains(E)&&((O=ji(o.value.contentEl)[0])==null||O.focus())}Xe(r,p=>{p?(c==null||c.register(),document.addEventListener("focusin",h,{once:!0})):(c==null||c.unregister(),document.removeEventListener("focusin",h))});function f(p){c==null||c.closeParents(p)}function d(p){var b,E,A,_,O;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(),Gd(ji((b=o.value)==null?void 0:b.contentEl,!1),p.shiftKey?"prev":"next",S=>S.tabIndex>=0)||(r.value=!1,(A=(E=o.value)==null?void 0:E.activatorEl)==null||A.focus())}else t.submenu&&p.key===(s.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,(O=(_=o.value)==null?void 0:_.activatorEl)==null||O.focus())}function g(p){var E;if(t.disabled)return;const b=(E=o.value)==null?void 0:E.contentEl;b&&r.value?p.key==="ArrowDown"?(p.preventDefault(),p.stopImmediatePropagation(),cr(b,"next")):p.key==="ArrowUp"?(p.preventDefault(),p.stopImmediatePropagation(),cr(b,"prev")):t.submenu&&(p.key===(s.value?"ArrowRight":"ArrowLeft")?r.value=!1:p.key===(s.value?"ArrowLeft":"ArrowRight")&&(p.preventDefault(),cr(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=N(()=>Ie({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":a.value,onKeydown:g},t.activatorProps));return he(()=>{const p=br.filterProps(t);return y(br,Ie({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":f,onKeydown:d},i),{activator:n.activator,default:function(){for(var b=arguments.length,E=new Array(b),A=0;A<b;A++)E[A]=arguments[A];return y(Se,{root:"VMenu"},{default:()=>{var _;return[(_=n.default)==null?void 0:_.call(n,...E)]}})}})}),ho({id:a,ΨopenChildren:u},o)}});function RE(t,e){const n=typeof t=="string"?Yd(t):t,r=kE(n,e);return{mounted:r,updated:r,unmounted(i){co(null,i)}}}function kE(t,e){return function(n,r,i){var h,f,d;const s=typeof e=="function"?e(r):e,l=((h=r.value)==null?void 0:h.text)??r.value??(s==null?void 0:s.text),a=no(r.value)?r.value:{},o=()=>l??n.innerHTML,c=(i.ctx===r.instance.$?(f=TE(i,r.instance.$))==null?void 0:f.provides:(d=i.ctx)==null?void 0:d.provides)??r.instance.$.provides,u=Qe(t,Ie(s,a),o);u.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:c}),co(u,n)}}function TE(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 Ad=RE(id,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}}),xE={__name:"DeleteEvent",props:{event:{type:[Object,null],required:!0}},emits:["deleted"],setup(t,{emit:e}){const{mainDataset:n}=vn(),r=ie(!1),i=t,s=e;async function l(){try{await ln(`${n.href}/lines${i.event.id}`,{method:"DELETE"}),r.value=!1,s("deleted"),ii.value=new Date().getTime()}catch(a){cn.value=a.status+" - "+a._data,on.value=!0}}return(a,o)=>(ce(),Ve(wd,{modelValue:r.value,"onUpdate:modelValue":o[2]||(o[2]=c=>r.value=c),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:re(({props:c})=>[yt(y(Bt,Ie({icon:"mdi-delete",color:"error"},c),null,16),[[Ad,{text:"Supprimer l'événement",location:"right",openDelay:"500"}]])]),default:re(()=>[y(Yu,{outlined:"","data-iframe-height":""},{default:re(()=>[y(Gu,{"primary-title":""},{default:re(()=>[qe(" Supprimer l'événement ? ")]),_:1}),y(fl,null,{default:re(()=>[y(_E,{"model-value":!0,type:"error"},{default:re(()=>[qe(" Voulez vous vraiment supprimer l'événement ? ")]),_:1})]),_:1}),y(li,null,{default:re(()=>[y(Pr),y(Bt,{text:"",onClick:o[0]||(o[0]=c=>r.value=!1)},{default:re(()=>[qe(" Annuler ")]),_:1}),y(Bt,{color:"error",onClick:o[1]||(o[1]=c=>l())},{default:re(()=>[qe(" Supprimer ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}};var ME={exports:{}};(function(t,e){(function(n,r){t.exports=r(xu)})(zn,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})})(ME);var IE={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zn,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])+"]"}}})})(IE);var Cd={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zn,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(h,f){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,g,m){var p=m&&m.toUpperCase();return g||f[m]||n[m]||f[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,E,A){return E||A.slice(1)})})}(o,c===void 0?{}:c);return a.call(this,u)}}})})(Cd);var NE=Cd.exports;const OE=ms(NE);var _d={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zn,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,h,f){return s.fromToBase(c,u,h,f)}i.en.relativeTime=l,s.fromToBase=function(c,u,h,f,d){for(var g,m,p,b=h.$locale().relativeTime||l,E=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"}],A=E.length,_=0;_<A;_+=1){var O=E[_];O.d&&(g=f?i(c).diff(h,O.d,!0):h.diff(c,O.d,!0));var D=(n.rounding||Math.round)(Math.abs(g));if(p=g>0,D<=O.r||!O.r){D<=1&&_>0&&(O=E[_-1]);var S=b[O.l];d&&(D=d(""+D)),m=typeof S=="string"?S.replace("%d",D):S(D,u,O.l,p);break}}if(u)return m;var C=p?b.future:b.past;return typeof C=="function"?C(m):C.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)}}})})(_d);var PE=_d.exports;const HE=ms(PE);Pn.extend(OE);Pn.extend(HE);function LE(t){const e=ie("fr");return{locale:e,dayjs:n=>Pn(n).locale(e.value)}}const{locale:qE,dayjs:Vi}=LE(),BE={__name:"EventDetails",props:{event:{type:[Object,null],required:!0}},emits:["updated"],setup(t,{emit:e}){const n=Qd(()=>Zd(()=>import("./EventEdit-CTSGk95O.js").then(E=>E.E),__vite__mapDeps([0,1,2,3,4,5]))),{width:r,height:i}=lo(),{config:s,mainDataset:l,layout:a,startDateField:o,endDateField:c,dateField:u}=vn(),h=e,f=ie("read"),d=t;Xe(()=>d.event,E=>{f.value="read"});const g=sl(async()=>d.event?(d.event.id||(f.value="edit"),d.event.id?(await ln(`${l.href}/lines?_id_eq=${d.event.id}`)).results.pop():{...d.event}):null,null,{onError:function(E){on.value=!0,cn.value=E.message}});async function m(E){const A=new FormData,{__file:_,...O}=E,D=a==="contrib"?{payload:JSON.stringify(O)}:O;for(const[B,R]of Object.entries(D))A.append(B,R);_&&A.append("attachment",_);const S={method:"POST",body:A,headers:{"Content-Disposition":A}};let C=`${l.href}/lines`;d.event.id&&(C+="/"+d.event.id,S.method="PUT");try{await ln(C,S),h("updated"),ii.value=new Date().getTime()}catch(B){cn.value=B.status+" - "+B._data,on.value=!0}}const p=N(()=>{if(o&&c){const E=Vi(g.value[o]),A=Vi(g.value[c]);return E.isSame(A,"day")?E.format("ddd D MMM YYYY")+", "+E.format("HH:mm")+" - "+A.format("HH:mm"):E.format("ddd D MMM YYYY, HH:mm")+" - "+A.format("ddd D MMM YYYY, HH:mm")}else return Vi(g.value[u]).format("dd, MMM YYYY")});function b(){f.value="read",d.event.id||h("updated")}return(E,A)=>(ce(),Ve(Yu,{"max-width":f.value==="read"?800:$(r)*$(s).formWidth/10,"min-width":200,"max-height":$(i)*.8},{default:re(()=>[$(g)?(ce(),Be(we,{key:0},[f.value==="read"?(ce(),Be(we,{key:0},[$(a)==="admin"?(ce(),Ve(li,{key:0,class:"py-0"},{default:re(()=>[qe(Xt(p.value)+" ",1),y(Pr),yt(y(Bt,{icon:"mdi-pencil",color:"primary",onClick:A[0]||(A[0]=_=>f.value="edit")},null,512),[[Ad,{text:"Modifier l'événement",location:"right",openDelay:"500"}]]),y(xE,{event:t.event,onDeleted:A[1]||(A[1]=_=>h("updated"))},null,8,["event"])]),_:1})):Ue("",!0),y(EE,{item:$(g)},null,8,["item"])],64)):Ue("",!0),f.value==="edit"?(ce(),Ve(qd,{key:1},{fallback:re(()=>[y($a,{align:"center",style:{height:"200px"},class:"ma-0"},{default:re(()=>[y(Fa,{class:"text-center"},{default:re(()=>[y(as,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1})]),default:re(()=>[y($(n),{item:$(g),onValidate:m,onCancel:b},null,8,["item"])]),_:1})):Ue("",!0)],64)):(ce(),Ve($a,{key:1,align:"center",style:{height:"200px"},class:"ma-0"},{default:re(()=>[y(Fa,{class:"text-center"},{default:re(()=>[y(as,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1}))]),_:1},8,["max-width","max-height"]))}},VE={__name:"Calendar",setup(t){var p;Xd(b=>({"834f4b6e":$(e).current.value.colors.primary,"7284700a":$(e).current.value.colors.secondary}));const e=Kd(),{color:n,mainDataset:r,layout:i,startDateField:s,endDateField:l,dateField:a}=vn(),o=ie(null),c=ie(null),u=ie(null);Ee.view=Ee.view||"dayGridMonth";function h(b){return n.type==="monochrome"?n.colors.type==="custom"?n.colors.hexValue:e.current.value.colors[n.colors.strValue]:X0.value[b]}const f=N(()=>(K0.value||[]).map(b=>({...b,color:h(b.colorFieldValue)})));async function d(b){const E={};s&&l?(E[s]=b.start.toISOString(),E[l]=b.end.toISOString()):a&&(E[a]=b.start.toISOString());try{await ln(`${r.href}/lines/${b.id}`,{method:"PATCH",body:E}),c.value=!1,ii.value=new Date().getTime()}catch(A){cn.value=A.status+" - "+A._data,on.value=!0}}const g=Ee.start&&Ee.end&&new Date((new Date(Ee.start).getTime()+new Date(Ee.end).getTime())/2),m=hs({plugins:[Lv,$b,wb,iy],initialView:Ee.view||"dayGridMonth",initialDate:g&&new Date(g)||((p=r.timePeriod)==null?void 0:p.startDate)&&new Date(r.timePeriod.startDate)||new Date,locale:sy,headerToolbar:{start:"prev,next today",center:"title",end:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},events:f,selectable:i!=="simple",datesSet(b){Ee.start=b.startStr,Ee.end=b.endStr,Ee.view=b.view.type},eventClick(b){b.jsEvent.preventDefault();const E=b.event.toJSON();o.value={...E,...E.extendedProps},delete o.value.extendedProps,setTimeout(()=>{c.value=!0},0),u.value=b.el},eventDrop(b){d(b.event)},eventResize(b){d(b.event)},select(b){const E={};s&&l?(E[s]=b.start.toISOString(),E[l]=b.end.toISOString()):a&&(E[a]=b.start.toISOString()),o.value=E,u.value=b.jsEvent.target,c.value=!0}});return(b,E)=>(ce(),Be(we,null,[y($(av),{options:m},null,8,["options"]),y(wd,{modelValue:c.value,"onUpdate:modelValue":E[1]||(E[1]=A=>c.value=A),"close-on-content-click":!1,activator:u.value,location:$(Ee).view==="dayGridMonth"?"bottom":"start center"},{default:re(()=>[y(BE,{event:o.value,onUpdated:E[0]||(E[0]=A=>c.value=!1)},null,8,["event"])]),_:1},8,["modelValue","activator","location"])],64))}},QE=Object.freeze(Object.defineProperty({__proto__:null,default:VE},Symbol.toStringTag,{value:"Module"}));export{Nu as A,eE as B,cd as C,Qa as D,Fi as E,dE as F,OS as G,YE as H,mE as I,pn as J,US as K,lS as L,fs as M,PS as N,ul as O,cE as P,aE as Q,si as R,iE as S,Yu as T,fl as U,_E as V,li as W,QE as X,WE as a,Bt as b,Fa as c,$a as d,GE as e,_e as f,Lu as g,HS as h,ut as i,Tt as j,ds as k,$E as l,Hu as m,as as n,Gt as o,Yt as p,wd as q,Pr as r,Wr as s,$t as t,UE as u,Wt as v,Ya as w,hS as x,dl as y,Iu as z};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EventEdit-Dl541TsU.js","assets/index-B1DxYwMH.js","assets/index-CJongqRm.css","assets/forwardRefs-DYLfr3UA.js","assets/forwardRefs-DxCpTRRo.css","assets/EventEdit-CZ57WmFy.css"])))=>i.map(i=>d[i]);
2
+ import{g as ne,c as Hr,a as Xa,m as de,h as Qe,t as Dd,r as ie,I as zi,o as mn,w as Xe,b as Ka,d as Ja,F as we,T as Rd,e as hs,f as Lr,n as gs,i as kd,j as Td,u as $,k as eo,l as ps,s as Ne,p as to,q as O,v as vn,x as Ee,y as ln,z as zn,A as ms,B as X,C as Br,D as At,E as ze,G as je,H as Ct,J as Vr,K as J,L as he,M as y,N as vs,O as zr,P as jt,Q as bn,R as mt,S as xd,U as bs,V as ys,W as Md,X as Ie,Y as Id,Z as Nd,_ as vt,$ as pe,a0 as Od,a1 as an,a2 as Pd,a3 as Hd,a4 as no,a5 as vl,a6 as jn,a7 as Fn,a8 as yt,a9 as Ss,aa as Es,ab as jr,ac as Fr,ad as ce,ae as Ve,af as re,ag as qe,ah as Ue,ai as ro,aj as Xt,ak as io,al as vr,am as Ld,an as so,ao as lo,ap as Bd,aq as ji,ar as Pt,as as ao,at as oo,au as fe,av as Vd,aw as zd,ax as jd,ay as nt,az as Fd,aA as cr,aB as Be,aC as Ud,aD as bl,aE as $d,aF as Wd,aG as Gd,aH as Yd,aI as co,aJ as qd,aK as Qd,aL as Zd,aM as Xd,aN as Kd}from"./index-B1DxYwMH.js";import{d as on,e as cn,m as ve,a as ot,u as Jd,V as ef,b as ws,c as As,f as Ur,g as Cs,h as _s,i as $r,j as yn,k as Sn,l as Se,n as uo,o as fo,p as br,q as ho,r as Xn,s as tf,t as yl,v as nf,w as rf,x as sf,y as Sl}from"./forwardRefs-DYLfr3UA.js";function Wr(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ne()({name:n??Hr(Xa(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...de()},setup(r,i){let{slots:s}=i;return()=>{var l;return Qe(r.tag,{class:[t,r.class],style:r.style},(l=s.default)==null?void 0:l.call(s))}}})}function Fi(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=Dd(),r=ie();if(zi){const i=new ResizeObserver(s=>{t==null||t(s,i),s.length&&(e==="content"?r.value=s[0].contentRect:r.value=s[0].target.getBoundingClientRect())});mn(()=>{i.disconnect()}),Xe(()=>n.el,(s,l)=>{l&&(i.unobserve(l),r.value=void 0),s&&i.observe(s)},{flush:"post"})}return{resizeRef:n,contentRect:Ka(r)}}var Gr,F,go,po,un,Ot,El,mo,vo,yr={},bo=[],lf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ht(t,e){for(var n in e)t[n]=e[n];return t}function yo(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?Gr.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 ur(t,l,r,i,null)}function ur(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??++go};return i==null&&F.vnode!=null&&F.vnode(s),s}function Re(){return{current:null}}function se(t){return t.children}function af(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||Sr(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]||Sr(t,s,e[s],n[s],r)}function wl(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||lf.test(e)?n:n+"px"}function Sr(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||wl(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||wl(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?Cl:Al,s):t.removeEventListener(e,s?Cl:Al,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 Al(t){un=!0;try{return this.l[t.type+!1](F.event?F.event(t):t)}finally{un=!1}}function Cl(t){un=!0;try{return this.l[t.type+!0](F.event?F.event(t):t)}finally{un=!1}}function Pe(t,e){this.props=t,this.context=e}function xn(t,e){if(e==null)return t.__?xn(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"?xn(t):null}function So(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 So(t)}}function of(t){un?setTimeout(t):mo(t)}function Ui(t){(!t.__d&&(t.__d=!0)&&Ot.push(t)&&!Er.__r++||El!==F.debounceRendering)&&((El=F.debounceRendering)||of)(Er)}function Er(){var t,e,n,r,i,s,l,a;for(Ot.sort(function(o,c){return o.__v.__b-c.__v.__b});t=Ot.shift();)t.__d&&(e=Ot.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=ht({},s)).__v=s.__v+1,Ds(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??xn(s),s.__h),_o(r,s),s.__e!=l&&So(s)),Ot.length>e&&Ot.sort(function(o,c){return o.__v.__b-c.__v.__b}));Er.__r=0}function Eo(t,e,n,r,i,s,l,a,o,c){var u,f,h,d,g,m,p,b=r&&r.__k||bo,w=b.length;for(n.__k=[],u=0;u<e.length;u++)if((d=n.__k[u]=(d=e[u])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?ur(null,d,null,null,d):Array.isArray(d)?ur(se,{children:d},null,null,null):d.__b>0?ur(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(h=b[u])===null||h&&d.key==h.key&&d.type===h.type)b[u]=void 0;else for(f=0;f<w;f++){if((h=b[f])&&d.key==h.key&&d.type===h.type){b[f]=void 0;break}h=null}Ds(t,d,h=h||yr,i,s,l,a,o,c),g=d.__e,(f=d.ref)&&h.ref!=f&&(p||(p=[]),h.ref&&p.push(h.ref,null,d),p.push(f,d.__c||g,d)),g!=null?(m==null&&(m=g),typeof d.type=="function"&&d.__k===h.__k?d.__d=o=wo(d,o,t):o=Ao(t,d,h,b,g,o),typeof n.type=="function"&&(n.__d=o)):o&&h.__e==o&&o.parentNode!=t&&(o=xn(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=Co(r).nextSibling),Ro(b[u],b[u]));if(p)for(u=0;u<p.length;u++)Do(p[u],p[++u],p[++u])}function wo(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"?wo(r,e,n):Ao(n,r,r,i,r.__e,e));return e}function wr(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){wr(n,e)}):e.push(t)),e}function Ao(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 Co(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=Co(n)))return r}return null}function Ds(t,e,n,r,i,s,l,a,o){var c,u,f,h,d,g,m,p,b,w,D,A,k,_,S,C=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=F.__b)&&c(e);try{e:if(typeof C=="function"){if(p=e.props,b=(c=C.contextType)&&r[c.__c],w=c?b?b.props.value:c.__:r,n.__c?m=(u=e.__c=n.__c).__=u.__E:("prototype"in C&&C.prototype.render?e.__c=u=new C(p,w):(e.__c=u=new Pe(p,w),u.constructor=C,u.render=uf),b&&b.sub(u),u.props=p,u.state||(u.state={}),u.context=w,u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),C.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ht({},u.__s)),ht(u.__s,C.getDerivedStateFromProps(p,u.__s))),h=u.props,d=u.state,u.__v=e,f)C.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C.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(B){B&&(B.__=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,d,g)})}if(u.context=w,u.props=p,u.__P=t,A=F.__r,k=0,"prototype"in C&&C.prototype.render){for(u.state=u.__s,u.__d=!1,A&&A(e),c=u.render(u.props,u.state,u.context),_=0;_<u._sb.length;_++)u.__h.push(u._sb[_]);u._sb=[]}else do u.__d=!1,A&&A(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,u.getChildContext!=null&&(r=ht(ht({},r),u.getChildContext())),f||u.getSnapshotBeforeUpdate==null||(g=u.getSnapshotBeforeUpdate(h,d)),S=c!=null&&c.type===se&&c.key==null?c.props.children:c,Eo(t,Array.isArray(S)?S:[S],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=cf(n.__e,e,n,r,i,s,l,o);(c=F.diffed)&&c(e)}catch(B){e.__v=null,(o||s!=null)&&(e.__e=a,e.__h=!!o,s[s.indexOf(a)]=null),F.__e(B,e,n)}}function _o(t,e){F.__c&&F.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){F.__e(r,n.__v)}})}function cf(t,e,n,r,i,s,l,a){var o,c,u,f=n.props,h=e.props,d=e.type,g=0;if(d==="svg"&&(i=!0),s!=null){for(;g<s.length;g++)if((o=s[g])&&"setAttribute"in o==!!d&&(d?o.localName===d:o.nodeType===3)){t=o,s[g]=null;break}}if(t==null){if(d===null)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),s=null,a=!1}if(d===null)f===h||a&&t.data===h||(t.data=h);else{if(s=s&&Gr.call(t.childNodes),c=(f=n.props||yr).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!a){if(s!=null)for(f={},g=0;g<t.attributes.length;g++)f[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(af(t,h,f,i,a),u)e.__k=[];else if(g=e.props.children,Eo(t,Array.isArray(g)?g:[g],e,n,r,i&&d!=="foreignObject",s,l,s?s[0]:n.__k&&xn(n,0),a),s!=null)for(g=s.length;g--;)s[g]!=null&&yo(s[g]);a||("value"in h&&(g=h.value)!==void 0&&(g!==t.value||d==="progress"&&!g||d==="option"&&g!==f.value)&&Sr(t,"value",g,f.value,!1),"checked"in h&&(g=h.checked)!==void 0&&g!==t.checked&&Sr(t,"checked",g,f.checked,!1))}return t}function Do(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){F.__e(r,n)}}function Ro(t,e,n){var r,i;if(F.unmount&&F.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Do(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){F.__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]&&Ro(r[i],e,n||typeof t.type!="function");n||t.__e==null||yo(t.__e),t.__=t.__e=t.__d=void 0}function uf(t,e,n){return this.constructor(t,n)}function Mn(t,e,n){var r,i,s;F.__&&F.__(t,e),i=(r=typeof n=="function")?null:e.__k,s=[],Ds(e,t=(!r&&n||e).__k=v(se,null,[t]),i||yr,yr,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?Gr.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),_o(s,t)}function df(t,e){var n={__c:e="__cC"+vo++,__: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,Ui(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}Gr=bo.slice,F={__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}},go=0,po=function(t){return t!=null&&t.constructor===void 0},un=!1,Pe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ht({},this.state),typeof t=="function"&&(t=t(ht({},n),this.props)),t&&ht(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ui(this))},Pe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ui(this))},Pe.prototype.render=se,Ot=[],mo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Er.__r=0,vo=0;var Ye,ai,_l,ko=[],oi=[],Dl=F.__b,Rl=F.__r,kl=F.diffed,Tl=F.__c,xl=F.unmount;function ff(){for(var t;t=ko.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(dr),t.__H.__h.forEach($i),t.__H.__h=[]}catch(e){t.__H.__h=[],F.__e(e,t.__v)}}F.__b=function(t){Ye=null,Dl&&Dl(t)},F.__r=function(t){Rl&&Rl(t);var e=(Ye=t.__c).__H;e&&(ai===Ye?(e.__h=[],Ye.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=oi,n.__N=n.i=void 0})):(e.__h.forEach(dr),e.__h.forEach($i),e.__h=[])),ai=Ye},F.diffed=function(t){kl&&kl(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ko.push(e)!==1&&_l===F.requestAnimationFrame||((_l=F.requestAnimationFrame)||hf)(ff)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==oi&&(n.__=n.__V),n.i=void 0,n.__V=oi})),ai=Ye=null},F.__c=function(t,e){e.some(function(n){try{n.__h.forEach(dr),n.__h=n.__h.filter(function(r){return!r.__||$i(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],F.__e(r,n.__v)}}),Tl&&Tl(t,e)},F.unmount=function(t){xl&&xl(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{dr(r)}catch(i){e=i}}),n.__H=void 0,e&&F.__e(e,n.__v))};var Ml=typeof requestAnimationFrame=="function";function hf(t){var e,n=function(){clearTimeout(r),Ml&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Ml&&(e=requestAnimationFrame(n))}function dr(t){var e=Ye,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Ye=e}function $i(t){var e=Ye;t.__c=t.__(),Ye=e}function gf(t,e){for(var n in e)t[n]=e[n];return t}function Il(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 Nl(t){this.props=t}(Nl.prototype=new Pe).isPureReactComponent=!0,Nl.prototype.shouldComponentUpdate=function(t,e){return Il(this.props,t)||Il(this.state,e)};var Ol=F.__b;F.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ol&&Ol(t)};var pf=F.__e;F.__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)}pf(t,e,n,r)};var Pl=F.unmount;function To(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=gf({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return To(r,e,n)})),t}function xo(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return xo(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 ci(){this.__u=0,this.t=null,this.__b=null}function Mo(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Kn(){this.u=null,this.o=null}F.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Pl&&Pl(t)},(ci.prototype=new Pe).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Mo(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]=xo(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)},ci.prototype.componentWillUnmount=function(){this.t=[]},ci.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]=To(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&v(se,null,t.fallback);return i&&(i.__h=null),[v(se,null,e.__a?null:t.children),i]};var Hl=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 mf(t){return this.getChildContext=function(){return t.context},t.children}function vf(t){var e=this,n=t.i;e.componentWillUnmount=function(){Mn(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)}}),Mn(v(mf,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function bf(t,e){var n=v(vf,{__v:t,i:e});return n.containerInfo=e,n}(Kn.prototype=new Pe).__a=function(t){var e=this,n=Mo(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),Hl(e,t,r)):i()};n?n(s):s()}},Kn.prototype.render=function(t){this.u=null,this.o=new Map;var e=wr(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},Kn.prototype.componentDidUpdate=Kn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Hl(t,n,e)})};var yf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Sf=/^(?: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]/,Ef=typeof document<"u",wf=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Pe.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ll=F.event;function Af(){}function Cf(){return this.cancelBubble}function _f(){return this.defaultPrevented}F.event=function(t){return Ll&&(t=Ll(t)),t.persist=Af,t.isPropagationStopped=Cf,t.isDefaultPrevented=_f,t.nativeEvent=t};var Bl={configurable:!0,get:function(){return this.class}},Vl=F.vnode;F.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];Ef&&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)&&!wf(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&&Sf.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=wr(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=wr(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=yf,Vl&&Vl(t)};var zl=F.__r;F.__r=function(t){zl&&zl(t),t.__c};const Io=[],Wi=new Map;function Yr(t){Io.push(t),Wi.forEach(e=>{Oo(e,t)})}function Df(t){t.isConnected&&t.getRootNode&&No(t.getRootNode())}function No(t){let e=Wi.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=kf();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)}Wi.set(t,e),Rf(e)}}function Rf(t){for(const e of Io)Oo(t,e)}function Oo(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 ui;function kf(){return ui===void 0&&(ui=Tf()),ui}function Tf(){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"&&No(document);var xf=':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)}';Yr(xf);class Rs{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 ks(t){t.parentNode&&t.parentNode.removeChild(t)}function Ae(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Mf(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Mf(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function If(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 Nf=/(top|left|right|bottom|width|height)$/i;function Dn(t,e){for(let n in e)Po(t,n,e[n])}function Po(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Nf.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Ho(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 jl=0;function bt(){return jl+=1,"fc-dom-"+jl}function qr(t){t.preventDefault()}function Of(t,e){return n=>{let r=Ae(n.target,t);r&&e.call(r,n,r)}}function Lo(t,e,n,r){let i=Of(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function Pf(t,e,n,r){let i;return Lo(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 Fl=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Hf(t,e){let n=r=>{e(r),Fl.forEach(i=>{t.removeEventListener(i,n)})};Fl.forEach(r=>{t.addEventListener(r,n)})}function Bo(t){return Object.assign({onClick:t},Vo(t))}function Vo(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Ul=0;function Ft(){return Ul+=1,String(Ul)}function Ts(){document.body.classList.add("fc-not-allowed")}function xs(){document.body.classList.remove("fc-not-allowed")}function Lf(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",qr)}function Bf(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",qr)}function Vf(t){t.addEventListener("contextmenu",qr)}function zf(t){t.removeEventListener("contextmenu",qr)}function jf(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 Ff(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):$f(t[n.field],e[n.field])*(n.order||1)}function $f(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 en(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Rn(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Wf(t,e){return t-e}function fr(t){return t%1===0}function Gf(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 $l=["years","months","days","milliseconds"],Yf=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function K(t,e){return typeof t=="string"?qf(t):typeof t=="object"&&t?Wl(t):typeof t=="number"?Wl({[e||"milliseconds"]:t}):null}function qf(t){let e=Yf.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 Wl(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 Qf(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Gi(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Zf(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Xf(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function Kf(t){return tn(t)/365}function Jf(t){return tn(t)/30}function tn(t){return $e(t)/864e5}function $e(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Ms(t,e){let n=null;for(let r=0;r<$l.length;r+=1){let i=$l[r];if(e[i]){let s=t[i]/e[i];if(!fr(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function Yi(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 St(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 eh=["sun","mon","tue","wed","thu","fri","sat"];function Gl(t,e){let n=gt(t);return n[2]+=e*7,xe(n)}function ye(t,e){let n=gt(t);return n[2]+=e,xe(n)}function Et(t,e){let n=gt(t);return n[6]+=e,xe(n)}function th(t,e){return _t(t,e)/7}function _t(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function nh(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function rh(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function ih(t,e){return(e.valueOf()-t.valueOf())/1e3}function sh(t,e){let n=le(t),r=le(e);return{years:0,months:0,days:Math.round(_t(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function lh(t,e){let n=Ar(t,e);return n!==null&&n%7===0?n/7:null}function Ar(t,e){return pt(t)===pt(e)?Math.round(_t(t,e)):null}function le(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function ah(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function oh(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function ch(t){return xe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function uh(t,e,n){let r=t.getUTCFullYear(),i=di(t,r,e,n);if(i<1)return di(t,r-1,e,n);let s=di(t,r+1,e,n);return s>=1?Math.min(i,s):i}function di(t,e,n,r){let i=xe([e,0,1+dh(e,n,r)]),s=le(t),l=Math.round(_t(i,s));return Math.floor(l/7)+1}function dh(t,e,n){let r=7+e-n;return-((7+xe([t,0,r]).getUTCDay()-e)%7)+r-1}function Yl(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function ql(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 gt(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 zo(t){return!isNaN(t.valueOf())}function pt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function jo(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",Is(e,!0)))),r}function Un(t){return t.toISOString().replace(/T.*$/,"")}function fh(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function hh(t){return en(t.getUTCHours(),2)+":"+en(t.getUTCMinutes(),2)+":"+en(t.getUTCSeconds(),2)}function Is(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+en(i,2)}:${en(s,2)}`:`GMT${n}${i}${s?`:${en(s,2)}`:""}`}function j(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!St(r,s)){let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function hr(t,e,n){let r,i;return s=>(r?Ze(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const Ql={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Cr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Jn=/\s*([ap])\.?m\.?/i,gh=/,/g,ph=/\s+/g,mh=/\u200e/g,vh=/UTC|GMT/;class bh{constructor(e){let n={},r={},i=0;for(let s in e)s in Ql?(r[s]=e[s],i=Math.max(Ql[s],i)):(n[s]=e[s],s in Cr&&(i=Math.max(Cr[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=j(Zl)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,a=Ch(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 f=_h(s,o),h=Zl(f,l,r),d=h(e),g=h(n),m=Dh(c,d,u,g),p=l.separator||i||r.defaultSeparator||"";return m?m.before+d+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 Zl(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>Is(i.timeZoneOffset):r===0&&e.week?i=>Ah(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):yh(t,e,n)}function yh(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Sh(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 Eh(o,s,t,e,n)}}function Sh(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 Eh(t,e,n,r,i){return t=t.replace(mh,""),n.timeZoneName==="short"&&(t=wh(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Is(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(gh,"").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(ph," "),t=t.trim(),t}function wh(t,e){let n=!1;return t=t.replace(vh,()=>(n=!0,e)),n||(t+=` ${e}`),t}function Ah(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 Ch(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:pt(t)!==pt(e)?1:0}function _h(t,e){let n={};for(let r in t)(!(r in Cr)||Cr[r]<=e)&&(n[r]=t[r]);return n}function Dh(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 f=n.substr(o);if(l===u&&a===f)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 _r(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 Rh{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,_r(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,_r(e,n,r,i))}}class kh{constructor(e){this.func=e}format(e,n,r){return this.func(_r(e,null,n,r))}formatRange(e,n,r,i){return this.func(_r(e,n,r,i))}}function ae(t){return typeof t=="object"&&t?new bh(t):typeof t=="string"?new Rh(t):typeof t=="function"?new kh(t):null}const Kl={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:ae,slotDuration:K,snapDuration:K,headerToolbar:E,footerToolbar:E,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ae,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:jf,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:E,contentHeight:E,direction:String,weekNumberFormat:ae,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:ae,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:ae,handleCustomRendering:E,customRenderingMetaMap:E,customRenderingReplaces:Boolean},kn={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"}},Jl={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},ea={buttonText:E,buttonHints:E,views:E,plugins:E,initialEvents:E,events:E,eventSources:E},It={headerToolbar:Nt,footerToolbar:Nt,buttonText:Nt,buttonHints:Nt,buttonIcons:Nt,dateIncrement:Nt,plugins:er,events:er,eventSources:er,resources:er};function Nt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Ze(t,e):t===e}function er(t,e){return Array.isArray(t)&&Array.isArray(e)?St(t,e):t===e}const Th={type:String,component:E,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:E,usesMinMaxTime:Boolean,classNames:E,content:E,didMount:E,willUnmount:E};function fi(t){return Os(t,It)}function Ns(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:Dr}=Object.prototype;function Os(t,e){let n={};if(e){for(let r in e)if(e[r]===Nt){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]=Os(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 Vt(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 Fo(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 Ze(t,e){if(t===e)return!0;for(let n in t)if(Dr.call(t,n)&&!(n in e))return!1;for(let n in e)if(Dr.call(e,n)&&t[n]!==e[n])return!1;return!0}const xh=/^on[A-Z]/;function Mh(t,e){const n=qi(t,e);for(let r of n)if(!xh.test(r))return!1;return!0}function qi(t,e){let n=[];for(let r in t)Dr.call(t,r)&&(r in e||n.push(r));for(let r in e)Dr.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function hi(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Ih(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Ih(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function Nh(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 Uo={};function Oh(t,e){Uo[t]=e}function Ph(t){return new Uo[t]}class Hh{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return xe(e)}markerToArray(e){return gt(e)}}Oh("gregory",Hh);const Lh=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Bh(t){let e=Lh.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(zo(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 Vh{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=Ph(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(Yl(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||!zo(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=Bh(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 pt(e)===pt(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 pt(e)===pt(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=lh(e,n),r!==null?{unit:"week",value:r}:(r=Ar(e,n),r!==null?{unit:"day",value:r}:(r=nh(e,n),fr(r)?{unit:"hour",value:r}:(r=rh(e,n),fr(r)?{unit:"minute",value:r}:(r=ih(e,n),fr(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/Kf(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Jf(r):r.days&&(i=Ar(e,n),i!==null)?i/tn(r):(n.valueOf()-e.valueOf())/$e(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?le(e):n==="hour"?ah(e):n==="minute"?oh(e):n==="second"?ch(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)):uh(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=Et(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)),jo(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?xe(Yl(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):xe(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-ql(gt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(gt(e)):null}toDate(e,n){return this.timeZone==="local"?ql(gt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(gt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class $n{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)}`:""}}$n.prototype.classes={};$n.prototype.iconClasses={};$n.prototype.baseIconClass="";$n.prototype.iconOverridePrefix="";function Rr(t){t();let e=F.debounceRendering,n=[];function r(i){n.push(i)}for(F.debounceRendering=r,Mn(v(zh,{}),document.createElement("div"));n.length;)n.shift()();F.debounceRendering=e}class zh extends Pe{render(){return v("div",{})}componentDidMount(){this.setState({})}}function $o(t){let e=df(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 jh{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 ct=$o({});function Fh(t,e,n,r,i,s,l,a,o,c,u,f,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(d){c.on("_resize",d)},removeResizeHandler(d){c.off("_resize",d)},createScrollResponder(d){return new jh(d,c,K(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class Ut extends Pe{shouldComponentUpdate(e,n){return this.debug&&console.log(qi(e,this.props),qi(n,this.state)),!hi(this.props,e,this.propEquality)||!hi(this.state,n,this.stateEquality)}safeSetState(e){hi(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ut.addPropsEquality=Uh;Ut.addStateEquality=$h;Ut.contextType=ct;Ut.prototype.propEquality={};Ut.prototype.stateEquality={};class ee extends Ut{}ee.contextType=ct;function Uh(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function $h(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 Hs extends ee{constructor(){super(...arguments),this.id=Ft(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Qi(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=Wo(e,[],this.handleEl);let o=!1,c,u=[],f;if(i!=null){const h=typeof i=="function"?i(l,v):i;if(h===!0)o=!0;else{const d=h&&typeof h=="object";d&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:d&&"domNodes"in h?u=Array.prototype.slice.call(h.domNodes):(d?po(h):typeof h!="function")?c=h:f=h}}else o=!Qi(e.generatorName,r);return o&&s&&(c=s(l)),this.queuedDomNodes=u,this.currentGeneratorMeta=f,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(Wh)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!St(e,n)){n.forEach(ks);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}Hs.addPropsEquality({elClasses:St,elStyle:Ze,elAttrs:Mh,renderProps:Ze});function Qi(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Wo(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 Wh(t){return!!t}const Go=$o(0);class De extends Pe{constructor(){super(...arguments),this.InnerContent=Gh.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=Yh(e.classNameGenerator,e.renderProps);if(e.children){const r=Wo(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?v(e.elTag,r,i):i}else return v(Hs,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}))}}De.contextType=Go;function Gh(t,e){const n=t.props;return v(Hs,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Yh(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class In extends ee{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return v(De,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Yo(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Yo(t){return[`fc-${t.type}-view`,"fc-view"]}function qh(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 ta(t,e){let n=[],{start:r}=e,i,s;for(t.sort(Qh),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 Qh(t,e){return t.start.valueOf()-e.start.valueOf()}function wt(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 Zh(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 Ls(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Qr(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function it(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Xh(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 qo(t){let e=Math.floor(_t(t.start,t.end))||1,n=le(t.start),r=ye(n,e);return{start:n,end:r}}function Bs(t,e=K(0)){let n=null,r=null;if(t.end){r=le(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=$e(e)&&(r=ye(r,1))}return t.start&&(n=le(t.start),r&&r<=n&&(r=ye(n,1))),{start:n,end:r}}function Kh(t){let e=Bs(t);return _t(e.start,e.end)>1}function Kt(t,e,n,r){return r==="year"?K(n.diffWholeYears(t,e),"year"):r==="month"?K(n.diffWholeMonths(t,e),"month"):sh(t,e)}function Jh(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function eg(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):Wn(t.now,e)}function Wn(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Qo{constructor(e){this.props=e,this.nowDate=Wn(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=Xh(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=wt(c,l.range)),c=this.adjustActiveRange(c),c=wt(c,s),u=Ls(l.range,s),it(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=Yi(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&&(tn(i)<0&&(l=le(l),l=n.add(l,i)),tn(s)>1&&(a=le(a),a=ye(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:f}=this.props;f&&$e(f)<$e(r)?l=Yi(f).unit:l=i}tn(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=le(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=le(a),a=this.skipHiddenDays(a,n),o=a;do o=ye(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=qh(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=ye(e,n);return e}}function Vs(t,e,n,r){return{instanceId:Ft(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function tg(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 zt(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:a}=t;a=Vt(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 f=ng(c,u,e,r,i.recurringTypes);for(let h of f){let d=Vs(o,{start:h,end:r.add(h,u)});a[d.instanceId]=d}}}return{defs:l,instances:a}}function ng(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(le)),l}const gr={id:String,groupId:String,title:String,url:String,interactive:Boolean},Zo={start:E,end:E,date:E,allDay:Boolean},rg=Object.assign(Object.assign(Object.assign({},gr),Zo),{extendedProps:E});function Xo(t,e,n,r,i=zs(n),s,l){let{refined:a,extra:o}=Ko(t,n,i),c=sg(e,n),u=tg(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let h=Zi(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 f=ig(a,c,n,r);if(f){let h=Zi(a,o,e?e.sourceId:"",f.allDay,f.hasEnd,n,s),d=Vs(h.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(d.instanceId=l[h.publicId]),{def:h,instance:d}}return null}function Ko(t,e,n=zs(e)){return Ns(t,n)}function zs(t){return Object.assign(Object.assign(Object.assign({},kr),rg),t.pluginHooks.eventRefiners)}function Zi(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]:"")||Ft(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:Tr(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 ig(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=le(l)),o&&(c=o.marker,i&&(c=le(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 sg(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function Nn(t,e,n,r,i,s){let l=He(),a=zs(n);for(let o of t){let c=Xo(o,e,n,r,a,i,s);c&&Xi(c,l)}return l}function Xi(t,e=He()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function js(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Zr(t,s=>lg(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return He()}function lg(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function He(){return{defs:{},instances:{}}}function Fs(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Zr(t,e){let n=Vt(t.defs,e),r=Vt(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function ag(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 og(t,e){return Array.isArray(t)?Nn(t,null,e,!0):typeof t=="object"&&t?Nn([t],null,e,!0):t!=null?String(t):null}function na(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const kr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:E,overlap:E,allow:E,className:na,classNames:na,color:String,backgroundColor:String,borderColor:String,textColor:String},cg={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Tr(t,e){let n=og(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 Jo(t){return t.reduce(ug,cg)}function ug(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 dg={id:String,defaultAllDay:Boolean,url:String,format:String,events:E,eventDataTransform:E,success:E,failure:E};function ec(t,e,n=tc(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}=Ns(r,n),l=fg(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:Ft(),sourceDefId:l.sourceDefId,meta:l.meta,ui:Tr(i,e),extendedProps:s}}return null}function tc(t){return Object.assign(Object.assign(Object.assign({},kr),dg),t.pluginHooks.eventSourceRefiners)}function fg(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 hg(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return gg(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return pg(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return mg(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Fs(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?zt(t,r.activeRange,i):t;case"REMOVE_EVENTS":return ag(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return rc(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Zr(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return He();default:return t}}function gg(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=Nn(nc(i,e,s),e,s);return r&&(l=zt(l,r,s)),Fs(rc(t,e.sourceId),l)}return t}function pg(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=bg(t);let a=Nn(nc(n,e,i),e,i,!1,s,l);return zt(a,r,i)}function nc(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=ra(t,i)),r&&(t=ra(t,r)),t}function ra(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 mg(t,e,n,r){return n&&(e=zt(e,n,r)),Fs(t,e)}function ia(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 rc(t,e){return Zr(t,n=>n.sourceId!==e)}function vg(t,e){return{defs:t.defs,instances:Vt(t.instances,n=>!e[n.instanceId])}}function bg(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 Xr{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){yg(this.handlers,e,n)}off(e,n){Sg(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 yg(t,e,n){(t[e]||(t[e]=[])).push(n)}function Sg(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const Eg={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function wg(t,e){return Nn(Ag(t),null,e)}function Ag(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({},Eg),n)),e}function ic(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Us(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Cg(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Us(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,Bg(t,e.dateEnv)),n}function sa(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=le(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function $s(t,e,n,r){let i=xr(t.defs,e),s=He();for(let l in t.defs){let a=t.defs[l];s.defs[l]=_g(a,i[l],n,r)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=Dg(a,o,i[a.defId],n,r)}return s}function _g(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 Dg(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=qo(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:sa(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:le(o.range.start),end:le(o.range.end)}),o.range.end<o.range.start&&(o.range.end=sa(e.allDay,o.range.start,i)),o}class Zt{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 ue{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in Zo)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=gr[e](n),this.mutate({standardProps:{publicId:n}});else if(e in gr)n=gr[e](n),this.mutate({standardProps:{[e]:n}});else if(e in kr){let r=kr[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=Kt(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=Kt(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=qo(o));let c=Kt(o.start,l,i,r.granularity);if(a){let u=Kt(o.end,a,i,r.granularity);Qf(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=ae(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=js(s,n.instanceId);l=$s(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let o=new ue(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:Ht(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=sc(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 Zt(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 sc(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Ht(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 ue(e,c,o))}return s}function Ki(t,e,n,r){let i={},s={},l={},a=[],o=[],c=xr(t.defs,e);for(let u in t.defs){let f=t.defs[u];c[f.defId].display==="inverse-background"&&(f.groupId?(i[f.groupId]=[],l[f.groupId]||(l[f.groupId]=f)):s[u]=[])}for(let u in t.instances){let f=t.instances[u],h=t.defs[f.defId],d=c[h.defId],g=f.range,m=!h.allDay&&r?Bs(g,r):g,p=wt(m,n);p&&(d.display==="inverse-background"?h.groupId?i[h.groupId].push(p):s[f.defId].push(p):d.display!=="none"&&(d.display==="background"?a:o).push({def:h,ui:d,instance:f,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 f=i[u],h=ta(f,n);for(let d of h){let g=l[u],m=c[g.defId];a.push({def:g,ui:m,instance:null,range:d,isStart:!1,isEnd:!1})}}for(let u in s){let f=s[u],h=ta(f,n);for(let d of h)a.push({def:t.defs[u],ui:c[u],instance:null,range:d,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function Rg(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function la(t,e){t.fcSeg=e}function dn(t){return t.fcSeg||t.parentNode.fcSeg||null}function xr(t,e){return lt(t,n=>lc(n,e))}function lc(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Jo(n)}function Ws(t,e){let n=t.map(kg);return n.sort((r,i)=>Ff(r,i,e)),n.map(r=>r._seg)}function kg(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 Tg(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 xg(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Mg(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Tn(t,e,n,r,i,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:c,displayEventEnd:u}=o,f=t.eventRange.def,h=t.eventRange.instance;c==null&&(c=r!==!1),u==null&&(u=i!==!1);let d=h.range.start,g=h.range.end,m=s||t.start||t.eventRange.range.start,p=l||t.end||t.eventRange.range.end,b=le(d).valueOf()===le(m).valueOf(),w=le(Et(g,-1)).valueOf()===le(Et(p,-1)).valueOf();return c&&!f.allDay&&(b||w)?(m=b?d:m,p=w?g:p,u&&f.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 st(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&it(e,r.start)}}function Ig(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 ac(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Gs(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?Vo(o=>{s.trigger("eventClick",{el:o.target,event:new ue(e,n,r),jsEvent:o,view:e.viewApi})}):{}}const Ng={start:E,end:E,allDay:Boolean};function Og(t,e,n){let r=Pg(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 Pg(t,e){let{refined:n,extra:r}=Ns(t,Ng),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 Hg(t,e){return Zh(t.range,e.range)&&t.allDay===e.allDay&&Lg(t,e)}function Lg(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 Bg(t,e){return Object.assign(Object.assign({},cc(t.range,e,t.allDay)),{allDay:t.allDay})}function oc(t,e,n){return Object.assign(Object.assign({},cc(t,e,n)),{timeZone:e.timeZone})}function cc(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 Vg(t,e,n){let r=Ko({editable:!1},n),i=Zi(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:lc(i,e),instance:Vs(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function zg(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 aa extends Error{constructor(e,n){super(e),this.response=n}}function jg(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 aa("Failure parsing JSON",i)});throw new aa("Request failed",i)})}let gi;function uc(){return gi==null&&(gi=Fg()),gi}function Fg(){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=()=>{Rr(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Rr(()=>{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 uc()||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 En{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function $g(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Ys(t){return{[t.component.uid]:t}}const Ji={};class Wg{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:Wn(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),ae(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),ae(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=Og(r,i.dateEnv,K({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),ic(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Cg(e,n))}addEvent(e,n){if(e instanceof ue){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Xi({def:l,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Zt)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=Xo(e,i,r,!1);if(s){let l=new ue(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Xi(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:sc(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 ue(n,l,null);for(let a in i){let o=i[a];if(o.defId===l.defId)return new ue(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Ht(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 Zt(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 Zt(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Zt)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=ec(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Zt(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 Gg(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function dc(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 Yg(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 qg(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Qg(t,e){return{left:t.left-e.left,top:t.top-e.top}}const pi=He();class Zg{constructor(){this.getKeysForEventDefs=j(this._getKeysForEventDefs),this.splitDateSelection=j(this._splitDateSpan),this.splitEventStore=j(this._splitEventStore),this.splitIndividualUi=j(this._splitIndividualUi),this.splitEventDrag=j(this._splitInteraction),this.splitEventResize=j(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,f)=>this.eventUiBuilders[f]||j(Xg));for(let u in n){let f=n[u],h=l[u]||pi,d=this.eventUiBuilders[u];c[u]={businessHours:f.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:h,eventUiBases:d(e.eventUiBases[""],f.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]=He()),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]||pi,mutatedEvents:s[a]||pi,isEvent:e.isEvent})};for(let a in r)l(a);for(let a in s)l(a)}return n}}function Xg(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":Jo(r)};return n&&Object.assign(i,n),i}function qs(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!it(r.activeRange,t)),isOther:!!(r&&!it(r.currentRange,t)),isToday:!!(e&&it(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function Kr(t,e){let n=["fc-day",`fc-day-${eh[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 Kg=ae({year:"numeric",month:"long",day:"numeric"}),Jg=ae({week:"long"});function fn(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let a=i.format(e,n==="week"?Jg:Kg);if(s.navLinks){let o=i.toDate(e);const c=u=>{let f=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof f=="function"?f.call(l,i.toDate(e),u):(typeof f=="string"&&(n=f),l.zoomTo(e,n))};return Object.assign({title:Rn(s.navLinkHint,[a,o],a),"data-navlink":""},r?Bo(c):{onClick:c})}return{"aria-label":a}}let mi=null;function ep(){return mi===null&&(mi=tp()),mi}function tp(){let t=document.createElement("div");Dn(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 ks(t),n}let vi;function np(){return vi||(vi=rp()),vi}function rp(){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=fc(t);return document.body.removeChild(t),e}function fc(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function ip(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=fc(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 ep()&&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 sp(t,e=!1,n){let r=Qs(t),i=ip(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 Qs(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 lp(t){let e=hc(t),n=t.getBoundingClientRect();for(let r of e){let i=dc(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function hc(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 hn{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 tr(this.tops||[],e.tops||[])&&tr(this.bottoms||[],e.bottoms||[])&&tr(this.lefts||[],e.lefts||[])&&tr(this.rights||[],e.rights||[])}}function tr(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 Zs{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 ap extends Zs{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 op extends Zs{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 Ge extends ee{constructor(){super(...arguments),this.uid=Ft()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Ae(e,".fc-event-mirror")}isValidDateDownEl(e){return!Ae(e,".fc-event:not(.fc-bg-event)")&&!Ae(e,".fc-more-link")&&!Ae(e,"a[data-navlink]")&&!Ae(e,".fc-popover")}}class gc{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?(bi(i,n.level,n.levelCoord),bi(r,n.level,[e])):bi(r[n.level],n.lateral,e),this.stackCnts[Lt(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,f=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=ts(p,e.span.start,es),D=w[0]+w[1];for(;(b=p[D])&&b.span.start<e.span.end;){let A=m+this.getEntryThickness(b);A>a&&(a=A,u=b,o=g,c=D),A===a&&(f=Math.max(f,s[Lt(b)]+1)),D+=1}}let h=0;if(u)for(h=o+1;h<l&&n[h]<a;)h+=1;let d=-1;return h<l&&n[h]===a&&(d=ts(r[h],e.span.end,es)[0]),{touchingLevel:o,touchingLateral:c,touchingEntry:u,stackCnt:f,levelCoord:a,level:h,lateral:d}}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 es(t){return t.span.end}function Lt(t){return t.index+":"+t.span.start}function cp(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:up(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function up(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 bi(t,e,n){t.splice(e,0,n)}function ts(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 dp{constructor(e,n){this.emitter=new Xr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Ks={};function fp(t,e){return!t||e>10?ae({weekday:"short"}):e>1?ae({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):ae({weekday:"long"})}const pc="fc-col-header-cell";function mc(t){return t.text}class hp extends ee{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=qs(l,s.todayRange,null,a),c=[pc].concat(Kr(o,r)),u=e.format(l,s.dayHeaderFormat),f=!o.isDisabled&&s.colCnt>1?fn(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:u}),o);return v(De,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:Un(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:mc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},d=>v("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&v(d,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const gp=ae({weekday:"long"});class pp extends ee{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=ye(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(De,{elTag:"th",elClasses:[pc,...Kr(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:mc,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,gp)}})))}}class wn extends Pe{constructor(e,n){super(e,n),this.initialNowDate=Wn(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=Et(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:oa(i)},nextState:{nowDate:s,todayRange:oa(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)}}wn.contextType=ct;function oa(t){let e=le(t),n=ye(e,1);return{start:e,end:n}}class vc extends ee{constructor(){super(...arguments),this.createDayHeaderFormatter=j(mp)}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(wn,{unit:"day"},(a,o)=>v("tr",{role:"row"},s&&s("day"),n.map(c=>i?v(hp,{key:c.toISOString(),date:c,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):v(pp,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:l}))))}}function mp(t,e,n){return t||fp(e,n)}class bc{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=ye(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(ye(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(_t(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class yc{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 Sc{constructor(){this.sliceBusinessHours=j(this._sliceBusinessHours),this.sliceDateSelection=j(this._sliceDateSpan),this.sliceEventStore=j(this._sliceEventStore),this.sliceEventDrag=j(this._sliceInteraction),this.sliceEventResize=j(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:Et(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(zt(e,nr(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=Ki(e,n,nr(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=Ki(e.mutatedEvents,n,nr(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=nr(n,!!r),o=wt(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let c=Vg(e,i,s),u=this.sliceRange(e.range,...l);for(let f of u)f.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:ye(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 nr(t,e){let n=t.activeRange;return e?n:{start:Et(n.start,t.slotMinTime.milliseconds),end:Et(n.end,t.slotMaxTime.milliseconds-864e5)}}function Ec(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!Qr(e.validRange,r[i].range))return!1;return wc({eventDrag:t},n)}function vp(t,e,n){return Qr(e.validRange,t.range)?wc({dateSelection:t},n):!1}function wc(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||bp)(r,e)}function bp(t,e,n={},r){return!(t.eventDrag&&!yp(t,e,n,r)||t.dateSelection&&!Sp(t,e,n,r))}function yp(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,c=xr(a,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(c=lt(c,r));let u=vg(t.eventStore,s.affectedEvents.instances),f=u.defs,h=u.instances,d=xr(f,t.eventUiBases);for(let g in o){let m=o[g],p=m.range,b=c[m.defId],w=a[m.defId];if(!Ac(b.constraints,p,u,t.businessHours,e))return!1;let{eventOverlap:D}=e.options,A=typeof D=="function"?D:null;for(let _ in h){let S=h[_];if(Ls(p,S.range)&&(d[S.defId].overlap===!1&&s.isEvent||b.overlap===!1||A&&!A(new ue(e,f[S.defId],S),new ue(e,w,m))))return!1}let k=i.eventStore;for(let _ of b.allows){let S=Object.assign(Object.assign({},n),{range:m.range,allDay:w.allDay}),C=k.defs[w.defId],B=k.instances[g],T;if(C?T=new ue(e,C,B):T=new ue(e,w),!_(Us(S,e),T))return!1}}return!0}function Sp(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)),!Ac(c.constraints,o,i,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,f=typeof u=="function"?u:null;for(let h in l){let d=l[h];if(Ls(o,d.range)&&(c.overlap===!1||f&&!f(new ue(e,s[d.defId],d),null)))return!1}for(let h of c.allows){let d=Object.assign(Object.assign({},n),a);if(!h(Us(d,e),null))return!1}return!0}function Ac(t,e,n,r,i){for(let s of t)if(!wp(Ep(s,e,n,r,i),e))return!1;return!0}function Ep(t,e,n,r,i){return t==="businessHours"?yi(zt(r,e,i)):typeof t=="string"?yi(Zr(n,s=>s.groupId===t)):typeof t=="object"&&t?yi(zt(t,e,i)):[]}function yi(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function wp(t,e){for(let n of t)if(Qr(n,e))return!0;return!1}const rr=/^(visible|hidden)$/;class Cc 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(rr.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(rr.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 rr.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return rr.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class rt{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 Nh(this.currentMap,e,n,r)}getAll(){return Ps(this.currentMap)}}function Ap(t){let e=If(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Gf(r));return Math.ceil(n)}function _c(t,e){return t.liquid&&e.liquid}function Cp(t,e){return e.maxHeight!=null||_c(t,e)}function _p(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 Dp(t,e){return St(t,e,Ze)}function Rp(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"?kp(e):r.width||"",minWidth:r.minWidth||""}}))}return v("colgroup",{},...n)}function kp(t){return t??4}function Tp(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function xp(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Mp(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 ns(t){return v("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Mr(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Dc(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Js extends ee{constructor(){super(...arguments),this.processCols=j(e=>e,Dp),this.renderMicroColGroup=j(Rp),this.scrollerRefs=new rt,this.scrollerElRefs=new rt(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=xp(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=i.length,c=0,u,f=[],h=[],d=[];for(;c<o&&(u=i[c]).type==="header";)f.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";)d.push(this.renderSection(u,l,!0)),c+=1;let g=!uc();const m={role:"rowgroup"};return v("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!g&&f.length)&&v("thead",m,...f),!!(!g&&h.length)&&v("tbody",m,...h),!!(!g&&d.length)&&v("tfoot",m,...d),g&&v("tbody",m,...f,...h,...d))}renderSection(e,n,r){return"outerContent"in e?v(se,{key:e.key},e.outerContent):v("tr",{key:e.key,role:"presentation",className:Mp(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=Cp(s,e),u=_c(s,e),f=s.liquid?l?"scroll":c?"auto":"hidden":"visible",h=e.key,d=_p(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(Cc,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:f,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},d)))}_handleScrollerEl(e,n){let r=Ip(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 Tp(this.props.cols)?Ap(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=np(),{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}}}Js.addStateEquality({scrollerClientWidths:Ze,scrollerClientHeights:Ze});function Ip(t,e){for(let n of t)if(n.key===e)return n;return null}class Jr extends ee{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&la(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 ue(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&Tg(i,n),isStartResizable:!e.disableResizing&&xg(i,n),isEndResizable:!e.disableResizing&&Mg(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(De,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Ig(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&&la(this.el,this.props.seg)}}class Rc 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=Tn(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return v(Jr,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:Gs(i,n),defaultGenerator:Np,timeText:a}),(o,c)=>v(se,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 Np(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(se,null," "))))}const el=t=>v(ct.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return v(De,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Op=ae({day:"numeric"});class tl extends ee{constructor(){super(...arguments),this.refineRenderProps=hr(Pp)}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(De,Object.assign({},e,{elClasses:[...Kr(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Un(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 nl(t){return!!(t.dayCellContent||Qi("dayCellContent",t))}function Pp(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=qs(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:Op):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class kc extends ee{render(){let{props:e}=this,{seg:n}=e;return v(Jr,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Hp,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 Hp(t){let{title:e}=t.event;return e&&v("div",{className:"fc-event-title"},t.event.title)}function Tc(t){return v("div",{className:`fc-${t}`})}const xc=t=>v(ct.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(De,Object.assign({},t,{renderProps:{num:l,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Lp,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function Lp(t){return t.text}const Si=10;class Bp extends ee{constructor(){super(...arguments),this.state={titleId:bt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&at(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Ho(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 bf(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=lp(n);if(s){let l=i.getBoundingClientRect(),a=r?Ae(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,Si),o=Math.min(o,document.documentElement.clientWidth-Si-l.width),o=Math.max(o,Si);let c=i.offsetParent.getBoundingClientRect();Dn(i,{top:a-c.top,left:o-c.left})}}}class Vp extends Ge{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(tl,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(o,c,u)=>v(Bp,{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},nl(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 Mc extends ee{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:bt()},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=ca(n).start;function l(a){let{def:o,instance:c,range:u}=a.eventRange;return{event:new ue(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(ct.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:a}=s,{moreCnt:o}=e,c=ca(e),u=typeof a=="function"?a.call(l,o):`+${o} ${a}`,f=Rn(s.moreLinkHint,[o],u),h={num:o,shortText:`+${o}`,text:u,view:i};return v(se,null,!!e.moreCnt&&v(De,{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),Bo(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||zp,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&v(Vp,{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=Ae(this.linkEl,".fc-view-harness"))}}function zp(t){return t.text}function ca(t){if(t.allDayDate)return{start:t.allDayDate,end:ye(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Ic(e),end:Fp(e)}}function Ic(t){return t.reduce(jp).eventRange.range.start}function jp(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Fp(t){return t.reduce(Up).eventRange.range.end}function Up(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class $p{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 Wp extends $p{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 Gp=[],Nc={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"},Oc=Object.assign(Object.assign({},Nc),{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 Yp(t){let e=t.length>0?t[0].code:"en",n=Gp.concat(t),r={en:Oc};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Pc(t,e){return typeof t=="object"&&!Array.isArray(t)?Hc(t.code,[t.code],t):qp(t,e)}function qp(t,e){let n=[].concat(t||[]),r=Qp(n,e)||Oc;return Hc(t,n,r)}function Qp(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 Hc(t,e,n){let r=Os([Nc,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 Ke(t){return{id:Ft(),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 Zp(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=Kp(r,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function Xp(){let t=[],e=[],n;return(r,i)=>((!n||!St(r,t)||!St(i,e))&&(n=Zp(r,i)),t=r,e=i,n)}function Kp(t,e){return{premiumReleaseDate:Jp(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 Jp(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Dt extends $n{}Dt.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Dt.prototype.baseIconClass="fc-icon";Dt.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"};Dt.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Dt.prototype.iconOverrideOption="buttonIcons";Dt.prototype.iconOverrideCustomButtonOption="icon";Dt.prototype.iconOverridePrefix="fc-icon-";function em(t,e){let n={},r;for(r in t)rs(r,n,t,e);for(r in e)rs(r,n,t,e);return n}function rs(t,e,n,r){if(e[t])return e[t];let i=tm(t,e,n,r);return i&&(e[t]=i),i}function tm(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=rs(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 ua(t){return lt(t,nm)}function nm(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=da(e):n&&!(n.prototype instanceof ee)&&(n=da(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function da(t){return e=>v(ct.Consumer,null,n=>v(De,{elTag:"div",elClasses:Yo(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 rm(t,e,n,r){let i=ua(t),s=ua(e.views),l=em(i,s);return lt(l,a=>im(a,s,e,n,r))}function im(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=sm(s),l)){let h=Yi(l);a=h.unit,h.value===1&&(o=a,c=e[a]?e[a].rawOptions:{})}let u=h=>{let d=h.buttonText||{},g=t.defaults.buttonTextKey;return g!=null&&d[g]!=null?d[g]:d[t.type]!=null?d[t.type]:d[o]!=null?d[o]:null},f=h=>{let d=h.buttonHints||{},g=t.defaults.buttonTextKey;return g!=null&&d[g]!=null?d[g]:d[t.type]!=null?d[t.type]:d[o]!=null?d[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(kn)||t.type,buttonTitleOverride:f(r)||f(n)||t.overrides.buttonHint,buttonTitleDefault:f(i)||t.defaults.buttonHint||f(kn)}}let fa={};function sm(t){let e=JSON.stringify(t),n=fa[e];return n===void 0&&(n=K(t),fa[e]=n),n}function lm(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function am(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function om(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 cm(t,e,n){let r=e?e.activeRange:null;return Bc({},mm(t,n),r,n)}function um(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Bc(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return fm(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Vc(t,i,r):t;case"FETCH_EVENT_SOURCES":return rl(t,e.sourceIds?Fo(e.sourceIds):zc(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return pm(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function dm(t,e,n){let r=e?e.activeRange:null;return rl(t,zc(t,n),r,!0,n)}function Lc(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Bc(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Vc(i,n,r)),Object.assign(Object.assign({},t),i)}function fm(t,e){return Vt(t,n=>n.sourceId!==e)}function Vc(t,e,n){return rl(t,Vt(t,r=>hm(r,e,n)),e,!1,n)}function hm(t,e,n){return jc(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function rl(t,e,n,r,i){let s={};for(let l in t){let a=t[l];e[l]?s[l]=gm(a,n,r,i):s[l]=a}return s}function gm(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=Ft();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 pm(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 zc(t,e){return Vt(t,n=>jc(n,e))}function mm(t,e){let n=tc(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=ec(s,e,n);l&&i.push(l)}return i}function jc(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function vm(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function bm(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function ym(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 Sm(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 Em(t,e,n,r,i){let s=t.headerToolbar?ha(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?ha(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function ha(t,e,n,r,i,s){let l={},a=[],o=!1;for(let c in t){let u=t[c],f=wm(u,e,n,r,i,s);l[c]=f.widgets,a.push(...f.viewsWithButtons),o=o||f.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function wm(t,e,n,r,i,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},f=e.buttonHints||{},h=t?t.split(" "):[],d=[],g=!1;return{widgets:h.map(p=>p.split(",").map(b=>{if(b==="title")return g=!0,{buttonName:b};let w,D,A,k,_,S;if(w=a[b])A=C=>{w.click&&w.click.call(C.target,C,C.target)},(k=r.getCustomButtonIconClass(w))||(k=r.getIconClass(b,l))||(_=w.text),S=w.hint||w.text;else if(D=i[b]){d.push(b),A=()=>{s.changeView(b)},(_=D.buttonTextOverride)||(k=r.getIconClass(b,l))||(_=D.buttonTextDefault);let C=D.buttonTextOverride||D.buttonTextDefault;S=Rn(D.buttonTitleOverride||D.buttonTitleDefault||e.viewHint,[C,b],C)}else if(s[b])if(A=()=>{s[b]()},(_=o[b])||(k=r.getIconClass(b,l))||(_=c[b]),b==="prevYear"||b==="nextYear"){let C=b==="prevYear"?"prev":"next";S=Rn(u[C]||f[C],[c.year||"year","year"],c[b])}else S=C=>Rn(u[b]||f[b],[c[C]||C,C],c[b]);return{buttonName:b,buttonClick:A,buttonIcon:k,buttonText:_,buttonHint:S}})),viewsWithButtons:d,hasTitle:g}}class Am{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 Cm={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const _m=Ke({name:"array-event-source",eventSourceDefs:[Cm]});let Dm={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;zg(i.bind(null,oc(t.range,r)),s=>e({rawEvents:s}),n)}};const Rm=Ke({name:"func-event-source",eventSourceDefs:[Dm]}),km={method:String,extraParams:E,startParam:String,endParam:String,timeZoneParam:String};let Tm={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=Mm(r,t.range,t.context);jg(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const xm=Ke({name:"json-event-source",eventSourceRefiners:km,eventSourceDefs:[Tm]});function Mm(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 Im={daysOfWeek:E,startTime:K,endTime:K,duration:K,startRecur:E,endRecur:E};let Nm={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=Zf(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=wt(e,{start:t.startRecur,end:t.endRecur});return r?Pm(t.daysOfWeek,t.startTime,r,n):[]}};const Om=Ke({name:"simple-recurring-event",recurringTypes:[Nm],eventRefiners:Im});function Pm(t,e,n,r){let i=t?Fo(t):null,s=le(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=ye(s,1)}return a}const Hm=Ke({name:"change-handler",optionChangeHandlers:{events(t,e){ga([t],e)},eventSources:ga}});function ga(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 Lm(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},oc(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Bm(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Ht(t,e))}const Vm=[_m,Rm,xm,Om,Hm,Ke({name:"misc",isLoadingFuncs:[t=>Lc(t.eventSources)],propSetHandlers:{dateProfile:Lm,eventStore:Bm}})];class zm{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Rs(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 jm(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,ae(e.titleFormat||Fm(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Fm(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Ar(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=j(this._computeCurrentViewData),this.organizeRawLocales=j(Yp),this.buildLocale=j(Pc),this.buildPluginHooks=Xp(),this.buildDateEnv=j($m),this.buildTheme=j(Wm),this.parseToolbars=j(Em),this.buildViewSpecs=j(rm),this.buildDateProfileGenerator=hr(Gm),this.buildViewApi=j(Ym),this.buildViewUiProps=hr(Zm),this.buildEventUiBySource=j(qm,Ze),this.buildEventUiBases=j(Qm),this.parseContextBusinessHours=hr(Xm),this.buildTitle=j(jm),this.emitter=new Xr,this.actionRunner=new zm(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=eg(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(l);it(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=cm(r.calendarOptions,a,o),u={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:c,eventUiBases:{},eventStore:He(),renderableEventStore:He(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},f=Object.assign(Object.assign({},o),u);for(let h of r.pluginHooks.reducers)Object.assign(u,h(null,null,f));Ei(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=am(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=lm(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:f}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(f=o.dateProfileGenerator.build(u)),u=Jh(u,e),f=om(f,e,u,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!it(f.currentRange,u))&&(u=f.currentRange.start);let h=um(r.eventSources,e,f,c),d=hg(r.eventStore,e,h,f,c),m=Lc(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||d,{eventUiSingleBase:p,selectionConfig:b}=this.buildViewUiProps(c),w=this.buildEventUiBySource(h),D=this.buildEventUiBases(m.defs,p,w),A={dynamicOptionOverrides:s,currentViewType:a,currentDate:u,dateProfile:f,eventSources:h,eventStore:d,renderableEventStore:m,selectionConfig:b,eventUiBases:D,businessHours:this.parseContextBusinessHours(c),dateSelection:vm(r.dateSelection,e),eventSelection:bm(r.eventSelection,e),eventDrag:ym(r.eventDrag,e),eventResize:Sm(r.eventResize,e)},k=Object.assign(Object.assign({},c),A);for(let C of l.pluginHooks.reducers)Object.assign(A,C(r,e,k));let _=Ei(r,c),S=Ei(A,c);!_&&S?i.trigger("loading",!0):_&&!S&&i.trigger("loading",!1),this.state=A,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=dm(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=ia(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=ia(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);pa(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),f=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,f,u,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:c,viewSpecs:u,theme:f,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=fi([kn,e,n]),s=this.organizeRawLocales(r),l=s.map,a=this.buildLocale(i||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],Vm),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kl),Jl),ea),o.listenerRefiners),o.optionRefiners),u={},f=fi([kn,a,e,n]),h={},d=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,m=!1;for(let p in f)this.optionsForRefining.indexOf(p)===-1&&(f[p]===d[p]||It[p]&&p in d&&It[p](d[p],f[p]))?h[p]=g[p]:c[p]?(h[p]=c[p](f[p]),m=!0):u[p]=d[p];return m&&(this.currentCalendarOptionsInput=f,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);pa(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=fi([kn,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kl),Jl),ea),Th),n.listenerRefiners),n.optionRefiners),o={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,f=!1,h={};for(let d in l)l[d]===c[d]||It[d]&&It[d](l[d],c[d])?o[d]=u[d]:(l[d]===this.currentCalendarOptionsInput[d]||It[d]&&It[d](l[d],this.currentCalendarOptionsInput[d])?d in this.currentCalendarOptionsRefined&&(o[d]=this.currentCalendarOptionsRefined[d]):a[d]?o[d]=a[d](l[d]):h[d]=l[d],f=!0);return f&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function $m(t,e,n,r,i,s,l,a){let o=Pc(e||l.defaultCode,l.map);return new Vh({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Wm(t,e){let n=e.themeClasses[t.themeSystem]||Dt;return new n(t)}function Gm(t){let e=t.dateProfileGeneratorClass||Qo;return new e(t)}function Ym(t,e,n){return new Am(t,e,n)}function qm(t){return lt(t,e=>e.ui)}function Qm(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 Zm(t){let{options:e}=t;return{eventUiSingleBase:Tr({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:Tr({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Ei(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Xm(t){return wg(t.options.businessHours,t)}function pa(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class Km 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:f}=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,d=!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 f=="function"?f(n.navUnit):f,disabled:d,"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 ma 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(Km,{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 Jm 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 ev extends En{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=dn(r);if(l&&i.isValidSegDownEl(n.target)){let a=Ae(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new ue(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=Lo(e.el,"click",".fc-event",this.handleSegClick)}}class tv extends En{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{dn(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=Pf(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=dn(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new ue(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class nv extends Ut{constructor(){super(...arguments),this.buildViewContext=j(Fh),this.buildViewPropTransformers=j(iv),this.buildToolbarProps=j(rv),this.headerRef=Re(),this.footerRef=Re(),this.interactionsStore={},this.state={viewLabelId:bt()},this.registerInteractiveComponent=(e,n)=>{let r=$g(e,n),l=[ev,tv].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=l,Ji[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 Ji[e.uid]},this.resizeRunner=new Rs(()=>{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,Wn(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(ct.Provider,{value:o},n.header&&v(ma,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),v(Jm,{liquid:s,height:l,aspectRatio:a,labeledById:c},this.renderView(e),this.buildAppendContent()),n.footer&&v(ma,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(se,{},...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 rv(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&&!it(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function iv(t){return t.map(e=>new e)}let sv=class extends Wg{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;Rr(()=>{Mn(v(Ug,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,a)=>(this.setClassNames(i),this.setHeight(s),v(Go.Provider,{value:this.customContentRenderId},v(nv,Object.assign({isHeightAuto:l,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Mn(null,this.el),this.setClassNames([]),this.setHeight(""))},Df(e),this.el=e,this.renderRunner=new Rs(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(){Rr(()=>{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(!St(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){Po(this.el,"height",e)}};const lv={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},av=Ja({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:uv(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(Qe(ov,{key:e.id,customRendering:e}));return Qe("div",{attrs:{"data-fc-render-id":this.renderId}},Qe(we,t))},mounted(){const t=new Wp;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new sv(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:cv()}),ov=Ja({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return Qe(Rd,{to:t.containerEl},e)}});function cv(){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 lv)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 uv(t){const e={};for(const n in t)e[dv(n)]=t[n];return e}function dv(t){return t.split("-").map((e,n)=>n?fv(e):e).join("")}function fv(t){return t.charAt(0).toUpperCase()+t.slice(1)}class hv extends Ge{constructor(){super(...arguments),this.headerElRef=Re()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=Mr(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(In,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},v(Js,{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&&Mr(a.options),c=!l.forPrint&&Dc(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:ns}]}),v(In,{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 ir(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 sr(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 va(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 Fc=ae({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Uc(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 $c extends ee{render(){let{props:e}=this;return v(Rc,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Fc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Wc extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||Fc,l=Tn(i,s,n,!0,e.defaultDisplayEventEnd);return v(Jr,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Gs(e.seg,n),defaultGenerator:gv,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function gv(t){return v(se,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(se,null," ")))}class pv extends ee{constructor(){super(...arguments),this.compileSegs=j(mv)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return v(Mc,{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(se,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":""}},Uc(s)?v(Wc,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},st(s,e.todayRange))):v($c,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},st(s,e.todayRange))))}))}})}}function mv(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 vv=ae({week:"narrow"});class bv extends Ge{constructor(){super(...arguments),this.rootElRef=Re(),this.state={dayNumberId:bt()},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&&Sv(a,o.currentRange,l);return v(tl,{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:yv,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(u,f)=>v("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&v(xc,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:fn(e,a,"week"),date:a,defaultFormat:vv}),!f.isDisabled&&(n.showDayNumber||nl(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({},fn(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(pv,{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 yv(t){return t.dayNumberText||v(se,null," ")}function Sv(t,e,n){const{start:r,end:i}=e,s=Et(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 Gc(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Yc(t){return Gc(t)+":"+t.lastCol}function Ev(t,e,n,r,i,s,l){let a=new Cv(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=Yc(w);i[D]!=null?o.push({index:b,span:{start:w.firstCol,end:w.lastCol+1}}):c.push(w)}let u=a.addSegs(o),f=a.toRects(),{singleColPlacements:h,multiColPlacements:d,leftoverMargins:g}=wv(f,t,l),m=[],p=[];for(let b of c){d[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:nn(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;d[D.start].push({seg:nn(w,D.start,D.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let A=D.start;A<D.end;A+=1)m[A]+=1,h[A].push({seg:nn(w,A,A+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:d,moreCnts:m,moreMarginTops:p}}function wv(t,e,n){let r=Av(t,n.length),i=[],s=[],l=[];for(let a=0;a<n.length;a+=1){let o=r[a],c=[],u=0,f=0;for(let d of o){let g=e[d.index];c.push({seg:nn(g,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:d.levelCoord,marginTop:d.levelCoord-u}),u=d.levelCoord+d.thickness}let h=[];u=0,f=0;for(let d of o){let g=e[d.index],m=d.span.end-d.span.start>1,p=d.span.start===a;f+=d.levelCoord-u,u=d.levelCoord+d.thickness,m?(f+=d.thickness,p&&h.push({seg:nn(g,d.span.start,d.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:d.levelCoord,marginTop:0})):p&&(h.push({seg:nn(g,d.span.start,d.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:d.levelCoord,marginTop:f}),f=0)}i.push(c),s.push(h),l.push(f)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function Av(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 nn(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=wt(s,{start:r[e].date,end:ye(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 Cv extends gc{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Lt(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=Lt(l);if(!s[c])if(this.allowReslicing){const u=Object.assign(Object.assign({},l),{span:Xs(l.span,n.span)}),f=Lt(u);s[f]=!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 qc extends Ge{constructor(){super(...arguments),this.cellElRefs=new rt,this.frameElRefs=new rt,this.fgElRefs=new rt,this.segHarnessRefs=new rt,this.rootElRef=Re(),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=sr(e.businessHourSegs,s),a=sr(e.bgEventSegs,s),o=sr(this.getHighlightSegs(),s),c=sr(this.getMirrorSegs(),s),{singleColPlacements:u,multiColPlacements:f,moreCnts:h,moreMarginTops:d}=Ev(Ws(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]:f[p],e.todayRange,g),w=this.renderFgSegs(p,_v(c[p],f),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return v(bv,{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:d[p],singlePlacements:u[p],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:v(se,null,v(se,null,b),v(se,null,w)),bgContent:v(se,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(!Ze(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,f=this.props.cells.length===1,h=s||l||a,d=[];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="",A="";w&&(o.isRtl?(A=0,D=u.lefts[m.lastCol]-u.lefts[m.firstCol]):(D=0,A=u.rights[m.firstCol]-u.rights[m.lastCol])),d.push(v("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:Gc(m),ref:h?null:this.segHarnessRefs.createRef(Yc(m)),style:{visibility:b?"":"hidden",marginTop:w?"":g.marginTop,top:w?g.absoluteTop:"",left:D,right:A}},Uc(m)?v(Wc,Object.assign({seg:m,isDragging:s,isSelected:p===c,defaultDisplayEventEnd:f},st(m,r))):v($c,Object.assign({seg:m,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:p===c,defaultDisplayEventEnd:f},st(m,r)))))}return d}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:ac(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?v(kc,Object.assign({seg:a},st(a,i))):Tc(n)))}return v(se,{},...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 hn(c,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(u))&&this.setState({framePositions:new hn(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])}}qc.addStateEquality({segHeights:Ze});function _v(t,e){if(!t.length)return[];let n=Dv(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function Dv(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class Rv extends Ge{constructor(){super(...arguments),this.splitBusinessHourSegs=j(ir),this.splitBgEventSegs=j(ir),this.splitFgEventSegs=j(ir),this.splitDateSelectionSegs=j(ir),this.splitEventDrag=j(va),this.splitEventResize=j(va),this.rowRefs=new rt}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(wn,{unit:"day"},(f,h)=>v(se,null,e.cells.map((d,g)=>v(qc,{ref:this.rowRefs.createRef(g),key:d.length?d[0].date.toISOString():g,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:d,renderIntro:e.renderRowIntro,businessHourSegs:i[g],eventSelection:e.eventSelection,bgEventSegs:s[g].filter(kv),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 hn(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new hn(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=ye(r,1);return{start:r,end:i}}}function kv(t){return t.eventRange.def.allDay}class Tv extends Ge{constructor(){super(...arguments),this.elRef=Re(),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(Rv,{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=xv(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 xv(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${fh(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Un(e.currentDate)}"]`)),n}class Mv extends Sc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Qc extends Ge{constructor(){super(...arguments),this.slicer=new Mv,this.tableRef=Re()}render(){let{props:e,context:n}=this;return v(Tv,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 Iv extends hv{constructor(){super(...arguments),this.buildDayTableModel=j(Nv),this.headerRef=Re(),this.tableRef=Re()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&v(vc,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=a=>v(Qc,{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 Nv(t,e){let n=new bc(t.renderRange,e);return new yc(n,/year|month|week/.test(t.currentRangeUnit))}class Ov extends Qo{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return Pv({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function Pv(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=Gl(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(ye(n.end,-1))),a=Math.ceil(th(l,i));i=Gl(i,6-a)}return{start:r,end:i}}var Hv=':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}';Yr(Hv);var Lv=Ke({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Iv,dateProfileGeneratorClass:Ov},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 Bv extends Zg{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Rg(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Vv=ae({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Zc(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return v(ct.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?Vv:Array.isArray(i.slotLabelFormat)?ae(i.slotLabelFormat[0]):ae(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return v(De,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:zv,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 zv(t){return t.text}class jv extends ee{render(){return this.props.slatMetas.map(e=>v("tr",{key:e.key},v(Zc,Object.assign({},e))))}}const Fv=ae({week:"short"}),Uv=5;class $v extends Ge{constructor(){super(...arguments),this.allDaySplitter=new Bv,this.headerElRef=Re(),this.rootElRef=Re(),this.scrollerElRef=Re(),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=_t(s.start,s.end)===1?fn(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?v(xc,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:Fv},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(De,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:Wv,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=Mr(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(In,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},v(Js,{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,f=!u.forPrint&&Mr(c.options),h=!u.forPrint&&Dc(c.options),d=[];e&&d.push({type:"header",key:"header",isSticky:f,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&&(d.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}]}),d.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 d.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(jv,{slatMetas:l}))),v("div",{className:"fc-timegrid-now-indicator-container"},v(wn,{unit:g?"minute":"day"},p=>{let b=g&&a&&a.safeComputeTop(p);return typeof b=="number"?v(el,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:p}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&d.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:ns},{key:"cols",content:ns}]}),v(In,{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:d}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=Uv),{dayMaxEvents:e,dayMaxEventRows:n}}}function Wv(t){return t.text}class Gv{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(it(n.currentRange,e)){let r=le(e),i=e.valueOf()-r.valueOf();if(i>=$e(n.slotMinTime)&&i<$e(n.slotMaxTime))return this.computeTimeTop(K(i))}return null}computeDateTop(e,n){return n||(n=le(e)),this.computeTimeTop(K(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-$e(r.slotMinTime))/$e(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 Yv 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(Zc,Object.assign({},s)),v(De,{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 qv extends ee{constructor(){super(...arguments),this.rootElRef=Re(),this.slatElRefs=new rt}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(Yv,{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 Gv(new hn(this.rootElRef.current,Qv(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Qv(t,e){return e.map(n=>t[n.key])}function _n(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 ba(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 Zv extends ee{render(){let{props:e}=this;return v(Mc,{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:()=>Kc(e.hiddenSegs,e),defaultGenerator:Xv,forceTimed:!0},n=>v(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Xv(t){return t.shortText}function Kv(t,e,n){let r=new gc;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=cp(i),l=Jv(r);return l=rb(l,1),{segRects:ib(l),hiddenGroups:s}}function Jv(t){const{entriesByLevel:e}=t,n=il((r,i)=>r+":"+i,(r,i)=>{let s=nb(t,r,i),l=ya(s,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:l[0]}),a.thickness+l[1]]});return ya(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function ya(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(eb),[l.map(tb),l[0][1]]}function eb(t,e){return e[1]-t[1]}function tb(t){return t[0]}function nb(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,f=ts(c,s.span.start,es),h=f[0]+f[1],d=h;for(;(u=c[d])&&u.span.start<s.span.end;)d+=1;if(h<d)return{level:o,lateralStart:h,lateralEnd:d}}return null}function rb(t,e){const n=il((r,i,s)=>Lt(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:a}=r,o=a+s,c=a/o,u,f=[];if(!l.length)u=e;else for(let d of l)if(u===void 0){let g=n(d,i,o);u=g[0],f.push(g[1])}else{let g=n(d,u,0);f.push(g[1])}let h=(u-i)*c;return[u-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:f})]});return t.map(r=>n(r,0,0)[1])}function ib(t){let e=[];const n=il((i,s,l)=>Lt(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 il(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function Sa(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 sb(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}=Kv(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 lb=ae({hour:"numeric",minute:"2-digit",meridiem:!1});class Xc extends ee{render(){return v(Rc,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:lb}))}}class ab extends ee{constructor(){super(...arguments),this.sortEventSegs=j(Ws)}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(tl,{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)),nl(r)&&v(o,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:a}=this;return a.forPrint?Kc(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:f,slatCoords:h,eventSelection:d,todayRange:g,nowDate:m}=this.props,p=r||i||s,b=Sa(e,f,h,u),{segPlacements:w,hiddenGroups:D}=sb(e,b,c,a);return v(se,null,this.renderHiddenGroups(D,e),w.map(A=>{let{seg:k,rect:_}=A,S=k.eventRange.instance.instanceId,C=p||!!(!n[S]&&_),B=wi(_&&_.span),T=!p&&_?this.computeSegHStyle(_):{left:0,right:0},R=!!_&&_.stackForward>0,H=!!_&&_.span.end-_.span.start<o;return v("div",{className:"fc-timegrid-event-harness"+(R?" fc-timegrid-event-harness-inset":""),key:l||S,style:Object.assign(Object.assign({visibility:C?"":"hidden"},B),T)},v(Xc,Object.assign({seg:k,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:S===d,isShort:H},st(k,g,m))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:c}=this.props;return v(se,null,e.map(u=>{let f=wi(u.span),h=ob(u.entries,n);return v(Zv,{key:jo(Ic(h)),hiddenSegs:h,top:f.top,bottom:f.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=Sa(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,o)=>{let c=e[o];return v("div",{key:ac(c.eventRange),className:"fc-timegrid-bg-harness",style:wi(a)},n==="bg-event"?v(kc,Object.assign({seg:c},st(c,r.todayRange,r.nowDate))):Tc(n))});return v(se,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>v(el,{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 Kc(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return v(se,null,t.map(a=>{let o=a.eventRange.instance.instanceId;return v("div",{key:o,style:{visibility:l[o]?"hidden":""}},v(Xc,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},st(a,e,n))))}))}function wi(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function ob(t,e){return t.map(n=>e[n.index])}class cb extends ee{constructor(){super(...arguments),this.splitFgEventSegs=j(_n),this.splitBgEventSegs=j(_n),this.splitBusinessHourSegs=j(_n),this.splitNowIndicatorSegs=j(_n),this.splitDateSelectionSegs=j(_n),this.splitEventDrag=j(ba),this.splitEventResize=j(ba),this.rootElRef=Re(),this.cellElRefs=new rt}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),f=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(el,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((h,d)=>v(ab,{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[d],bgEventSegs:l[d],businessHourSegs:a[d],nowIndicatorSegs:o[d],dateSelectionSegs:c[d],eventDrag:u[d],eventResize:f[d],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 hn(this.rootElRef.current,ub(this.cellElRefs.currentMap,e.cells),!0,!1))}}function ub(t,e){return e.map(n=>t[n.key])}class db extends Ge{constructor(){super(...arguments),this.processSlotOptions=j(fb),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(qv,{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(cb,{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),f=a.positions.topToIndex(n);if(u!=null&&f!=null){let h=this.props.cells[u],d=a.positions.tops[f],g=a.positions.getHeight(f),m=(n-d)/g,p=Math.floor(m*c),b=f*c+p,w=this.props.cells[u].date,D=Gi(l.slotMinTime,Xf(o,b)),A=r.add(w,D),k=r.add(A,o);return{dateProfile:l,dateSpan:Object.assign({range:{start:A,end:k},allDay:!1},h.extraDateSpan),dayEl:s.els[u],rect:{left:s.lefts[u],right:s.rights[u],top:d,bottom:d+g},layer:0}}return null}}function fb(t,e){let n=e||t,r=Ms(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class hb extends Sc{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=wt(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 gb extends Ge{constructor(){super(...arguments),this.buildDayRanges=j(pb),this.slicer=new hb,this.timeColsRef=Re()}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(wn,{unit:s?"minute":"day"},(o,c)=>v(db,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 pb(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 Ea=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function mb(t,e,n,r,i){let s=new Date(0),l=t,a=K(0),o=n||vb(r),c=[];for(;$e(l)<$e(e);){let u=i.add(s,l),f=Ms(a,o)!==null;c.push({date:u,time:l,key:u.toISOString(),isoTimeStr:hh(u),isLabeled:f}),l=Gi(l,r),a=Gi(a,r)}return c}function vb(t){let e,n,r;for(e=Ea.length-1;e>=0;e-=1)if(n=K(Ea[e]),r=Ms(n,t),r!==null&&r>1)return n;return t}class bb extends $v{constructor(){super(...arguments),this.buildTimeColsModel=j(yb),this.buildSlatMetas=j(mb)}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,f=c,h=e.dayHeaders&&v(vc,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),d=e.allDaySlot!==!1&&(m=>v(Qc,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(gb,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 f?this.renderHScrollLayout(h,d,g,l.colCnt,c,o,this.state.slatCoords):this.renderSimpleLayout(h,d,g)}}function yb(t,e){let n=new bc(t.renderRange,e);return new yc(n,!1)}var Sb='.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}';Yr(Sb);const Eb={allDaySlot:Boolean};var wb=Ke({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:Eb,views:{timeGrid:{component:bb,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Ks.touchMouseIgnoreWait=500;let is=0,Ir=0,ss=!1;class Jc{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()&&Ab(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,Cb()}},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 Xr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),_b()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Db()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Ae(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){ss=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Ae(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return is||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(ss=!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 Ab(t){return t.button===0&&!t.ctrlKey}function Cb(){is+=1,setTimeout(()=>{is-=1},Ks.touchMouseIgnoreWait)}function _b(){Ir+=1,Ir===1&&window.addEventListener("touchmove",eu,{passive:!1})}function Db(){Ir-=1,Ir||window.removeEventListener("touchmove",eu,{passive:!1})}function eu(t){ss&&t.preventDefault()}class Rb{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",Dn(r,{left:i.left,top:i.top}),Hf(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(ks(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Dn(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"),Dn(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 tu extends Zs{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 nu extends tu{constructor(e,n){super(new ap(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return sp(this.scrollController.el)}}class kb extends tu{constructor(e){super(new op,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 wa=typeof performance=="function"?performance.now:Date.now;class Tb{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=wa();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(wa()))}}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,f=a.bottom-n;o>=0&&c>=0&&u>=0&&f>=0&&(u<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"top",distance:u}),f<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>f)&&(i={scrollCache:l,name:"bottom",distance:f}),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 kb(!1):new nu(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 Gn extends dp{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,Lf(document.body),Vf(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,Bf(document.body),zf(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 Jc(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 Rb,this.autoScroller=new Tb}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 xb{constructor(e){this.el=e,this.origRect=Qs(e),this.scrollCaches=hc(e).map(n=>new nu(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(!Mb(i.getEventTarget())&&!Gg(r,i.clientRect))return!1;return!0}}function Mb(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class ei{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 Xr}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=Qs(i),r=Yg(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let a=dc(s,l.rect);a&&(r=qg(a))}this.coordAdjust=Qg(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||!ti(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=lt(this.droppableStore,e=>(e.component.prepareHits(),new xb(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(),f=e-c,h=n-u,{origRect:d}=o,g=d.right-d.left,m=d.bottom-d.top;if(f>=0&&f<g&&h>=0&&h<m){let p=a.queryHit(f,h,g,m);p&&Qr(p.dateProfile.activeRange,p.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(f+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 ti(t,e){return!t&&!e?!0:!!t!=!!e?!1:Hg(t.dateSpan,e.dateSpan)}function ru(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,Ib(t,e.dateEnv)),n}function Ib(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class Nb extends En{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&&ti(l,a)){let{context:o}=i,c=Object.assign(Object.assign({},ru(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",c)}}},this.dragging=new Gn(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new ei(this.dragging,Ys(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Ob extends En{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?Pb(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 f=this.hitDragging.initialHit;l.componentId===f.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(f,l)||(c=Hb(f,l,o.pluginHooks.dateSelectionTransformers)),(!c||!vp(c,l.dateProfile,o))&&(u=!0,c=null)}c?o.dispatch({type:"SELECT_DATES",selection:c}):a||o.dispatch({type:"UNSELECT_DATES"}),u?Ts():xs(),a||(this.dragSelection=c)},this.handlePointerUp=l=>{this.dragSelection&&(ic(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new Gn(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new ei(this.dragging,Ys(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 Pb(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Hb(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(Wf);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 Yn extends En{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:f}=o.context,h=o.context;this.subjectEl=l.subjectEl;let d=this.subjectSeg=dn(l.subjectEl),m=(this.eventRange=d.eventRange).instance.instanceId;this.relevantEvents=js(h.getCurrentData().eventStore,m),c.minDistance=l.isTouch?0:f.eventDragMinDistance,c.delay=l.isTouch&&m!==o.props.eventSelection?Bb(o):null,f.fixedMirrorParent?u.parentNode=f.fixedMirrorParent:u.parentNode=Ae(a,".fc"),u.revertDuration=f.dragRevertDuration;let p=o.isValidSegDownEl(a)&&!Ae(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 ue(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,f=null,h=null,d=null,g=!1,m={affectedEvents:o,mutatedEvents:He(),isEvent:!0};if(l){f=l.context;let p=f.options;u===f||p.editable&&p.droppable?(h=Lb(c,l,this.eventRange.instance.range.start,f.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(d=$s(o,f.getCurrentData().eventUiBases,h,f),m.mutatedEvents=d,Ec(m,l.dateProfile,f)||(g=!0,h=null,d=null,m.mutatedEvents=He()))):f=null}this.displayDrag(f,m),g?Ts():xs(),a||(u===f&&ti(c,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=f,this.validMutation=h,this.mutatedRelevantEvents=d)},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,f=this.eventRange.def,h=this.eventRange.instance,d=new ue(a,f,h),g=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:p}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:d,jsEvent:l.origEvent,view:o}),u){if(c===a){let b=new ue(a,m.defs[f.defId],h?m.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:m});let w={oldEvent:d,event:b,relatedEvents:Ht(m,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}},D={};for(let A of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(D,A(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:d,relatedEvents:Ht(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[f.defId],D=m.instances[h.instanceId],A=new ue(c,w,D);c.dispatch({type:"MERGE_EVENTS",eventStore:m});let k={event:A,relatedEvents:Ht(m,c,D),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};c.emitter.trigger("eventAdd",k),l.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},ru(p.dateSpan,c)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:p.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},k),{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 Gn(e.el);i.pointer.selector=Yn.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new ei(this.dragging,Ji);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:He(),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}}Yn.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Lb(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=le(n):l=n);let c=Kt(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 f of r)f(u,t,e);return u}function Bb(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Vb extends En{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=dn(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=js(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=dn(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new ue(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,f=this.eventRange.instance,h=null,d=null,g=!1,m={affectedEvents:c,mutatedEvents:He(),isEvent:!0};s&&(s.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,s)||(h=zb(u,s,a.subjectEl.classList.contains("fc-event-resizer-start"),f.range))),h&&(d=$s(c,o.getCurrentData().eventUiBases,h,o),m.mutatedEvents=d,Ec(m,s.dateProfile,o)||(g=!0,h=null,d=null,m.mutatedEvents=null)),d?o.dispatch({type:"SET_EVENT_RESIZE",state:m}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),g?Ts():xs(),l||(h&&ti(u,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=d)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,c=new ue(l,a,o),u=this.relevantEvents,f=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new ue(l,f.defs[a.defId],o?f.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:f});let d={oldEvent:c,event:h,relatedEvents:Ht(f,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:u})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},d),{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",d)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Gn(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new ei(this.dragging,Ys(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 Ae(e.subjectEl,".fc-event")}}function zb(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=Kt(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 jb{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=Ho(r.origEvent);this.matchesCancel=!!Ae(s,i),this.matchesEvent=!!Ae(s,Yn.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 Jc(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 Fb={fixedMirrorParent:E},Ub={dateClick:E,eventDragStart:E,eventDragStop:E,eventDrop:E,eventResizeStart:E,eventResizeStop:E,eventResize:E,drop:E,eventReceive:E,eventLeave:E};Ks.dataAttrPrefix="";var $b=Ke({name:"@fullcalendar/interaction",componentInteractions:[Nb,Ob,Yn,Vb],calendarInteractions:[jb],elementDraggingImpl:Gn,optionRefiners:Fb,listenerRefiners:Ub});class Wb extends ee{constructor(){super(...arguments),this.state={textId:bt()}}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=qs(l,a),u=r.listDayFormat?n.format(l,r.listDayFormat):"",f=r.listDaySideFormat?n.format(l,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(l),view:i,textId:o,text:u,sideText:f,navLinkAttrs:fn(this.context,l),sideNavLinkAttrs:fn(this.context,l,"day",!1)},c);return v(De,{elTag:"tr",elClasses:["fc-list-day",...Kr(c,e)],elAttrs:{"data-date":Un(l)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Gb,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},d=>v("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},v(d,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function Gb(t){return v(se,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 Yb=ae({hour:"numeric",minute:"2-digit",meridiem:"short"});class qb extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=r.eventTimeFormat||Yb;return v(Jr,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>Qb(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,u)=>v(se,null,Zb(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 Qb(t,e){let n=Gs(t,e);return v("a",Object.assign({},n),t.eventRange.def.title)}function Zb(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:Kh(t.eventRange.range)?t.isStart?c=Tn(t,e,n,null,null,a.range.start,t.end):t.isEnd?c=Tn(t,e,n,null,null,t.start,a.range.end):o=!0:c=Tn(t,e,n),o){let u={text:n.options.allDayText,view:n.viewApi};return v(De,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:u,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:Xb,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return v("td",{className:"fc-list-event-time"},c)}return null}function Xb(t){return t.text}class Kb extends Ge{constructor(){super(...arguments),this.computeDateVars=j(ey),this.eventStoreToSegs=j(this._eventStoreToSegs),this.state={timeHeaderId:bt(),eventHeaderId:bt(),dateHeaderIdRoot:bt()},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(In,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},v(Cc,{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(De,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:Jb,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=ty(e);return v(wn,{unit:"day"},(c,u)=>{let f=[];for(let h=0;h<o.length;h+=1){let d=o[h];if(d){let g=Un(n[h]),m=a+"-"+g;f.push(v(Wb,{key:g,cellId:m,dayDate:n[h],todayRange:u})),d=Ws(d,i.eventOrder);for(let p of d)f.push(v(qb,Object.assign({key:g+":"+p.eventRange.instance.instanceId,seg:p,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:l,dateHeaderId:m},st(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,f))})}_eventStoreToSegs(e,n,r){return this.eventRangesToSegs(Ki(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=wt(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 Jb(t){return t.text}function ey(t){let e=le(t.renderRange.start),n=t.renderRange.end,r=[],i=[];for(;e<n;)r.push(e),i.push({start:e,end:ye(e,1)}),e=ye(e,1);return{dayDates:r,dayRanges:i}}function ty(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 ny=':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}';Yr(ny);const ry={listDayFormat:Aa,listDaySideFormat:Aa,noEventsClassNames:E,noEventsContent:E,noEventsDidMount:E,noEventsWillUnmount:E};function Aa(t){return t===!1?null:ae(t)}var iy=Ke({name:"@fullcalendar/list",optionRefiners:ry,views:{list:{component:Kb,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"}}}}),sy={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 ly(t,e){const n=hs({}),r=e&&`_d_${e}_`;return Xe(t,()=>{for(const i of Object.keys(t))i.startsWith("_c_")&&(n[i]=t[i]),r&&i.startsWith(r)&&(n[i.replace(r,"")]=t[i]);for(const i of Object.keys(n))i.startsWith("_c_")&&t[i]===void 0&&delete n[i],r&&!i.startsWith("_c_")&&t[r+i]===void 0&&delete n[i]},{immediate:!0}),n}function ay(t){return kd()?(Td(t),!0):!1}function oy(t){return typeof t=="function"?t():$(t)}const cy=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const uy=()=>{};function dy(t){return eo()}function fy(t,e=!0,n){dy()?Lr(t,n):e?t():gs(t)}function sl(t,e,n){let r;ps(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:s=void 0,shallow:l=!0,onError:a=uy}=r,o=ie(!i),c=l?Ne(e):ie(e);let u=0;return to(async f=>{if(!o.value)return;u++;const h=u;let d=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const g=await t(m=>{f(()=>{s&&(s.value=!1),d||m()})});h===u&&(c.value=g)}catch(g){a(g)}finally{s&&h===u&&(s.value=!1),d=!0}}),i?O(()=>(o.value=!0,c.value)):c}function Jt(t){var e;const n=oy(t);return(e=n==null?void 0:n.$el)!=null?e:n}const iu=cy?window:void 0;function hy(){const t=ie(!1),e=eo();return e&&Lr(()=>{t.value=!0},e),t}function gy(t){const e=hy();return O(()=>(e.value,!!t()))}function py(t,e,n={}){const{window:r=iu,...i}=n;let s;const l=gy(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},o=O(()=>Array.isArray(t)?t.map(f=>Jt(f)):[Jt(t)]),c=Xe(o,f=>{if(a(),l.value&&r){s=new ResizeObserver(e);for(const h of f)h&&s.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ay(u),{isSupported:l,stop:u}}function WE(t,e={width:0,height:0},n={}){const{window:r=iu,box:i="content-box"}=n,s=O(()=>{var f,h;return(h=(f=Jt(t))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),l=ie(e.width),a=ie(e.height),{stop:o}=py(t,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&s.value){const d=Jt(t);if(d){const g=d.getBoundingClientRect();l.value=g.width,a.value=g.height}}else if(h){const d=Array.isArray(h)?h:[h];l.value=d.reduce((g,{inlineSize:m})=>g+m,0),a.value=d.reduce((g,{blockSize:m})=>g+m,0)}else l.value=f.contentRect.width,a.value=f.contentRect.height},n);fy(()=>{const f=Jt(t);f&&(l.value="offsetWidth"in f?f.offsetWidth:e.width,a.value="offsetHeight"in f?f.offsetHeight:e.height)});const c=Xe(()=>Jt(t),f=>{l.value=f?e.width:0,a.value=f?e.height:0});function u(){o(),c()}return{width:l,height:a,stop:u}}const rn=(t,e=0,n=1)=>al(ol(e,t),n),ll=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]=rn(t[e],0,255)):e===3&&(t[e]=rn(t[e],0,1));return t},su={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])su[`[object ${t}]`]=t.toLowerCase();function Q(t){return su[Object.prototype.toString.call(t)]||"object"}const Z=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):Q(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0],ni=t=>{if(t.length<2)return null;const e=t.length-1;return Q(t[e])=="string"?t[e].toLowerCase():null},{PI:ri,min:al,max:ol}=Math,tt=ri*2,Ai=ri/3,my=ri/180,vy=180/ri,Y={format:{},autodetect:[]};class M{constructor(...e){const n=this;if(Q(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=ni(e),i=!1;if(!r){i=!0,Y.sorted||(Y.autodetect=Y.autodetect.sort((s,l)=>l.p-s.p),Y.sorted=!0);for(let s of Y.autodetect)if(r=s.test(...e),r)break}if(Y.format[r]){const s=Y.format[r].apply(null,i?e:e.slice(0,-1));n._rgb=ll(s)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return Q(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const by="2.6.0",q=(...t)=>new q.Color(...t);q.Color=M;q.version=by;const yy=(...t)=>{t=Z(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:Ca}=Math,Sy=(...t)=>{let[e,n,r]=Z(t,"rgb");e=e/255,n=n/255,r=r/255;const i=1-Ca(e,Ca(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]};M.prototype.cmyk=function(){return Sy(this._rgb)};q.cmyk=(...t)=>new M(...t,"cmyk");Y.format.cmyk=yy;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"cmyk"),Q(t)==="array"&&t.length===4)return"cmyk"}});const Ci=t=>Math.round(t*100)/100,Ey=(...t)=>{const e=Z(t,"hsla");let n=ni(t)||"lsa";return e[0]=Ci(e[0]||0),e[1]=Ci(e[1]*100)+"%",e[2]=Ci(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(",")})`},lu=(...t)=>{t=Z(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const i=al(e,n,r),s=ol(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:_i}=Math,wy=(...t)=>{const e=Z(t,"rgba");let n=ni(t)||"rgb";return n.substr(0,3)=="hsl"?Ey(lu(e),n):(e[0]=_i(e[0]),e[1]=_i(e[1]),e[2]=_i(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:Di}=Math,ls=(...t)=>{t=Z(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,f=e/360;a[0]=f+1/3,a[1]=f,a[2]=f-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]=[Di(o[0]*255),Di(o[1]*255),Di(o[2]*255)]}return t.length>3?[i,s,l,t[3]]:[i,s,l,1]},au=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,ou=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,cu=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,uu=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,du=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,fu=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:_a}=Math,cl=t=>{t=t.toLowerCase().trim();let e;if(Y.format.named)try{return Y.format.named(t)}catch{}if(e=t.match(au)){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(ou)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+n[r];return n}if(e=t.match(cu)){const n=e.slice(1,4);for(let r=0;r<3;r++)n[r]=_a(n[r]*2.55);return n[3]=1,n}if(e=t.match(uu)){const n=e.slice(1,5);for(let r=0;r<3;r++)n[r]=_a(n[r]*2.55);return n[3]=+n[3],n}if(e=t.match(du)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=ls(n);return r[3]=1,r}if(e=t.match(fu)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=ls(n);return r[3]=+e[4],r}};cl.test=t=>au.test(t)||ou.test(t)||cu.test(t)||uu.test(t)||du.test(t)||fu.test(t);M.prototype.css=function(t){return wy(this._rgb,t)};q.css=(...t)=>new M(...t,"css");Y.format.css=cl;Y.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Q(t)==="string"&&cl.test(t))return"css"}});Y.format.gl=(...t)=>{const e=Z(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};q.gl=(...t)=>new M(...t,"gl");M.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};const{floor:Ay}=Math,Cy=(...t)=>{t=Z(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=Ay(e),c=e-o,u=r*(1-n),f=u+a*(1-c),h=u+a*c,d=u+a;switch(o){case 0:[i,s,l]=[d,h,u];break;case 1:[i,s,l]=[f,d,u];break;case 2:[i,s,l]=[u,d,h];break;case 3:[i,s,l]=[u,f,d];break;case 4:[i,s,l]=[h,u,d];break;case 5:[i,s,l]=[d,u,f];break}}return[i,s,l,t.length>3?t[3]:1]},_y=(...t)=>{const[e,n,r]=Z(t,"rgb"),i=al(e,n,r),s=ol(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]};M.prototype.hcg=function(){return _y(this._rgb)};q.hcg=(...t)=>new M(...t,"hcg");Y.format.hcg=Cy;Y.autodetect.push({p:1,test:(...t)=>{if(t=Z(t,"hcg"),Q(t)==="array"&&t.length===3)return"hcg"}});const Dy=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ry=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,hu=t=>{if(t.match(Dy)){(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(Ry)){(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:lr}=Math,gu=(...t)=>{let[e,n,r,i]=Z(t,"rgba"),s=ni(t)||"auto";i===void 0&&(i=1),s==="auto"&&(s=i<1?"rgba":"rgb"),e=lr(e),n=lr(n),r=lr(r);let a="000000"+(e<<16|n<<8|r).toString(16);a=a.substr(a.length-6);let o="0"+lr(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}`}};M.prototype.hex=function(t){return gu(this._rgb,t)};q.hex=(...t)=>new M(...t,"hex");Y.format.hex=hu;Y.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&Q(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{cos:qt}=Math,ky=(...t)=>{t=Z(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*qt(tt*e)/qt(Ai-tt*e))/3,s=1-(l+i)):e<2/3?(e-=1/3,i=(1-n)/3,s=(1+n*qt(tt*e)/qt(Ai-tt*e))/3,l=1-(i+s)):(e-=2/3,s=(1-n)/3,l=(1+n*qt(tt*e)/qt(Ai-tt*e))/3,i=1-(s+l)),i=rn(r*i*3),s=rn(r*s*3),l=rn(r*l*3),[i*255,s*255,l*255,t.length>3?t[3]:1]},{min:Ty,sqrt:xy,acos:My}=Math,Iy=(...t)=>{let[e,n,r]=Z(t,"rgb");e/=255,n/=255,r/=255;let i;const s=Ty(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/=xy((e-n)*(e-n)+(e-r)*(n-r)),i=My(i),r>n&&(i=tt-i),i/=tt),[i*360,a,l]};M.prototype.hsi=function(){return Iy(this._rgb)};q.hsi=(...t)=>new M(...t,"hsi");Y.format.hsi=ky;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"hsi"),Q(t)==="array"&&t.length===3)return"hsi"}});M.prototype.hsl=function(){return lu(this._rgb)};q.hsl=(...t)=>new M(...t,"hsl");Y.format.hsl=ls;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"hsl"),Q(t)==="array"&&t.length===3)return"hsl"}});const{floor:Ny}=Math,Oy=(...t)=>{t=Z(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=Ny(e),o=e-a,c=r*(1-n),u=r*(1-n*o),f=r*(1-n*(1-o));switch(a){case 0:[i,s,l]=[r,f,c];break;case 1:[i,s,l]=[u,r,c];break;case 2:[i,s,l]=[c,r,f];break;case 3:[i,s,l]=[c,u,r];break;case 4:[i,s,l]=[f,c,r];break;case 5:[i,s,l]=[r,c,u];break}}return[i,s,l,t.length>3?t[3]:1]},{min:Py,max:Hy}=Math,Ly=(...t)=>{t=Z(t,"rgb");let[e,n,r]=t;const i=Py(e,n,r),s=Hy(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]};M.prototype.hsv=function(){return Ly(this._rgb)};q.hsv=(...t)=>new M(...t,"hsv");Y.format.hsv=Oy;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"hsv"),Q(t)==="array"&&t.length===3)return"hsv"}});const Me={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},{pow:By}=Math,pu=(...t)=>{t=Z(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=Me.Yn*ki(s),i=Me.Xn*ki(i),l=Me.Zn*ki(l),a=Ri(3.2404542*i-1.5371385*s-.4985314*l),o=Ri(-.969266*i+1.8760108*s+.041556*l),c=Ri(.0556434*i-.2040259*s+1.0572252*l),[a,o,c,t.length>3?t[3]:1]},Ri=t=>255*(t<=.00304?12.92*t:1.055*By(t,1/2.4)-.055),ki=t=>t>Me.t1?t*t*t:Me.t2*(t-Me.t0),{pow:mu}=Math,vu=(...t)=>{const[e,n,r]=Z(t,"rgb"),[i,s,l]=Vy(e,n,r),a=116*s-16;return[a<0?0:a,500*(i-s),200*(s-l)]},Ti=t=>(t/=255)<=.04045?t/12.92:mu((t+.055)/1.055,2.4),xi=t=>t>Me.t3?mu(t,1/3):t/Me.t2+Me.t0,Vy=(t,e,n)=>{t=Ti(t),e=Ti(e),n=Ti(n);const r=xi((.4124564*t+.3575761*e+.1804375*n)/Me.Xn),i=xi((.2126729*t+.7151522*e+.072175*n)/Me.Yn),s=xi((.0193339*t+.119192*e+.9503041*n)/Me.Zn);return[r,i,s]};M.prototype.lab=function(){return vu(this._rgb)};q.lab=(...t)=>new M(...t,"lab");Y.format.lab=pu;Y.autodetect.push({p:2,test:(...t)=>{if(t=Z(t,"lab"),Q(t)==="array"&&t.length===3)return"lab"}});const{sin:zy,cos:jy}=Math,bu=(...t)=>{let[e,n,r]=Z(t,"lch");return isNaN(r)&&(r=0),r=r*my,[e,jy(r)*n,zy(r)*n]},yu=(...t)=>{t=Z(t,"lch");const[e,n,r]=t,[i,s,l]=bu(e,n,r),[a,o,c]=pu(i,s,l);return[a,o,c,t.length>3?t[3]:1]},Fy=(...t)=>{const e=Z(t,"hcl").reverse();return yu(...e)},{sqrt:Uy,atan2:$y,round:Wy}=Math,Su=(...t)=>{const[e,n,r]=Z(t,"lab"),i=Uy(n*n+r*r);let s=($y(r,n)*vy+360)%360;return Wy(i*1e4)===0&&(s=Number.NaN),[e,i,s]},Eu=(...t)=>{const[e,n,r]=Z(t,"rgb"),[i,s,l]=vu(e,n,r);return Su(i,s,l)};M.prototype.lch=function(){return Eu(this._rgb)};M.prototype.hcl=function(){return Eu(this._rgb).reverse()};q.lch=(...t)=>new M(...t,"lch");q.hcl=(...t)=>new M(...t,"hcl");Y.format.lch=yu;Y.format.hcl=Fy;["lch","hcl"].forEach(t=>Y.autodetect.push({p:2,test:(...e)=>{if(e=Z(e,t),Q(e)==="array"&&e.length===3)return t}}));const gn={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"};M.prototype.name=function(){const t=gu(this._rgb,"rgb");for(let e of Object.keys(gn))if(gn[e]===t)return e.toLowerCase();return t};Y.format.named=t=>{if(t=t.toLowerCase(),gn[t])return hu(gn[t]);throw new Error("unknown color name: "+t)};Y.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&Q(t)==="string"&&gn[t.toLowerCase()])return"named"}});const Gy=t=>{if(Q(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)},Yy=(...t)=>{const[e,n,r]=Z(t,"rgb");return(e<<16)+(n<<8)+r};M.prototype.num=function(){return Yy(this._rgb)};q.num=(...t)=>new M(...t,"num");Y.format.num=Gy;Y.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&Q(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const{round:wu}=Math;M.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(wu)};M.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:wu(e):e)};q.rgb=(...t)=>new M(...t,"rgb");Y.format.rgb=(...t)=>{const e=Z(t,"rgba");return e[3]===void 0&&(e[3]=1),e};Y.autodetect.push({p:3,test:(...t)=>{if(t=Z(t,"rgba"),Q(t)==="array"&&(t.length===3||t.length===4&&Q(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const{log:ar}=Math,Au=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*ar(r),i=e<20?0:-254.76935184120902+.8274096064007395*(i=e-10)+115.67994401066147*ar(i)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*ar(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*ar(r),i=255),[n,r,i,1]},{round:qy}=Math,Qy=(...t)=>{const e=Z(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=Au(a);o[2]/o[0]>=r/n?s=a:i=a}return qy(a)};M.prototype.temp=M.prototype.kelvin=M.prototype.temperature=function(){return Qy(this._rgb)};q.temp=q.kelvin=q.temperature=(...t)=>new M(...t,"temp");Y.format.temp=Y.format.kelvin=Y.format.temperature=Au;const{pow:pr,sign:Zy}=Math,Cu=(...t)=>{t=Z(t,"lab");const[e,n,r]=t,i=pr(e+.3963377774*n+.2158037573*r,3),s=pr(e-.1055613458*n-.0638541728*r,3),l=pr(e-.0894841775*n-1.291485548*r,3);return[255*Mi(4.0767416621*i-3.3077115913*s+.2309699292*l),255*Mi(-1.2684380046*i+2.6097574011*s-.3413193965*l),255*Mi(-.0041960863*i-.7034186147*s+1.707614701*l),t.length>3?t[3]:1]};function Mi(t){const e=Math.abs(t);return e>.0031308?(Zy(t)||1)*(1.055*pr(e,1/2.4)-.055):t*12.92}const{cbrt:Ii,pow:Xy,sign:Ky}=Math,_u=(...t)=>{const[e,n,r]=Z(t,"rgb"),[i,s,l]=[Ni(e/255),Ni(n/255),Ni(r/255)],a=Ii(.4122214708*i+.5363325363*s+.0514459929*l),o=Ii(.2119034982*i+.6806995451*s+.1073969566*l),c=Ii(.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 Ni(t){const e=Math.abs(t);return e<.04045?t/12.92:(Ky(t)||1)*Xy((e+.055)/1.055,2.4)}M.prototype.oklab=function(){return _u(this._rgb)};q.oklab=(...t)=>new M(...t,"oklab");Y.format.oklab=Cu;Y.autodetect.push({p:3,test:(...t)=>{if(t=Z(t,"oklab"),Q(t)==="array"&&t.length===3)return"oklab"}});const Jy=(...t)=>{t=Z(t,"lch");const[e,n,r]=t,[i,s,l]=bu(e,n,r),[a,o,c]=Cu(i,s,l);return[a,o,c,t.length>3?t[3]:1]},e0=(...t)=>{const[e,n,r]=Z(t,"rgb"),[i,s,l]=_u(e,n,r);return Su(i,s,l)};M.prototype.oklch=function(){return e0(this._rgb)};q.oklch=(...t)=>new M(...t,"oklch");Y.format.oklch=Jy;Y.autodetect.push({p:3,test:(...t)=>{if(t=Z(t,"oklch"),Q(t)==="array"&&t.length===3)return"oklch"}});M.prototype.alpha=function(t,e=!1){return t!==void 0&&Q(t)==="number"?e?(this._rgb[3]=t,this):new M([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]};M.prototype.clipped=function(){return this._rgb._clipped||!1};M.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=Me.Kn*t,new M(n,"lab").alpha(e.alpha(),!0)};M.prototype.brighten=function(t=1){return this.darken(-t)};M.prototype.darker=M.prototype.darken;M.prototype.brighter=M.prototype.brighten;M.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:t0}=Math,n0=1e-7,r0=20;M.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&Q(t)==="number"){if(t===0)return new M([0,0,0,this._rgb[3]],"rgb");if(t===1)return new M([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=r0;const i=(l,a)=>{const o=l.interpolate(a,.5,e),c=o.luminance();return Math.abs(t-c)<n0||!r--?o:c>t?i(l,o):i(o,a)},s=(n>t?i(new M([0,0,0]),this):i(this,new M([255,255,255]))).rgb();return new M([...s,this._rgb[3]])}return i0(...this._rgb.slice(0,3))};const i0=(t,e,n)=>(t=Oi(t),e=Oi(e),n=Oi(n),.2126*t+.7152*e+.0722*n),Oi=t=>(t/=255,t<=.03928?t/12.92:t0((t+.055)/1.055,2.4)),Ce={},On=(t,e,n=.5,...r)=>{let i=r[0]||"lrgb";if(!Ce[i]&&!r.length&&(i=Object.keys(Ce)[0]),!Ce[i])throw new Error(`interpolation mode ${i} is not defined`);return Q(t)!=="object"&&(t=new M(t)),Q(e)!=="object"&&(e=new M(e)),Ce[i](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};M.prototype.mix=M.prototype.interpolate=function(t,e=.5,...n){return On(this,t,e,...n)};M.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 M([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};M.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=Me.Kn*t,n[1]<0&&(n[1]=0),new M(n,"lch").alpha(e.alpha(),!0)};M.prototype.desaturate=function(t=1){return this.saturate(-t)};M.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(Q(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(Q(e)==="number")s[l]=e;else throw new Error("unsupported value for Color.set");const a=new M(s,r);return n?(this._rgb=a._rgb,this):a}throw new Error(`unknown channel ${i} in mode ${r}`)}else return s};M.prototype.tint=function(t=.5,...e){return On(this,"white",t,...e)};M.prototype.shade=function(t=.5,...e){return On(this,"black",t,...e)};const s0=(t,e,n)=>{const r=t._rgb,i=e._rgb;return new M(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};Ce.rgb=s0;const{sqrt:Pi,pow:Qt}=Math,l0=(t,e,n)=>{const[r,i,s]=t._rgb,[l,a,o]=e._rgb;return new M(Pi(Qt(r,2)*(1-n)+Qt(l,2)*n),Pi(Qt(i,2)*(1-n)+Qt(a,2)*n),Pi(Qt(s,2)*(1-n)+Qt(o,2)*n),"rgb")};Ce.lrgb=l0;const a0=(t,e,n)=>{const r=t.lab(),i=e.lab();return new M(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};Ce.lab=a0;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,f;(r.substr(0,1)==="h"||r==="oklch")&&([l,o,u]=i,[a,c,f]=s);let h,d,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,d=l+n*m):isNaN(l)?isNaN(a)?d=Number.NaN:(d=a,(u==1||u==0)&&r!="hsv"&&(h=c)):(d=l,(f==1||f==0)&&r!="hsv"&&(h=o)),h===void 0&&(h=o+n*(c-o)),g=u+n*(f-u),r==="oklch"?new M([g,h,d],r):new M([d,h,g],r)},Du=(t,e,n)=>An(t,e,n,"lch");Ce.lch=Du;Ce.hcl=Du;const o0=(t,e,n)=>{const r=t.num(),i=e.num();return new M(r+n*(i-r),"num")};Ce.num=o0;const c0=(t,e,n)=>An(t,e,n,"hcg");Ce.hcg=c0;const u0=(t,e,n)=>An(t,e,n,"hsi");Ce.hsi=u0;const d0=(t,e,n)=>An(t,e,n,"hsl");Ce.hsl=d0;const f0=(t,e,n)=>An(t,e,n,"hsv");Ce.hsv=f0;const h0=(t,e,n)=>{const r=t.oklab(),i=e.oklab();return new M(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")};Ce.oklab=h0;const g0=(t,e,n)=>An(t,e,n,"oklch");Ce.oklch=g0;const{pow:Hi,sqrt:Li,PI:Bi,cos:Da,sin:Ra,atan2:p0}=Math,m0=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const i=r/n.reduce(function(f,h){return f+h});if(n.forEach((f,h)=>{n[h]*=i}),t=t.map(f=>new M(f)),e==="lrgb")return v0(t,n);const s=t.shift(),l=s.get(e),a=[];let o=0,c=0;for(let f=0;f<l.length;f++)if(l[f]=(l[f]||0)*n[0],a.push(isNaN(l[f])?0:n[0]),e.charAt(f)==="h"&&!isNaN(l[f])){const h=l[f]/180*Bi;o+=Da(h)*n[0],c+=Ra(h)*n[0]}let u=s.alpha()*n[0];t.forEach((f,h)=>{const d=f.get(e);u+=f.alpha()*n[h+1];for(let g=0;g<l.length;g++)if(!isNaN(d[g]))if(a[g]+=n[h+1],e.charAt(g)==="h"){const m=d[g]/180*Bi;o+=Da(m)*n[h+1],c+=Ra(m)*n[h+1]}else l[g]+=d[g]*n[h+1]});for(let f=0;f<l.length;f++)if(e.charAt(f)==="h"){let h=p0(c/a[f],o/a[f])/Bi*180;for(;h<0;)h+=360;for(;h>=360;)h-=360;l[f]=h}else l[f]=l[f]/a[f];return u/=r,new M(l,e).alpha(u>.99999?1:u,!0)},v0=(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]+=Hi(a[0],2)*l,r[1]+=Hi(a[1],2)*l,r[2]+=Hi(a[2],2)*l,r[3]+=a[3]*l}return r[0]=Li(r[0]),r[1]=Li(r[1]),r[2]=Li(r[2]),r[3]>.9999999&&(r[3]=1),new M(ll(r))},{pow:b0}=Math;function Nr(t){let e="rgb",n=q("#ccc"),r=0,i=[0,1],s=[],l=[0,0],a=!1,o=[],c=!1,u=0,f=1,h=!1,d={},g=!0,m=1;const p=function(S){if(S=S||["#fff","#000"],S&&Q(S)==="string"&&q.brewer&&q.brewer[S.toLowerCase()]&&(S=q.brewer[S.toLowerCase()]),Q(S)==="array"){S.length===1&&(S=[S[0],S[0]]),S=S.slice(0);for(let C=0;C<S.length;C++)S[C]=q(S[C]);s.length=0;for(let C=0;C<S.length;C++)s.push(C/(S.length-1))}return k(),o=S},b=function(S){if(a!=null){const C=a.length-1;let B=0;for(;B<C&&S>=a[B];)B++;return B-1}return 0};let w=S=>S,D=S=>S;const A=function(S,C){let B,T;if(C==null&&(C=!1),isNaN(S)||S===null)return n;C?T=S:a&&a.length>2?T=b(S)/(a.length-2):f!==u?T=(S-u)/(f-u):T=1,T=D(T),C||(T=w(T)),m!==1&&(T=b0(T,m)),T=l[0]+T*(1-l[0]-l[1]),T=rn(T,0,1);const R=Math.floor(T*1e4);if(g&&d[R])B=d[R];else{if(Q(o)==="array")for(let H=0;H<s.length;H++){const G=s[H];if(T<=G){B=o[H];break}if(T>=G&&H===s.length-1){B=o[H];break}if(T>G&&T<s[H+1]){T=(T-G)/(s[H+1]-G),B=q.interpolate(o[H],o[H+1],T,e);break}}else Q(o)==="function"&&(B=o(T));g&&(d[R]=B)}return B};var k=()=>d={};p(t);const _=function(S){const C=q(A(S));return c&&C[c]?C[c]():C};return _.classes=function(S){if(S!=null){if(Q(S)==="array")a=S,i=[S[0],S[S.length-1]];else{const C=q.analyze(i);S===0?a=[C.min,C.max]:a=q.limits(C,"e",S)}return _}return a},_.domain=function(S){if(!arguments.length)return i;u=S[0],f=S[S.length-1],s=[];const C=o.length;if(S.length===C&&u!==f)for(let B of Array.from(S))s.push((B-u)/(f-u));else{for(let B=0;B<C;B++)s.push(B/(C-1));if(S.length>2){const B=S.map((R,H)=>H/(S.length-1)),T=S.map(R=>(R-u)/(f-u));T.every((R,H)=>B[H]===R)||(D=R=>{if(R<=0||R>=1)return R;let H=0;for(;R>=T[H+1];)H++;const G=(R-T[H])/(T[H+1]-T[H]);return B[H]+G*(B[H+1]-B[H])})}}return i=[u,f],_},_.mode=function(S){return arguments.length?(e=S,k(),_):e},_.range=function(S,C){return p(S),_},_.out=function(S){return c=S,_},_.spread=function(S){return arguments.length?(r=S,_):r},_.correctLightness=function(S){return S==null&&(S=!0),h=S,k(),h?w=function(C){const B=A(0,!0).lab()[0],T=A(1,!0).lab()[0],R=B>T;let H=A(C,!0).lab()[0];const G=B+(T-B)*C;let V=H-G,P=0,N=1,z=20;for(;Math.abs(V)>.01&&z-- >0;)(function(){return R&&(V*=-1),V<0?(P=C,C+=(N-C)*.5):(N=C,C+=(P-C)*.5),H=A(C,!0).lab()[0],V=H-G})();return C}:w=C=>C,_},_.padding=function(S){return S!=null?(Q(S)==="number"&&(S=[S,S]),l=S,_):l},_.colors=function(S,C){arguments.length<2&&(C="hex");let B=[];if(arguments.length===0)B=o.slice(0);else if(S===1)B=[_(.5)];else if(S>1){const T=i[0],R=i[1]-T;B=y0(0,S).map(H=>_(T+H/(S-1)*R))}else{t=[];let T=[];if(a&&a.length>2)for(let R=1,H=a.length,G=1<=H;G?R<H:R>H;G?R++:R--)T.push((a[R-1]+a[R])*.5);else T=i;B=T.map(R=>_(R))}return q[C]&&(B=B.map(T=>T[C]())),B},_.cache=function(S){return S!=null?(g=S,_):g},_.gamma=function(S){return S!=null?(m=S,_):m},_.nodata=function(S){return S!=null?(n=q(S),_):n},_}function y0(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 S0=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},E0=function(t){let e,n,r,i;if(t=t.map(s=>new M(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 M(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 M(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 M(a,"lab")}}else if(t.length>=5){let s,l,a;s=t.map(o=>o.lab()),a=t.length-1,l=S0(a),e=function(o){const c=1-o,u=[0,1,2].map(f=>s.reduce((h,d,g)=>h+l[g]*c**(a-g)*o**g*d[f],0));return new M(u,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},w0=t=>{const e=E0(t);return e.scale=()=>Nr(e),e},We=(t,e,n)=>{if(!We[n])throw new Error("unknown blend mode "+n);return We[n](t,e)},Rt=t=>(e,n)=>{const r=q(n).rgb(),i=q(e).rgb();return q.rgb(t(r,i))},kt=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},A0=t=>t,C0=(t,e)=>t*e/255,_0=(t,e)=>t>e?e:t,D0=(t,e)=>t>e?t:e,R0=(t,e)=>255*(1-(1-t/255)*(1-e/255)),k0=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),T0=(t,e)=>255*(1-(1-e/255)/(t/255)),x0=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);We.normal=Rt(kt(A0));We.multiply=Rt(kt(C0));We.screen=Rt(kt(R0));We.overlay=Rt(kt(k0));We.darken=Rt(kt(_0));We.lighten=Rt(kt(D0));We.dodge=Rt(kt(x0));We.burn=Rt(kt(T0));const{pow:M0,sin:I0,cos:N0}=Math;function O0(t=300,e=-1.5,n=1,r=1,i=[0,1]){let s=0,l;Q(i)==="array"?l=i[1]-i[0]:(l=0,i=[i,i]);const a=function(o){const c=tt*((t+120)/360+e*o),u=M0(i[0]+l*o,r),h=(s!==0?n[0]+o*s:n)*u*(1-u)/2,d=N0(c),g=I0(c),m=u+h*(-.14861*d+1.78277*g),p=u+h*(-.29227*d-.90649*g),b=u+h*(1.97294*d);return q(ll([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,Q(n)==="array"?(s=n[1]-n[0],s===0&&(n=n[1])):s=0,a)},a.lightness=function(o){return o==null?i:(Q(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 P0="0123456789abcdef",{floor:H0,random:L0}=Math,B0=()=>{let t="#";for(let e=0;e<6;e++)t+=P0.charAt(H0(L0()*16));return new M(t,"hex")},{log:ka,pow:V0,floor:z0,abs:j0}=Math;function Ru(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Q(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&Q(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)=>ku(n,r,i),n}function ku(t,e="equal",n=7){Q(t)=="array"&&(t=Ru(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*ka(r),o=Math.LOG10E*ka(i);l.push(r);for(let c=1;c<n;c++)l.push(V0(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=z0(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 f=!0,h=0,d=null;d=[],d.push(r);for(let p=1;p<n;p++)d.push(r+p/n*(i-r));for(d.push(i);f;){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,A;for(let k=0;k<n;k++){const _=j0(d[k]-w);_<D&&(D=_,A=k),u[A]++,c[b]=A}}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];f=!1;for(let b=0;b<n;b++)if(p[b]!==d[b]){f=!0;break}d=p,h++,h>200&&(f=!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 F0=(t,e)=>{t=new M(t),e=new M(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},{sqrt:et,pow:ge,min:U0,max:$0,atan2:Ta,abs:xa,cos:or,sin:Ma,exp:W0,PI:Ia}=Math;function G0(t,e,n=1,r=1,i=1){var s=function(te){return 360*te/(2*Ia)},l=function(te){return 2*Ia*te/360};t=new M(t),e=new M(e);const[a,o,c]=Array.from(t.lab()),[u,f,h]=Array.from(e.lab()),d=(a+u)/2,g=et(ge(o,2)+ge(c,2)),m=et(ge(f,2)+ge(h,2)),p=(g+m)/2,b=.5*(1-et(ge(p,7)/(ge(p,7)+ge(25,7)))),w=o*(1+b),D=f*(1+b),A=et(ge(w,2)+ge(c,2)),k=et(ge(D,2)+ge(h,2)),_=(A+k)/2,S=s(Ta(c,w)),C=s(Ta(h,D)),B=S>=0?S:S+360,T=C>=0?C:C+360,R=xa(B-T)>180?(B+T+360)/2:(B+T)/2,H=1-.17*or(l(R-30))+.24*or(l(2*R))+.32*or(l(3*R+6))-.2*or(l(4*R-63));let G=T-B;G=xa(G)<=180?G:T<=B?G+360:G-360,G=2*et(A*k)*Ma(l(G)/2);const V=u-a,P=k-A,N=1+.015*ge(d-50,2)/et(20+ge(d-50,2)),z=1+.045*_,L=1+.015*_*H,W=30*W0(-ge((R-275)/25,2)),x=-(2*et(ge(_,7)/(ge(_,7)+ge(25,7))))*Ma(2*l(W)),U=et(ge(V/(n*N),2)+ge(P/(r*z),2)+ge(G/(i*L),2)+x*(P/(r*z))*(G/(i*L)));return $0(0,U0(100,U))}function Y0(t,e,n="lab"){t=new M(t),e=new M(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 q0=(...t)=>{try{return new M(...t),!0}catch{return!1}},Q0={cool(){return Nr([q.hsl(180,1,.9),q.hsl(250,.7,.4)])},hot(){return Nr(["#000","#f00","#ff0","#fff"]).mode("rgb")}},mr={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(mr))mr[t.toLowerCase()]=mr[t];Object.assign(q,{average:m0,bezier:w0,blend:We,cubehelix:O0,mix:On,interpolate:On,random:B0,scale:Nr,analyze:Ru,contrast:F0,deltaE:G0,distance:Y0,limits:ku,valid:q0,scales:Q0,input:Y,colors:gn,brewer:mr});const ii=ie(new Date().getTime()),{config:Na,color:Te,mainDataset:sn,startDateField:xt,endDateField:Mt,dateField:Oa,labelField:Pa,layout:Ha,startDateType:Z0,endDateType:X0}=vn(),K0=ly(Ee,sn==null?void 0:sn.id),J0=sl(async()=>{if((Te==null?void 0:Te.type)!=="multicolor")return;const t={};if(Te.colors.type==="palette"){const e=await ln(`${sn.href}/values/${Te.field}?size=100`),n=Math.max(e.length,12),r=q.scale(Te.colors.name).mode("lch").colors(n);e.forEach((i,s)=>{t[i]=r[(s+Te.colors.offset)%n]})}else Te.colors.categories.forEach(e=>{t[e.value]=`${e.color}`});return t},null,{onError:function(t){on.value=!0,cn.value=t.message}}),eS=sl(async()=>{if(!Ee.start&&!Ee.end)return[];const t={...K0,_c_date_match:Ee.start+","+Ee.end,size:1e3,select:"_id,"+Pa};return Ha!=="simple"?t.t=ii.value:t.finalizedAt=sn.finalizedAt,(Te==null?void 0:Te.type)==="multicolor"&&(t.select+=","+Na.color.field),xt&&Mt?t.select+=","+xt+","+Mt:t.select+=","+Oa,(await ln(`${sn.href}/lines`,{params:t})).results.map(n=>({editable:Ha==="admin",id:n._id,title:n[Pa],colorFieldValue:(Te==null?void 0:Te.type)==="multicolor"&&n[Na.color.field],start:n[xt&&Mt?xt:Oa],end:xt&&Mt?n[Mt]:void 0,allDay:!(xt&&Mt)||Z0==="date"&&X0==="date"||new Date(n[Mt]).getTime()-new Date(n[xt]).getTime()>2*24*60*60*1e3}))},null,{onError:function(t){on.value=!0,cn.value=t.message}});var Tu={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zn,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",l="second",a="minute",o="hour",c="day",u="week",f="month",h="quarter",d="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(V){var P=["th","st","nd","rd"],N=V%100;return"["+V+(P[(N-20)%10]||P[N]||P[0])+"]"}},D=function(V,P,N){var z=String(V);return!z||z.length>=P?V:""+Array(P+1-z.length).join(N)+V},A={s:D,z:function(V){var P=-V.utcOffset(),N=Math.abs(P),z=Math.floor(N/60),L=N%60;return(P<=0?"+":"-")+D(z,2,"0")+":"+D(L,2,"0")},m:function V(P,N){if(P.date()<N.date())return-V(N,P);var z=12*(N.year()-P.year())+(N.month()-P.month()),L=P.clone().add(z,f),W=N-L<0,I=P.clone().add(z+(W?-1:1),f);return+(-(z+(N-L)/(W?L-I:I-L))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:f,y:d,w:u,d:c,D:g,h:o,m:a,s:l,ms:s,Q:h}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},k="en",_={};_[k]=w;var S="$isDayjsObject",C=function(V){return V instanceof H||!(!V||!V[S])},B=function V(P,N,z){var L;if(!P)return k;if(typeof P=="string"){var W=P.toLowerCase();_[W]&&(L=W),N&&(_[W]=N,L=W);var I=P.split("-");if(!L&&I.length>1)return V(I[0])}else{var x=P.name;_[x]=P,L=x}return!z&&L&&(k=L),L||!z&&k},T=function(V,P){if(C(V))return V.clone();var N=typeof P=="object"?P:{};return N.date=V,N.args=arguments,new H(N)},R=A;R.l=B,R.i=C,R.w=function(V,P){return T(V,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var H=function(){function V(N){this.$L=B(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[S]=!0}var P=V.prototype;return P.parse=function(N){this.$d=function(z){var L=z.date,W=z.utc;if(L===null)return new Date(NaN);if(R.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var I=L.match(p);if(I){var x=I[2]-1||0,U=(I[7]||"0").substring(0,3);return W?new Date(Date.UTC(I[1],x,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)):new Date(I[1],x,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)}}return new Date(L)}(N),this.init()},P.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},P.$utils=function(){return R},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function(N,z){var L=T(N);return this.startOf(z)<=L&&L<=this.endOf(z)},P.isAfter=function(N,z){return T(N)<this.startOf(z)},P.isBefore=function(N,z){return this.endOf(z)<T(N)},P.$g=function(N,z,L){return R.u(N)?this[z]:this.set(L,N)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(N,z){var L=this,W=!!R.u(z)||z,I=R.p(N),x=function(me,ke){var ft=R.w(L.$u?Date.UTC(L.$y,ke,me):new Date(L.$y,ke,me),L);return W?ft:ft.endOf(c)},U=function(me,ke){return R.w(L.toDate()[me].apply(L.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(ke)),L)},te=this.$W,oe=this.$M,be=this.$D,Je="set"+(this.$u?"UTC":"");switch(I){case d:return W?x(1,0):x(31,11);case f:return W?x(1,oe):x(0,oe+1);case u:var Fe=this.$locale().weekStart||0,dt=(te<Fe?te+7:te)-Fe;return x(W?be-dt:be+(6-dt),oe);case c:case g:return U(Je+"Hours",0);case o:return U(Je+"Minutes",1);case a:return U(Je+"Seconds",2);case l:return U(Je+"Milliseconds",3);default:return this.clone()}},P.endOf=function(N){return this.startOf(N,!1)},P.$set=function(N,z){var L,W=R.p(N),I="set"+(this.$u?"UTC":""),x=(L={},L[c]=I+"Date",L[g]=I+"Date",L[f]=I+"Month",L[d]=I+"FullYear",L[o]=I+"Hours",L[a]=I+"Minutes",L[l]=I+"Seconds",L[s]=I+"Milliseconds",L)[W],U=W===c?this.$D+(z-this.$W):z;if(W===f||W===d){var te=this.clone().set(g,1);te.$d[x](U),te.init(),this.$d=te.set(g,Math.min(this.$D,te.daysInMonth())).$d}else x&&this.$d[x](U);return this.init(),this},P.set=function(N,z){return this.clone().$set(N,z)},P.get=function(N){return this[R.p(N)]()},P.add=function(N,z){var L,W=this;N=Number(N);var I=R.p(z),x=function(oe){var be=T(W);return R.w(be.date(be.date()+Math.round(oe*N)),W)};if(I===f)return this.set(f,this.$M+N);if(I===d)return this.set(d,this.$y+N);if(I===c)return x(1);if(I===u)return x(7);var U=(L={},L[a]=r,L[o]=i,L[l]=n,L)[I]||1,te=this.$d.getTime()+N*U;return R.w(te,this)},P.subtract=function(N,z){return this.add(-1*N,z)},P.format=function(N){var z=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var W=N||"YYYY-MM-DDTHH:mm:ssZ",I=R.z(this),x=this.$H,U=this.$m,te=this.$M,oe=L.weekdays,be=L.months,Je=L.meridiem,Fe=function(ke,ft,Cn,Zn){return ke&&(ke[ft]||ke(z,W))||Cn[ft].slice(0,Zn)},dt=function(ke){return R.s(x%12||12,ke,"0")},me=Je||function(ke,ft,Cn){var Zn=ke<12?"AM":"PM";return Cn?Zn.toLowerCase():Zn};return W.replace(b,function(ke,ft){return ft||function(Cn){switch(Cn){case"YY":return String(z.$y).slice(-2);case"YYYY":return R.s(z.$y,4,"0");case"M":return te+1;case"MM":return R.s(te+1,2,"0");case"MMM":return Fe(L.monthsShort,te,be,3);case"MMMM":return Fe(be,te);case"D":return z.$D;case"DD":return R.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return Fe(L.weekdaysMin,z.$W,oe,2);case"ddd":return Fe(L.weekdaysShort,z.$W,oe,3);case"dddd":return oe[z.$W];case"H":return String(x);case"HH":return R.s(x,2,"0");case"h":return dt(1);case"hh":return dt(2);case"a":return me(x,U,!0);case"A":return me(x,U,!1);case"m":return String(U);case"mm":return R.s(U,2,"0");case"s":return String(z.$s);case"ss":return R.s(z.$s,2,"0");case"SSS":return R.s(z.$ms,3,"0");case"Z":return I}return null}(ke)||I.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(N,z,L){var W,I=this,x=R.p(z),U=T(N),te=(U.utcOffset()-this.utcOffset())*r,oe=this-U,be=function(){return R.m(I,U)};switch(x){case d:W=be()/12;break;case f:W=be();break;case h:W=be()/3;break;case u:W=(oe-te)/6048e5;break;case c:W=(oe-te)/864e5;break;case o:W=oe/i;break;case a:W=oe/r;break;case l:W=oe/n;break;default:W=oe}return L?W:R.a(W)},P.daysInMonth=function(){return this.endOf(f).$D},P.$locale=function(){return _[this.$L]},P.locale=function(N,z){if(!N)return this.$L;var L=this.clone(),W=B(N,z,!0);return W&&(L.$L=W),L},P.clone=function(){return R.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()},V}(),G=H.prototype;return T.prototype=G,[["$ms",s],["$s",l],["$m",a],["$H",o],["$W",c],["$M",f],["$y",d],["$D",g]].forEach(function(V){G[V[1]]=function(P){return this.$g(P,V[0],V[1])}}),T.extend=function(V,P){return V.$i||(V(P,H,T),V.$i=!0),T},T.locale=B,T.isDayjs=C,T.unix=function(V){return T(1e3*V)},T.en=_[k],T.Ls=_,T.p={},T})})(Tu);var xu=Tu.exports;const Pn=ms(xu);function La(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"?Pn(n).format("DD/MM/YYYY, HH[h]mm"):Pn(n).format("DD/MM/YYYY"):""+n}const $t=X({border:[Boolean,Number,String]},"border");function Wt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br();return{borderClasses:O(()=>{const r=ps(t)?t.value:t.border,i=[];if(r===!0||r==="")i.push(`${e}--border`);else if(typeof r=="string"||r===0)for(const s of String(r).split(" "))i.push(`border-${s}`);return i})}}const tS=[null,"default","comfortable","compact"],ut=X({density:{type:String,default:"default",validator:t=>tS.includes(t)}},"density");function Tt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br();return{densityClasses:O(()=>`${e}--density-${t.density}`)}}const Gt=X({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function Yt(t){return{elevationClasses:O(()=>{const n=ps(t)?t.value:t.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const Mu=X({baseColor:String,divided:Boolean,...$t(),...de(),...ut(),...Gt(),...At(),...ve(),...ze(),...ot()},"VBtnGroup"),Ba=ne()({name:"VBtnGroup",props:Mu(),setup(t,e){let{slots:n}=e;const{themeClasses:r}=je(t),{densityClasses:i}=Tt(t),{borderClasses:s}=Wt(t),{elevationClasses:l}=Yt(t),{roundedClasses:a}=Ct(t);Vr({VBtn:{height:"auto",baseColor:J(t,"baseColor"),color:J(t,"color"),density:J(t,"density"),flat:!0,variant:J(t,"variant")}}),he(()=>y(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},r.value,s.value,i.value,l.value,a.value,t.class],style:t.style},n))}}),ul=X({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Iu=X({value:null,disabled:Boolean,selectedClass:String},"group-item");function Nu(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=vs("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=zr();jt(Symbol.for(`${e.description}:id`),i);const s=bn(e,null);if(!s){if(!n)return s;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const l=J(t,"value"),a=O(()=>!!(s.disabled.value||t.disabled));s.register({id:i,value:l,disabled:a},r),mn(()=>{s.unregister(i)});const o=O(()=>s.isSelected(i)),c=O(()=>s.items.value[0].id===i),u=O(()=>s.items.value[s.items.value.length-1].id===i),f=O(()=>o.value&&[s.selectedClass.value,t.selectedClass]);return Xe(o,h=>{r.emit("group:selected",{value:h})},{flush:"sync"}),{id:i,isSelected:o,isFirst:c,isLast:u,toggle:()=>s.select(i,!o.value),select:h=>s.select(i,h),selectedClass:f,value:l,disabled:a,group:s}}function dl(t,e){let n=!1;const r=hs([]),i=mt(t,"modelValue",[],h=>h==null?[]:Ou(r,ys(h)),h=>{const d=rS(r,h);return t.multiple?d:d[0]}),s=vs("useGroup");function l(h,d){const g=h,m=Symbol.for(`${e.description}:id`),b=Md(m,s==null?void 0:s.vnode).indexOf(d);$(g.value)==null&&(g.value=b,g.useIndexAsValue=!0),b>-1?r.splice(b,0,g):r.push(g)}function a(h){if(n)return;o();const d=r.findIndex(g=>g.id===h);r.splice(d,1)}function o(){const h=r.find(d=>!d.disabled);h&&t.mandatory==="force"&&!i.value.length&&(i.value=[h.id])}Lr(()=>{o()}),mn(()=>{n=!0}),xd(()=>{for(let h=0;h<r.length;h++)r[h].useIndexAsValue&&(r[h].value=h)});function c(h,d){const g=r.find(m=>m.id===h);if(!(d&&(g!=null&&g.disabled)))if(t.multiple){const m=i.value.slice(),p=m.findIndex(w=>w===h),b=~p;if(d=d??!b,b&&t.mandatory&&m.length<=1||!b&&t.max!=null&&m.length+1>t.max)return;p<0&&d?m.push(h):p>=0&&!d&&m.splice(p,1),i.value=m}else{const m=i.value.includes(h);if(t.mandatory&&m)return;i.value=d??!m?[h]:[]}}function u(h){if(t.multiple,i.value.length){const d=i.value[0],g=r.findIndex(b=>b.id===d);let m=(g+h)%r.length,p=r[m];for(;p.disabled&&m!==g;)m=(m+h)%r.length,p=r[m];if(p.disabled)return;i.value=[r[m].id]}else{const d=r.find(g=>!g.disabled);d&&(i.value=[d.id])}}const f={register:l,unregister:a,selected:i,select:c,disabled:J(t,"disabled"),prev:()=>u(r.length-1),next:()=>u(1),isSelected:h=>i.value.includes(h),selectedClass:O(()=>t.selectedClass),items:O(()=>r),getItemIndex:h=>nS(r,h)};return jt(e,f),f}function nS(t,e){const n=Ou(t,[e]);return n.length?t.findIndex(r=>r.id===n[0]):-1}function Ou(t,e){const n=[];return e.forEach(r=>{const i=t.find(l=>bs(r,l.value)),s=t[r];(i==null?void 0:i.value)!=null?n.push(i.id):s!=null&&n.push(s.id)}),n}function rS(t,e){const n=[];return e.forEach(r=>{const i=t.findIndex(s=>s.id===r);if(~i){const s=t[i];n.push(s.value!=null?s.value:i)}}),n}const Pu=Symbol.for("vuetify:v-btn-toggle"),iS=X({...Mu(),...ul()},"VBtnToggle");ne()({name:"VBtnToggle",props:iS(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isSelected:r,next:i,prev:s,select:l,selected:a}=dl(t,Pu);return he(()=>{const o=Ba.filterProps(t);return y(Ba,Ie({class:["v-btn-toggle",t.class]},o,{style:t.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:r,next:i,prev:s,select:l,selected:a})]}})}),{next:i,prev:s,select:l}}});const sS=["x-small","small","default","large","x-large"],qn=X({size:{type:[String,Number],default:"default"}},"size");function Qn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br();return Id(()=>{let n,r;return Nd(sS,t.size)?n=`${e}--size-${t.size}`:t.size&&(r={width:vt(t.size),height:vt(t.size)}),{sizeClasses:n,sizeStyles:r}})}const lS=X({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:pe,...de(),...qn(),...ve({tag:"i"}),...ze()},"VIcon"),_e=ne()({name:"VIcon",props:lS(),setup(t,e){let{attrs:n,slots:r}=e;const i=ie(),{themeClasses:s}=je(t),{iconData:l}=Od(O(()=>i.value||t.icon)),{sizeClasses:a}=Qn(t),{textColorClasses:o,textColorStyles:c}=an(J(t,"color"));return he(()=>{var h,d;const u=(h=r.default)==null?void 0:h.call(r);u&&(i.value=(d=Pd(u).filter(g=>g.type===Hd&&g.children&&typeof g.children=="string")[0])==null?void 0:d.children);const f=!!(n.onClick||n.onClickOnce);return y(l.value.component,{tag:t.tag,icon:l.value.icon,class:["v-icon","notranslate",s.value,a.value,o.value,{"v-icon--clickable":f,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[a.value?void 0:{fontSize:vt(t.size),height:vt(t.size),width:vt(t.size)},c.value,t.style],role:f?"button":void 0,"aria-hidden":!f,tabindex:f?t.disabled?-1:0:void 0},{default:()=>[u]})}),{}}}),aS=X({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...de(),...qn(),...ve({tag:"div"}),...ze()},"VProgressCircular"),as=ne()({name:"VProgressCircular",props:aS(),setup(t,e){let{slots:n}=e;const r=20,i=2*Math.PI*r,s=ie(),{themeClasses:l}=je(t),{sizeClasses:a,sizeStyles:o}=Qn(t),{textColorClasses:c,textColorStyles:u}=an(J(t,"color")),{textColorClasses:f,textColorStyles:h}=an(J(t,"bgColor")),{intersectionRef:d,isIntersecting:g}=Jd(),{resizeRef:m,contentRect:p}=Fi(),b=O(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),w=O(()=>Number(t.width)),D=O(()=>o.value?Number(t.size):p.value?p.value.width:Math.max(w.value,32)),A=O(()=>r/(1-w.value/D.value)*2),k=O(()=>w.value/D.value*A.value),_=O(()=>vt((100-b.value)/100*i));return to(()=>{d.value=s.value,m.value=s.value}),he(()=>y(t.tag,{ref:s,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},l.value,a.value,c.value,t.class],style:[o.value,u.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:b.value},{default:()=>[y("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${A.value} ${A.value}`},[y("circle",{class:["v-progress-circular__underlay",f.value],style:h.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":k.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),y("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":k.value,"stroke-dasharray":i,"stroke-dashoffset":_.value},null)]),n.default&&y("div",{class:"v-progress-circular__content"},[n.default({value:b.value})])]})),{}}}),Hu=X({loading:[Boolean,String]},"loader");function Lu(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br();return{loaderClasses:O(()=>({[`${e}--loading`]:t.loading}))}}function oS(t,e){var r;let{slots:n}=e;return y("div",{class:`${t.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:t.color,isActive:t.active}))||y(ef,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}function cS(t,e){Xe(()=>{var n;return(n=t.isActive)==null?void 0:n.value},n=>{t.isLink.value&&n&&e&&gs(()=>{e(!0)})},{immediate:!0})}const os=Symbol("rippleStop"),uS=80;function Va(t,e){t.style.transform=e,t.style.webkitTransform=e}function cs(t){return t.constructor.name==="TouchEvent"}function Bu(t){return t.constructor.name==="KeyboardEvent"}const dS=function(t,e){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,i=0;if(!Bu(t)){const h=e.getBoundingClientRect(),d=cs(t)?t.touches[t.touches.length-1]:t;r=d.clientX-h.left,i=d.clientY-h.top}let s=0,l=.3;(f=e._ripple)!=null&&f.circle?(l=.15,s=e.clientWidth/2,s=n.center?s:s+Math.sqrt((r-s)**2+(i-s)**2)/4):s=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const a=`${(e.clientWidth-s*2)/2}px`,o=`${(e.clientHeight-s*2)/2}px`,c=n.center?a:`${r-s}px`,u=n.center?o:`${i-s}px`;return{radius:s,scale:l,x:c,y:u,centerX:a,centerY:o}},Or={show(t,e){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((d=e==null?void 0:e._ripple)!=null&&d.enabled))return;const r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:s,scale:l,x:a,y:o,centerX:c,centerY:u}=dS(t,e,n),f=`${s*2}px`;i.className="v-ripple__animation",i.style.width=f,i.style.height=f,e.appendChild(r);const h=window.getComputedStyle(e);h&&h.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),Va(i,`translate(${a}, ${o}) scale3d(${l},${l},${l})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),Va(i,`translate(${c}, ${u}) scale3d(1,1,1)`)},0)},hide(t){var s;if(!((s=t==null?void 0:t._ripple)!=null&&s.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const n=e[e.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===t&&t.removeChild(n.parentNode)},300)},i)}};function Vu(t){return typeof t>"u"||!!t}function Hn(t){const e={},n=t.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||t[os])){if(t[os]=!0,cs(t))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(e.center=n._ripple.centered||Bu(t),n._ripple.class&&(e.class=n._ripple.class),cs(t)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Or.show(t,n,e)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},uS)}else Or.show(t,n,e)}}function za(t){t[os]=!0}function Oe(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Oe(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),Or.hide(e)}}function zu(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let Ln=!1;function ju(t){!Ln&&(t.keyCode===vl.enter||t.keyCode===vl.space)&&(Ln=!0,Hn(t))}function Fu(t){Ln=!1,Oe(t)}function Uu(t){Ln&&(Ln=!1,Oe(t))}function $u(t,e,n){const{value:r,modifiers:i}=e,s=Vu(r);if(s||Or.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=s,t._ripple.centered=i.center,t._ripple.circle=i.circle,no(r)&&r.class&&(t._ripple.class=r.class),s&&!n){if(i.stop){t.addEventListener("touchstart",za,{passive:!0}),t.addEventListener("mousedown",za);return}t.addEventListener("touchstart",Hn,{passive:!0}),t.addEventListener("touchend",Oe,{passive:!0}),t.addEventListener("touchmove",zu,{passive:!0}),t.addEventListener("touchcancel",Oe),t.addEventListener("mousedown",Hn),t.addEventListener("mouseup",Oe),t.addEventListener("mouseleave",Oe),t.addEventListener("keydown",ju),t.addEventListener("keyup",Fu),t.addEventListener("blur",Uu),t.addEventListener("dragstart",Oe,{passive:!0})}else!s&&n&&Wu(t)}function Wu(t){t.removeEventListener("mousedown",Hn),t.removeEventListener("touchstart",Hn),t.removeEventListener("touchend",Oe),t.removeEventListener("touchmove",zu),t.removeEventListener("touchcancel",Oe),t.removeEventListener("mouseup",Oe),t.removeEventListener("mouseleave",Oe),t.removeEventListener("keydown",ju),t.removeEventListener("keyup",Fu),t.removeEventListener("dragstart",Oe),t.removeEventListener("blur",Uu)}function fS(t,e){$u(t,e,!1)}function hS(t){delete t._ripple,Wu(t)}function gS(t,e){if(e.value===e.oldValue)return;const n=Vu(e.oldValue);$u(t,e,n)}const si={mounted:fS,unmounted:hS,updated:gS},pS=X({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Pu},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:pe,appendIcon:pe,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...$t(),...de(),...ut(),...jn(),...Gt(),...Iu(),...Hu(),...ws(),...As(),...At(),...Ur(),...qn(),...ve({tag:"button"}),...ze(),...ot({variant:"elevated"})},"VBtn"),Bt=ne()({name:"VBtn",props:pS(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=je(t),{borderClasses:s}=Wt(t),{densityClasses:l}=Tt(t),{dimensionStyles:a}=Fn(t),{elevationClasses:o}=Yt(t),{loaderClasses:c}=Lu(t),{locationStyles:u}=Cs(t),{positionClasses:f}=_s(t),{roundedClasses:h}=Ct(t),{sizeClasses:d,sizeStyles:g}=Qn(t),m=Nu(t,t.symbol,!1),p=$r(t,n),b=O(()=>{var R;return t.active!==void 0?t.active:p.isLink.value?(R=p.isActive)==null?void 0:R.value:m==null?void 0:m.isSelected.value}),w=O(()=>b.value?t.activeColor??t.color:t.color),D=O(()=>{var H,G;return{color:(m==null?void 0:m.isSelected.value)&&(!p.isLink.value||((H=p.isActive)==null?void 0:H.value))||!m||((G=p.isActive)==null?void 0:G.value)?w.value??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:A,colorStyles:k,variantClasses:_}=yn(D),S=O(()=>(m==null?void 0:m.disabled.value)||t.disabled),C=O(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),B=O(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function T(R){var H;S.value||p.isLink.value&&(R.metaKey||R.ctrlKey||R.shiftKey||R.button!==0||n.target==="_blank")||((H=p.navigate)==null||H.call(p,R),m==null||m.toggle())}return cS(p,m==null?void 0:m.select),he(()=>{const R=p.isLink.value?"a":t.tag,H=!!(t.prependIcon||r.prepend),G=!!(t.appendIcon||r.append),V=!!(t.icon&&t.icon!==!0);return yt(y(R,{type:R==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":t.block,"v-btn--disabled":S.value,"v-btn--elevated":C.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},i.value,s.value,A.value,l.value,o.value,c.value,f.value,h.value,d.value,_.value,t.class],style:[k.value,a.value,u.value,g.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:S.value||void 0,href:p.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:T,value:B.value},{default:()=>{var P;return[Sn(!0,"v-btn"),!t.icon&&H&&y("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?y(Se,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},r.prepend):y(_e,{key:"prepend-icon",icon:t.prependIcon},null)]),y("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&V?y(_e,{key:"content-icon",icon:t.icon},null):y(Se,{key:"content-defaults",disabled:!V,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var N;return[((N=r.default)==null?void 0:N.call(r))??t.text]}})]),!t.icon&&G&&y("span",{key:"append",class:"v-btn__append"},[r.append?y(Se,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},r.append):y(_e,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&y("span",{key:"loader",class:"v-btn__loader"},[((P=r.loader)==null?void 0:P.call(r))??y(as,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[si,!S.value&&t.ripple,"",{center:!!t.icon}]])}),{group:m}}}),li=ne()({name:"VCardActions",props:de(),setup(t,e){let{slots:n}=e;return Vr({VBtn:{slim:!0,variant:"text"}}),he(()=>{var r;return y("div",{class:["v-card-actions",t.class],style:t.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),mS=X({opacity:[Number,String],...de(),...ve()},"VCardSubtitle"),vS=ne()({name:"VCardSubtitle",props:mS(),setup(t,e){let{slots:n}=e;return he(()=>y(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},n)),{}}}),Gu=Wr("v-card-title"),bS=X({start:Boolean,end:Boolean,icon:pe,image:String,text:String,...$t(),...de(),...ut(),...At(),...qn(),...ve(),...ze(),...ot({variant:"flat"})},"VAvatar"),pn=ne()({name:"VAvatar",props:bS(),setup(t,e){let{slots:n}=e;const{themeClasses:r}=je(t),{borderClasses:i}=Wt(t),{colorClasses:s,colorStyles:l,variantClasses:a}=yn(t),{densityClasses:o}=Tt(t),{roundedClasses:c}=Ct(t),{sizeClasses:u,sizeStyles:f}=Qn(t);return he(()=>y(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},r.value,i.value,s.value,o.value,c.value,u.value,a.value,t.class],style:[l.value,f.value,t.style]},{default:()=>[n.default?y(Se,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[n.default()]}):t.image?y(Ss,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?y(_e,{key:"icon",icon:t.icon},null):t.text,Sn(!1,"v-avatar")]})),{}}}),yS=X({appendAvatar:String,appendIcon:pe,prependAvatar:String,prependIcon:pe,subtitle:[String,Number],title:[String,Number],...de(),...ut()},"VCardItem"),SS=ne()({name:"VCardItem",props:yS(),setup(t,e){let{slots:n}=e;return he(()=>{var c;const r=!!(t.prependAvatar||t.prependIcon),i=!!(r||n.prepend),s=!!(t.appendAvatar||t.appendIcon),l=!!(s||n.append),a=!!(t.title!=null||n.title),o=!!(t.subtitle!=null||n.subtitle);return y("div",{class:["v-card-item",t.class],style:t.style},[i&&y("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?y(Se,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},n.prepend):y(we,null,[t.prependAvatar&&y(pn,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&y(_e,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),y("div",{class:"v-card-item__content"},[a&&y(Gu,{key:"title"},{default:()=>{var u;return[((u=n.title)==null?void 0:u.call(n))??t.title]}}),o&&y(vS,{key:"subtitle"},{default:()=>{var u;return[((u=n.subtitle)==null?void 0:u.call(n))??t.subtitle]}}),(c=n.default)==null?void 0:c.call(n)]),l&&y("div",{key:"append",class:"v-card-item__append"},[n.append?y(Se,{key:"append-defaults",disabled:!s,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},n.append):y(we,null,[t.appendIcon&&y(_e,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&y(pn,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),ES=X({opacity:[Number,String],...de(),...ve()},"VCardText"),fl=ne()({name:"VCardText",props:ES(),setup(t,e){let{slots:n}=e;return he(()=>y(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},n)),{}}}),wS=X({appendAvatar:String,appendIcon:pe,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:pe,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...$t(),...de(),...ut(),...jn(),...Gt(),...Hu(),...ws(),...As(),...At(),...Ur(),...ve(),...ze(),...ot({variant:"elevated"})},"VCard"),Yu=ne()({name:"VCard",directives:{Ripple:si},props:wS(),setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=je(t),{borderClasses:s}=Wt(t),{colorClasses:l,colorStyles:a,variantClasses:o}=yn(t),{densityClasses:c}=Tt(t),{dimensionStyles:u}=Fn(t),{elevationClasses:f}=Yt(t),{loaderClasses:h}=Lu(t),{locationStyles:d}=Cs(t),{positionClasses:g}=_s(t),{roundedClasses:m}=Ct(t),p=$r(t,n),b=O(()=>t.link!==!1&&p.isLink.value),w=O(()=>!t.disabled&&t.link!==!1&&(t.link||p.isClickable.value));return he(()=>{const D=b.value?"a":t.tag,A=!!(r.title||t.title!=null),k=!!(r.subtitle||t.subtitle!=null),_=A||k,S=!!(r.append||t.appendAvatar||t.appendIcon),C=!!(r.prepend||t.prependAvatar||t.prependIcon),B=!!(r.image||t.image),T=_||C||S,R=!!(r.text||t.text!=null);return yt(y(D,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":w.value},i.value,s.value,l.value,c.value,f.value,h.value,g.value,m.value,o.value,t.class],style:[a.value,u.value,d.value,t.style],href:p.href.value,onClick:w.value&&p.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var H;return[B&&y("div",{key:"image",class:"v-card__image"},[r.image?y(Se,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},r.image):y(Ss,{key:"image-img",cover:!0,src:t.image},null)]),y(oS,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:r.loader}),T&&y(SS,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),R&&y(fl,{key:"text"},{default:()=>{var G;return[((G=r.text)==null?void 0:G.call(r))??t.text]}}),(H=r.default)==null?void 0:H.call(r),r.actions&&y(li,null,{default:r.actions}),Sn(w.value,"v-card")]}}),[[Es("ripple"),w.value&&t.ripple]])}),{}}}),qu=jr.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}),Qu=jr.reduce((t,e)=>{const n="offset"+Hr(e);return t[n]={type:[String,Number],default:null},t},{}),Zu=jr.reduce((t,e)=>{const n="order"+Hr(e);return t[n]={type:[String,Number],default:null},t},{}),ja={col:Object.keys(qu),offset:Object.keys(Qu),order:Object.keys(Zu)};function AS(t,e,n){let r=t;if(!(n==null||n===!1)){if(e){const i=e.replace(t,"");r+=`-${i}`}return t==="col"&&(r="v-"+r),t==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const CS=["auto","start","end","center","baseline","stretch"],_S=X({cols:{type:[Boolean,String,Number],default:!1},...qu,offset:{type:[String,Number],default:null},...Qu,order:{type:[String,Number],default:null},...Zu,alignSelf:{type:String,default:null,validator:t=>CS.includes(t)},...de(),...ve()},"VCol"),Fa=ne()({name:"VCol",props:_S(),setup(t,e){let{slots:n}=e;const r=O(()=>{const i=[];let s;for(s in ja)ja[s].forEach(a=>{const o=t[a],c=AS(s,a,o);c&&i.push(c)});const l=i.some(a=>a.startsWith("v-col-"));return i.push({"v-col":!l||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),i});return()=>{var i;return Qe(t.tag,{class:[r.value,t.class],style:t.style},(i=n.default)==null?void 0:i.call(n))}}}),hl=["start","end","center"],Xu=["space-between","space-around","space-evenly"];function gl(t,e){return jr.reduce((n,r)=>{const i=t+Hr(r);return n[i]=e(),n},{})}const DS=[...hl,"baseline","stretch"],Ku=t=>DS.includes(t),Ju=gl("align",()=>({type:String,default:null,validator:Ku})),RS=[...hl,...Xu],ed=t=>RS.includes(t),td=gl("justify",()=>({type:String,default:null,validator:ed})),kS=[...hl,...Xu,"stretch"],nd=t=>kS.includes(t),rd=gl("alignContent",()=>({type:String,default:null,validator:nd})),Ua={align:Object.keys(Ju),justify:Object.keys(td),alignContent:Object.keys(rd)},TS={align:"align",justify:"justify",alignContent:"align-content"};function xS(t,e,n){let r=TS[t];if(n!=null){if(e){const i=e.replace(t,"");r+=`-${i}`}return r+=`-${n}`,r.toLowerCase()}}const MS=X({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:Ku},...Ju,justify:{type:String,default:null,validator:ed},...td,alignContent:{type:String,default:null,validator:nd},...rd,...de(),...ve()},"VRow"),$a=ne()({name:"VRow",props:MS(),setup(t,e){let{slots:n}=e;const r=O(()=>{const i=[];let s;for(s in Ua)Ua[s].forEach(l=>{const a=t[l],o=xS(s,l,a);o&&i.push(o)});return i.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),i});return()=>{var i;return Qe(t.tag,{class:["v-row",r.value,t.class],style:t.style},(i=n.default)==null?void 0:i.call(n))}}}),Pr=Wr("v-spacer","div","VSpacer"),IS=X({id:String,text:String,...Fr(uo({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"),id=ne()({name:"VTooltip",props:IS(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=mt(t,"modelValue"),{scopeId:i}=fo(),s=zr(),l=O(()=>t.id||`v-tooltip-${s}`),a=ie(),o=O(()=>t.location.split(" ").length>1?t.location:t.location+" center"),c=O(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),u=O(()=>t.transition?t.transition:r.value?"scale-transition":"fade-transition"),f=O(()=>Ie({"aria-describedby":l.value},t.activatorProps));return he(()=>{const h=br.filterProps(t);return y(br,Ie({ref:a,class:["v-tooltip",t.class],style:t.style,id:l.value},h,{modelValue:r.value,"onUpdate:modelValue":d=>r.value=d,transition:u.value,absolute:!0,location:o.value,origin:c.value,persistent:!0,role:"tooltip",activatorProps:f.value,_disableGlobalStack:!0},i),{activator:n.activator,default:function(){var p;for(var d=arguments.length,g=new Array(d),m=0;m<d;m++)g[m]=arguments[m];return((p=n.default)==null?void 0:p.call(n,...g))??t.text}})}),ho({},a)}}),NS={__name:"Actions",props:{item:{type:Object,required:!0}},setup(t){const{linkField:e,attachmentField:n,mainDataset:r}=vn();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)=>(ce(),Ve(li,null,{default:re(()=>[y(Pr),$(e)&&t.item[$(e)]?(ce(),Ve(Bt,{key:0,href:(t.item[$(e)].includes("http")?"":"http://")+t.item[$(e)],text:"",small:"",target:"_blank",class:"px-6",color:"primary"},{default:re(()=>[qe(" Page associée ")]),_:1},8,["href"])):Ue("",!0),$(n)?(ce(),Ve(id,{key:1,top:""},{activator:re(({props:a})=>[y(Bt,Ie({href:t.item[$(n)].includes("http")?t.item[$(n)]:$(r).href+"/attachments/"+t.item[$(n)],color:"accent",icon:""},a),{default:re(()=>[y(_e,null,{default:re(()=>[qe("mdi-download")]),_:1})]),_:2},1040,["href"])]),default:re(()=>[ro("span",null,"Télécharger le fichier de "+Xt(i(t.item["_file.content_length"])),1)]),_:1})):Ue("",!0),y(Pr)]),_:1}))}},OS=X({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Le(t,e,n){return ne()({name:t,props:OS({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:f}=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=`${f}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:f,height:h}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=o||"",a.style.top=c||"",a.style.left=u||"",a.style.width=f||"",a.style.height=h||""}}};return()=>{const a=r.group?io:vr;return Qe(a,{name:r.disabled?"":t,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:l},s.default)}}})}function sd(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ne()({name:t,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,i){let{slots:s}=i;const l=r.group?io:vr;return()=>Qe(l,{name:r.disabled?"":t,css:!r.disabled,...r.disabled?{}:e},s.default)}})}function ld(){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=Xa(`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 PS=X({target:[Object,Array]},"v-dialog-transition"),HS=ne()({name:"VDialogTransition",props:PS(),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(d=>requestAnimationFrame(d)),await new Promise(d=>requestAnimationFrame(d)),i.style.visibility="";const{x:l,y:a,sx:o,sy:c,speed:u}=Ga(t.target,i),f=Xn(i,[{transform:`translate(${l}px, ${a}px) scale(${o}, ${c})`,opacity:0},{}],{duration:225*u,easing:tf});(h=Wa(i))==null||h.forEach(d=>{Xn(d,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:yl})}),f.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(d=>requestAnimationFrame(d));const{x:l,y:a,sx:o,sy:c,speed:u}=Ga(t.target,i);Xn(i,[{},{transform:`translate(${l}px, ${a}px) scale(${o}, ${c})`,opacity:0}],{duration:125*u,easing:nf}).finished.then(()=>s()),(h=Wa(i))==null||h.forEach(d=>{Xn(d,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:yl})})},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>t.target?y(vr,Ie({name:"dialog-transition"},r,{css:!1}),n):y(vr,{name:"dialog-transition"},n)}});function Wa(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 Ga(t,e){const n=rf(t),r=sf(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,f=n.height/r.height,h=Math.max(1,u,f),d=u/h||0,g=f/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:d,sy:g,speed:p}}Le("fab-transition","center center","out-in");Le("dialog-bottom-transition");Le("dialog-top-transition");const Ya=Le("fade-transition"),GE=Le("scale-transition");Le("scroll-x-transition");Le("scroll-x-reverse-transition");Le("scroll-y-transition");Le("scroll-y-reverse-transition");Le("slide-x-transition");const YE=Le("slide-x-reverse-transition"),qE=Le("slide-y-transition");Le("slide-y-reverse-transition");const LS=sd("expand-transition",ld()),BS=sd("expand-x-transition",ld("",!0));function VS(t){let{selectedElement:e,containerElement:n,isRtl:r,isHorizontal:i}=t;const s=Bn(i,n),l=ad(i,r,n),a=Bn(i,e),o=od(i,e),c=a*.4;return l>o?o-c:l+s<o+a?o-s+a+c:l}function zS(t){let{selectedElement:e,containerElement:n,isHorizontal:r}=t;const i=Bn(r,n),s=od(r,e),l=Bn(r,e);return s-i/2+l/2}function qa(t,e){const n=t?"scrollWidth":"scrollHeight";return(e==null?void 0:e[n])||0}function jS(t,e){const n=t?"clientWidth":"clientHeight";return(e==null?void 0:e[n])||0}function ad(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 Bn(t,e){const n=t?"offsetWidth":"offsetHeight";return(e==null?void 0:e[n])||0}function od(t,e){const n=t?"offsetLeft":"offsetTop";return(e==null?void 0:e[n])||0}const FS=Symbol.for("vuetify:v-slide-group"),cd=X({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:FS},nextIcon:{type:pe,default:"$next"},prevIcon:{type:pe,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...de(),...Ld({mobile:null}),...ve(),...ul({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Qa=ne()({name:"VSlideGroup",props:cd(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isRtl:r}=so(),{displayClasses:i,mobile:s}=lo(t),l=dl(t,t.symbol),a=Ne(!1),o=Ne(0),c=Ne(0),u=Ne(0),f=O(()=>t.direction==="horizontal"),{resizeRef:h,contentRect:d}=Fi(),{resizeRef:g,contentRect:m}=Fi(),p=Bd(),b=O(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),w=O(()=>l.selected.value.length?l.items.value.findIndex(I=>I.id===l.selected.value[0]):-1),D=O(()=>l.selected.value.length?l.items.value.findIndex(I=>I.id===l.selected.value[l.selected.value.length-1]):-1);if(zi){let I=-1;Xe(()=>[l.selected.value,d.value,m.value,f.value],()=>{cancelAnimationFrame(I),I=requestAnimationFrame(()=>{if(d.value&&m.value){const x=f.value?"width":"height";c.value=d.value[x],u.value=m.value[x],a.value=c.value+1<u.value}if(w.value>=0&&g.el){const x=g.el.children[D.value];k(x,t.centerActive)}})})}const A=Ne(!1);function k(I,x){let U=0;x?U=zS({containerElement:h.el,isHorizontal:f.value,selectedElement:I}):U=VS({containerElement:h.el,isHorizontal:f.value,isRtl:r.value,selectedElement:I}),_(U)}function _(I){if(!zi||!h.el)return;const x=Bn(f.value,h.el),U=ad(f.value,r.value,h.el);if(!(qa(f.value,h.el)<=x||Math.abs(I-U)<16)){if(f.value&&r.value&&h.el){const{scrollWidth:oe,offsetWidth:be}=h.el;I=oe-be-I}f.value?p.horizontal(I,b.value):p(I,b.value)}}function S(I){const{scrollTop:x,scrollLeft:U}=I.target;o.value=f.value?U:x}function C(I){if(A.value=!0,!(!a.value||!g.el)){for(const x of I.composedPath())for(const U of g.el.children)if(U===x){k(U);return}}}function B(I){A.value=!1}let T=!1;function R(I){var x;!T&&!A.value&&!(I.relatedTarget&&((x=g.el)!=null&&x.contains(I.relatedTarget)))&&V(),T=!1}function H(){T=!0}function G(I){if(!g.el)return;function x(U){I.preventDefault(),V(U)}f.value?I.key==="ArrowRight"?x(r.value?"prev":"next"):I.key==="ArrowLeft"&&x(r.value?"next":"prev"):I.key==="ArrowDown"?x("next"):I.key==="ArrowUp"&&x("prev"),I.key==="Home"?x("first"):I.key==="End"&&x("last")}function V(I){var U,te;if(!g.el)return;let x;if(!I)x=ji(g.el)[0];else if(I==="next"){if(x=(U=g.el.querySelector(":focus"))==null?void 0:U.nextElementSibling,!x)return V("first")}else if(I==="prev"){if(x=(te=g.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!x)return V("last")}else I==="first"?x=g.el.firstElementChild:I==="last"&&(x=g.el.lastElementChild);x&&x.focus({preventScroll:!0})}function P(I){const x=f.value&&r.value?-1:1,U=(I==="prev"?-x:x)*c.value;let te=o.value+U;if(f.value&&r.value&&h.el){const{scrollWidth:oe,offsetWidth:be}=h.el;te+=oe-be}_(te)}const N=O(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),z=O(()=>{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=O(()=>Math.abs(o.value)>1),W=O(()=>{if(!h.value)return!1;const I=qa(f.value,h.el),x=jS(f.value,h.el);return I-x-Math.abs(o.value)>1});return he(()=>y(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!f.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":a.value},i.value,t.class],style:t.style,tabindex:A.value||l.selected.value.length?-1:0,onFocus:R},{default:()=>{var I,x,U;return[z.value&&y("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!L.value}],onMousedown:H,onClick:()=>L.value&&P("prev")},[((I=n.prev)==null?void 0:I.call(n,N.value))??y(Ya,null,{default:()=>[y(_e,{icon:r.value?t.nextIcon:t.prevIcon},null)]})]),y("div",{key:"container",ref:h,class:"v-slide-group__container",onScroll:S},[y("div",{ref:g,class:"v-slide-group__content",onFocusin:C,onFocusout:B,onKeydown:G},[(x=n.default)==null?void 0:x.call(n,N.value)])]),z.value&&y("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!W.value}],onMousedown:H,onClick:()=>W.value&&P("next")},[((U=n.next)==null?void 0:U.call(n,N.value))??y(Ya,null,{default:()=>[y(_e,{icon:r.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:P,scrollOffset:o,focus:V,hasPrev:L,hasNext:W}}}),ud=Symbol.for("vuetify:v-chip-group"),US=X({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:bs},...cd(),...de(),...ul({selectedClass:"v-chip--selected"}),...ve(),...ze(),...ot({variant:"tonal"})},"VChipGroup");ne()({name:"VChipGroup",props:US(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{themeClasses:r}=je(t),{isSelected:i,select:s,next:l,prev:a,selected:o}=dl(t,ud);return Vr({VChip:{color:J(t,"color"),disabled:J(t,"disabled"),filter:J(t,"filter"),variant:J(t,"variant")}}),he(()=>{const c=Qa.filterProps(t);return y(Qa,Ie(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 $S=X({activeClass:String,appendAvatar:String,appendIcon:pe,closable:Boolean,closeIcon:{type:pe,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:pe,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Pt(),onClickOnce:Pt(),...$t(),...de(),...ut(),...Gt(),...Iu(),...At(),...Ur(),...qn(),...ve({tag:"span"}),...ze(),...ot({variant:"tonal"})},"VChip"),WS=ne()({name:"VChip",directives:{Ripple:si},props:$S(),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}=ao(),{borderClasses:l}=Wt(t),{colorClasses:a,colorStyles:o,variantClasses:c}=yn(t),{densityClasses:u}=Tt(t),{elevationClasses:f}=Yt(t),{roundedClasses:h}=Ct(t),{sizeClasses:d}=Qn(t),{themeClasses:g}=je(t),m=mt(t,"modelValue"),p=Nu(t,ud,!1),b=$r(t,n),w=O(()=>t.link!==!1&&b.isLink.value),D=O(()=>!t.disabled&&t.link!==!1&&(!!p||t.link||b.isClickable.value)),A=O(()=>({"aria-label":s(t.closeLabel),onClick(S){S.preventDefault(),S.stopPropagation(),m.value=!1,r("click:close",S)}}));function k(S){var C;r("click",S),D.value&&((C=b.navigate)==null||C.call(b,S),p==null||p.toggle())}function _(S){(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),k(S))}return()=>{const S=b.isLink.value?"a":t.tag,C=!!(t.appendIcon||t.appendAvatar),B=!!(C||i.append),T=!!(i.close||t.closable),R=!!(i.filter||t.filter)&&p,H=!!(t.prependIcon||t.prependAvatar),G=!!(H||i.prepend),V=!p||p.isSelected.value;return m.value&&yt(y(S,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":D.value,"v-chip--filter":R,"v-chip--pill":t.pill},g.value,l.value,V?a.value:void 0,u.value,f.value,h.value,d.value,c.value,p==null?void 0:p.selectedClass.value,t.class],style:[V?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:k,onKeydown:D.value&&!w.value&&_},{default:()=>{var P;return[Sn(D.value,"v-chip"),R&&y(BS,{key:"filter"},{default:()=>[yt(y("div",{class:"v-chip__filter"},[i.filter?y(Se,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},i.filter):y(_e,{key:"filter-icon",icon:t.filterIcon},null)]),[[oo,p.isSelected.value]])]}),G&&y("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?y(Se,{key:"prepend-defaults",disabled:!H,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},i.prepend):y(we,null,[t.prependIcon&&y(_e,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&y(pn,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),y("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]),B&&y("div",{key:"append",class:"v-chip__append"},[i.append?y(Se,{key:"append-defaults",disabled:!C,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},i.append):y(we,null,[t.appendIcon&&y(_e,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&y(pn,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&y("button",Ie({key:"close",class:"v-chip__close",type:"button"},A.value),[i.close?y(Se,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},i.close):y(_e,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[Es("ripple"),D.value&&t.ripple,null]])}}}),us=Symbol.for("vuetify:list");function dd(){const t=bn(us,{hasPrepend:Ne(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ne(!1),updateHasPrepend:n=>{n&&(e.hasPrepend.value=n)}};return jt(us,e),t}function fd(){return bn(us,null)}const pl=t=>{const e={activate:n=>{let{id:r,value:i,activated:s}=n;return r=fe(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 ys(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},hd=t=>{const e=pl(t);return{activate:r=>{let{activated:i,id:s,...l}=r;s=fe(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=ys(r);a.length&&(l=e.in(a.slice(0,1),i,s))}return l},out:(r,i,s)=>e.out(r,i,s)}},GS=t=>{const e=pl(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=fe(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},YS=t=>{const e=hd(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=fe(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},qS={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},gd={open:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(n){let s=fe(i.get(e));for(r.add(e);s!=null&&s!==e;)r.add(s),s=fe(i.get(s));return r}else r.delete(e);return r},select:()=>null},QS={open:gd.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)}},ml=t=>{const e={select:n=>{let{id:r,value:i,selected:s}=n;if(r=fe(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},pd=t=>{const e=ml(t);return{select:r=>{let{selected:i,id:s,...l}=r;s=fe(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)}},ZS=t=>{const e=ml(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=fe(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},XS=t=>{const e=pd(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=fe(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},KS=t=>{const e={select:n=>{let{id:r,value:i,selected:s,children:l,parents:a}=n;r=fe(r);const o=new Map(s),c=[r];for(;c.length;){const f=c.shift();s.set(fe(f),i?"on":"off"),l.has(f)&&c.push(...l.get(f))}let u=fe(a.get(r));for(;u;){const f=l.get(u),h=f.every(g=>s.get(fe(g))==="on"),d=f.every(g=>!s.has(fe(g))||s.get(fe(g))==="off");s.set(u,h?"on":d?"off":"indeterminate"),u=fe(a.get(u))}return t&&!i&&Array.from(s.entries()).reduce((h,d)=>{let[g,m]=d;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},Vn=Symbol.for("vuetify:nested"),md={id:Ne(),root:{register:()=>null,unregister:()=>null,parents:ie(new Map),children:ie(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ie(!1),selectable:ie(!1),opened:ie(new Set),activated:ie(new Set),selected:ie(new Map),selectedValues:ie([])}},JS=X({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),eE=t=>{let e=!1;const n=ie(new Map),r=ie(new Map),i=mt(t,"opened",t.opened,d=>new Set(fe(d)),d=>[...d.values()]),s=O(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return GS(t.mandatory);case"single-leaf":return YS(t.mandatory);case"independent":return pl(t.mandatory);case"single-independent":default:return hd(t.mandatory)}}),l=O(()=>{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 XS(t.mandatory);case"leaf":return ZS(t.mandatory);case"independent":return ml(t.mandatory);case"single-independent":return pd(t.mandatory);case"classic":default:return KS(t.mandatory)}}),a=O(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return QS;case"single":return qS;case"multiple":default:return gd}}),o=mt(t,"activated",t.activated,d=>s.value.in(d,n.value,r.value),d=>s.value.out(d,n.value,r.value)),c=mt(t,"selected",t.selected,d=>l.value.in(d,n.value,r.value),d=>l.value.out(d,n.value,r.value));mn(()=>{e=!0});function u(d){const g=[];let m=d;for(;m!=null;)g.unshift(m),m=r.value.get(m);return g}const f=vs("nested"),h={id:Ne(),root:{opened:i,activatable:J(t,"activatable"),selectable:J(t,"selectable"),activated:o,selected:c,selectedValues:O(()=>{const d=[];for(const[g,m]of c.value.entries())m==="on"&&d.push(g);return d}),register:(d,g,m)=>{g&&d!==g&&r.value.set(d,g),m&&n.value.set(d,[]),g!=null&&n.value.set(g,[...n.value.get(g)||[],d])},unregister:d=>{if(e)return;n.value.delete(d);const g=r.value.get(d);if(g){const m=n.value.get(g)??[];n.value.set(g,m.filter(p=>p!==d))}r.value.delete(d)},open:(d,g,m)=>{f.emit("click:open",{id:d,value:g,path:u(d),event:m});const p=a.value.open({id:d,value:g,opened:new Set(i.value),children:n.value,parents:r.value,event:m});p&&(i.value=p)},openOnSelect:(d,g,m)=>{const p=a.value.select({id:d,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:(d,g,m)=>{f.emit("click:select",{id:d,value:g,path:u(d),event:m});const p=l.value.select({id:d,value:g,selected:new Map(c.value),children:n.value,parents:r.value,event:m});p&&(c.value=p),h.root.openOnSelect(d,g,m)},activate:(d,g,m)=>{if(!t.activatable)return h.root.select(d,!0,m);f.emit("click:activate",{id:d,value:g,path:u(d),event:m});const p=s.value.activate({id:d,value:g,activated:new Set(o.value),children:n.value,parents:r.value,event:m});p&&(o.value=p)},children:n,parents:r}};return jt(Vn,h),h.root},vd=(t,e)=>{const n=bn(Vn,md),r=Symbol(zr()),i=O(()=>t.value!==void 0?t.value:r),s={...n,id:i,open:(l,a)=>n.root.open(fe(i.value),l,a),openOnSelect:(l,a)=>n.root.openOnSelect(i.value,l,a),isOpen:O(()=>n.root.opened.value.has(fe(i.value))),parent:O(()=>n.root.parents.value.get(i.value)),activate:(l,a)=>n.root.activate(i.value,l,a),isActivated:O(()=>n.root.activated.value.has(fe(i.value))),select:(l,a)=>n.root.select(i.value,l,a),isSelected:O(()=>n.root.selected.value.get(fe(i.value))==="on"),isIndeterminate:O(()=>n.root.selected.value.get(i.value)==="indeterminate"),isLeaf:O(()=>!n.root.children.value.get(i.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(i.value,n.id.value,e),mn(()=>{!n.isGroupActivator&&n.root.unregister(i.value)}),e&&jt(Vn,s),s},tE=()=>{const t=bn(Vn,md);jt(Vn,{...t,isGroupActivator:!0})};function nE(){const t=Ne(!1);return Lr(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:O(()=>t.value?void 0:{transition:"none !important"}),isBooted:Ka(t)}}const rE=Vd({name:"VListGroupActivator",setup(t,e){let{slots:n}=e;return tE(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),iE=X({activeColor:String,baseColor:String,color:String,collapseIcon:{type:pe,default:"$collapse"},expandIcon:{type:pe,default:"$expand"},prependIcon:pe,appendIcon:pe,fluid:Boolean,subgroup:Boolean,title:String,value:null,...de(),...ve()},"VListGroup"),Za=ne()({name:"VListGroup",props:iE(),setup(t,e){let{slots:n}=e;const{isOpen:r,open:i,id:s}=vd(J(t,"value"),!0),l=O(()=>`v-list-group--id-${String(s.value)}`),a=fd(),{isBooted:o}=nE();function c(d){d.stopPropagation(),i(!r.value,d)}const u=O(()=>({onClick:c,class:"v-list-group__header",id:l.value})),f=O(()=>r.value?t.collapseIcon:t.expandIcon),h=O(()=>({VListItem:{active:r.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&f.value,appendIcon:t.appendIcon||!t.subgroup&&f.value,title:t.title,value:t.value}}));return he(()=>y(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&&y(Se,{defaults:h.value},{default:()=>[y(rE,null,{default:()=>[n.activator({props:u.value,isOpen:r.value})]})]}),y(zd,{transition:{component:LS},disabled:!o.value},{default:()=>{var d;return[yt(y("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(d=n.default)==null?void 0:d.call(n)]),[[oo,r.value]])]}})]})),{isOpen:r}}}),sE=X({opacity:[Number,String],...de(),...ve()},"VListItemSubtitle"),bd=ne()({name:"VListItemSubtitle",props:sE(),setup(t,e){let{slots:n}=e;return he(()=>y(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},n)),{}}}),lE=Wr("v-list-item-title"),aE=X({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:pe,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:pe,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Pt(),onClickOnce:Pt(),...$t(),...de(),...ut(),...jn(),...Gt(),...At(),...Ur(),...ve(),...ze(),...ot({variant:"text"})},"VListItem"),ds=ne()({name:"VListItem",directives:{Ripple:si},props:aE(),emits:{click:t=>!0},setup(t,e){let{attrs:n,slots:r,emit:i}=e;const s=$r(t,n),l=O(()=>t.value===void 0?s.href.value:t.value),{activate:a,isActivated:o,select:c,isOpen:u,isSelected:f,isIndeterminate:h,isGroupActivator:d,root:g,parent:m,openOnSelect:p}=vd(l,!1),b=fd(),w=O(()=>{var x;return t.active!==!1&&(t.active||((x=s.isActive)==null?void 0:x.value)||(g.activatable.value?o.value:f.value))}),D=O(()=>t.link!==!1&&s.isLink.value),A=O(()=>!t.disabled&&t.link!==!1&&(t.link||s.isClickable.value||!!b&&(g.selectable.value||g.activatable.value||t.value!=null))),k=O(()=>t.rounded||t.nav),_=O(()=>t.color??t.activeColor),S=O(()=>({color:w.value?_.value??t.baseColor:t.baseColor,variant:t.variant}));Xe(()=>{var x;return(x=s.isActive)==null?void 0:x.value},x=>{x&&m.value!=null&&g.open(m.value,!0),x&&p(x)},{immediate:!0});const{themeClasses:C}=je(t),{borderClasses:B}=Wt(t),{colorClasses:T,colorStyles:R,variantClasses:H}=yn(S),{densityClasses:G}=Tt(t),{dimensionStyles:V}=Fn(t),{elevationClasses:P}=Yt(t),{roundedClasses:N}=Ct(k),z=O(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),L=O(()=>({isActive:w.value,select:c,isOpen:u.value,isSelected:f.value,isIndeterminate:h.value}));function W(x){var U;i("click",x),A.value&&((U=s.navigate)==null||U.call(s,x),!d&&(g.activatable.value?a(!o.value,x):(g.selectable.value||t.value!=null)&&c(!f.value,x)))}function I(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.target.dispatchEvent(new MouseEvent("click",x)))}return he(()=>{const x=D.value?"a":t.tag,U=r.title||t.title!=null,te=r.subtitle||t.subtitle!=null,oe=!!(t.appendAvatar||t.appendIcon),be=!!(oe||r.append),Je=!!(t.prependAvatar||t.prependIcon),Fe=!!(Je||r.prepend);return b==null||b.updateHasPrepend(Fe),t.activeColor&&jd("active-color",["color","base-color"]),yt(y(x,{class:["v-list-item",{"v-list-item--active":w.value,"v-list-item--disabled":t.disabled,"v-list-item--link":A.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!Fe&&(b==null?void 0:b.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&w.value},C.value,B.value,T.value,G.value,P.value,z.value,N.value,H.value,t.class],style:[R.value,V.value,t.style],href:s.href.value,tabindex:A.value?b?-2:0:void 0,onClick:W,onKeydown:A.value&&!D.value&&I},{default:()=>{var dt;return[Sn(A.value||w.value,"v-list-item"),Fe&&y("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?y(Se,{key:"prepend-defaults",disabled:!Je,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var me;return[(me=r.prepend)==null?void 0:me.call(r,L.value)]}}):y(we,null,[t.prependAvatar&&y(pn,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&y(_e,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),y("div",{class:"v-list-item__spacer"},null)]),y("div",{class:"v-list-item__content","data-no-activator":""},[U&&y(lE,{key:"title"},{default:()=>{var me;return[((me=r.title)==null?void 0:me.call(r,{title:t.title}))??t.title]}}),te&&y(bd,{key:"subtitle"},{default:()=>{var me;return[((me=r.subtitle)==null?void 0:me.call(r,{subtitle:t.subtitle}))??t.subtitle]}}),(dt=r.default)==null?void 0:dt.call(r,L.value)]),be&&y("div",{key:"append",class:"v-list-item__append"},[r.append?y(Se,{key:"append-defaults",disabled:!oe,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var me;return[(me=r.append)==null?void 0:me.call(r,L.value)]}}):y(we,null,[t.appendIcon&&y(_e,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&y(pn,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),y("div",{class:"v-list-item__spacer"},null)])]}}),[[Es("ripple"),A.value&&t.ripple]])}),{activate:a,isActivated:o,isGroupActivator:d,isSelected:f,list:b,select:c}}}),oE=X({color:String,inset:Boolean,sticky:Boolean,title:String,...de(),...ve()},"VListSubheader"),cE=ne()({name:"VListSubheader",props:oE(),setup(t,e){let{slots:n}=e;const{textColorClasses:r,textColorStyles:i}=an(J(t,"color"));return he(()=>{const s=!!(n.default||t.title);return y(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&&y("div",{class:"v-list-subheader__text"},[((l=n.default)==null?void 0:l.call(n))??t.title])]}})}),{}}}),uE=X({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...de(),...ze()},"VDivider"),dE=ne()({name:"VDivider",props:uE(),setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=je(t),{textColorClasses:s,textColorStyles:l}=an(J(t,"color")),a=O(()=>{const o={};return t.length&&(o[t.vertical?"height":"width"]=vt(t.length)),t.thickness&&(o[t.vertical?"borderRightWidth":"borderTopWidth"]=vt(t.thickness)),o});return he(()=>{const o=y("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?y("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[o,y("div",{class:"v-divider__content"},[r.default()]),o]):o}),{}}}),fE=X({items:Array,returnObject:Boolean},"VListChildren"),yd=ne()({name:"VListChildren",props:fE(),setup(t,e){let{slots:n}=e;return dd(),()=>{var r,i;return((r=n.default)==null?void 0:r.call(n))??((i=t.items)==null?void 0:i.map(s=>{var h,d;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}))??y(dE,a,null);if(o==="subheader")return((d=n.subheader)==null?void 0:d.call(n,{props:a}))??y(cE,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},f=Za.filterProps(a);return l?y(Za,Ie({value:a==null?void 0:a.value},f),{activator:g=>{let{props:m}=g;const p={...a,...m,value:t.returnObject?c:a.value};return n.header?n.header({props:p}):y(ds,p,u)},default:()=>y(yd,{items:l,returnObject:t.returnObject},n)}):n.item?n.item({props:a}):y(ds,Ie(a,{value:t.returnObject?c:a.value}),u)}))}}}),hE=X({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:bs}},"list-items");function fs(t,e){const n=nt(e,t.itemTitle,e),r=nt(e,t.itemValue,n),i=nt(e,t.itemChildren),s=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?Fr(e,["children"]):e:void 0:nt(e,t.itemProps),l={title:n,value:r,...s};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(i)?Sd(t,i):void 0,raw:e}}function Sd(t,e){const n=[];for(const r of e)n.push(fs(t,r));return n}function QE(t){const e=O(()=>Sd(t,t.items)),n=O(()=>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"?fs(t,l):e.value.find(a=>t.valueComparator(l,a.value))||fs(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 gE(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function pE(t,e){const n=nt(e,t.itemType,"item"),r=gE(e)?e:nt(e,t.itemTitle),i=nt(e,t.itemValue,void 0),s=nt(e,t.itemChildren),l=t.itemProps===!0?Fr(e,["children"]):nt(e,t.itemProps),a={title:r,value:i,...l};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&s?Ed(t,s):void 0,raw:e}}function Ed(t,e){const n=[];for(const r of e)n.push(pE(t,r));return n}function mE(t){return{items:O(()=>Ed(t,t.items))}}const vE=X({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":Pt(),"onClick:select":Pt(),"onUpdate:opened":Pt(),...JS({selectStrategy:"single-leaf",openStrategy:"list"}),...$t(),...de(),...ut(),...jn(),...Gt(),itemType:{type:String,default:"type"},...hE(),...At(),...ve(),...ze(),...ot({variant:"text"})},"VList"),bE=ne()({name:"VList",props:vE(),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}=mE(t),{themeClasses:i}=je(t),{backgroundColorClasses:s,backgroundColorStyles:l}=Fd(J(t,"bgColor")),{borderClasses:a}=Wt(t),{densityClasses:o}=Tt(t),{dimensionStyles:c}=Fn(t),{elevationClasses:u}=Yt(t),{roundedClasses:f}=Ct(t),{children:h,open:d,parents:g,select:m}=eE(t),p=O(()=>t.lines?`v-list--${t.lines}-line`:void 0),b=J(t,"activeColor"),w=J(t,"baseColor"),D=J(t,"color");dd(),Vr({VListGroup:{activeColor:b,baseColor:w,color:D,expandIcon:J(t,"expandIcon"),collapseIcon:J(t,"collapseIcon")},VListItem:{activeClass:J(t,"activeClass"),activeColor:b,baseColor:w,color:D,density:J(t,"density"),disabled:J(t,"disabled"),lines:J(t,"lines"),nav:J(t,"nav"),slim:J(t,"slim"),variant:J(t,"variant")}});const A=Ne(!1),k=ie();function _(H){A.value=!0}function S(H){A.value=!1}function C(H){var G;!A.value&&!(H.relatedTarget&&((G=k.value)!=null&&G.contains(H.relatedTarget)))&&R()}function B(H){const G=H.target;if(!(!k.value||["INPUT","TEXTAREA"].includes(G.tagName))){if(H.key==="ArrowDown")R("next");else if(H.key==="ArrowUp")R("prev");else if(H.key==="Home")R("first");else if(H.key==="End")R("last");else return;H.preventDefault()}}function T(H){A.value=!0}function R(H){if(k.value)return cr(k.value,H)}return he(()=>y(t.tag,{ref:k,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,f.value,t.class],style:[l.value,c.value,t.style],tabindex:t.disabled||A.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:_,onFocusout:S,onFocus:C,onKeydown:B,onMousedown:T},{default:()=>[y(yd,{items:r.value,returnObject:t.returnObject},n)]})),{open:d,select:m,focus:R,children:h,parents:g}}}),yE={key:0,class:"my-2"},SE=["innerHTML"],EE={style:{"white-space":"normal"}},wE=["innerHTML"],AE={__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}=vn();return(o,c)=>(ce(),Be(we,null,[$(i)?(ce(),Be(we,{key:0},[t.item[$(i)]?(ce(),Ve(Ss,{key:0,src:t.item._thumbnail||t.item[$(i)],"aspect-ratio":$(e).aspectRatio||3,cover:$(e).imageDisplay!=="contain",style:Ud(`width:${$(e).imageWidth||100}%${$(e).imagePosition!=="top"?";float:"+$(e).imagePosition:""}`)},null,8,["src","aspect-ratio","cover","style"])):Ue("",!0)],64)):Ue("",!0),y(fl,{class:"pt-0"},{default:re(()=>[$(n)&&t.item[$(n)]?(ce(),Be("h3",yE,Xt(t.item[$(n)]),1)):Ue("",!0),$(r)&&t.item[$(r)]?(ce(),Be("div",{key:1,innerHTML:t.item[$(r)]},null,8,SE)):Ue("",!0),y(bE,{dense:"",class:"transparent",lines:"two"},{default:re(()=>[(ce(!0),Be(we,null,bl($(e).additionalFields.filter(u=>!!t.item[u]),u=>(ce(),Ve(ds,{key:u,style:{"min-height":"24px","max-width":"100%"}},{default:re(()=>[y(bd,{class:"font-weight-bold"},{default:re(()=>[qe(Xt($(a)[u].title?$(a)[u].title:$(a)[u]["x-originalName"]||u),1)]),_:2},1024),ro("div",EE,[$(a)[u].separator?t.item[u]?(ce(!0),Be(we,{key:1},bl(t.item[u].split($(a)[u].separator).sort(),f=>(ce(),Ve(WS,{key:f,small:"",style:{flex:"none"},class:"my-1 mr-1",variant:"flat"},{default:re(()=>[qe(Xt($(La)({[u]:f},$(a)[u])+""),1)]),_:2},1024))),128)):Ue("",!0):(ce(),Be(we,{key:0},[$(a)[u]["x-display"]==="markdown"?(ce(),Be("div",{key:0,innerHTML:t.item[u]},null,8,wE)):(ce(),Be(we,{key:1},[qe(Xt($(La)(t.item,$(a)[u])+""),1)],64))],64))])]),_:2},1024))),128))]),_:1})]),_:1}),$(s)||$(l)?(ce(),Ve(NS,{key:1,item:t.item},null,8,["item"])):Ue("",!0)],64))}},CE=Wr("v-alert-title"),_E=["success","info","warning","error"],DE=X({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:pe,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>_E.includes(t)},...de(),...ut(),...jn(),...Gt(),...ws(),...As(),...At(),...ve(),...ze(),...ot({variant:"flat"})},"VAlert"),RE=ne()({name:"VAlert",props:DE(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:n,slots:r}=e;const i=mt(t,"modelValue"),s=O(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),l=O(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:a}=je(t),{colorClasses:o,colorStyles:c,variantClasses:u}=yn(l),{densityClasses:f}=Tt(t),{dimensionStyles:h}=Fn(t),{elevationClasses:d}=Yt(t),{locationStyles:g}=Cs(t),{positionClasses:m}=_s(t),{roundedClasses:p}=Ct(t),{textColorClasses:b,textColorStyles:w}=an(J(t,"borderColor")),{t:D}=ao(),A=O(()=>({"aria-label":D(t.closeLabel),onClick(k){i.value=!1,n("click:close",k)}}));return()=>{const k=!!(r.prepend||s.value),_=!!(r.title||t.title),S=!!(r.close||t.closable);return i.value&&y(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},a.value,o.value,f.value,d.value,m.value,p.value,u.value,t.class],style:[c.value,h.value,g.value,t.style],role:"alert"},{default:()=>{var C,B;return[Sn(!1,"v-alert"),t.border&&y("div",{key:"border",class:["v-alert__border",b.value],style:w.value},null),k&&y("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?y(Se,{key:"prepend-defaults",disabled:!s.value,defaults:{VIcon:{density:t.density,icon:s.value,size:t.prominent?44:28}}},r.prepend):y(_e,{key:"prepend-icon",density:t.density,icon:s.value,size:t.prominent?44:28},null)]),y("div",{class:"v-alert__content"},[_&&y(CE,{key:"title"},{default:()=>{var T;return[((T=r.title)==null?void 0:T.call(r))??t.title]}}),((C=r.text)==null?void 0:C.call(r))??t.text,(B=r.default)==null?void 0:B.call(r)]),r.append&&y("div",{key:"append",class:"v-alert__append"},[r.append()]),S&&y("div",{key:"close",class:"v-alert__close"},[r.close?y(Se,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=r.close)==null?void 0:T.call(r,{props:A.value})]}}):y(Bt,Ie({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},A.value),null)])]}})}}}),kE=X({id:String,submenu:Boolean,...Fr(uo({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:HS}}),["absolute"])},"VMenu"),wd=ne()({name:"VMenu",props:kE(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=mt(t,"modelValue"),{scopeId:i}=fo(),{isRtl:s}=so(),l=zr(),a=O(()=>t.id||`v-menu-${l}`),o=ie(),c=bn(Sl,null),u=Ne(new Set);jt(Sl,{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&&!$d(p,o.value.contentEl))&&(r.value=!1,c==null||c.closeParents())},40)}}),mn(()=>c==null?void 0:c.unregister()),Wd(()=>r.value=!1);async function f(p){var D,A,k;const b=p.relatedTarget,w=p.target;await gs(),r.value&&b!==w&&((D=o.value)!=null&&D.contentEl)&&((A=o.value)!=null&&A.globalTop)&&![document,o.value.contentEl].includes(w)&&!o.value.contentEl.contains(w)&&((k=ji(o.value.contentEl)[0])==null||k.focus())}Xe(r,p=>{p?(c==null||c.register(),document.addEventListener("focusin",f,{once:!0})):(c==null||c.unregister(),document.removeEventListener("focusin",f))});function h(p){c==null||c.closeParents(p)}function d(p){var b,w,D,A,k;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(),Gd(ji((b=o.value)==null?void 0:b.contentEl,!1),p.shiftKey?"prev":"next",S=>S.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,(k=(A=o.value)==null?void 0:A.activatorEl)==null||k.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(),cr(b,"next")):p.key==="ArrowUp"?(p.preventDefault(),p.stopImmediatePropagation(),cr(b,"prev")):t.submenu&&(p.key===(s.value?"ArrowRight":"ArrowLeft")?r.value=!1:p.key===(s.value?"ArrowLeft":"ArrowRight")&&(p.preventDefault(),cr(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=O(()=>Ie({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":a.value,onKeydown:g},t.activatorProps));return he(()=>{const p=br.filterProps(t);return y(br,Ie({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:d},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 y(Se,{root:"VMenu"},{default:()=>{var A;return[(A=n.default)==null?void 0:A.call(n,...w)]}})}})}),ho({id:a,ΨopenChildren:u},o)}});function TE(t,e){const n=typeof t=="string"?Yd(t):t,r=xE(n,e);return{mounted:r,updated:r,unmounted(i){co(null,i)}}}function xE(t,e){return function(n,r,i){var f,h,d;const s=typeof e=="function"?e(r):e,l=((f=r.value)==null?void 0:f.text)??r.value??(s==null?void 0:s.text),a=no(r.value)?r.value:{},o=()=>l??n.innerHTML,c=(i.ctx===r.instance.$?(h=ME(i,r.instance.$))==null?void 0:h.provides:(d=i.ctx)==null?void 0:d.provides)??r.instance.$.provides,u=Qe(t,Ie(s,a),o);u.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:c}),co(u,n)}}function ME(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 Ad=TE(id,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}}),IE={__name:"DeleteEvent",props:{event:{type:[Object,null],required:!0}},emits:["deleted"],setup(t,{emit:e}){const{mainDataset:n}=vn(),r=ie(!1),i=t,s=e;async function l(){try{await ln(`${n.href}/lines/${i.event.id}`,{method:"DELETE"}),r.value=!1,s("deleted"),ii.value=new Date().getTime()}catch(a){cn.value=a.status+" - "+a._data,on.value=!0}}return(a,o)=>(ce(),Ve(wd,{modelValue:r.value,"onUpdate:modelValue":o[2]||(o[2]=c=>r.value=c),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:re(({props:c})=>[yt(y(Bt,Ie({icon:"mdi-delete",color:"error"},c),null,16),[[Ad,{text:"Supprimer l'événement",location:"right",openDelay:"500"}]])]),default:re(()=>[y(Yu,{outlined:"","data-iframe-height":""},{default:re(()=>[y(Gu,{"primary-title":""},{default:re(()=>[qe(" Supprimer l'événement ? ")]),_:1}),y(fl,null,{default:re(()=>[y(RE,{"model-value":!0,type:"error"},{default:re(()=>[qe(" Voulez vous vraiment supprimer l'événement ? ")]),_:1})]),_:1}),y(li,null,{default:re(()=>[y(Pr),y(Bt,{text:"",onClick:o[0]||(o[0]=c=>r.value=!1)},{default:re(()=>[qe(" Annuler ")]),_:1}),y(Bt,{color:"error",onClick:o[1]||(o[1]=c=>l())},{default:re(()=>[qe(" Supprimer ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}};var NE={exports:{}};(function(t,e){(function(n,r){t.exports=r(xu)})(zn,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})})(NE);var OE={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zn,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])+"]"}}})})(OE);var Cd={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zn,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(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,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)}}})})(Cd);var PE=Cd.exports;const HE=ms(PE);var _d={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zn,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,f,h){return s.fromToBase(c,u,f,h)}i.en.relativeTime=l,s.fromToBase=function(c,u,f,h,d){for(var g,m,p,b=f.$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,A=0;A<D;A+=1){var k=w[A];k.d&&(g=h?i(c).diff(f,k.d,!0):f.diff(c,k.d,!0));var _=(n.rounding||Math.round)(Math.abs(g));if(p=g>0,_<=k.r||!k.r){_<=1&&A>0&&(k=w[A-1]);var S=b[k.l];d&&(_=d(""+_)),m=typeof S=="string"?S.replace("%d",_):S(_,u,k.l,p);break}}if(u)return m;var C=p?b.future:b.past;return typeof C=="function"?C(m):C.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)}}})})(_d);var LE=_d.exports;const BE=ms(LE);Pn.extend(HE);Pn.extend(BE);function VE(t){const e=ie("fr");return{locale:e,dayjs:n=>Pn(n).locale(e.value)}}const{locale:ZE,dayjs:Vi}=VE(),zE={__name:"EventDetails",props:{event:{type:[Object,null],required:!0}},emits:["updated"],setup(t,{emit:e}){const n=Qd(()=>Zd(()=>import("./EventEdit-Dl541TsU.js").then(A=>A.E),__vite__mapDeps([0,1,2,3,4,5]))),{width:r,height:i}=lo(),{config:s,mainDataset:l,layout:a,startDateField:o,endDateField:c,dateField:u,startDateType:f,endDateType:h}=vn(),d=e,g=ie("read"),m=t;Xe(()=>m.event,A=>{g.value="read"});const p=sl(async()=>m.event?(m.event.id||(g.value="edit"),m.event.id?(await ln(`${l.href}/lines?_id_eq=${m.event.id}${g.value==="read"?"&html=true":""}`)).results.pop():{...m.event}):null,null,{onError:function(A){on.value=!0,cn.value=A.message}});async function b(A){const k=new FormData,{__file:_,...S}=A,C=a==="contrib"?{payload:JSON.stringify(S)}:S;for(const[R,H]of Object.entries(C))k.append(R,H);_&&k.append("attachment",_);const B={method:"POST",body:k,headers:{"Content-Disposition":k}};let T=`${l.href}/lines`;m.event.id&&(T+="/"+m.event.id,B.method="PUT");try{await ln(T,B),d("updated"),ii.value=new Date().getTime()}catch(R){cn.value=R.status+" - "+R._data,on.value=!0}}const w=O(()=>{if(o&&c){const A=Vi(p.value[o]),k=Vi(p.value[c]);return A.isSame(k,"day")?A.format("ddd D MMM YYYY")+(f==="date-time"?", "+A.format("HH:mm"):"")+(h==="date-time"?" - "+k.format("HH:mm"):""):A.format("ddd D MMM YYYY"+(f==="date-time"?", HH:mm":""))+" - "+k.format("ddd D MMM YYYY"+(h==="date-time"?", HH:mm":""))}else return Vi(p.value[u]).format("dd, MMM YYYY")});function D(){g.value="read",m.event.id||d("updated")}return(A,k)=>(ce(),Ve(Yu,{"max-width":g.value==="read"?800:$(r)*$(s).formWidth/10,"min-width":200,"max-height":$(i)*.8},{default:re(()=>[$(p)?(ce(),Be(we,{key:0},[g.value==="read"?(ce(),Be(we,{key:0},[$(a)==="admin"?(ce(),Ve(li,{key:0,class:"py-0"},{default:re(()=>[qe(Xt(w.value)+" ",1),y(Pr),yt(y(Bt,{icon:"mdi-pencil",color:"primary",onClick:k[0]||(k[0]=_=>g.value="edit")},null,512),[[Ad,{text:"Modifier l'événement",location:"right",openDelay:"500"}]]),y(IE,{event:t.event,onDeleted:k[1]||(k[1]=_=>d("updated"))},null,8,["event"])]),_:1})):Ue("",!0),y(AE,{item:$(p)},null,8,["item"])],64)):Ue("",!0),g.value==="edit"?(ce(),Ve(qd,{key:1},{fallback:re(()=>[y($a,{align:"center",style:{height:"200px"},class:"ma-0"},{default:re(()=>[y(Fa,{class:"text-center"},{default:re(()=>[y(as,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1})]),default:re(()=>[y($(n),{item:$(p),onValidate:b,onCancel:D},null,8,["item"])]),_:1})):Ue("",!0)],64)):(ce(),Ve($a,{key:1,align:"center",style:{height:"200px"},class:"ma-0"},{default:re(()=>[y(Fa,{class:"text-center"},{default:re(()=>[y(as,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1}))]),_:1},8,["max-width","max-height"]))}},jE={__name:"Calendar",setup(t){var p;Xd(b=>({"834f4b6e":$(e).current.value.colors.primary,"7284700a":$(e).current.value.colors.secondary}));const e=Kd(),{color:n,mainDataset:r,layout:i,startDateField:s,endDateField:l,dateField:a}=vn(),o=ie(null),c=ie(null),u=ie(null);Ee.view=Ee.view||"dayGridMonth";function f(b){return n.type==="monochrome"?n.colors.type==="custom"?n.colors.hexValue:e.current.value.colors[n.colors.strValue]:J0.value[b]}const h=O(()=>(eS.value||[]).map(b=>({...b,color:f(b.colorFieldValue)})));async function d(b){const w={};s&&l?(w[s]=b.start.toISOString(),w[l]=b.end.toISOString()):a&&(w[a]=b.start.toISOString());try{await ln(`${r.href}/lines/${b.id}`,{method:"PATCH",body:w}),c.value=!1,ii.value=new Date().getTime()}catch(D){cn.value=D.status+" - "+D._data,on.value=!0}}const g=Ee.start&&Ee.end&&new Date((new Date(Ee.start).getTime()+new Date(Ee.end).getTime())/2),m=hs({plugins:[Lv,$b,wb,iy],initialView:Ee.view||"dayGridMonth",initialDate:g&&new Date(g)||((p=r.timePeriod)==null?void 0:p.startDate)&&new Date(r.timePeriod.startDate)||new Date,locale:sy,headerToolbar:{start:"prev,next today",center:"title",end:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},events:h,selectable:i!=="simple",datesSet(b){Ee.start=b.startStr,Ee.end=b.endStr,Ee.view=b.view.type},eventClick(b){b.jsEvent.preventDefault();const w=b.event.toJSON();o.value={...w,...w.extendedProps},delete o.value.extendedProps,setTimeout(()=>{c.value=!0},0),u.value=b.el},eventDrop(b){d(b.event)},eventResize(b){d(b.event)},select(b){const w={};s&&l?(w[s]=b.start.toISOString(),w[l]=b.end.toISOString()):a&&(w[a]=b.start.toISOString()),o.value=w,u.value=b.jsEvent.target,c.value=!0}});return(b,w)=>(ce(),Be(we,null,[y($(av),{options:m},null,8,["options"]),y(wd,{modelValue:c.value,"onUpdate:modelValue":w[1]||(w[1]=D=>c.value=D),"close-on-content-click":!1,activator:u.value,location:$(Ee).view==="dayGridMonth"?"bottom":"start center"},{default:re(()=>[y(zE,{event:o.value,onUpdated:w[0]||(w[0]=D=>c.value=!1)},null,8,["event"])]),_:1},8,["modelValue","activator","location"])],64))}},XE=Object.freeze(Object.defineProperty({__proto__:null,default:jE},Symbol.toStringTag,{value:"Module"}));export{Nu as A,nE as B,cd as C,Qa as D,Fi as E,hE as F,HS as G,QE as H,bE as I,pn as J,WS as K,oS as L,fs as M,LS as N,ul as O,dE as P,cE as Q,si as R,lE as S,Yu as T,Vi as U,RE as V,fl as W,li as X,XE as Y,YE as a,Bt as b,Fa as c,$a as d,qE as e,_e as f,Lu as g,BS as h,ut as i,Tt as j,ds as k,GE as l,Hu as m,as as n,Gt as o,Yt as p,wd as q,Pr as r,Wr as s,$t as t,WE as u,Wt as v,Ya as w,pS as x,dl as y,Iu as z};