@sme.up/ketchup 11.0.0-SNAPSHOT-20241119143751 → 11.0.0-SNAPSHOT-20241120144910
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-000ee01d.js → f-cell-a59109ce.js} +8 -5
- package/dist/cjs/f-cell-a59109ce.js.map +1 -0
- package/dist/cjs/{f-chip-752377d0.js → f-chip-fbe485d2.js} +2 -2
- package/dist/cjs/{f-chip-752377d0.js.map → f-chip-fbe485d2.js.map} +1 -1
- package/dist/cjs/{f-paginator-utils-dda7406a.js → f-paginator-utils-718ccfe6.js} +2 -2
- package/dist/cjs/{f-paginator-utils-dda7406a.js.map → f-paginator-utils-718ccfe6.js.map} +1 -1
- package/dist/cjs/{f-text-field-9c220f70.js → f-text-field-4ad41068.js} +2 -2
- package/dist/cjs/{f-text-field-9c220f70.js.map → f-text-field-4ad41068.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js +6 -6
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +4 -4
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-e507aa6d.js → kup-data-table-helper-0ff4e639.js} +2 -2
- package/dist/cjs/{kup-data-table-helper-e507aa6d.js.map → kup-data-table-helper-0ff4e639.js.map} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-input-panel.cjs.entry.js +6 -6
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-2dc3e312.js → kup-manager-50534fc1.js} +2 -2
- package/dist/cjs/{kup-manager-2dc3e312.js.map → kup-manager-50534fc1.js.map} +1 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +2 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +3 -2
- package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
- package/dist/components/kup-autocomplete2.js +3 -1
- package/dist/components/kup-autocomplete2.js.map +1 -1
- package/dist/components/kup-input-panel.js +3 -3
- package/dist/components/kup-input-panel.js.map +1 -1
- package/dist/components/kup-manager.js +1 -1
- package/dist/components/kup-manager.js.map +1 -1
- package/dist/esm/{f-cell-a7a32bc8.js → f-cell-3c165257.js} +8 -5
- package/dist/esm/f-cell-3c165257.js.map +1 -0
- package/dist/esm/{f-chip-46072fe3.js → f-chip-0af17d55.js} +2 -2
- package/dist/esm/{f-chip-46072fe3.js.map → f-chip-0af17d55.js.map} +1 -1
- package/dist/esm/{f-paginator-utils-0bfa6e5a.js → f-paginator-utils-dc951ab5.js} +2 -2
- package/dist/esm/{f-paginator-utils-0bfa6e5a.js.map → f-paginator-utils-dc951ab5.js.map} +1 -1
- package/dist/esm/{f-text-field-65d3ad8a.js → f-text-field-12fca370.js} +2 -2
- package/dist/esm/{f-text-field-65d3ad8a.js.map → f-text-field-12fca370.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_28.entry.js +6 -6
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +4 -4
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-895a49b6.js → kup-data-table-helper-05655d1b.js} +2 -2
- package/dist/esm/{kup-data-table-helper-895a49b6.js.map → kup-data-table-helper-05655d1b.js.map} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +4 -4
- package/dist/esm/kup-input-panel.entry.js +6 -6
- package/dist/esm/kup-input-panel.entry.js.map +1 -1
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-ad57ae2f.js → kup-manager-e8e4a3d7.js} +2 -2
- package/dist/esm/{kup-manager-ad57ae2f.js.map → kup-manager-e8e4a3d7.js.map} +1 -1
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-83e26dd2.entry.js → p-030fc34d.entry.js} +2 -2
- package/dist/ketchup/p-0cb72125.entry.js +2 -0
- package/dist/ketchup/p-0cb72125.entry.js.map +1 -0
- package/dist/ketchup/{p-2a48da13.entry.js → p-140622da.entry.js} +2 -2
- package/dist/ketchup/{p-1d1e72b0.entry.js → p-218e7fec.entry.js} +2 -2
- package/dist/ketchup/{p-5656b76e.entry.js → p-21d451d2.entry.js} +2 -2
- package/dist/ketchup/{p-44212a84.entry.js → p-26deb524.entry.js} +2 -2
- package/dist/ketchup/{p-fe103476.entry.js → p-2a672fa2.entry.js} +2 -2
- package/dist/ketchup/{p-8e3ba60a.entry.js → p-389282ad.entry.js} +2 -2
- package/dist/ketchup/{p-4a53bf70.entry.js → p-4b9a6a21.entry.js} +2 -2
- package/dist/ketchup/{p-8b3f0d60.js → p-4bafc343.js} +2 -2
- package/dist/ketchup/{p-9034e4ec.entry.js → p-508001bc.entry.js} +2 -2
- package/dist/ketchup/{p-ab11ccef.entry.js → p-7e899acb.entry.js} +2 -2
- package/dist/ketchup/{p-203ecb4b.js → p-84d5822b.js} +2 -2
- package/dist/ketchup/{p-d917975b.entry.js → p-872f3c37.entry.js} +2 -2
- package/dist/ketchup/{p-a58f4062.entry.js → p-8a00ae05.entry.js} +2 -2
- package/dist/ketchup/{p-3de3a2e1.js → p-8b2333b1.js} +2 -2
- package/dist/ketchup/{p-53d922c0.entry.js → p-9b5a3cfb.entry.js} +2 -2
- package/dist/ketchup/{p-5f5a0744.entry.js → p-a5b798e8.entry.js} +2 -2
- package/dist/ketchup/{p-fcfdb44d.entry.js → p-b2baac91.entry.js} +2 -2
- package/dist/ketchup/p-b9afa898.js +2 -0
- package/dist/ketchup/p-b9afa898.js.map +1 -0
- package/dist/ketchup/{p-b12e6523.entry.js → p-ba6ec98f.entry.js} +2 -2
- package/dist/ketchup/{p-f81b198f.entry.js → p-bb9e997f.entry.js} +2 -2
- package/dist/ketchup/{p-0323ba49.entry.js → p-bbd2ac0e.entry.js} +2 -2
- package/dist/ketchup/{p-616690ad.entry.js → p-bc35e49a.entry.js} +2 -2
- package/dist/ketchup/{p-6926026f.js → p-bf2f70f5.js} +4 -4
- package/dist/ketchup/p-bf2f70f5.js.map +1 -0
- package/dist/ketchup/{p-0a8e2aed.entry.js → p-bf620204.entry.js} +2 -2
- package/dist/ketchup/{p-187a34ac.js → p-bfa170f2.js} +2 -2
- package/dist/ketchup/{p-03fc7ed4.entry.js → p-c1f83eea.entry.js} +2 -2
- package/dist/ketchup/{p-200a934c.entry.js → p-c5811ba4.entry.js} +2 -2
- package/dist/ketchup/{p-a3432abd.entry.js → p-ce048e24.entry.js} +2 -2
- package/dist/ketchup/p-d3dfa1d7.entry.js +2 -0
- package/dist/ketchup/{p-97036b0f.entry.js.map → p-d3dfa1d7.entry.js.map} +1 -1
- package/dist/ketchup/{p-d5a21513.entry.js → p-d505b489.entry.js} +2 -2
- package/dist/ketchup/{p-3bf7ebd6.entry.js → p-da90f81d.entry.js} +2 -2
- package/dist/ketchup/{p-601ba69c.entry.js → p-dc490beb.entry.js} +2 -2
- package/dist/ketchup/{p-c85c7a50.entry.js → p-ee34a123.entry.js} +2 -2
- package/dist/ketchup/{p-def7cb8d.entry.js → p-fdae9a5a.entry.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/f-cell-000ee01d.js.map +0 -1
- package/dist/esm/f-cell-a7a32bc8.js.map +0 -1
- package/dist/ketchup/p-1471e196.entry.js +0 -2
- package/dist/ketchup/p-1471e196.entry.js.map +0 -1
- package/dist/ketchup/p-14ae3263.js +0 -2
- package/dist/ketchup/p-14ae3263.js.map +0 -1
- package/dist/ketchup/p-6926026f.js.map +0 -1
- package/dist/ketchup/p-97036b0f.entry.js +0 -2
- /package/dist/ketchup/{p-83e26dd2.entry.js.map → p-030fc34d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-2a48da13.entry.js.map → p-140622da.entry.js.map} +0 -0
- /package/dist/ketchup/{p-1d1e72b0.entry.js.map → p-218e7fec.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5656b76e.entry.js.map → p-21d451d2.entry.js.map} +0 -0
- /package/dist/ketchup/{p-44212a84.entry.js.map → p-26deb524.entry.js.map} +0 -0
- /package/dist/ketchup/{p-fe103476.entry.js.map → p-2a672fa2.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8e3ba60a.entry.js.map → p-389282ad.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4a53bf70.entry.js.map → p-4b9a6a21.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8b3f0d60.js.map → p-4bafc343.js.map} +0 -0
- /package/dist/ketchup/{p-9034e4ec.entry.js.map → p-508001bc.entry.js.map} +0 -0
- /package/dist/ketchup/{p-ab11ccef.entry.js.map → p-7e899acb.entry.js.map} +0 -0
- /package/dist/ketchup/{p-203ecb4b.js.map → p-84d5822b.js.map} +0 -0
- /package/dist/ketchup/{p-d917975b.entry.js.map → p-872f3c37.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a58f4062.entry.js.map → p-8a00ae05.entry.js.map} +0 -0
- /package/dist/ketchup/{p-3de3a2e1.js.map → p-8b2333b1.js.map} +0 -0
- /package/dist/ketchup/{p-53d922c0.entry.js.map → p-9b5a3cfb.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5f5a0744.entry.js.map → p-a5b798e8.entry.js.map} +0 -0
- /package/dist/ketchup/{p-fcfdb44d.entry.js.map → p-b2baac91.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b12e6523.entry.js.map → p-ba6ec98f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f81b198f.entry.js.map → p-bb9e997f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-0323ba49.entry.js.map → p-bbd2ac0e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-616690ad.entry.js.map → p-bc35e49a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-0a8e2aed.entry.js.map → p-bf620204.entry.js.map} +0 -0
- /package/dist/ketchup/{p-187a34ac.js.map → p-bfa170f2.js.map} +0 -0
- /package/dist/ketchup/{p-03fc7ed4.entry.js.map → p-c1f83eea.entry.js.map} +0 -0
- /package/dist/ketchup/{p-200a934c.entry.js.map → p-c5811ba4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a3432abd.entry.js.map → p-ce048e24.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d5a21513.entry.js.map → p-d505b489.entry.js.map} +0 -0
- /package/dist/ketchup/{p-3bf7ebd6.entry.js.map → p-da90f81d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-601ba69c.entry.js.map → p-dc490beb.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c85c7a50.entry.js.map → p-ee34a123.entry.js.map} +0 -0
- /package/dist/ketchup/{p-def7cb8d.entry.js.map → p-fdae9a5a.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as t,g as n,f as i,h as r,H as l,d as s}from"./p-d7c15b0e.js";import{k as o,g as a,s as c,h as f,v as u}from"./p-6926026f.js";import{c as d}from"./p-635bb4b3.js";import{F as h}from"./p-e3032f6d.js";import{c as p,F as g}from"./p-3de3a2e1.js";import{b as v,K as m}from"./p-029c7cbe.js";import"./p-e3062c19.js";import"./p-2b519589.js";var b,y,A,w,E,x,k,S,D,C={},T=[],N=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function M(e,t){for(var n in t)e[n]=t[n];return e}function R(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,n){var i,r,l,s={};for(l in t)"key"==l?i=t[l]:"ref"==l?r=t[l]:s[l]=t[l];if(arguments.length>2&&(s.children=arguments.length>3?b.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===s[l]&&(s[l]=e.defaultProps[l]);return _(e,s,i,r,null)}function _(e,t,n,i,r){var l={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++A:r};return null==r&&null!=y.vnode&&y.vnode(l),l}function j(){return{current:null}}function I(e){return e.children}function B(e,t,n,i,r){var l;for(l in n)"children"===l||"key"===l||l in t||H(e,l,null,n[l],i);for(l in t)r&&"function"!=typeof t[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===t[l]||H(e,l,t[l],n[l],i)}function z(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||N.test(t)?n:n+"px"}function H(e,t,n,i,r){var l;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||z(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||z(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])l=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?i||e.addEventListener(t,l?G:P,l):e.removeEventListener(t,l?G:P,l);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function P(e){E=!0;try{return this.l[e.type+!1](y.event?y.event(e):e)}finally{E=!1}}function G(e){E=!0;try{return this.l[e.type+!0](y.event?y.event(e):e)}finally{E=!1}}function U(e,t){this.props=e,this.context=t}function Q(e,t){if(null==t)return e.__?Q(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Q(e):null}function V(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return V(e)}}function L(e){E?setTimeout(e):S(e)}function W(e){(!e.__d&&(e.__d=!0)&&x.push(e)&&!F.__r++||k!==y.debounceRendering)&&((k=y.debounceRendering)||L)(F)}function F(){var e,t,n,i,r,l,s,o;for(x.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=x.shift();)e.__d&&(t=x.length,i=void 0,r=void 0,s=(l=(n=e).__v).__e,(o=n.__P)&&(i=[],(r=M({},l)).__v=l.__v+1,X(o,l,r,n.__n,void 0!==o.ownerSVGElement,null!=l.__h?[s]:null,i,null==s?Q(l):s,l.__h),K(i,l),l.__e!=s&&V(l)),x.length>t&&x.sort((function(e,t){return e.__v.__b-t.__v.__b})));F.__r=0}function Y(e,t,n,i,r,l,s,o,a,c){var f,u,d,h,p,g,v,m=i&&i.__k||T,b=m.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(h=n.__k[f]=null==(h=t[f])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?_(null,h,null,null,h):Array.isArray(h)?_(I,{children:h},null,null,null):h.__b>0?_(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=m[f])||d&&h.key==d.key&&h.type===d.type)m[f]=void 0;else for(u=0;u<b;u++){if((d=m[u])&&h.key==d.key&&h.type===d.type){m[u]=void 0;break}d=null}X(e,h,d=d||C,r,l,s,o,a,c),p=h.__e,(u=h.ref)&&d.ref!=u&&(v||(v=[]),d.ref&&v.push(d.ref,null,h),v.push(u,h.__c||p,h)),null!=p?(null==g&&(g=p),"function"==typeof h.type&&h.__k===d.__k?h.__d=a=$(h,a,e):a=Z(e,h,d,m,p,a),"function"==typeof n.type&&(n.__d=a)):a&&d.__e==a&&a.parentNode!=e&&(a=Q(d))}for(n.__e=g,f=b;f--;)null!=m[f]&&("function"==typeof n.type&&null!=m[f].__e&&m[f].__e==n.__d&&(n.__d=J(i).nextSibling),ne(m[f],m[f]));if(v)for(f=0;f<v.length;f++)te(v[f],v[++f],v[++f])}function $(e,t,n){for(var i,r=e.__k,l=0;r&&l<r.length;l++)(i=r[l])&&(i.__=e,t="function"==typeof i.type?$(i,t,n):Z(n,i,i,r,i.__e,t));return t}function q(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){q(e,t)})):t.push(e)),t}function Z(e,t,n,i,r,l){var s,o,a;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),s=null;else{for(o=l,a=0;(o=o.nextSibling)&&a<i.length;a+=1)if(o==r)break e;e.insertBefore(r,l),s=l}return void 0!==s?s:r.nextSibling}function J(e){var t,n,i;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(i=J(n)))return i;return null}function X(e,t,n,i,r,l,s,o,a){var c,f,u,d,h,p,g,v,m,b,A,w,E,x,k,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,o=t.__e=n.__e,t.__h=null,l=[o]),(c=y.__b)&&c(t);try{e:if("function"==typeof S){if(v=t.props,m=(c=S.contextType)&&i[c.__c],b=c?m?m.props.value:c.__:i,n.__c?g=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(v,b):(t.__c=f=new U(v,b),f.constructor=S,f.render=ie),m&&m.sub(f),f.props=v,f.state||(f.state={}),f.context=b,f.__n=i,u=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=M({},f.__s)),M(f.__s,S.getDerivedStateFromProps(v,f.__s))),d=f.props,h=f.state,f.__v=t,u)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&v!==d&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(v,b),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(v,f.__s,b)||t.__v===n.__v){for(t.__v!==n.__v&&(f.props=v,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(v,f.__s,b),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(d,h,p)}))}if(f.context=b,f.props=v,f.__P=e,w=y.__r,E=0,"prototype"in S&&S.prototype.render){for(f.state=f.__s,f.__d=!1,w&&w(t),c=f.render(f.props,f.state,f.context),x=0;x<f._sb.length;x++)f.__h.push(f._sb[x]);f._sb=[]}else do{f.__d=!1,w&&w(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++E<25);f.state=f.__s,null!=f.getChildContext&&(i=M(M({},i),f.getChildContext())),u||null==f.getSnapshotBeforeUpdate||(p=f.getSnapshotBeforeUpdate(d,h)),k=null!=c&&c.type===I&&null==c.key?c.props.children:c,Y(e,Array.isArray(k)?k:[k],t,n,i,r,l,s,o,a),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),g&&(f.__E=f.__=null),f.__e=!1}else null==l&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ee(n.__e,t,n,i,r,l,s,a);(c=y.diffed)&&c(t)}catch(e){t.__v=null,(a||null!=l)&&(t.__e=o,t.__h=!!a,l[l.indexOf(o)]=null),y.__e(e,t,n)}}function K(e,t){y.__c&&y.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){y.__e(e,t.__v)}}))}function ee(e,t,n,i,r,l,s,o){var a,c,f,u=n.props,d=t.props,h=t.type,p=0;if("svg"===h&&(r=!0),null!=l)for(;p<l.length;p++)if((a=l[p])&&"setAttribute"in a==!!h&&(h?a.localName===h:3===a.nodeType)){e=a,l[p]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),l=null,o=!1}if(null===h)u===d||o&&e.data===d||(e.data=d);else{if(l=l&&b.call(e.childNodes),c=(u=n.props||C).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!o){if(null!=l)for(u={},p=0;p<e.attributes.length;p++)u[e.attributes[p].name]=e.attributes[p].value;(f||c)&&(f&&(c&&f.__html==c.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(B(e,d,u,r,o),f)t.__k=[];else if(p=t.props.children,Y(e,Array.isArray(p)?p:[p],t,n,i,r&&"foreignObject"!==h,l,s,l?l[0]:n.__k&&Q(n,0),o),null!=l)for(p=l.length;p--;)null!=l[p]&&R(l[p]);o||("value"in d&&void 0!==(p=d.value)&&(p!==e.value||"progress"===h&&!p||"option"===h&&p!==u.value)&&H(e,"value",p,u.value,!1),"checked"in d&&void 0!==(p=d.checked)&&p!==e.checked&&H(e,"checked",p,u.checked,!1))}return e}function te(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){y.__e(e,n)}}function ne(e,t,n){var i,r;if(y.unmount&&y.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||te(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){y.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&ne(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||R(e.__e),e.__=e.__e=e.__d=void 0}function ie(e,t,n){return this.constructor(e,n)}function re(e,t,n){var i,r,l;y.__&&y.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,l=[],X(t,e=(!i&&n||t).__k=O(I,null,[e]),r||C,C,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?b.call(t.childNodes):null,l,!i&&n?n:r?r.__e:t.firstChild,i),K(l,e)}function le(e,t){var n={__c:t="__cC"+D++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,W(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}b=T.slice,y={__e:function(e,t,n,i){for(var r,l,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},A=0,w=function(e){return null!=e&&void 0===e.constructor},E=!1,U.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=M({},this.state),"function"==typeof e&&(e=e(M({},n),this.props)),e&&M(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),W(this))},U.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),W(this))},U.prototype.render=I,x=[],S="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,F.__r=0,D=0;var se,oe,ae,ce=[],fe=[],ue=y.__b,de=y.__r,he=y.diffed,pe=y.__c,ge=y.unmount;function ve(){for(var e;e=ce.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ye),e.__H.__h.forEach(Ae),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){se=null,ue&&ue(e)},y.__r=function(e){de&&de(e);var t=(se=e.__c).__H;t&&(oe===se?(t.__h=[],se.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=fe,e.__N=e.i=void 0}))):(t.__h.forEach(ye),t.__h.forEach(Ae),t.__h=[])),oe=se},y.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ce.push(t)&&ae===y.requestAnimationFrame||((ae=y.requestAnimationFrame)||be)(ve)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==fe&&(e.__=e.__V),e.i=void 0,e.__V=fe}))),oe=se=null},y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ye),e.__h=e.__h.filter((function(e){return!e.__||Ae(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],y.__e(n,e.__v)}})),pe&&pe(e,t)},y.unmount=function(e){ge&&ge(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ye(e)}catch(e){t=e}})),n.__H=void 0,t&&y.__e(t,n.__v))};var me="function"==typeof requestAnimationFrame;function be(e){var t,n=function(){clearTimeout(i),me&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);me&&(t=requestAnimationFrame(n))}function ye(e){var t=se,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),se=t}function Ae(e){var t=se;e.__c=e.__(),se=t}function we(e,t){for(var n in t)e[n]=t[n];return e}function Ee(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function xe(e){this.props=e}(xe.prototype=new U).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(e,t){return Ee(this.props,e)||Ee(this.state,t)};var ke=y.__b;y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ke&&ke(e)};var Se=y.__e;y.__e=function(e,t,n,i){if(e.then)for(var r,l=t;l=l.__;)if((r=l.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Se(e,t,n,i)};var De=y.unmount;function Ce(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=we({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ce(e,t,n)}))),e}function Te(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Te(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Ne(){this.__u=0,this.t=null,this.__b=null}function Me(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Re(){this.u=null,this.o=null}y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),De&&De(e)},(Ne.prototype=new U).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Me(i.__v),l=!1,s=function(){l||(l=!0,n.__R=null,r?r(o):o())};n.__R=s;var o=function(){if(! --i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=Te(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}},a=!0===t.__h;i.__u++||a||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(s,s)},Ne.prototype.componentWillUnmount=function(){this.t=[]},Ne.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Ce(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&O(I,null,e.fallback);return r&&(r.__h=null),[O(I,null,t.__a?null:e.children),r]};var Oe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function _e(e){return this.getChildContext=function(){return e.context},e.children}function je(e){var t=this,n=e.i;t.componentWillUnmount=function(){re(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),re(O(_e,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Ie(e,t){var n=O(je,{__v:e,i:t});return n.containerInfo=t,n}(Re.prototype=new U).__a=function(e){var t=this,n=Me(t.__v),i=t.o.get(e);return i[0]++,function(r){var l=function(){t.props.revealOrder?(i.push(r),Oe(t,e,i)):r()};n?n(l):l()}},Re.prototype.render=function(e){this.u=null,this.o=new Map;var t=q(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Re.prototype.componentDidUpdate=Re.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Oe(e,n,t)}))};var Be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?: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]/,He="undefined"!=typeof document,Pe=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};U.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(U.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ge=y.event;function Ue(){}function Qe(){return this.cancelBubble}function Ve(){return this.defaultPrevented}y.event=function(e){return Ge&&(e=Ge(e)),e.persist=Ue,e.isPropagationStopped=Qe,e.isDefaultPrevented=Ve,e.nativeEvent=e};var Le={configurable:!0,get:function(){return this.class}},We=y.vnode;y.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var l in i={},n){var s=n[l];He&&"children"===l&&"noscript"===t||"value"===l&&"defaultValue"in n&&null==s||("defaultValue"===l&&"value"in n&&null==n.value?l="value":"download"===l&&!0===s?s="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+t)&&!Pe(n.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&ze.test(l)?l=l.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(l)&&(l=l.toLowerCase(),i[l]&&(l="oninputCapture")),i[l]=s)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=q(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=q(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i,n.class!=n.className&&(Le.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Le))}e.$$typeof=Be,We&&We(e)};var Fe=y.__r;y.__r=function(e){Fe&&Fe(e)};const Ye=[];const $e=new Map;function qe(e){Ye.push(e);$e.forEach((t=>{Ke(t,e)}))}function Ze(e){if(e.isConnected&&e.getRootNode){Je(e.getRootNode())}}function Je(e){let t=$e.get(e);if(!t||!t.isConnected){t=e.querySelector("style[data-fullcalendar]");if(!t){t=document.createElement("style");t.setAttribute("data-fullcalendar","");const n=tt();if(n){t.nonce=n}const i=e===document?document.head:e;const r=e===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(t,r)}$e.set(e,t);Xe(t)}}function Xe(e){for(const t of Ye){Ke(e,t)}}function Ke(e,t){const{sheet:n}=e;const i=n.cssRules.length;t.split("}").forEach(((e,t)=>{e=e.trim();if(e){n.insertRule(e+"}",i+t)}}))}let et;function tt(){if(et===undefined){et=nt()}return et}function nt(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content")){return e.getAttribute("content")}const t=document.querySelector("script[nonce]");if(t){return t.nonce||""}return""}if(typeof document!=="undefined"){Je(document)}var it=':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)}';qe(it);class rt{constructor(e){this.drainedOption=e;this.isRunning=false;this.isDirty=false;this.pauseDepths={};this.timeoutId=0}request(e){this.isDirty=true;if(!this.isPaused()){this.clearTimeout();if(e==null){this.tryDrain()}else{this.timeoutId=setTimeout(this.tryDrain.bind(this),e)}}}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1;this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t){delete n[e]}else{n[e]-=1;let t=n[e];if(t<=0){delete n[e]}}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){this.isRunning=true;while(this.isDirty){this.isDirty=false;this.drained()}this.isRunning=false}}clear(){this.clearTimeout();this.isDirty=false;this.pauseDepths={}}clearTimeout(){if(this.timeoutId){clearTimeout(this.timeoutId);this.timeoutId=0}}drained(){if(this.drainedOption){this.drainedOption()}}}function lt(e){if(e.parentNode){e.parentNode.removeChild(e)}}function st(e,t){if(e.closest){return e.closest(t)}if(!document.documentElement.contains(e)){return null}do{if(ot(e,t)){return e}e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function ot(e,t){let n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function at(e,t){let n=e instanceof HTMLElement?[e]:e;let i=[];for(let e=0;e<n.length;e+=1){let r=n[e].querySelectorAll(t);for(let e=0;e<r.length;e+=1){i.push(r[e])}}return i}const ct=/(top|left|right|bottom|width|height)$/i;function ft(e,t){for(let n in t){ut(e,n,t[n])}}function ut(e,t,n){if(n==null){e.style[t]=""}else if(typeof n==="number"&&ct.test(t)){e.style[t]=`${n}px`}else{e.style[t]=n}}function dt(e){var t,n;return(n=(t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])!==null&&n!==void 0?n:e.target}let ht=0;function pt(){ht+=1;return"fc-dom-"+ht}function gt(e){e.preventDefault()}function vt(e,t){return n=>{let i=st(n.target,e);if(i){t.call(i,n,i)}}}function mt(e,t,n,i){let r=vt(n,i);e.addEventListener(t,r);return()=>{e.removeEventListener(t,r)}}function bt(e,t,n,i){let r;return mt(e,"mouseover",t,((e,t)=>{if(t!==r){r=t;n(e,t);let l=e=>{r=null;i(e,t);t.removeEventListener("mouseleave",l)};t.addEventListener("mouseleave",l)}}))}const yt=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function At(e,t){let n=i=>{t(i);yt.forEach((t=>{e.removeEventListener(t,n)}))};yt.forEach((t=>{e.addEventListener(t,n)}))}function wt(e){return Object.assign({onClick:e},Et(e))}function Et(e){return{tabIndex:0,onKeyDown(t){if(t.key==="Enter"||t.key===" "){e(t);t.preventDefault()}}}}let xt=0;function kt(){xt+=1;return String(xt)}function St(){document.body.classList.add("fc-not-allowed")}function Dt(){document.body.classList.remove("fc-not-allowed")}function Ct(e){e.style.userSelect="none";e.style.webkitUserSelect="none";e.addEventListener("selectstart",gt)}function Tt(e){e.style.userSelect="";e.style.webkitUserSelect="";e.removeEventListener("selectstart",gt)}function Nt(e){e.addEventListener("contextmenu",gt)}function Mt(e){e.removeEventListener("contextmenu",gt)}function Rt(e){let t=[];let n=[];let i;let r;if(typeof e==="string"){n=e.split(/\s*,\s*/)}else if(typeof e==="function"){n=[e]}else if(Array.isArray(e)){n=e}for(i=0;i<n.length;i+=1){r=n[i];if(typeof r==="string"){t.push(r.charAt(0)==="-"?{field:r.substring(1),order:-1}:{field:r,order:1})}else if(typeof r==="function"){t.push({func:r})}}return t}function Ot(e,t,n){let i;let r;for(i=0;i<n.length;i+=1){r=_t(e,t,n[i]);if(r){return r}}return 0}function _t(e,t,n){if(n.func){return n.func(e,t)}return jt(e[n.field],t[n.field])*(n.order||1)}function jt(e,t){if(!e&&!t){return 0}if(t==null){return-1}if(e==null){return 1}if(typeof e==="string"||typeof t==="string"){return String(e).localeCompare(String(t))}return e-t}function It(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Bt(e,t,n){if(typeof e==="function"){return e(...t)}if(typeof e==="string"){return t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e)}return n}function zt(e,t){return e-t}function Ht(e){return e%1===0}function Pt(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame");let n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t){throw new Error("needs fc-scrollgrid-shrink-frame className")}if(!n){throw new Error("needs fc-scrollgrid-shrink-cushion className")}return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const Gt=["years","months","days","milliseconds"];const Ut=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Qt(e,t){if(typeof e==="string"){return Vt(e)}if(typeof e==="object"&&e){return Lt(e)}if(typeof e==="number"){return Lt({[t||"milliseconds"]:e})}return null}function Vt(e){let t=Ut.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function Lt(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)};let n=e.weeks||e.week;if(n){t.days+=n*7;t.specifiedWeeks=true}return t}function Wt(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function Ft(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Yt(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function $t(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function qt(e){return Jt(e)/365}function Zt(e){return Jt(e)/30}function Jt(e){return Xt(e)/864e5}function Xt(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function Kt(e,t){let n=null;for(let i=0;i<Gt.length;i+=1){let r=Gt[i];if(t[r]){let i=e[r]/t[r];if(!Ht(i)||n!==null&&n!==i){return null}n=i}else if(e[r]){return null}}return n}function en(e){let t=e.milliseconds;if(t){if(t%1e3!==0){return{unit:"millisecond",value:t}}if(t%(1e3*60)!==0){return{unit:"second",value:t/1e3}}if(t%(1e3*60*60)!==0){return{unit:"minute",value:t/(1e3*60)}}if(t){return{unit:"hour",value:t/(1e3*60*60)}}}if(e.days){if(e.specifiedWeeks&&e.days%7===0){return{unit:"week",value:e.days/7}}return{unit:"day",value:e.days}}if(e.months){return{unit:"month",value:e.months}}if(e.years){return{unit:"year",value:e.years}}return{unit:"millisecond",value:0}}function tn(e,t,n){if(e===t){return true}let i=e.length;let r;if(i!==t.length){return false}for(r=0;r<i;r+=1){if(!(n?n(e[r],t[r]):e[r]===t[r])){return false}}return true}const nn=["sun","mon","tue","wed","thu","fri","sat"];function rn(e,t){let n=kn(e);n[2]+=t*7;return Sn(n)}function ln(e,t){let n=kn(e);n[2]+=t;return Sn(n)}function sn(e,t){let n=kn(e);n[6]+=t;return Sn(n)}function on(e,t){return an(e,t)/7}function an(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function cn(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function fn(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function un(e,t){return(t.valueOf()-e.valueOf())/1e3}function dn(e,t){let n=gn(e);let i=gn(t);return{years:0,months:0,days:Math.round(an(n,i)),milliseconds:t.valueOf()-i.valueOf()-(e.valueOf()-n.valueOf())}}function hn(e,t){let n=pn(e,t);if(n!==null&&n%7===0){return n/7}return null}function pn(e,t){if(Cn(e)===Cn(t)){return Math.round(an(e,t))}return null}function gn(e){return Sn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function vn(e){return Sn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function mn(e){return Sn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function bn(e){return Sn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function yn(e,t,n){let i=e.getUTCFullYear();let r=An(e,i,t,n);if(r<1){return An(e,i-1,t,n)}let l=An(e,i+1,t,n);if(l>=1){return Math.min(r,l)}return r}function An(e,t,n,i){let r=Sn([t,0,1+wn(t,n,i)]);let l=gn(e);let s=Math.round(an(r,l));return Math.floor(s/7)+1}function wn(e,t,n){let i=7+t-n;let r=(7+Sn([e,0,i]).getUTCDay()-t)%7;return-r+i-1}function En(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function xn(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function kn(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Sn(e){if(e.length===1){e=e.concat([0])}return new Date(Date.UTC(...e))}function Dn(e){return!isNaN(e.valueOf())}function Cn(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function Tn(e,t,n=false){let i=e.toISOString();i=i.replace(".000","");if(n){i=i.replace("T00:00:00Z","")}if(i.length>10){if(t==null){i=i.replace("Z","")}else if(t!==0){i=i.replace("Z",On(t,true))}}return i}function Nn(e){return e.toISOString().replace(/T.*$/,"")}function Mn(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Rn(e){return It(e.getUTCHours(),2)+":"+It(e.getUTCMinutes(),2)+":"+It(e.getUTCSeconds(),2)}function On(e,t=false){let n=e<0?"-":"+";let i=Math.abs(e);let r=Math.floor(i/60);let l=Math.round(i%60);if(t){return`${n+It(r,2)}:${It(l,2)}`}return`GMT${n}${r}${l?`:${It(l,2)}`:""}`}function _n(e,t,n){let i;let r;return function(...l){if(!i){r=e.apply(this,l)}else if(!tn(i,l)){if(n){n(r)}let i=e.apply(this,l);if(!t||!t(i,r)){r=i}}i=l;return r}}function jn(e,t,n){let i;let r;return l=>{if(!i){r=e.call(this,l)}else if(!Ai(i,l)){if(n){n(r)}let i=e.call(this,l);if(!t||!t(i,r)){r=i}}i=l;return r}}const In={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0};const Bn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1};const zn=/\s*([ap])\.?m\.?/i;const Hn=/,/g;const Pn=/\s+/g;const Gn=/\u200e/g;const Un=/UTC|GMT/;class Qn{constructor(e){let t={};let n={};let i=0;for(let r in e){if(r in In){n[r]=e[r];i=Math.max(In[r],i)}else{t[r]=e[r];if(r in Bn){i=Math.max(Bn[r],i)}}}this.standardDateProps=t;this.extendedSettings=n;this.severity=i;this.buildFormattingFunc=_n(Vn)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,i){let{standardDateProps:r,extendedSettings:l}=this;let s=qn(e.marker,t.marker,n.calendarSystem);if(!s){return this.format(e,n)}let o=s;if(o>1&&(r.year==="numeric"||r.year==="2-digit")&&(r.month==="numeric"||r.month==="2-digit")&&(r.day==="numeric"||r.day==="2-digit")){o=1}let a=this.format(e,n);let c=this.format(t,n);if(a===c){return a}let f=Zn(r,o);let u=Vn(f,l,n);let d=u(e);let h=u(t);let p=Jn(a,d,c,h);let g=l.separator||i||n.defaultSeparator||"";if(p){return p.before+d+g+h+p.after}return a+g+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Vn(e,t,n){let i=Object.keys(e).length;if(i===1&&e.timeZoneName==="short"){return e=>On(e.timeZoneOffset)}if(i===0&&t.week){return e=>$n(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}return Ln(e,t,n)}function Ln(e,t,n){e=Object.assign({},e);t=Object.assign({},t);Wn(e,t);e.timeZone="UTC";let i=new Intl.DateTimeFormat(n.locale.codes,e);let r;if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute;r=new Intl.DateTimeFormat(n.locale.codes,t)}return l=>{let{marker:s}=l;let o;if(r&&!s.getUTCMinutes()){o=r}else{o=i}let a=o.format(s);return Fn(a,l,e,t,n)}}function Wn(e,t){if(e.timeZoneName){if(!e.hour){e.hour="2-digit"}if(!e.minute){e.minute="2-digit"}}if(e.timeZoneName==="long"){e.timeZoneName="short"}if(t.omitZeroMinute&&(e.second||e.millisecond)){delete t.omitZeroMinute}}function Fn(e,t,n,i,r){e=e.replace(Gn,"");if(n.timeZoneName==="short"){e=Yn(e,r.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":On(t.timeZoneOffset))}if(i.omitCommas){e=e.replace(Hn,"").trim()}if(i.omitZeroMinute){e=e.replace(":00","")}if(i.meridiem===false){e=e.replace(zn,"").trim()}else if(i.meridiem==="narrow"){e=e.replace(zn,((e,t)=>t.toLocaleLowerCase()))}else if(i.meridiem==="short"){e=e.replace(zn,((e,t)=>`${t.toLocaleLowerCase()}m`))}else if(i.meridiem==="lowercase"){e=e.replace(zn,(e=>e.toLocaleLowerCase()))}e=e.replace(Pn," ");e=e.trim();return e}function Yn(e,t){let n=false;e=e.replace(Un,(()=>{n=true;return t}));if(!n){e+=` ${t}`}return e}function $n(e,t,n,i,r){let l=[];if(r==="long"){l.push(n)}else if(r==="short"||r==="narrow"){l.push(t)}if(r==="long"||r==="short"){l.push(" ")}l.push(i.simpleNumberFormat.format(e));if(i.options.direction==="rtl"){l.reverse()}return l.join("")}function qn(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t)){return 5}if(n.getMarkerMonth(e)!==n.getMarkerMonth(t)){return 4}if(n.getMarkerDay(e)!==n.getMarkerDay(t)){return 2}if(Cn(e)!==Cn(t)){return 1}return 0}function Zn(e,t){let n={};for(let i in e){if(!(i in Bn)||Bn[i]<=t){n[i]=e[i]}}return n}function Jn(e,t,n,i){let r=0;while(r<e.length){let l=e.indexOf(t,r);if(l===-1){break}let s=e.substr(0,l);r=l+t.length;let o=e.substr(r);let a=0;while(a<n.length){let e=n.indexOf(i,a);if(e===-1){break}let t=n.substr(0,e);a=e+i.length;let r=n.substr(a);if(s===t&&o===r){return{before:s,after:o}}}}return null}function Xn(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Kn(e,t,n,i){let r=Xn(e,n.calendarSystem);let l=t?Xn(t,n.calendarSystem):null;return{date:r,start:r,end:l,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:i||n.defaultSeparator}}class ei{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Kn(e,null,t,n))}formatRange(e,t,n,i){return n.cmdFormatter(this.cmdStr,Kn(e,t,n,i))}}class ti{constructor(e){this.func=e}format(e,t,n){return this.func(Kn(e,null,t,n))}formatRange(e,t,n,i){return this.func(Kn(e,t,n,i))}}function ni(e){if(typeof e==="object"&&e){return new Qn(e)}if(typeof e==="string"){return new ei(e)}if(typeof e==="function"){return new ti(e)}return null}const ii={navLinkDayClick:hi,navLinkWeekClick:hi,duration:Qt,bootstrapFontAwesome:hi,buttonIcons:hi,customButtons:hi,defaultAllDayEventDuration:Qt,defaultTimedEventDuration:Qt,nextDayThreshold:Qt,scrollTime:Qt,scrollTimeReset:Boolean,slotMinTime:Qt,slotMaxTime:Qt,dayPopoverFormat:ni,slotDuration:Qt,snapDuration:Qt,headerToolbar:hi,footerToolbar:hi,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ni,dayHeaderClassNames:hi,dayHeaderContent:hi,dayHeaderDidMount:hi,dayHeaderWillUnmount:hi,dayCellClassNames:hi,dayCellContent:hi,dayCellDidMount:hi,dayCellWillUnmount:hi,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:hi,weekNumbers:Boolean,weekNumberClassNames:hi,weekNumberContent:hi,weekNumberDidMount:hi,weekNumberWillUnmount:hi,editable:Boolean,viewClassNames:hi,viewDidMount:hi,viewWillUnmount:hi,nowIndicator:Boolean,nowIndicatorClassNames:hi,nowIndicatorContent:hi,nowIndicatorDidMount:hi,nowIndicatorWillUnmount:hi,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:hi,locale:hi,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:hi,eventOrder:Rt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:hi,contentHeight:hi,direction:String,weekNumberFormat:ni,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:hi,initialDate:hi,now:hi,eventDataTransform:hi,stickyHeaderDates:hi,stickyFooterScrollbar:hi,viewHeight:hi,defaultAllDay:Boolean,eventSourceFailure:hi,eventSourceSuccess:hi,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:hi,eventConstraint:hi,eventAllow:hi,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:hi,eventContent:hi,eventDidMount:hi,eventWillUnmount:hi,selectConstraint:hi,selectOverlap:hi,selectAllow:hi,droppable:Boolean,unselectCancel:String,slotLabelFormat:hi,slotLaneClassNames:hi,slotLaneContent:hi,slotLaneDidMount:hi,slotLaneWillUnmount:hi,slotLabelClassNames:hi,slotLabelContent:hi,slotLabelDidMount:hi,slotLabelWillUnmount:hi,dayMaxEvents:hi,dayMaxEventRows:hi,dayMinWidth:Number,slotLabelInterval:Qt,allDayText:String,allDayClassNames:hi,allDayContent:hi,allDayDidMount:hi,allDayWillUnmount:hi,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ni,rerenderDelay:Number,moreLinkText:hi,moreLinkHint:hi,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:hi,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Qt,hiddenDays:hi,fixedWeekCount:Boolean,validRange:hi,visibleRange:hi,titleFormat:hi,eventInteractive:Boolean,noEventsText:String,viewHint:hi,navLinkHint:hi,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:hi,moreLinkClassNames:hi,moreLinkContent:hi,moreLinkDidMount:hi,moreLinkWillUnmount:hi,monthStartFormat:ni,handleCustomRendering:hi,customRenderingMetaMap:hi,customRenderingReplaces:Boolean};const ri={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:false,nextDayThreshold:"00:00:00",dayHeaders:true,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:true,weekNumbers:false,weekNumberCalculation:"local",editable:false,nowIndicator:false,scrollTime:"06:00:00",scrollTimeReset:true,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:true,lazyFetching:true,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:true,allDayMaintainDuration:false,unselectAuto:true,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:true,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:false,navLinks:false,selectable:false,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}};const li={datesSet:hi,eventsSet:hi,eventAdd:hi,eventChange:hi,eventRemove:hi,windowResize:hi,eventClick:hi,eventMouseEnter:hi,eventMouseLeave:hi,select:hi,unselect:hi,loading:hi,_unmount:hi,_beforeprint:hi,_afterprint:hi,_noEventDrop:hi,_noEventResize:hi,_resize:hi,_scrollRequest:hi};const si={buttonText:hi,buttonHints:hi,views:hi,plugins:hi,initialEvents:hi,events:hi,eventSources:hi};const oi={headerToolbar:ai,footerToolbar:ai,buttonText:ai,buttonHints:ai,buttonIcons:ai,dateIncrement:ai,plugins:ci,events:ci,eventSources:ci,["resources"]:ci};function ai(e,t){if(typeof e==="object"&&typeof t==="object"&&e&&t){return Ai(e,t)}return e===t}function ci(e,t){if(Array.isArray(e)&&Array.isArray(t)){return tn(e,t)}return e===t}const fi={type:String,component:hi,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:hi,usesMinMaxTime:Boolean,classNames:hi,content:hi,didMount:hi,willUnmount:hi};function ui(e){return gi(e,oi)}function di(e,t){let n={};let i={};for(let i in t){if(i in e){n[i]=t[i](e[i])}}for(let n in e){if(!(n in t)){i[n]=e[n]}}return{refined:n,extra:i}}function hi(e){return e}const{hasOwnProperty:pi}=Object.prototype;function gi(e,t){let n={};if(t){for(let i in t){if(t[i]===ai){let t=[];for(let r=e.length-1;r>=0;r-=1){let l=e[r][i];if(typeof l==="object"&&l){t.unshift(l)}else if(l!==undefined){n[i]=l;break}}if(t.length){n[i]=gi(t)}}}}for(let t=e.length-1;t>=0;t-=1){let i=e[t];for(let e in i){if(!(e in n)){n[e]=i[e]}}}return n}function vi(e,t){let n={};for(let i in e){if(t(e[i],i)){n[i]=e[i]}}return n}function mi(e,t){let n={};for(let i in e){n[i]=t(e[i],i)}return n}function bi(e){let t={};for(let n of e){t[n]=true}return t}function yi(e){let t=[];for(let n in e){t.push(e[n])}return t}function Ai(e,t){if(e===t){return true}for(let n in e){if(pi.call(e,n)){if(!(n in t)){return false}}}for(let n in t){if(pi.call(t,n)){if(e[n]!==t[n]){return false}}}return true}const wi=/^on[A-Z]/;function Ei(e,t){const n=xi(e,t);for(let e of n){if(!wi.test(e)){return false}}return true}function xi(e,t){let n=[];for(let i in e){if(pi.call(e,i)){if(!(i in t)){n.push(i)}}}for(let i in t){if(pi.call(t,i)){if(e[i]!==t[i]){n.push(i)}}}return n}function ki(e,t,n={}){if(e===t){return true}for(let i in t){if(i in e&&Si(e[i],t[i],n[i]));else{return false}}for(let n in e){if(!(n in t)){return false}}return true}function Si(e,t,n){if(e===t||n===true){return true}if(n){return n(e,t)}return false}function Di(e,t=0,n,i=1){let r=[];if(n==null){n=Object.keys(e).length}for(let l=t;l<n;l+=i){let t=e[l];if(t!==undefined){r.push(t)}}return r}let Ci={};function Ti(e,t){Ci[e]=t}function Ni(e){return new Ci[e]}class Mi{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Sn(e)}markerToArray(e){return kn(e)}}Ti("gregory",Mi);const Ri=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Oi(e){let t=Ri.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number(`0.${t[12]}`)*1e3:0));if(Dn(e)){let n=null;if(t[13]){n=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))}return{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}class _i{constructor(e){let t=this.timeZone=e.timeZone;let n=t!=="local"&&t!=="UTC";if(e.namedTimeZoneImpl&&n){this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)}this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl);this.calendarSystem=Ni(e.calendarSystem);this.locale=e.locale;this.weekDow=e.locale.week.dow;this.weekDoy=e.locale.week.doy;if(e.weekNumberCalculation==="ISO"){this.weekDow=1;this.weekDoy=4}if(typeof e.firstDay==="number"){this.weekDow=e.firstDay}if(typeof e.weekNumberCalculation==="function"){this.weekNumberFunc=e.weekNumberCalculation}this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText;this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText;this.cmdFormatter=e.cmdFormatter;this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);if(t===null){return null}return t.marker}createNowMarker(){if(this.canComputeOffset){return this.timestampToMarker((new Date).valueOf())}return Sn(En(new Date))}createMarkerMeta(e){if(typeof e==="string"){return this.parse(e)}let t=null;if(typeof e==="number"){t=this.timestampToMarker(e)}else if(e instanceof Date){e=e.valueOf();if(!isNaN(e)){t=this.timestampToMarker(e)}}else if(Array.isArray(e)){t=Sn(e)}if(t===null||!Dn(t)){return null}return{marker:t,isTimeUnspecified:false,forcedTzo:null}}parse(e){let t=Oi(e);if(t===null){return null}let{marker:n}=t;let i=null;if(t.timeZoneOffset!==null){if(this.canComputeOffset){n=this.timestampToMarker(n.valueOf()-t.timeZoneOffset*60*1e3)}else{i=t.timeZoneOffset}}return{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);n[0]+=t.years;n[1]+=t.months;n[2]+=t.days;n[6]+=t.milliseconds;return this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);n[0]-=t.years;n[1]-=t.months;n[2]-=t.days;n[6]-=t.milliseconds;return this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);n[0]+=t;return this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);n[1]+=t;return this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;if(Cn(e)===Cn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)){return n.getMarkerYear(t)-n.getMarkerYear(e)}return null}diffWholeMonths(e,t){let{calendarSystem:n}=this;if(Cn(e)===Cn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)){return n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12}return null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);if(n!==null){return{unit:"year",value:n}}n=this.diffWholeMonths(e,t);if(n!==null){return{unit:"month",value:n}}n=hn(e,t);if(n!==null){return{unit:"week",value:n}}n=pn(e,t);if(n!==null){return{unit:"day",value:n}}n=cn(e,t);if(Ht(n)){return{unit:"hour",value:n}}n=fn(e,t);if(Ht(n)){return{unit:"minute",value:n}}n=un(e,t);if(Ht(n)){return{unit:"second",value:n}}return{unit:"millisecond",value:t.valueOf()-e.valueOf()}}countDurationsBetween(e,t,n){let i;if(n.years){i=this.diffWholeYears(e,t);if(i!==null){return i/qt(n)}}if(n.months){i=this.diffWholeMonths(e,t);if(i!==null){return i/Zt(n)}}if(n.days){i=pn(e,t);if(i!==null){return i/Jt(n)}}return(t.valueOf()-e.valueOf())/Xt(n)}startOf(e,t){if(t==="year"){return this.startOfYear(e)}if(t==="month"){return this.startOfMonth(e)}if(t==="week"){return this.startOfWeek(e)}if(t==="day"){return gn(e)}if(t==="hour"){return vn(e)}if(t==="minute"){return mn(e)}if(t==="second"){return bn(e)}return 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){if(this.weekNumberFunc){return this.weekNumberFunc(this.toDate(e))}return yn(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:n.forcedTzo!=null?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,i={}){if(i.isEndExclusive){t=sn(t,-1)}return n.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(t)},this,i.defaultSeparator)}formatIso(e,t={}){let n=null;if(!t.omitTimeZoneOffset){if(t.forcedTzo!=null){n=t.forcedTzo}else{n=this.offsetForMarker(e)}}return Tn(e,n,t.omitTime)}timestampToMarker(e){if(this.timeZone==="local"){return Sn(En(new Date(e)))}if(this.timeZone==="UTC"||!this.namedTimeZoneImpl){return new Date(e)}return Sn(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){if(this.timeZone==="local"){return-xn(kn(e)).getTimezoneOffset()}if(this.timeZone==="UTC"){return 0}if(this.namedTimeZoneImpl){return this.namedTimeZoneImpl.offsetForArray(kn(e))}return null}toDate(e,t){if(this.timeZone==="local"){return xn(kn(e))}if(this.timeZone==="UTC"){return new Date(e.valueOf())}if(!this.namedTimeZoneImpl){return new Date(e.valueOf()-(t||0))}return new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(kn(e))*1e3*60)}}class ji{constructor(e){if(this.iconOverrideOption){this.setIconOverride(e[this.iconOverrideOption])}}setIconOverride(e){let t;let n;if(typeof e==="object"&&e){t=Object.assign({},this.iconClasses);for(n in e){t[n]=this.applyIconOverridePrefix(e[n])}this.iconClasses=t}else if(e===false){this.iconClasses={}}}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;if(t&&e.indexOf(t)!==0){e=t+e}return e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;if(t&&this.rtlIconClasses){n=this.rtlIconClasses[e]||this.iconClasses[e]}else{n=this.iconClasses[e]}if(n){return`${this.baseIconClass} ${n}`}return""}getCustomButtonIconClass(e){let t;if(this.iconOverrideCustomButtonOption){t=e[this.iconOverrideCustomButtonOption];if(t){return`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`}}return""}}ji.prototype.classes={};ji.prototype.iconClasses={};ji.prototype.baseIconClass="";ji.prototype.iconOverridePrefix="";function Ii(e){e();let t=y.debounceRendering;let n=[];function i(e){n.push(e)}y.debounceRendering=i;re(O(Bi,{}),document.createElement("div"));while(n.length){n.shift()()}y.debounceRendering=t}class Bi extends U{render(){return O("div",{})}componentDidMount(){this.setState({})}}function zi(e){let t=le(e);let n=t.Provider;t.Provider=function(){let e=!this.getChildContext;let t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{if(this.props.value!==t.value){e.forEach((e=>{e.context=t.value;e.forceUpdate()}))}};this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1);n&&n.call(t)}}}return t};return t}class Hi{constructor(e,t,n,i){this.execFunc=e;this.emitter=t;this.scrollTime=n;this.scrollTimeReset=i;this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e);this.drain()};t.on("_scrollRequest",this.handleScrollRequest);this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){if(e&&this.scrollTimeReset){this.fireInitialScroll()}else{this.drain()}}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){if(this.queuedRequest&&this.execFunc(this.queuedRequest)){this.queuedRequest=null}}}const Pi=zi({});function Gi(e,t,n,i,r,l,s,o,a,c,f,u,d){return{dateEnv:r,options:n,pluginHooks:s,emitter:c,dispatch:o,getCurrentData:a,calendarApi:f,viewSpec:e,viewApi:t,dateProfileGenerator:i,theme:l,isRtl:n.direction==="rtl",addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder(e){return new Hi(e,c,Qt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:d}}class Ui extends U{shouldComponentUpdate(e,t){if(this.debug){console.log(xi(e,this.props),xi(t,this.state))}return!ki(this.props,e,this.propEquality)||!ki(this.state,t,this.stateEquality)}safeSetState(e){if(!ki(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)){this.setState(e)}}}Ui.addPropsEquality=Vi;Ui.addStateEquality=Li;Ui.contextType=Pi;Ui.prototype.propEquality={};Ui.prototype.stateEquality={};class Qi extends Ui{}Qi.contextType=Pi;function Vi(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e);this.prototype.propEquality=t}function Li(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e);this.prototype.stateEquality=t}function Wi(e,t){if(typeof e==="function"){e(t)}else if(e){e.current=t}}class Fi extends Qi{constructor(){super(...arguments);this.id=kt();this.queuedDomNodes=[];this.currentDomNodes=[];this.handleEl=e=>{const{options:t}=this.context;const{generatorName:n}=this.props;if(!t.customRenderingReplaces||!Yi(n,t)){this.updateElRef(e)}};this.updateElRef=e=>{if(this.props.elRef){Wi(this.props.elRef,e)}}}render(){const{props:e,context:t}=this;const{options:n}=t;const{customGenerator:i,defaultGenerator:r,renderProps:l}=e;const s=$i(e,[],this.handleEl);let o=false;let a;let c=[];let f;if(i!=null){const e=typeof i==="function"?i(l,O):i;if(e===true){o=true}else{const t=e&&typeof e==="object";if(t&&"html"in e){s.dangerouslySetInnerHTML={__html:e.html}}else if(t&&"domNodes"in e){c=Array.prototype.slice.call(e.domNodes)}else if(t?w(e):typeof e!=="function"){a=e}else{f=e}}}else{o=!Yi(e.generatorName,n)}if(o&&r){a=r(l)}this.queuedDomNodes=c;this.currentGeneratorMeta=f;return O(e.elTag,s,a)}componentDidMount(){this.applyQueueudDomNodes();this.triggerCustomRendering(true)}componentDidUpdate(){this.applyQueueudDomNodes();this.triggerCustomRendering(true)}componentWillUnmount(){this.triggerCustomRendering(false)}triggerCustomRendering(e){var t;const{props:n,context:i}=this;const{handleCustomRendering:r,customRenderingMetaMap:l}=i.options;if(r){const i=(t=this.currentGeneratorMeta)!==null&&t!==void 0?t:l===null||l===void 0?void 0:l[n.generatorName];if(i){r(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:i},n),{elClasses:(n.elClasses||[]).filter(qi)}))}}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this;const n=this.base;if(!tn(e,t)){t.forEach(lt);for(let t of e){n.appendChild(t)}this.currentDomNodes=e}}}Fi.addPropsEquality({elClasses:tn,elStyle:Ai,elAttrs:Ei,renderProps:Ai});function Yi(e,t){var n;return Boolean(t.handleCustomRendering&&e&&((n=t.customRenderingMetaMap)===null||n===void 0?void 0:n[e]))}function $i(e,t,n){const i=Object.assign(Object.assign({},e.elAttrs),{ref:n});if(e.elClasses||t){i.className=(e.elClasses||[]).concat(t||[]).concat(i.className||[]).filter(Boolean).join(" ")}if(e.elStyle){i.style=e.elStyle}return i}function qi(e){return Boolean(e)}const Zi=zi(0);class Ji extends U{constructor(){super(...arguments);this.InnerContent=Xi.bind(undefined,this);this.handleEl=e=>{this.el=e;if(this.props.elRef){Wi(this.props.elRef,e);if(e&&this.didMountMisfire){this.componentDidMount()}}}}render(){const{props:e}=this;const t=Ki(e.classNameGenerator,e.renderProps);if(e.children){const n=$i(e,t,this.handleEl);const i=e.children(this.InnerContent,e.renderProps,n);if(e.elTag){return O(e.elTag,n,i)}else{return i}}else{return O(Fi,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}}componentDidMount(){var e,t;if(this.el){(t=(e=this.props).didMount)===null||t===void 0?void 0:t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}else{this.didMountMisfire=true}}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)===null||t===void 0?void 0:t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Ji.contextType=Zi;function Xi(e,t){const n=e.props;return O(Fi,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function Ki(e,t){const n=typeof e==="function"?e(t):e||[];return typeof n==="string"?[n]:n}class er extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let i={view:t.viewApi};return O(Ji,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...tr(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:undefined,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function tr(e){return[`fc-${e.type}-view`,"fc-view"]}function nr(e,t){let n=null;let i=null;if(e.start){n=t.createMarker(e.start)}if(e.end){i=t.createMarker(e.end)}if(!n&&!i){return null}if(n&&i&&i<n){return null}return{start:n,end:i}}function ir(e,t){let n=[];let{start:i}=t;let r;let l;e.sort(rr);for(r=0;r<e.length;r+=1){l=e[r];if(l.start>i){n.push({start:i,end:l.start})}if(l.end>i){i=l.end}}if(i<t.end){n.push({start:i,end:t.end})}return n}function rr(e,t){return e.start.valueOf()-t.start.valueOf()}function lr(e,t){let{start:n,end:i}=e;let r=null;if(t.start!==null){if(n===null){n=t.start}else{n=new Date(Math.max(n.valueOf(),t.start.valueOf()))}}if(t.end!=null){if(i===null){i=t.end}else{i=new Date(Math.min(i.valueOf(),t.end.valueOf()))}}if(n===null||i===null||n<i){r={start:n,end:i}}return r}function sr(e,t){return(e.start===null?null:e.start.valueOf())===(t.start===null?null:t.start.valueOf())&&(e.end===null?null:e.end.valueOf())===(t.end===null?null:t.end.valueOf())}function or(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function ar(e,t){return(e.start===null||t.start!==null&&t.start>=e.start)&&(e.end===null||t.end!==null&&t.end<=e.end)}function cr(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function fr(e,t){if(t.start!=null&&e<t.start){return t.start}if(t.end!=null&&e>=t.end){return new Date(t.end.valueOf()-1)}return e}function ur(e){let t=Math.floor(an(e.start,e.end))||1;let n=gn(e.start);let i=ln(n,t);return{start:n,end:i}}function dr(e,t=Qt(0)){let n=null;let i=null;if(e.end){i=gn(e.end);let n=e.end.valueOf()-i.valueOf();if(n&&n>=Xt(t)){i=ln(i,1)}}if(e.start){n=gn(e.start);if(i&&i<=n){i=ln(n,1)}}return{start:n,end:i}}function hr(e){let t=dr(e);return an(t.start,t.end)>1}function pr(e,t,n,i){if(i==="year"){return Qt(n.diffWholeYears(e,t),"year")}if(i==="month"){return Qt(n.diffWholeMonths(e,t),"month")}return dn(e,t)}function gr(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function vr(e,t){let n=e.initialDate;if(n!=null){return t.createMarker(n)}return mr(e.now,t)}function mr(e,t){if(typeof e==="function"){e=e()}if(e==null){return t.createNowMarker()}return t.createMarker(e)}class br{constructor(e){this.props=e;this.nowDate=mr(e.nowInput,e.dateEnv);this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:i}=this.props;let r=i.subtract(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1,n)}buildNext(e,t,n){let{dateEnv:i}=this.props;let r=i.add(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1,n)}build(e,t,n=true){let{props:i}=this;let r;let l;let s;let o;let a;let c;r=this.buildValidRange();r=this.trimHiddenDays(r);if(n){e=fr(e,r)}l=this.buildCurrentRangeInfo(e,t);s=/^(year|month|week|day)$/.test(l.unit);o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,s);o=this.trimHiddenDays(o);a=o;if(!i.showNonCurrentDates){a=lr(a,l.range)}a=this.adjustActiveRange(a);a=lr(a,r);c=or(l.range,r);if(!cr(o,e)){e=o.start}return{currentDate:e,validRange:r,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:s,activeRange:a,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput;let t=typeof e==="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:n}=this;let i=null;let r=null;let l=null;let s;if(n.duration){i=n.duration;r=n.durationUnit;l=this.buildRangeFromDuration(e,t,i,r)}else if(s=this.props.dayCount){r="day";l=this.buildRangeFromDayCount(e,t,s)}else if(l=this.buildCustomVisibleRange(e)){r=n.dateEnv.greatestWholeUnit(l.start,l.end).unit}else{i=this.getFallbackDuration();r=en(i).unit;l=this.buildRangeFromDuration(e,t,i,r)}return{duration:i,unit:r,range:l}}getFallbackDuration(){return Qt({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:i,slotMaxTime:r}=this.props;let{start:l,end:s}=e;if(n){if(Jt(i)<0){l=gn(l);l=t.add(l,i)}if(Jt(r)>1){s=gn(s);s=ln(s,-1);s=t.add(s,r)}}return{start:l,end:s}}buildRangeFromDuration(e,t,n,i){let{dateEnv:r,dateAlignment:l}=this.props;let s;let o;let a;if(!l){let{dateIncrement:e}=this.props;if(e){if(Xt(e)<Xt(n)){l=en(e).unit}else{l=i}}else{l=i}}if(Jt(n)<=1){if(this.isHiddenDay(s)){s=this.skipHiddenDays(s,t);s=gn(s)}}function c(){s=r.startOf(e,l);o=r.add(s,n);a={start:s,end:o}}c();if(!this.trimHiddenDays(a)){e=this.skipHiddenDays(e,t);c()}return a}buildRangeFromDayCount(e,t,n){let{dateEnv:i,dateAlignment:r}=this.props;let l=0;let s=e;let o;if(r){s=i.startOf(s,r)}s=gn(s);s=this.skipHiddenDays(s,t);o=s;do{o=ln(o,1);if(!this.isHiddenDay(o)){l+=1}}while(l<n);return{start:s,end:o}}buildCustomVisibleRange(e){let{props:t}=this;let n=t.visibleRangeInput;let i=typeof n==="function"?n.call(t.calendarApi,t.dateEnv.toDate(e)):n;let r=this.refineRange(i);if(r&&(r.start==null||r.end==null)){return null}return r}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props;let n;if(t){return t}if(n=this.props.dateAlignment){return Qt(1,n)}if(e){return e}return Qt({days:1})}refineRange(e){if(e){let t=nr(e,this.props.dateEnv);if(t){t=dr(t)}return t}return null}initHiddenDays(){let e=this.props.hiddenDays||[];let t=[];let n=0;let i;if(this.props.weekends===false){e.push(0,6)}for(i=0;i<7;i+=1){if(!(t[i]=e.indexOf(i)!==-1)){n+=1}}if(!n){throw new Error("invalid hiddenDays")}this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:n}=e;if(t){t=this.skipHiddenDays(t)}if(n){n=this.skipHiddenDays(n,-1,true)}if(t==null||n==null||t<n){return{start:t,end:n}}return null}isHiddenDay(e){if(e instanceof Date){e=e.getUTCDay()}return this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=false){while(this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7]){e=ln(e,t)}return e}}function yr(e,t,n,i){return{instanceId:kt(),defId:e,range:t,forcedStartTzo:n==null?null:n,forcedEndTzo:i==null?null:i}}function Ar(e,t,n,i){for(let r=0;r<i.length;r+=1){let l=i[r].parse(e,n);if(l){let{allDay:n}=e;if(n==null){n=t;if(n==null){n=l.allDayGuess;if(n==null){n=false}}}return{allDay:n,duration:l.duration,typeData:l.typeData,typeId:r}}}return null}function wr(e,t,n){let{dateEnv:i,pluginHooks:r,options:l}=n;let{defs:s,instances:o}=e;o=vi(o,(e=>!s[e.defId].recurringDef));for(let e in s){let n=s[e];if(n.recurringDef){let{duration:s}=n.recurringDef;if(!s){s=n.allDay?l.defaultAllDayEventDuration:l.defaultTimedEventDuration}let a=Er(n,s,t,i,r.recurringTypes);for(let t of a){let n=yr(e,{start:t,end:i.add(t,s)});o[n.instanceId]=n}}}return{defs:s,instances:o}}function Er(e,t,n,i,r){let l=r[e.recurringDef.typeId];let s=l.expand(e.recurringDef.typeData,{start:i.subtract(n.start,t),end:n.end},i);if(e.allDay){s=s.map(gn)}return s}const xr={id:String,groupId:String,title:String,url:String,interactive:Boolean};const kr={start:hi,end:hi,date:hi,allDay:Boolean};const Sr=Object.assign(Object.assign(Object.assign({},xr),kr),{extendedProps:hi});function Dr(e,t,n,i,r=Tr(n),l,s){let{refined:o,extra:a}=Cr(e,n,r);let c=Rr(t,n);let f=Ar(o,c,n.dateEnv,n.pluginHooks.recurringTypes);if(f){let e=Nr(o,a,t?t.sourceId:"",f.allDay,Boolean(f.duration),n,l);e.recurringDef={typeId:f.typeId,typeData:f.typeData,duration:f.duration};return{def:e,instance:null}}let u=Mr(o,c,n,i);if(u){let e=Nr(o,a,t?t.sourceId:"",u.allDay,u.hasEnd,n,l);let i=yr(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);if(s&&e.publicId&&s[e.publicId]){i.instanceId=s[e.publicId]}return{def:e,instance:i}}return null}function Cr(e,t,n=Tr(t)){return di(e,n)}function Tr(e){return Object.assign(Object.assign(Object.assign({},Qr),Sr),e.pluginHooks.eventRefiners)}function Nr(e,t,n,i,r,l,s){let o={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(s&&e.id?s[e.id]:"")||kt(),sourceId:n,allDay:i,hasEnd:r,interactive:e.interactive,ui:Lr(e,l),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of l.pluginHooks.eventDefMemberAdders){Object.assign(o,t(e))}Object.freeze(o.ui.classNames);Object.freeze(o.extendedProps);return o}function Mr(e,t,n,i){let{allDay:r}=e;let l;let s=null;let o=false;let a;let c=null;let f=e.start!=null?e.start:e.date;l=n.dateEnv.createMarkerMeta(f);if(l){s=l.marker}else if(!i){return null}if(e.end!=null){a=n.dateEnv.createMarkerMeta(e.end)}if(r==null){if(t!=null){r=t}else{r=(!l||l.isTimeUnspecified)&&(!a||a.isTimeUnspecified)}}if(r&&s){s=gn(s)}if(a){c=a.marker;if(r){c=gn(c)}if(s&&c<=s){c=null}}if(c){o=true}else if(!i){o=n.options.forceEventDuration||false;c=n.dateEnv.add(s,r?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)}return{allDay:r,hasEnd:o,range:{start:s,end:c},forcedStartTzo:l?l.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}function Rr(e,t){let n=null;if(e){n=e.defaultAllDay}if(n==null){n=t.options.defaultAllDay}return n}function Or(e,t,n,i,r,l){let s=Br();let o=Tr(n);for(let a of e){let e=Dr(a,t,n,i,o,r,l);if(e){_r(e,s)}}return s}function _r(e,t=Br()){t.defs[e.def.defId]=e.def;if(e.instance){t.instances[e.instance.instanceId]=e.instance}return t}function jr(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId];let i=Hr(e,(e=>Ir(t,e)));i.defs[t.defId]=t;i.instances[n.instanceId]=n;return i}return Br()}function Ir(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Br(){return{defs:{},instances:{}}}function zr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Hr(e,t){let n=vi(e.defs,t);let i=vi(e.instances,(e=>n[e.defId]));return{defs:n,instances:i}}function Pr(e,t){let{defs:n,instances:i}=e;let r={};let l={};for(let e in n){if(!t.defs[e]){r[e]=n[e]}}for(let e in i){if(!t.instances[e]&&r[i[e].defId]){l[e]=i[e]}}return{defs:r,instances:l}}function Gr(e,t){if(Array.isArray(e)){return Or(e,null,t,true)}if(typeof e==="object"&&e){return Or([e],null,t,true)}if(e!=null){return String(e)}return null}function Ur(e){if(Array.isArray(e)){return e}if(typeof e==="string"){return e.split(/\s+/)}return[]}const Qr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:hi,overlap:hi,allow:hi,className:Ur,classNames:Ur,color:String,backgroundColor:String,borderColor:String,textColor:String};const Vr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Lr(e,t){let n=Gr(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable!=null?e.startEditable:e.editable,durationEditable:e.durationEditable!=null?e.durationEditable:e.editable,constraints:n!=null?[n]:[],overlap:e.overlap!=null?e.overlap:null,allows:e.allow!=null?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Wr(e){return e.reduce(Fr,Vr)}function Fr(e,t){return{display:t.display!=null?t.display:e.display,startEditable:t.startEditable!=null?t.startEditable:e.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap==="boolean"?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const Yr={id:String,defaultAllDay:Boolean,url:String,format:String,events:hi,eventDataTransform:hi,success:hi,failure:hi};function $r(e,t,n=qr(t)){let i;if(typeof e==="string"){i={url:e}}else if(typeof e==="function"||Array.isArray(e)){i={events:e}}else if(typeof e==="object"&&e){i=e}if(i){let{refined:r,extra:l}=di(i,n);let s=Zr(r,t);if(s){return{_raw:e,isFetching:false,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:kt(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Lr(r,t),extendedProps:l}}}return null}function qr(e){return Object.assign(Object.assign(Object.assign({},Qr),Yr),e.pluginHooks.eventSourceRefiners)}function Zr(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let i=n[t];let r=i.parseMeta(e);if(r){return{sourceDefId:t,meta:r}}}return null}function Jr(e,t,n,i,r){switch(t.type){case"RECEIVE_EVENTS":return Xr(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,r);case"RESET_RAW_EVENTS":return Kr(e,n[t.sourceId],t.rawEvents,i.activeRange,r);case"ADD_EVENTS":return nl(e,t.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return zr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(i){return wr(e,i.activeRange,r)}return e;case"REMOVE_EVENTS":return Pr(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return rl(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Hr(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return Br();default:return e}}function Xr(e,t,n,i,r,l){if(t&&n===t.latestFetchId){let n=Or(el(r,t,l),t,l);if(i){n=wr(n,i,l)}return zr(rl(e,t.sourceId),n)}return e}function Kr(e,t,n,i,r){const{defIdMap:l,instanceIdMap:s}=sl(e);let o=Or(el(n,t,r),t,r,false,l,s);return wr(o,i,r)}function el(e,t,n){let i=n.options.eventDataTransform;let r=t?t.eventDataTransform:null;if(r){e=tl(e,r)}if(i){e=tl(e,i)}return e}function tl(e,t){let n;if(!t){n=e}else{n=[];for(let i of e){let e=t(i);if(e){n.push(e)}else if(e==null){n.push(i)}}}return n}function nl(e,t,n,i){if(n){t=wr(t,n,i)}return zr(e,t)}function il(e,t,n){let{defs:i}=e;let r=mi(e.instances,(e=>{let r=i[e.defId];if(r.allDay){return e}return Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:i,instances:r}}function rl(e,t){return Hr(e,(e=>e.sourceId!==t))}function ll(e,t){return{defs:e.defs,instances:vi(e.instances,(e=>!t[e.instanceId]))}}function sl(e){const{defs:t,instances:n}=e;const i={};const r={};for(let e in t){const n=t[e];const{publicId:r}=n;if(r){i[r]=e}}for(let e in n){const i=n[e];const l=t[i.defId];const{publicId:s}=l;if(s){r[s]=e}}return{defIdMap:i,instanceIdMap:r}}class ol{constructor(){this.handlers={};this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){al(this.handlers,e,t)}off(e,t){cl(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[];let i=this.options&&this.options[e];let r=[].concat(i||[],n);for(let e of r){e.apply(this.thisContext,t)}}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function al(e,t,n){(e[t]||(e[t]=[])).push(n)}function cl(e,t,n){if(n){if(e[t]){e[t]=e[t].filter((e=>e!==n))}}else{delete e[t]}}const fl={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ul(e,t){return Or(dl(e),null,t)}function dl(e){let t;if(e===true){t=[{}]}else if(Array.isArray(e)){t=e.filter((e=>e.daysOfWeek))}else if(typeof e==="object"&&e){t=[e]}else{t=[]}t=t.map((e=>Object.assign(Object.assign({},fl),e)));return t}function hl(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},gl(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function pl(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function gl(e,t){let n={};for(let i of t.pluginHooks.dateSpanTransforms){Object.assign(n,i(e,t))}Object.assign(n,Wl(e,t.dateEnv));return n}function vl(e,t,n){let{dateEnv:i,options:r}=n;let l=t;if(e){l=gn(l);l=i.add(l,r.defaultAllDayEventDuration)}else{l=i.add(l,r.defaultTimedEventDuration)}return l}function ml(e,t,n,i){let r=Tl(e.defs,t);let l=Br();for(let t in e.defs){let s=e.defs[t];l.defs[t]=bl(s,r[t],n,i)}for(let t in e.instances){let s=e.instances[t];let o=l.defs[s.defId];l.instances[t]=yl(s,o,r[s.defId],n,i)}return l}function bl(e,t,n,i){let r=n.standardProps||{};if(r.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)){r.hasEnd=true}let l=Object.assign(Object.assign(Object.assign({},e),r),{ui:Object.assign(Object.assign({},e.ui),r.ui)});if(n.extendedProps){l.extendedProps=Object.assign(Object.assign({},l.extendedProps),n.extendedProps)}for(let e of i.pluginHooks.eventDefMutationAppliers){e(l,n,i)}if(!l.hasEnd&&i.options.forceEventDuration){l.hasEnd=true}return l}function yl(e,t,n,i,r){let{dateEnv:l}=r;let s=i.standardProps&&i.standardProps.allDay===true;let o=i.standardProps&&i.standardProps.hasEnd===false;let a=Object.assign({},e);if(s){a.range=ur(a.range)}if(i.datesDelta&&n.startEditable){a.range={start:l.add(a.range.start,i.datesDelta),end:l.add(a.range.end,i.datesDelta)}}if(i.startDelta&&n.durationEditable){a.range={start:l.add(a.range.start,i.startDelta),end:a.range.end}}if(i.endDelta&&n.durationEditable){a.range={start:a.range.start,end:l.add(a.range.end,i.endDelta)}}if(o){a.range={start:a.range.start,end:vl(t.allDay,a.range.start,r)}}if(t.allDay){a.range={start:gn(a.range.start),end:gn(a.range.end)}}if(a.range.end<a.range.start){a.range.end=vl(t.allDay,a.range.start,r)}return a}class Al{constructor(e,t){this.context=e;this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:true})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class wl{constructor(e,t,n){this._context=e;this._def=t;this._instance=n||null}setProp(e,t){if(e in kr){console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.")}else if(e==="id"){t=xr[e](t);this.mutate({standardProps:{publicId:t}})}else if(e in xr){t=xr[e](t);this.mutate({standardProps:{[e]:t}})}else if(e in Qr){let n=Qr[e](t);if(e==="color"){n={backgroundColor:t,borderColor:t}}else if(e==="editable"){n={startEditable:t,durationEditable:t}}else{n={[e]:t}}this.mutate({standardProps:{ui:n}})}else{console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context;let i=n.createMarker(e);if(i&&this._instance){let e=this._instance.range;let r=pr(e.start,i,n,t.granularity);if(t.maintainDuration){this.mutate({datesDelta:r})}else{this.mutate({startDelta:r})}}}setEnd(e,t={}){let{dateEnv:n}=this._context;let i;if(e!=null){i=n.createMarker(e);if(!i){return}}if(this._instance){if(i){let e=pr(this._instance.range.end,i,n,t.granularity);this.mutate({endDelta:e})}else{this.mutate({standardProps:{hasEnd:false}})}}}setDates(e,t,n={}){let{dateEnv:i}=this._context;let r={allDay:n.allDay};let l=i.createMarker(e);let s;if(!l){return}if(t!=null){s=i.createMarker(t);if(!s){return}}if(this._instance){let e=this._instance.range;if(n.allDay===true){e=ur(e)}let t=pr(e.start,l,i,n.granularity);if(s){let l=pr(e.end,s,i,n.granularity);if(Wt(t,l)){this.mutate({datesDelta:t,standardProps:r})}else{this.mutate({startDelta:t,endDelta:l,standardProps:r})}}else{r.hasEnd=false;this.mutate({datesDelta:t,standardProps:r})}}}moveStart(e){let t=Qt(e);if(t){this.mutate({startDelta:t})}}moveEnd(e){let t=Qt(e);if(t){this.mutate({endDelta:t})}}moveDates(e){let t=Qt(e);if(t){this.mutate({datesDelta:t})}}setAllDay(e,t={}){let n={allDay:e};let{maintainDuration:i}=t;if(i==null){i=this._context.options.allDayMaintainDuration}if(this._def.allDay!==e){n.hasEnd=i}this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context;let n=this._instance;let i=ni(e);if(this._def.hasEnd){return t.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo})}return t.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def;let i=this._context;let{eventStore:r}=i.getCurrentData();let l=jr(r,t.instanceId);let s={"":{display:"",startEditable:true,durationEditable:true,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}};l=ml(l,s,e,i);let o=new wl(i,n,t);this._def=l.defs[n.defId];this._instance=l.instances[t.instanceId];i.dispatch({type:"MERGE_EVENTS",eventStore:l});i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:xl(l,i,t),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:r})}})}}remove(){let e=this._context;let t=El(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t});e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;if(e){return new Al(this._context,this._context.getCurrentData().eventSources[e])}return 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;if(e){return this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo})}return""}get endStr(){let e=this._instance;if(e&&this._def.hasEnd){return this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo})}return""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def;let{ui:n}=t;let{startStr:i,endStr:r}=this;let l={allDay:t.allDay};if(t.title){l.title=t.title}if(i){l.start=i}if(r){l.end=r}if(t.publicId){l.id=t.publicId}if(t.groupId){l.groupId=t.groupId}if(t.url){l.url=t.url}if(n.display&&n.display!=="auto"){l.display=n.display}if(e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor){l.color=n.backgroundColor}else{if(n.backgroundColor){l.backgroundColor=n.backgroundColor}if(n.borderColor){l.borderColor=n.borderColor}}if(n.textColor){l.textColor=n.textColor}if(n.classNames.length){l.classNames=n.classNames}if(Object.keys(t.extendedProps).length){if(e.collapseExtendedProps){Object.assign(l,t.extendedProps)}else{l.extendedProps=t.extendedProps}}return l}toJSON(){return this.toPlainObject()}}function El(e){let t=e._def;let n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function xl(e,t,n){let{defs:i,instances:r}=e;let l=[];let s=n?n.instanceId:"";for(let e in r){let n=r[e];let o=i[n.defId];if(n.instanceId!==s){l.push(new wl(t,o,n))}}return l}function kl(e,t,n,i){let r={};let l={};let s={};let o=[];let a=[];let c=Tl(e.defs,t);for(let t in e.defs){let n=e.defs[t];let i=c[n.defId];if(i.display==="inverse-background"){if(n.groupId){r[n.groupId]=[];if(!s[n.groupId]){s[n.groupId]=n}}else{l[t]=[]}}}for(let t in e.instances){let s=e.instances[t];let f=e.defs[s.defId];let u=c[f.defId];let d=s.range;let h=!f.allDay&&i?dr(d,i):d;let p=lr(h,n);if(p){if(u.display==="inverse-background"){if(f.groupId){r[f.groupId].push(p)}else{l[s.defId].push(p)}}else if(u.display!=="none"){(u.display==="background"?o:a).push({def:f,ui:u,instance:s,range:p,isStart:h.start&&h.start.valueOf()===p.start.valueOf(),isEnd:h.end&&h.end.valueOf()===p.end.valueOf()})}}}for(let e in r){let t=r[e];let i=ir(t,n);for(let t of i){let n=s[e];let i=c[n.defId];o.push({def:n,ui:i,instance:null,range:t,isStart:false,isEnd:false})}}for(let t in l){let i=l[t];let r=ir(i,n);for(let n of r){o.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:false,isEnd:false})}}return{bg:o,fg:a}}function Sl(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function Dl(e,t){e.fcSeg=t}function Cl(e){return e.fcSeg||e.parentNode.fcSeg||null}function Tl(e,t){return mi(e,(e=>Nl(e,t)))}function Nl(e,t){let n=[];if(t[""]){n.push(t[""])}if(t[e.defId]){n.push(t[e.defId])}n.push(e.ui);return Wr(n)}function Ml(e,t){let n=e.map(Rl);n.sort(((e,n)=>Ot(e,n,t)));return n.map((e=>e._seg))}function Rl(e){let{eventRange:t}=e;let n=t.def;let i=t.instance?t.instance.range:t.range;let r=i.start?i.start.valueOf():0;let l=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:r,end:l,duration:l-r,allDay:Number(n.allDay),_seg:e})}function Ol(e,t){let{pluginHooks:n}=t;let i=n.isDraggableTransformers;let{def:r,ui:l}=e.eventRange;let s=l.startEditable;for(let e of i){s=e(s,r,l,t)}return s}function _l(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function jl(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Il(e,t,n,i,r,l,s){let{dateEnv:o,options:a}=n;let{displayEventTime:c,displayEventEnd:f}=a;let u=e.eventRange.def;let d=e.eventRange.instance;if(c==null){c=i!==false}if(f==null){f=r!==false}let h=d.range.start;let p=d.range.end;let g=l||e.start||e.eventRange.range.start;let v=s||e.end||e.eventRange.range.end;let m=gn(h).valueOf()===gn(g).valueOf();let b=gn(sn(p,-1)).valueOf()===gn(sn(v,-1)).valueOf();if(c&&!u.allDay&&(m||b)){g=m?h:g;v=b?p:v;if(f&&u.hasEnd){return o.formatRange(g,v,t,{forcedStartTzo:l?null:d.forcedStartTzo,forcedEndTzo:s?null:d.forcedEndTzo})}return o.format(g,t,{forcedTzo:l?null:d.forcedStartTzo})}return""}function Bl(e,t,n){let i=e.eventRange.range;return{isPast:i.end<=(n||t.start),isFuture:i.start>=(n||t.end),isToday:t&&cr(t,i.start)}}function zl(e){let t=["fc-event"];if(e.isMirror){t.push("fc-event-mirror")}if(e.isDraggable){t.push("fc-event-draggable")}if(e.isStartResizable||e.isEndResizable){t.push("fc-event-resizable")}if(e.isDragging){t.push("fc-event-dragging")}if(e.isResizing){t.push("fc-event-resizing")}if(e.isSelected){t.push("fc-event-selected")}if(e.isStart){t.push("fc-event-start")}if(e.isEnd){t.push("fc-event-end")}if(e.isPast){t.push("fc-event-past")}if(e.isToday){t.push("fc-event-today")}if(e.isFuture){t.push("fc-event-future")}return t}function Hl(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Pl(e,t){let{def:n,instance:i}=e.eventRange;let{url:r}=n;if(r){return{href:r}}let{emitter:l,options:s}=t;let{eventInteractive:o}=s;if(o==null){o=n.interactive;if(o==null){o=Boolean(l.hasHandlers("eventClick"))}}if(o){return Et((e=>{l.trigger("eventClick",{el:e.target,event:new wl(t,n,i),jsEvent:e,view:t.viewApi})}))}return{}}const Gl={start:hi,end:hi,allDay:Boolean};function Ul(e,t,n){let i=Ql(e,t);let{range:r}=i;if(!r.start){return null}if(!r.end){if(n==null){return null}r.end=t.add(r.start,n)}return i}function Ql(e,t){let{refined:n,extra:i}=di(e,Gl);let r=n.start?t.createMarkerMeta(n.start):null;let l=n.end?t.createMarkerMeta(n.end):null;let{allDay:s}=n;if(s==null){s=r&&r.isTimeUnspecified&&(!l||l.isTimeUnspecified)}return Object.assign({range:{start:r?r.marker:null,end:l?l.marker:null},allDay:s},i)}function Vl(e,t){return sr(e.range,t.range)&&e.allDay===t.allDay&&Ll(e,t)}function Ll(e,t){for(let n in t){if(n!=="range"&&n!=="allDay"){if(e[n]!==t[n]){return false}}}for(let n in e){if(!(n in t)){return false}}return true}function Wl(e,t){return Object.assign(Object.assign({},Yl(e.range,t,e.allDay)),{allDay:e.allDay})}function Fl(e,t,n){return Object.assign(Object.assign({},Yl(e,t,n)),{timeZone:t.timeZone})}function Yl(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function $l(e,t,n){let i=Cr({editable:false},n);let r=Nr(i.refined,i.extra,"",e.allDay,true,n);return{def:r,ui:Nl(r,t),instance:yr(r.defId,e.range),range:e.range,isStart:true,isEnd:true}}function ql(e,t,n){let i=false;let r=function(e){if(!i){i=true;t(e)}};let l=function(e){if(!i){i=true;n(e)}};let s=e(r,l);if(s&&typeof s.then==="function"){s.then(r,l)}}class Zl extends Error{constructor(e,t){super(e);this.response=t}}function Jl(e,t,n){e=e.toUpperCase();const i={method:e};if(e==="GET"){t+=(t.indexOf("?")===-1?"?":"&")+new URLSearchParams(n)}else{i.body=new URLSearchParams(n);i.headers={"Content-Type":"application/x-www-form-urlencoded"}}return fetch(t,i).then((e=>{if(e.ok){return e.json().then((t=>[t,e]),(()=>{throw new Zl("Failure parsing JSON",e)}))}else{throw new Zl("Request failed",e)}}))}let Xl;function Kl(){if(Xl==null){Xl=es()}return Xl}function es(){if(typeof document==="undefined"){return true}let e=document.createElement("div");e.style.position="absolute";e.style.top="0px";e.style.left="0px";e.innerHTML="<table><tr><td><div></div></td></tr></table>";e.querySelector("table").style.height="100px";e.querySelector("div").style.height="100%";document.body.appendChild(e);let t=e.querySelector("div");let n=t.offsetHeight>0;document.body.removeChild(e);return n}class ts extends Qi{constructor(){super(...arguments);this.state={forPrint:false};this.handleBeforePrint=()=>{Ii((()=>{this.setState({forPrint:true})}))};this.handleAfterPrint=()=>{Ii((()=>{this.setState({forPrint:false})}))}}render(){let{props:e}=this;let{options:t}=e;let{forPrint:n}=this.state;let i=n||t.height==="auto"||t.contentHeight==="auto";let r=!i&&t.height!=null?t.height:"";let l=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];if(!Kl()){l.push("fc-liquid-hack")}return e.children(l,r,i,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint);e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint);e.off("_afterprint",this.handleAfterPrint)}}class ns{constructor(e){this.component=e.component;this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function is(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:true,isHitComboAllowed:t.isHitComboAllowed||null}}function rs(e){return{[e.component.uid]:e}}const ls={};class ss{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",true)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;if(n.currentCalendarOptionsRefiners[e]){n.emitter.on(e,t)}else{console.warn(`Unknown listener name '${e}'`)}}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{this.unselect();if(t){if(t.start&&t.end){this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e});this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t})}else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}}else{this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}}))}zoomTo(e,t){let n=this.getCurrentData();let i;t=t||"day";i=n.viewSpecs[t]||this.getUnitViewSpec(t);this.unselect();if(i){this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e})}else{this.dispatch({type:"CHANGE_DATE",dateMarker:e})}}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:n}=this.getCurrentData();let i=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]);let r;let l;for(let e in t){i.push(e)}for(r=0;r<i.length;r+=1){l=t[i[r]];if(l){if(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:mr(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect();this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData();let n=Qt(e);if(n){this.unselect();this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)})}}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),ni(t))}formatRange(e,t,n){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(t),ni(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;if(t==null){if(e.start!=null){n=e}else{n={start:e,end:null}}}else{n={start:e,end:t}}let i=this.getCurrentData();let r=Ul(n,i.dateEnv,Qt({days:1}));if(r){this.dispatch({type:"SELECT_DATES",selection:r});hl(r,null,i)}}unselect(e){let t=this.getCurrentData();if(t.dateSelection){this.dispatch({type:"UNSELECT_DATES"});pl(e,t)}}addEvent(e,t){if(e instanceof wl){let t=e._def;let n=e._instance;let i=this.getCurrentData();if(!i.eventStore.defs[t.defId]){this.dispatch({type:"ADD_EVENTS",eventStore:_r({def:t,instance:n})});this.triggerEventAdd(e)}return e}let n=this.getCurrentData();let i;if(t instanceof Al){i=t.internalEventSource}else if(typeof t==="boolean"){if(t){[i]=yi(n.eventSources)}}else if(t!=null){let e=this.getEventSourceById(t);if(!e){console.warn(`Could not find an event source with ID "${t}"`);return null}i=e.internalEventSource}let r=Dr(e,i,n,false);if(r){let e=new wl(n,r.def,r.def.recurringDef?null:r.instance);this.dispatch({type:"ADD_EVENTS",eventStore:_r(r)});this.triggerEventAdd(e);return e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:El(e)})}})}getEventById(e){let t=this.getCurrentData();let{defs:n,instances:i}=t.eventStore;e=String(e);for(let r in n){let l=n[r];if(l.publicId===e){if(l.recurringDef){return new wl(t,l,null)}for(let e in i){let n=i[e];if(n.defId===l.defId){return new wl(t,l,n)}}}}return null}getEvents(){let e=this.getCurrentData();return xl(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData();let t=e.eventSources;let n=[];for(let i in t){n.push(new Al(e,t[i]))}return n}getEventSourceById(e){let t=this.getCurrentData();let n=t.eventSources;e=String(e);for(let i in n){if(n[i].publicId===e){return new Al(t,n[i])}}return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Al){if(!t.eventSources[e.internalEventSource.sourceId]){this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]})}return e}let n=$r(e,t);if(n){this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]});return new Al(t,n)}return null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:true})}scrollToTime(e){let t=Qt(e);if(t){this.trigger("_scrollRequest",{time:t})}}}function os(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function as(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};if(n.left<n.right&&n.top<n.bottom){return n}return false}function cs(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function fs(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function us(e,t){return{left:e.left-t.left,top:e.top-t.top}}const ds=Br();class hs{constructor(){this.getKeysForEventDefs=_n(this._getKeysForEventDefs);this.splitDateSelection=_n(this._splitDateSpan);this.splitEventStore=_n(this._splitEventStore);this.splitIndividualUi=_n(this._splitIndividualUi);this.splitEventDrag=_n(this._splitInteraction);this.splitEventResize=_n(this._splitInteraction);this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e);let n=this.getKeysForEventDefs(e.eventStore);let i=this.splitDateSelection(e.dateSelection);let r=this.splitIndividualUi(e.eventUiBases,n);let l=this.splitEventStore(e.eventStore,n);let s=this.splitEventDrag(e.eventDrag);let o=this.splitEventResize(e.eventResize);let a={};this.eventUiBuilders=mi(t,((e,t)=>this.eventUiBuilders[t]||_n(ps)));for(let n in t){let c=t[n];let f=l[n]||ds;let u=this.eventUiBuilders[n];a[n]={businessHours:c.businessHours||e.businessHours,dateSelection:i[n]||null,eventStore:f,eventUiBases:u(e.eventUiBases[""],c.ui,r[n]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[n]||null,eventResize:o[n]||null}}return a}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let i of n){t[i]=e}}return t}_getKeysForEventDefs(e){return mi(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:i}=e;let r={};for(let e in n){for(let i of t[e]){if(!r[i]){r[i]=Br()}r[i].defs[e]=n[e]}}for(let e in i){let n=i[e];for(let i of t[n.defId]){if(r[i]){r[i].instances[e]=n}}}return r}_splitIndividualUi(e,t){let n={};for(let i in e){if(i){for(let r of t[i]){if(!n[r]){n[r]={}}n[r][i]=e[i]}}}return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents));let i=this._getKeysForEventDefs(e.mutatedEvents);let r=this._splitEventStore(e.mutatedEvents,i);let l=i=>{if(!t[i]){t[i]={affectedEvents:n[i]||ds,mutatedEvents:r[i]||ds,isEvent:e.isEvent}}};for(let e in n){l(e)}for(let e in r){l(e)}}return t}}function ps(e,t,n){let i=[];if(e){i.push(e)}if(t){i.push(t)}let r={"":Wr(i)};if(n){Object.assign(r,n)}return r}function gs(e,t,n,i){return{dow:e.getUTCDay(),isDisabled:Boolean(i&&!cr(i.activeRange,e)),isOther:Boolean(i&&!cr(i.currentRange,e)),isToday:Boolean(t&&cr(t,e)),isPast:Boolean(n?e<n:t?e<t.start:false),isFuture:Boolean(n?e>n:t?e>=t.end:false)}}function vs(e,t){let n=["fc-day",`fc-day-${nn[e.dow]}`];if(e.isDisabled){n.push("fc-day-disabled")}else{if(e.isToday){n.push("fc-day-today");n.push(t.getClass("today"))}if(e.isPast){n.push("fc-day-past")}if(e.isFuture){n.push("fc-day-future")}if(e.isOther){n.push("fc-day-other")}}return n}const ms=ni({year:"numeric",month:"long",day:"numeric"});const bs=ni({week:"long"});function ys(e,t,n="day",i=true){const{dateEnv:r,options:l,calendarApi:s}=e;let o=r.format(t,n==="week"?bs:ms);if(l.navLinks){let e=r.toDate(t);const a=e=>{let i=n==="day"?l.navLinkDayClick:n==="week"?l.navLinkWeekClick:null;if(typeof i==="function"){i.call(s,r.toDate(t),e)}else{if(typeof i==="string"){n=i}s.zoomTo(t,n)}};return Object.assign({title:Bt(l.navLinkHint,[o,e],o),"data-navlink":""},i?wt(a):{onClick:a})}return{"aria-label":o}}let As=null;function ws(){if(As===null){As=Es()}return As}function Es(){let e=document.createElement("div");ft(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"});e.innerHTML="<div></div>";document.body.appendChild(e);let t=e.firstChild;let n=t.getBoundingClientRect().left>e.getBoundingClientRect().left;lt(e);return n}let xs;function ks(){if(!xs){xs=Ss()}return xs}function Ss(){let e=document.createElement("div");e.style.overflow="scroll";e.style.position="absolute";e.style.top="-9999px";e.style.left="-9999px";document.body.appendChild(e);let t=Ds(e);document.body.removeChild(e);return t}function Ds(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Cs(e,t=false){let n=window.getComputedStyle(e);let i=parseInt(n.borderLeftWidth,10)||0;let r=parseInt(n.borderRightWidth,10)||0;let l=parseInt(n.borderTopWidth,10)||0;let s=parseInt(n.borderBottomWidth,10)||0;let o=Ds(e);let a=o.y-i-r;let c=o.x-l-s;let f={borderLeft:i,borderRight:r,borderTop:l,borderBottom:s,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};if(ws()&&n.direction==="rtl"){f.scrollbarLeft=a}else{f.scrollbarRight=a}if(t){f.paddingLeft=parseInt(n.paddingLeft,10)||0;f.paddingRight=parseInt(n.paddingRight,10)||0;f.paddingTop=parseInt(n.paddingTop,10)||0;f.paddingBottom=parseInt(n.paddingBottom,10)||0}return f}function Ts(e,t=false,n){let i=n?e.getBoundingClientRect():Ns(e);let r=Cs(e,t);let l={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};if(t){l.left+=r.paddingLeft;l.right-=r.paddingRight;l.top+=r.paddingTop;l.bottom-=r.paddingBottom}return l}function Ns(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function Ms(e){let t=Rs(e);let n=e.getBoundingClientRect();for(let e of t){let t=as(n,e.getBoundingClientRect());if(t){n=t}else{return null}}return n}function Rs(e){let t=[];while(e instanceof HTMLElement){let n=window.getComputedStyle(e);if(n.position==="fixed"){break}if(/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)){t.push(e)}e=e.parentNode}return t}class Os{constructor(e,t,n,i){this.els=t;let r=this.originClientRect=e.getBoundingClientRect();if(n){this.buildElHorizontals(r.left)}if(i){this.buildElVerticals(r.top)}}buildElHorizontals(e){let t=[];let n=[];for(let i of this.els){let r=i.getBoundingClientRect();t.push(r.left-e);n.push(r.right-e)}this.lefts=t;this.rights=n}buildElVerticals(e){let t=[];let n=[];for(let i of this.els){let r=i.getBoundingClientRect();t.push(r.top-e);n.push(r.bottom-e)}this.tops=t;this.bottoms=n}leftToIndex(e){let{lefts:t,rights:n}=this;let i=t.length;let r;for(r=0;r<i;r+=1){if(e>=t[r]&&e<n[r]){return r}}return undefined}topToIndex(e){let{tops:t,bottoms:n}=this;let i=t.length;let r;for(r=0;r<i;r+=1){if(e>=t[r]&&e<n[r]){return r}}return undefined}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return _s(this.tops||[],e.tops||[])&&_s(this.bottoms||[],e.bottoms||[])&&_s(this.lefts||[],e.lefts||[])&&_s(this.rights||[],e.rights||[])}}function _s(e,t){const n=e.length;if(n!==t.length){return false}for(let i=0;i<n;i++){if(Math.round(e[i])!==Math.round(t[i])){return false}}return true}class js{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 Is extends js{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 Bs extends js{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 zs extends Qi{constructor(){super(...arguments);this.uid=kt()}prepareHits(){}queryHit(e,t,n,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!st(e,".fc-event-mirror")}isValidDateDownEl(e){return!st(e,".fc-event:not(.fc-bg-event)")&&!st(e,".fc-more-link")&&!st(e,"a[data-navlink]")&&!st(e,".fc-popover")}}class Hs{constructor(e=(e=>e.thickness||1)){this.getEntryThickness=e;this.strictOrder=false;this.allowReslicing=false;this.maxCoord=-1;this.maxStackCnt=-1;this.levelCoords=[];this.entriesByLevel=[];this.stackCnts={}}addSegs(e){let t=[];for(let n of e){this.insertEntry(n,t)}return t}insertEntry(e,t){let n=this.findInsertion(e);if(this.isInsertionValid(n,e)){this.insertEntryAt(e,n)}else{this.handleInvalidInsertion(n,e,t)}}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},t),{span:Vs(t.span,e.touchingEntry.span)});n.push(i);this.splitEntry(t,e.touchingEntry,n)}else{n.push(t)}}splitEntry(e,t,n){let i=e.span;let r=t.span;if(i.start<r.start){this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:r.start}},n)}if(i.end>r.end){this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.end,end:i.end}},n)}}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:i}=this;if(t.lateral===-1){Ls(i,t.level,t.levelCoord);Ls(n,t.level,[e])}else{Ls(n[t.level],t.lateral,e)}this.stackCnts[Gs(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:i,stackCnts:r}=this;let l=t.length;let s=0;let o=-1;let a=-1;let c=null;let f=0;for(let u=0;u<l;u+=1){const l=t[u];if(!i&&l>=s+this.getEntryThickness(e)){break}let d=n[u];let h;let p=Ws(d,e.span.start,Ps);let g=p[0]+p[1];while((h=d[g])&&h.span.start<e.span.end){let e=l+this.getEntryThickness(h);if(e>s){s=e;c=h;o=u;a=g}if(e===s){f=Math.max(f,r[Gs(h)]+1)}g+=1}}let u=0;if(c){u=o+1;while(u<l&&t[u]<s){u+=1}}let d=-1;if(u<l&&t[u]===s){d=Ws(n[u],e.span.end,Ps)[0]}return{touchingLevel:o,touchingLateral:a,touchingEntry:c,stackCnt:f,levelCoord:s,level:u,lateral:d}}toRects(){let{entriesByLevel:e,levelCoords:t}=this;let n=e.length;let i=[];for(let r=0;r<n;r+=1){let n=e[r];let l=t[r];for(let e of n){i.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:l}))}}return i}}function Ps(e){return e.span.end}function Gs(e){return e.index+":"+e.span.start}function Us(e){let t=[];for(let n of e){let e=[];let i={span:n.span,entries:[n]};for(let n of t){if(Vs(n.span,i.span)){i={entries:n.entries.concat(i.entries),span:Qs(n.span,i.span)}}else{e.push(n)}}e.push(i);t=e}return t}function Qs(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Vs(e,t){let n=Math.max(e.start,t.start);let i=Math.min(e.end,t.end);if(n<i){return{start:n,end:i}}return null}function Ls(e,t,n){e.splice(t,0,n)}function Ws(e,t,n){let i=0;let r=e.length;if(!r||t<n(e[i])){return[0,0]}if(t>n(e[r-1])){return[r,0]}while(i<r){let l=Math.floor(i+(r-i)/2);let s=n(e[l]);if(t<s){r=l}else if(t>s){i=l+1}else{return[l,1]}}return[i,0]}class Fs{constructor(e,t){this.emitter=new ol}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Ys={};function $s(e,t){if(!e||t>10){return ni({weekday:"short"})}if(t>1){return ni({weekday:"short",month:"numeric",day:"numeric",omitCommas:true})}return ni({weekday:"long"})}const qs="fc-col-header-cell";function Zs(e){return e.text}class Js extends Qi{render(){let{dateEnv:e,options:t,theme:n,viewApi:i}=this.context;let{props:r}=this;let{date:l,dateProfile:s}=r;let o=gs(l,r.todayRange,null,s);let a=[qs].concat(vs(o,n));let c=e.format(l,r.dayHeaderFormat);let f=!o.isDisabled&&r.colCnt>1?ys(this.context,l):{};let u=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},r.extraRenderProps),{text:c}),o);return O(Ji,{elTag:"th",elClasses:a,elAttrs:Object.assign({role:"columnheader",colSpan:r.colSpan,"data-date":!o.isDisabled?Nn(l):undefined},r.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:Zs,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>O("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&O(e,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",r.isSticky&&"fc-sticky"]}))))}}const Xs=ni({weekday:"long"});class Ks extends Qi{render(){let{props:e}=this;let{dateEnv:t,theme:n,viewApi:i,options:r}=this.context;let l=ln(new Date(2592e5),e.dow);let s={dow:e.dow,isDisabled:false,isFuture:false,isPast:false,isToday:false,isOther:false};let o=t.format(l,e.dayHeaderFormat);let a=Object.assign(Object.assign(Object.assign(Object.assign({date:l},s),{view:i}),e.extraRenderProps),{text:o});return O(Ji,{elTag:"th",elClasses:[qs,...vs(s,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:a,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Zs,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(n=>O("div",{className:"fc-scrollgrid-sync-inner"},O(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(l,Xs)}}))))}}class eo extends U{constructor(e,t){super(e,t);this.initialNowDate=mr(t.options.now,t.dateEnv);this.initialNowQueriedMs=(new Date).valueOf();this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){if(e.unit!==this.props.unit){this.clearTimeout();this.setTimeout()}}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this;let n=sn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs);let i=t.dateEnv.startOf(n,e.unit);let r=t.dateEnv.add(i,Qt(1,e.unit));let l=r.valueOf()-n.valueOf();l=Math.min(1e3*60*60*24,l);return{currentState:{nowDate:i,todayRange:to(i)},nextState:{nowDate:r,todayRange:to(r)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){if(this.timeoutId){clearTimeout(this.timeoutId)}}}eo.contextType=Pi;function to(e){let t=gn(e);let n=ln(t,1);return{start:t,end:n}}class no extends Qi{constructor(){super(...arguments);this.createDayHeaderFormatter=_n(io)}render(){let{context:e}=this;let{dates:t,dateProfile:n,datesRepDistinctDays:i,renderIntro:r}=this.props;let l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,t.length);return O(eo,{unit:"day"},((e,s)=>O("tr",{role:"row"},r&&r("day"),t.map((e=>i?O(Js,{key:e.toISOString(),date:e,dateProfile:n,todayRange:s,colCnt:t.length,dayHeaderFormat:l}):O(Ks,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:l}))))))}}function io(e,t,n){return e||$s(t,n)}class ro{constructor(e,t){let n=e.start;let{end:i}=e;let r=[];let l=[];let s=-1;while(n<i){if(t.isHiddenDay(n)){r.push(s+.5)}else{s+=1;r.push(s);l.push(n)}n=ln(n,1)}this.dates=l;this.indices=r;this.cnt=l.length}sliceRange(e){let t=this.getDateDayIndex(e.start);let n=this.getDateDayIndex(ln(e.end,-1));let i=Math.max(0,t);let r=Math.min(this.cnt-1,n);i=Math.ceil(i);r=Math.floor(r);if(i<=r){return{firstIndex:i,lastIndex:r,isStart:t===i,isEnd:n===r}}return null}getDateDayIndex(e){let{indices:t}=this;let n=Math.floor(an(this.dates[0],e));if(n<0){return t[0]-1}if(n>=t.length){return t[t.length-1]+1}return t[n]}}class lo{constructor(e,t){let{dates:n}=e;let i;let r;let l;if(t){r=n[0].getUTCDay();for(i=1;i<n.length;i+=1){if(n[i].getUTCDay()===r){break}}l=Math.ceil(n.length/i)}else{l=1;i=n.length}this.rowCnt=l;this.colCnt=i;this.daySeries=e;this.cells=this.buildCells();this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1){n.push(this.buildCell(t,e))}e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1){e.push(this.cells[0][t].date)}return e}sliceRange(e){let{colCnt:t}=this;let n=this.daySeries.sliceRange(e);let i=[];if(n){let{firstIndex:e,lastIndex:r}=n;let l=e;while(l<=r){let s=Math.floor(l/t);let o=Math.min((s+1)*t,r+1);i.push({row:s,firstCol:l%t,lastCol:(o-1)%t,isStart:n.isStart&&l===e,isEnd:n.isEnd&&o-1===r});l=o}}return i}}class so{constructor(){this.sliceBusinessHours=_n(this._sliceBusinessHours);this.sliceDateSelection=_n(this._sliceDateSpan);this.sliceEventStore=_n(this._sliceEventStore);this.sliceEventDrag=_n(this._sliceInteraction);this.sliceEventResize=_n(this._sliceInteraction);this.forceDayIfListItem=false}sliceProps(e,t,n,i,...r){let{eventUiBases:l}=e;let s=this.sliceEventStore(e.eventStore,l,t,n,...r);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,l,i,...r),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,i,...r),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,t,n,...r),eventResize:this.sliceEventResize(e.eventResize,l,t,n,...r),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,i,...r){return this._sliceDateSpan({range:{start:e,end:sn(e,1)},allDay:false},t,n,{},i,...r)}_sliceBusinessHours(e,t,n,i,...r){if(!e){return[]}return this._sliceEventStore(wr(e,oo(t,Boolean(n)),i),{},t,n,...r).bg}_sliceEventStore(e,t,n,i,...r){if(e){let l=kl(e,t,oo(n,Boolean(i)),i);return{bg:this.sliceEventRanges(l.bg,r),fg:this.sliceEventRanges(l.fg,r)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,i,...r){if(!e){return null}let l=kl(e.mutatedEvents,t,oo(n,Boolean(i)),i);return{segs:this.sliceEventRanges(l.fg,r),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,i,r,...l){if(!e){return[]}let s=oo(t,Boolean(n));let o=lr(e.range,s);if(o){e=Object.assign(Object.assign({},e),{range:o});let t=$l(e,i,r);let n=this.sliceRange(e.range,...l);for(let e of n){e.eventRange=t}return n}return[]}sliceEventRanges(e,t){let n=[];for(let i of e){n.push(...this.sliceEventRange(i,t))}return n}sliceEventRange(e,t){let n=e.range;if(this.forceDayIfListItem&&e.ui.display==="list-item"){n={start:n.start,end:ln(n.start,1)}}let i=this.sliceRange(n,...t);for(let t of i){t.eventRange=e;t.isStart=e.isStart&&t.isStart;t.isEnd=e.isEnd&&t.isEnd}return i}}function oo(e,t){let n=e.activeRange;if(t){return n}return{start:sn(n.start,e.slotMinTime.milliseconds),end:sn(n.end,e.slotMaxTime.milliseconds-864e5)}}function ao(e,t,n){let{instances:i}=e.mutatedEvents;for(let e in i){if(!ar(t.validRange,i[e].range)){return false}}return fo({eventDrag:e},n)}function co(e,t,n){if(!ar(t.validRange,e.range)){return false}return fo({dateSelection:e},n)}function fo(e,t){let n=t.getCurrentData();let i=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||uo)(i,t)}function uo(e,t,n={},i){if(e.eventDrag&&!ho(e,t,n,i)){return false}if(e.dateSelection&&!po(e,t,n,i)){return false}return true}function ho(e,t,n,i){let r=t.getCurrentData();let l=e.eventDrag;let s=l.mutatedEvents;let o=s.defs;let a=s.instances;let c=Tl(o,l.isEvent?e.eventUiBases:{"":r.selectionConfig});if(i){c=mi(c,i)}let f=ll(e.eventStore,l.affectedEvents.instances);let u=f.defs;let d=f.instances;let h=Tl(u,e.eventUiBases);for(let i in a){let s=a[i];let p=s.range;let g=c[s.defId];let v=o[s.defId];if(!go(g.constraints,p,f,e.businessHours,t)){return false}let{eventOverlap:m}=t.options;let b=typeof m==="function"?m:null;for(let e in d){let n=d[e];if(or(p,n.range)){let e=h[n.defId].overlap;if(e===false&&l.isEvent){return false}if(g.overlap===false){return false}if(b&&!b(new wl(t,u[n.defId],n),new wl(t,v,s))){return false}}}let y=r.eventStore;for(let e of g.allows){let r=Object.assign(Object.assign({},n),{range:s.range,allDay:v.allDay});let l=y.defs[v.defId];let o=y.instances[i];let a;if(l){a=new wl(t,l,o)}else{a=new wl(t,v)}if(!e(gl(r,t),a)){return false}}}return true}function po(e,t,n,i){let r=e.eventStore;let l=r.defs;let s=r.instances;let o=e.dateSelection;let a=o.range;let{selectionConfig:c}=t.getCurrentData();if(i){c=i(c)}if(!go(c.constraints,a,r,e.businessHours,t)){return false}let{selectOverlap:f}=t.options;let u=typeof f==="function"?f:null;for(let e in s){let n=s[e];if(or(a,n.range)){if(c.overlap===false){return false}if(u&&!u(new wl(t,l[n.defId],n),null)){return false}}}for(let e of c.allows){let i=Object.assign(Object.assign({},n),o);if(!e(gl(i,t),null)){return false}}return true}function go(e,t,n,i,r){for(let l of e){if(!bo(vo(l,t,n,i,r),t)){return false}}return true}function vo(e,t,n,i,r){if(e==="businessHours"){return mo(wr(i,t,r))}if(typeof e==="string"){return mo(Hr(n,(t=>t.groupId===e)))}if(typeof e==="object"&&e){return mo(wr(e,t,r))}return[]}function mo(e){let{instances:t}=e;let n=[];for(let e in t){n.push(t[e].range)}return n}function bo(e,t){for(let n of e){if(ar(n,t)){return true}}return false}const yo=/^(visible|hidden)$/;class Ao extends Qi{constructor(){super(...arguments);this.handleEl=e=>{this.el=e;Wi(this.props.elRef,e)}}render(){let{props:e}=this;let{liquid:t,liquidIsAbsolute:n}=e;let i=t&&n;let r=["fc-scroller"];if(t){if(n){r.push("fc-scroller-liquid-absolute")}else{r.push("fc-scroller-liquid")}}return O("div",{ref:this.handleEl,className:r.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(yo.test(this.props.overflowX)){return false}let{el:e}=this;let t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth();let{children:n}=e;for(let e=0;e<n.length;e+=1){let i=n[e];if(i.getBoundingClientRect().width>t){return true}}return false}needsYScrolling(){if(yo.test(this.props.overflowY)){return false}let{el:e}=this;let t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth();let{children:n}=e;for(let e=0;e<n.length;e+=1){let i=n[e];if(i.getBoundingClientRect().height>t){return true}}return false}getXScrollbarWidth(){if(yo.test(this.props.overflowX)){return 0}return this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){if(yo.test(this.props.overflowY)){return 0}return this.el.offsetWidth-this.el.clientWidth}}class wo{constructor(e){this.masterCallback=e;this.currentMap={};this.depths={};this.callbackMap={};this.handleValue=(e,t)=>{let{depths:n,currentMap:i}=this;let r=false;let l=false;if(e!==null){r=t in i;i[t]=e;n[t]=(n[t]||0)+1;l=true}else{n[t]-=1;if(!n[t]){delete i[t];delete this.callbackMap[t];r=true}}if(this.masterCallback){if(r){this.masterCallback(null,String(t))}if(l){this.masterCallback(e,String(t))}}}}createRef(e){let t=this.callbackMap[e];if(!t){t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}}return t}collect(e,t,n){return Di(this.currentMap,e,t,n)}getAll(){return yi(this.currentMap)}}function Eo(e){let t=at(e,".fc-scrollgrid-shrink");let n=0;for(let e of t){n=Math.max(n,Pt(e))}return Math.ceil(n)}function xo(e,t){return e.liquid&&t.liquid}function ko(e,t){return t.maxHeight!=null||xo(e,t)}function So(e,t,n,i){let{expandRows:r}=n;let l=typeof t.content==="function"?t.content(n):O("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,O(i?"thead":"tbody",{role:"presentation"},typeof t.rowContent==="function"?t.rowContent(n):t.rowContent));return l}function Do(e,t){return tn(e,t,Ai)}function Co(e,t){let n=[];for(let i of e){let e=i.span||1;for(let r=0;r<e;r+=1){n.push(O("col",{style:{width:i.width==="shrink"?To(t):i.width||"",minWidth:i.minWidth||""}}))}}return O("colgroup",{},...n)}function To(e){return e==null?4:e}function No(e){for(let t of e){if(t.width==="shrink"){return true}}return false}function Mo(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];if(e){n.push("fc-scrollgrid-liquid")}return n}function Ro(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];if(t&&e.liquid&&e.maxHeight==null){n.push("fc-scrollgrid-section-liquid")}if(e.isSticky){n.push("fc-scrollgrid-section-sticky")}return n}function Oo(e){return O("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function _o(e){let{stickyHeaderDates:t}=e;if(t==null||t==="auto"){t=e.height==="auto"||e.viewHeight==="auto"}return t}function jo(e){let{stickyFooterScrollbar:t}=e;if(t==null||t==="auto"){t=e.height==="auto"||e.viewHeight==="auto"}return t}class Io extends Qi{constructor(){super(...arguments);this.processCols=_n((e=>e),Do);this.renderMicroColGroup=_n(Co);this.scrollerRefs=new wo;this.scrollerElRefs=new wo(this._handleScrollerEl.bind(this));this.state={shrinkWidth:null,forceYScrollbars:false,scrollerClientWidths:{},scrollerClientHeights:{}};this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this;let i=e.sections||[];let r=this.processCols(e.cols);let l=this.renderMicroColGroup(r,t.shrinkWidth);let s=Mo(e.liquid,n);if(e.collapsibleWidth){s.push("fc-scrollgrid-collapsible")}let o=i.length;let a=0;let c;let f=[];let u=[];let d=[];while(a<o&&(c=i[a]).type==="header"){f.push(this.renderSection(c,l,true));a+=1}while(a<o&&(c=i[a]).type==="body"){u.push(this.renderSection(c,l,false));a+=1}while(a<o&&(c=i[a]).type==="footer"){d.push(this.renderSection(c,l,true));a+=1}let h=!Kl();const p={role:"rowgroup"};return O("table",{role:"grid",className:s.join(" "),style:{height:e.height}},Boolean(!h&&f.length)&&O("thead",p,...f),Boolean(!h&&u.length)&&O("tbody",p,...u),Boolean(!h&&d.length)&&O("tfoot",p,...d),h&&O("tbody",p,...f,...u,...d))}renderSection(e,t,n){if("outerContent"in e){return O(I,{key:e.key},e.outerContent)}return O("tr",{key:e.key,role:"presentation",className:Ro(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,i){if("outerContent"in n){return n.outerContent}let{props:r}=this;let{forceYScrollbars:l,scrollerClientWidths:s,scrollerClientHeights:o}=this.state;let a=ko(r,e);let c=xo(r,e);let f=!r.liquid?"visible":l?"scroll":!a?"hidden":"auto";let u=e.key;let d=So(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:!r.collapsibleWidth&&s[u]!==undefined?s[u]:null,clientHeight:o[u]!==undefined?o[u]:null,expandRows:e.expandRows,syncRowHeights:false,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return O(i?"th":"td",{ref:n.elRef,role:"presentation"},O("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},O(Ao,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:f,overflowX:!r.liquid?"visible":"hidden",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:true},d)))}_handleScrollerEl(e,t){let n=Bo(this.props.sections,t);if(n){Wi(n.chunk.scrollerElRef,e)}}componentDidMount(){this.handleSizing();this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return No(this.props.cols)?Eo(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=ks();let{scrollerRefs:t,scrollerElRefs:n}=this;let i=false;let r={};let l={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){i=true;break}}for(let t of this.props.sections){let s=t.key;let o=n.currentMap[s];if(o){let t=o.parentNode;r[s]=Math.floor(t.getBoundingClientRect().width-(i?e.y:0));l[s]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:r,scrollerClientHeights:l}}}Io.addStateEquality({scrollerClientWidths:Ai,scrollerClientHeights:Ai});function Bo(e,t){for(let n of e){if(n.key===t){return n}}return null}class zo extends Qi{constructor(){super(...arguments);this.handleEl=e=>{this.el=e;if(e){Dl(e,this.props.seg)}}}render(){const{props:e,context:t}=this;const{options:n}=t;const{seg:i}=e;const{eventRange:r}=i;const{ui:l}=r;const s={event:new wl(t,r.def,r.instance),view:t.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&Ol(i,t),isStartResizable:!e.disableResizing&&_l(i,t),isEndResizable:!e.disableResizing&&jl(i),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return O(Ji,Object.assign({},e,{elRef:this.handleEl,elClasses:[...zl(s),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){if(this.el&&this.props.seg!==e.seg){Dl(this.el,this.props.seg)}}}class Ho extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let{seg:i}=e;let{ui:r}=i.eventRange;let l=n.eventTimeFormat||e.defaultTimeFormat;let s=Il(i,l,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return O(zo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:r.borderColor,backgroundColor:r.backgroundColor},elAttrs:Pl(i,t),defaultGenerator:Po,timeText:s}),((e,t)=>O(I,null,O(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&O("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&O("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function Po(e){return O("div",{className:"fc-event-main-frame"},e.timeText&&O("div",{className:"fc-event-time"},e.timeText),O("div",{className:"fc-event-title-container"},O("div",{className:"fc-event-title fc-sticky"},e.event.title||O(I,null," "))))}const Go=e=>O(Pi.Consumer,null,(t=>{let{options:n}=t;let i={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return O(Ji,Object.assign({},e,{elTag:e.elTag||"div",renderProps:i,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}));const Uo=ni({day:"numeric"});class Qo extends Qi{constructor(){super(...arguments);this.refineRenderProps=jn(Lo)}render(){let{props:e,context:t}=this;let{options:n}=t;let i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||false,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return O(Ji,Object.assign({},e,{elClasses:[...vs(i,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Nn(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?undefined:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function Vo(e){return Boolean(e.dayCellContent||Yi("dayCellContent",e))}function Lo(e){let{date:t,dateEnv:n,dateProfile:i,isMonthStart:r}=e;let l=gs(t,e.todayRange,null,i);let s=e.showDayNumber?n.format(t,r?e.monthStartFormat:Uo):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},l),{isMonthStart:r,dayNumberText:s}),e.extraRenderProps)}class Wo extends Qi{render(){let{props:e}=this;let{seg:t}=e;return O(zo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:Fo,seg:t,timeText:"",isDragging:false,isResizing:false,isDateSelecting:false,isSelected:false,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:true,disableResizing:true})}}function Fo(e){let{title:t}=e.event;return t&&O("div",{className:"fc-event-title"},e.event.title)}function Yo(e){return O("div",{className:`fc-${e}`})}const $o=e=>O(Pi.Consumer,null,(t=>{let{dateEnv:n,options:i}=t;let{date:r}=e;let l=i.weekNumberFormat||e.defaultFormat;let s=n.computeWeekNumber(r);let o=n.format(r,l);let a={num:s,text:o,date:r};return O(Ji,Object.assign({},e,{renderProps:a,generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:qo,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount}))}));function qo(e){return e.text}const Zo=10;class Jo extends Qi{constructor(){super(...arguments);this.state={titleId:pt()};this.handleRootEl=e=>{this.rootEl=e;if(this.props.elRef){Wi(this.props.elRef,e)}};this.handleDocumentMouseDown=e=>{const t=dt(e);if(!this.rootEl.contains(t)){this.handleCloseClick()}};this.handleDocumentKeyDown=e=>{if(e.key==="Escape"){this.handleCloseClick()}};this.handleCloseClick=()=>{let{onClose:e}=this.props;if(e){e()}}}render(){let{theme:e,options:t}=this.context;let{props:n,state:i}=this;let r=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return Ie(O("div",Object.assign({},n.extraAttrs,{id:n.id,className:r.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),O("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},O("span",{className:"fc-popover-title",id:i.titleId},n.title),O("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),O("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown);document.addEventListener("keydown",this.handleDocumentKeyDown);this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown);document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context;let{alignmentEl:t,alignGridTop:n}=this.props;let{rootEl:i}=this;let r=Ms(t);if(r){let l=i.getBoundingClientRect();let s=n?st(t,".fc-scrollgrid").getBoundingClientRect().top:r.top;let o=e?r.right-l.width:r.left;s=Math.max(s,Zo);o=Math.min(o,document.documentElement.clientWidth-Zo-l.width);o=Math.max(o,Zo);let a=i.offsetParent.getBoundingClientRect();ft(i,{top:s-a.top,left:o-a.left})}}}class Xo extends zs{constructor(){super(...arguments);this.handleRootEl=e=>{this.rootEl=e;if(e){this.context.registerInteractiveComponent(this,{el:e,useEventCenter:false})}else{this.context.unregisterInteractiveComponent(this)}}}render(){let{options:e,dateEnv:t}=this.context;let{props:n}=this;let{startDate:i,todayRange:r,dateProfile:l}=n;let s=t.format(i,e.dayPopoverFormat);return O(Qo,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:r},((t,i,r)=>O(Jo,{elRef:r.ref,id:n.id,title:s,extraClassNames:["fc-more-popover"].concat(r.className||[]),extraAttrs:r,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Vo(e)&&O(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,i){let{rootEl:r,props:l}=this;if(e>=0&&e<n&&t>=0&&t<i){return{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:r,rect:{left:0,top:0,right:n,bottom:i},layer:1}}return null}}class Ko extends Qi{constructor(){super(...arguments);this.state={isPopoverOpen:false,popoverId:pt()};this.handleLinkEl=e=>{this.linkEl=e;if(this.props.elRef){Wi(this.props.elRef,e)}};this.handleClick=e=>{let{props:t,context:n}=this;let{moreLinkClick:i}=n.options;let r=ta(t).start;function l(e){let{def:t,instance:i,range:r}=e.eventRange;return{event:new wl(n,t,i),start:n.dateEnv.toDate(r.start),end:n.dateEnv.toDate(r.end),isStart:e.isStart,isEnd:e.isEnd}}if(typeof i==="function"){i=i({date:r,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(l),hiddenSegs:t.hiddenSegs.map(l),jsEvent:e,view:n.viewApi})}if(!i||i==="popover"){this.setState({isPopoverOpen:true})}else if(typeof i==="string"){n.calendarApi.zoomTo(r,i)}};this.handlePopoverClose=()=>{this.setState({isPopoverOpen:false})}}render(){let{props:e,state:t}=this;return O(Pi.Consumer,null,(n=>{let{viewApi:i,options:r,calendarApi:l}=n;let{moreLinkText:s}=r;let{moreCnt:o}=e;let a=ta(e);let c=typeof s==="function"?s.call(l,o):`+${o} ${s}`;let f=Bt(r.moreLinkHint,[o],c);let u={num:o,shortText:`+${o}`,text:c,view:i};return O(I,null,Boolean(e.moreCnt)&&O(Ji,{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),wt(this.handleClick)),{title:f,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:r.moreLinkContent,defaultGenerator:e.defaultGenerator||ea,classNameGenerator:r.moreLinkClassNames,didMount:r.moreLinkDidMount,willUnmount:r.moreLinkWillUnmount},e.children),t.isPopoverOpen&&O(Xo,{id:t.popoverId,startDate:a.start,endDate:a.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(){if(this.linkEl){this.parentEl=st(this.linkEl,".fc-view-harness")}}}function ea(e){return e.text}function ta(e){if(e.allDayDate){return{start:e.allDayDate,end:ln(e.allDayDate,1)}}let{hiddenSegs:t}=e;return{start:na(t),end:ra(t)}}function na(e){return e.reduce(ia).eventRange.range.start}function ia(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function ra(e){return e.reduce(la).eventRange.range.end}function la(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}const sa=[];const oa={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"};const aa=Object.assign(Object.assign({},oa),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return t==="day"?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}});function ca(e){let t=e.length>0?e[0].code:"en";let n=sa.concat(e);let i={en:aa};for(let e of n){i[e.code]=e}return{map:i,defaultCode:t}}function fa(e,t){if(typeof e==="object"&&!Array.isArray(e)){return ha(e.code,[e.code],e)}return ua(e,t)}function ua(e,t){let n=[].concat(e||[]);let i=da(n,t)||aa;return ha(e,n,i)}function da(e,t){for(let n=0;n<e.length;n+=1){let i=e[n].toLocaleLowerCase().split("-");for(let e=i.length;e>0;e-=1){let n=i.slice(0,e).join("-");if(t[n]){return t[n]}}}return null}function ha(e,t,n){let i=gi([oa,n],["buttonText"]);delete i.code;let{week:r}=i;delete i.week;return{codeArg:e,codes:t,week:r,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function pa(e){return{id:kt(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):undefined,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function ga(e,t){let n={};let i={premiumReleaseDate:undefined,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 r(e){for(let t of e){const e=t.name;const l=n[e];if(l===undefined){n[e]=t.id;r(t.deps);i=ma(i,t)}else if(l!==t.id){console.warn(`Duplicate plugin '${e}'`)}}}if(e){r(e)}r(t);return i}function va(){let e=[];let t=[];let n;return(i,r)=>{if(!n||!tn(i,e)||!tn(r,t)){n=ga(i,r)}e=i;t=r;return n}}function ma(e,t){return{premiumReleaseDate:ba(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function ba(e,t){if(e===undefined){return t}if(t===undefined){return e}return new Date(Math.max(e.valueOf(),t.valueOf()))}class ya extends ji{}ya.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ya.prototype.baseIconClass="fc-icon";ya.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"};ya.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ya.prototype.iconOverrideOption="buttonIcons";ya.prototype.iconOverrideCustomButtonOption="icon";ya.prototype.iconOverridePrefix="fc-icon-";function Aa(e,t){let n={};let i;for(i in e){wa(i,n,e,t)}for(i in t){wa(i,n,e,t)}return n}function wa(e,t,n,i){if(t[e]){return t[e]}let r=Ea(e,t,n,i);if(r){t[e]=r}return r}function Ea(e,t,n,i){let r=n[e];let l=i[e];let s=e=>r&&r[e]!==null?r[e]:l&&l[e]!==null?l[e]:null;let o=s("component");let a=s("superType");let c=null;if(a){if(a===e){throw new Error("Can't have a custom view type that references itself")}c=wa(a,t,n,i)}if(!o&&c){o=c.component}if(!o){return null}return{type:e,component:o,defaults:Object.assign(Object.assign({},c?c.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),l?l.rawOptions:{})}}function xa(e){return mi(e,ka)}function ka(e){let t=typeof e==="function"?{component:e}:e;let{component:n}=t;if(t.content){n=Sa(t)}else if(n&&!(n.prototype instanceof Qi)){n=Sa(Object.assign(Object.assign({},t),{content:n}))}return{superType:t.type,component:n,rawOptions:t}}function Sa(e){return t=>O(Pi.Consumer,null,(n=>O(Ji,{elTag:"div",elClasses:tr(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:undefined,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function Da(e,t,n,i){let r=xa(e);let l=xa(t.views);let s=Aa(r,l);return mi(s,(e=>Ca(e,l,t,n,i)))}function Ca(e,t,n,i,r){let l=e.overrides.duration||e.defaults.duration||i.duration||n.duration;let s=null;let o="";let a="";let c={};if(l){s=Na(l);if(s){let e=en(s);o=e.unit;if(e.value===1){a=o;c=t[o]?t[o].rawOptions:{}}}}let f=t=>{let n=t.buttonText||{};let i=e.defaults.buttonTextKey;if(i!=null&&n[i]!=null){return n[i]}if(n[e.type]!=null){return n[e.type]}if(n[a]!=null){return n[a]}return null};let u=t=>{let n=t.buttonHints||{};let i=e.defaults.buttonTextKey;if(i!=null&&n[i]!=null){return n[i]}if(n[e.type]!=null){return n[e.type]}if(n[a]!=null){return n[a]}return null};return{type:e.type,component:e.component,duration:s,durationUnit:o,singleUnit:a,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:f(i)||f(n)||e.overrides.buttonText,buttonTextDefault:f(r)||e.defaults.buttonText||f(ri)||e.type,buttonTitleOverride:u(i)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(r)||e.defaults.buttonHint||u(ri)}}let Ta={};function Na(e){let t=JSON.stringify(e);let n=Ta[t];if(n===undefined){n=Qt(e);Ta[t]=n}return n}function Ma(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function Ra(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function Oa(e,t,n,i){let r;switch(t.type){case"CHANGE_VIEW_TYPE":return i.build(t.dateMarker||n);case"CHANGE_DATE":return i.build(t.dateMarker);case"PREV":r=i.buildPrev(e,n);if(r.isValid){return r}break;case"NEXT":r=i.buildNext(e,n);if(r.isValid){return r}break}return e}function _a(e,t,n){let i=t?t.activeRange:null;return za({},Wa(e,n),i,n)}function ja(e,t,n,i){let r=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return za(e,t.sources,r,i);case"REMOVE_EVENT_SOURCE":return Ha(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(n){return Pa(e,r,i)}return e;case"FETCH_EVENT_SOURCES":return Ua(e,t.sourceIds?bi(t.sourceIds):La(e,i),r,t.isRefetch||false,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Va(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Ia(e,t,n){let i=t?t.activeRange:null;return Ua(e,La(e,n),i,true,n)}function Ba(e){for(let t in e){if(e[t].isFetching){return true}}return false}function za(e,t,n,i){let r={};for(let e of t){r[e.sourceId]=e}if(n){r=Pa(r,n,i)}return Object.assign(Object.assign({},e),r)}function Ha(e,t){return vi(e,(e=>e.sourceId!==t))}function Pa(e,t,n){return Ua(e,vi(e,(e=>Ga(e,t,n))),t,false,n)}function Ga(e,t,n){if(!Fa(e,n)){return!e.latestFetchId}return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}function Ua(e,t,n,i,r){let l={};for(let s in e){let o=e[s];if(t[s]){l[s]=Qa(o,n,i,r)}else{l[s]=o}}return l}function Qa(e,t,n,i){let{options:r,calendarApi:l}=i;let s=i.pluginHooks.eventSourceDefs[e.sourceDefId];let o=kt();s.fetch({eventSource:e,range:t,isRefetch:n,context:i},(n=>{let{rawEvents:s}=n;if(r.eventSourceSuccess){s=r.eventSourceSuccess.call(l,s,n.response)||s}if(e.success){s=e.success.call(l,s,n.response)||s}i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:o,fetchRange:t,rawEvents:s})}),(n=>{let s=false;if(r.eventSourceFailure){r.eventSourceFailure.call(l,n);s=true}if(e.failure){e.failure(n);s=true}if(!s){console.warn(n.message,n)}i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:o,fetchRange:t,error:n})}));return Object.assign(Object.assign({},e),{isFetching:true,latestFetchId:o})}function Va(e,t,n,i){let r=e[t];if(r&&n===r.latestFetchId){return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},r),{isFetching:false,fetchRange:i})})}return e}function La(e,t){return vi(e,(e=>Fa(e,t)))}function Wa(e,t){let n=qr(t);let i=[].concat(e.eventSources||[]);let r=[];if(e.initialEvents){i.unshift(e.initialEvents)}if(e.events){i.unshift(e.events)}for(let e of i){let i=$r(e,t,n);if(i){r.push(i)}}return r}function Fa(e,t){let n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function Ya(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function $a(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function qa(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Za(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Ja(e,t,n,i,r){let l=e.headerToolbar?Xa(e.headerToolbar,e,t,n,i,r):null;let s=e.footerToolbar?Xa(e.footerToolbar,e,t,n,i,r):null;return{header:l,footer:s}}function Xa(e,t,n,i,r,l){let s={};let o=[];let a=false;for(let c in e){let f=e[c];let u=Ka(f,t,n,i,r,l);s[c]=u.widgets;o.push(...u.viewsWithButtons);a=a||u.hasTitle}return{sectionWidgets:s,viewsWithButtons:o,hasTitle:a}}function Ka(e,t,n,i,r,l){let s=t.direction==="rtl";let o=t.customButtons||{};let a=n.buttonText||{};let c=t.buttonText||{};let f=n.buttonHints||{};let u=t.buttonHints||{};let d=e?e.split(" "):[];let h=[];let p=false;let g=d.map((e=>e.split(",").map((e=>{if(e==="title"){p=true;return{buttonName:e}}let n;let d;let g;let v;let m;let b;if(n=o[e]){g=e=>{if(n.click){n.click.call(e.target,e,e.target)}};(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(e,s))||(m=n.text);b=n.hint||n.text}else if(d=r[e]){h.push(e);g=()=>{l.changeView(e)};(m=d.buttonTextOverride)||(v=i.getIconClass(e,s))||(m=d.buttonTextDefault);let n=d.buttonTextOverride||d.buttonTextDefault;b=Bt(d.buttonTitleOverride||d.buttonTitleDefault||t.viewHint,[n,e],n)}else if(l[e]){g=()=>{l[e]()};(m=a[e])||(v=i.getIconClass(e,s))||(m=c[e]);if(e==="prevYear"||e==="nextYear"){let t=e==="prevYear"?"prev":"next";b=Bt(f[t]||u[t],[c.year||"year","year"],c[e])}else{b=t=>Bt(f[e]||u[e],[c[t]||t,t],c[e])}}return{buttonName:e,buttonClick:g,buttonIcon:v,buttonText:m,buttonHint:b}}))));return{widgets:g,viewsWithButtons:h,hasTitle:p}}class ec{constructor(e,t,n){this.type=e;this.getCurrentData=t;this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let tc={ignoreRange:true,parseMeta(e){if(Array.isArray(e.events)){return e.events}return null},fetch(e,t){t({rawEvents:e.eventSource.meta})}};const nc=pa({name:"array-event-source",eventSourceDefs:[tc]});let ic={parseMeta(e){if(typeof e.events==="function"){return e.events}return null},fetch(e,t,n){const{dateEnv:i}=e.context;const r=e.eventSource.meta;ql(r.bind(null,Fl(e.range,i)),(e=>t({rawEvents:e})),n)}};const rc=pa({name:"func-event-source",eventSourceDefs:[ic]});const lc={method:String,extraParams:hi,startParam:String,endParam:String,timeZoneParam:String};let sc={parseMeta(e){if(e.url&&(e.format==="json"||!e.format)){return{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}}return null},fetch(e,t,n){const{meta:i}=e.eventSource;const r=ac(i,e.range,e.context);Jl(i.method,i.url,r).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const oc=pa({name:"json-event-source",eventSourceRefiners:lc,eventSourceDefs:[sc]});function ac(e,t,n){let{dateEnv:i,options:r}=n;let l;let s;let o;let a;let c={};l=e.startParam;if(l==null){l=r.startParam}s=e.endParam;if(s==null){s=r.endParam}o=e.timeZoneParam;if(o==null){o=r.timeZoneParam}if(typeof e.extraParams==="function"){a=e.extraParams()}else{a=e.extraParams||{}}Object.assign(c,a);c[l]=i.formatIso(t.start);c[s]=i.formatIso(t.end);if(i.timeZone!=="local"){c[o]=i.timeZone}return c}const cc={daysOfWeek:hi,startTime:Qt,endTime:Qt,duration:Qt,startRecur:hi,endRecur:hi};let fc={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};let i;if(e.duration){i=e.duration}if(!i&&e.startTime&&e.endTime){i=Yt(e.endTime,e.startTime)}return{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:n}}return null},expand(e,t,n){let i=lr(t,{start:e.startRecur,end:e.endRecur});if(i){return dc(e.daysOfWeek,e.startTime,i,n)}return[]}};const uc=pa({name:"simple-recurring-event",recurringTypes:[fc],eventRefiners:cc});function dc(e,t,n,i){let r=e?bi(e):null;let l=gn(n.start);let s=n.end;let o=[];while(l<s){let e;if(!r||r[l.getUTCDay()]){if(t){e=i.add(l,t)}else{e=l}o.push(e)}l=ln(l,1)}return o}const hc=pa({name:"change-handler",optionChangeHandlers:{events(e,t){pc([e],t)},eventSources:pc}});function pc(e,t){let n=yi(t.getCurrentData().eventSources);if(n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])){t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});return}let i=[];for(let t of e){let e=false;for(let i=0;i<n.length;i+=1){if(n[i]._raw===t){n.splice(i,1);e=true;break}}if(!e){i.push(t)}}for(let e of n){t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId})}for(let e of i){t.calendarApi.addEventSource(e)}}function gc(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Fl(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function vc(e,t){let{emitter:n}=t;if(n.hasHandlers("eventsSet")){n.trigger("eventsSet",xl(e,t))}}const mc=[nc,rc,oc,uc,hc,pa({name:"misc",isLoadingFuncs:[e=>Ba(e.eventSources)],propSetHandlers:{dateProfile:gc,eventStore:vc}})];class bc{constructor(e,t){this.runTaskOption=e;this.drainedOption=t;this.queue=[];this.delayedRunner=new rt(this.drain.bind(this))}request(e,t){this.queue.push(e);this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;while(e.length){let t=[];let n;while(n=e.shift()){this.runTask(n);t.push(n)}this.drained(t)}}runTask(e){if(this.runTaskOption){this.runTaskOption(e)}}drained(e){if(this.drainedOption){this.drainedOption(e)}}}function yc(e,t,n){let i;if(/^(year|month)$/.test(e.currentRangeUnit)){i=e.currentRange}else{i=e.activeRange}return n.formatRange(i.start,i.end,ni(t.titleFormat||Ac(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function Ac(e){let{currentRangeUnit:t}=e;if(t==="year"){return{year:"numeric"}}if(t==="month"){return{year:"numeric",month:"long"}}let n=pn(e.currentRange.start,e.currentRange.end);if(n!==null&&n>1){return{year:"numeric",month:"short",day:"numeric"}}return{year:"numeric",month:"long",day:"numeric"}}class wc{constructor(e){this.computeCurrentViewData=_n(this._computeCurrentViewData);this.organizeRawLocales=_n(ca);this.buildLocale=_n(fa);this.buildPluginHooks=va();this.buildDateEnv=_n(Ec);this.buildTheme=_n(xc);this.parseToolbars=_n(Ja);this.buildViewSpecs=_n(Da);this.buildDateProfileGenerator=jn(kc);this.buildViewApi=_n(Sc);this.buildViewUiProps=jn(Tc);this.buildEventUiBySource=_n(Dc,Ai);this.buildEventUiBases=_n(Cc);this.parseContextBusinessHours=jn(Mc);this.buildTitle=_n(yc);this.emitter=new ol;this.actionRunner=new bc(this._handleAction.bind(this),this.updateData.bind(this));this.currentCalendarOptionsInput={};this.currentCalendarOptionsRefined={};this.currentViewOptionsInput={};this.currentViewOptionsRefined={};this.currentCalendarOptionsRefiners={};this.optionsForRefining=[];this.optionsForHandling=[];this.getCurrentData=()=>this.data;this.dispatch=e=>{this.actionRunner.request(e)};this.props=e;this.actionRunner.pause();let t={};let n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi);let i=n.calendarOptions.initialView||n.pluginHooks.initialView;let r=this.computeCurrentViewData(i,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this;this.emitter.setThisContext(e.calendarApi);this.emitter.setOptions(r.options);let l=vr(n.calendarOptions,n.dateEnv);let s=r.dateProfileGenerator.build(l);if(!cr(s.activeRange,l)){l=s.currentRange.start}let o={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit){e(o)}let a=_a(n.calendarOptions,s,o);let c={dynamicOptionOverrides:t,currentViewType:i,currentDate:l,dateProfile:s,businessHours:this.parseContextBusinessHours(o),eventSources:a,eventUiBases:{},eventStore:Br(),renderableEventStore:Br(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig};let f=Object.assign(Object.assign({},o),c);for(let e of n.pluginHooks.reducers){Object.assign(c,e(null,null,f))}if(Nc(c,o)){this.emitter.trigger("loading",true)}this.state=c;this.updateData();this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;if(t===undefined){n.optionOverrides=e}else{n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e);this.optionsForRefining.push(...t)}if(t===undefined||t.length){this.actionRunner.request({type:"NOTHING"})}}_handleAction(e){let{props:t,state:n,emitter:i}=this;let r=Ra(n.dynamicOptionOverrides,e);let l=this.computeOptionsData(t.optionOverrides,r,t.calendarApi);let s=Ma(n.currentViewType,e);let o=this.computeCurrentViewData(s,l,t.optionOverrides,r);t.calendarApi.currentDataManager=this;i.setThisContext(t.calendarApi);i.setOptions(o.options);let a={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData};let{currentDate:c,dateProfile:f}=n;if(this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator){f=o.dateProfileGenerator.build(c)}c=gr(c,e);f=Oa(f,e,c,o.dateProfileGenerator);if(e.type==="PREV"||e.type==="NEXT"||!cr(f.currentRange,c)){c=f.currentRange.start}let u=ja(n.eventSources,e,f,a);let d=Jr(n.eventStore,e,u,f,a);let h=Ba(u);let p=h&&!o.options.progressiveEventRendering?n.renderableEventStore||d:d;let{eventUiSingleBase:g,selectionConfig:v}=this.buildViewUiProps(a);let m=this.buildEventUiBySource(u);let b=this.buildEventUiBases(p.defs,g,m);let y={dynamicOptionOverrides:r,currentViewType:s,currentDate:c,dateProfile:f,eventSources:u,eventStore:d,renderableEventStore:p,selectionConfig:v,eventUiBases:b,businessHours:this.parseContextBusinessHours(a),dateSelection:Ya(n.dateSelection,e),eventSelection:$a(n.eventSelection,e),eventDrag:qa(n.eventDrag,e),eventResize:Za(n.eventResize,e)};let A=Object.assign(Object.assign({},a),y);for(let t of l.pluginHooks.reducers){Object.assign(y,t(n,e,A))}let w=Nc(n,a);let E=Nc(y,a);if(!w&&E){i.trigger("loading",true)}else if(w&&!E){i.trigger("loading",false)}this.state=y;if(t.onAction){t.onAction(e)}}updateData(){let{props:e,state:t}=this;let n=this.data;let i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi);let r=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides);let l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,r.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),r),t);let s=i.pluginHooks.optionChangeHandlers;let o=n&&n.calendarOptions;let a=i.calendarOptions;if(o&&o!==a){if(o.timeZone!==a.timeZone){t.eventSources=l.eventSources=Ia(l.eventSources,t.dateProfile,l);t.eventStore=l.eventStore=il(l.eventStore,n.dateEnv,l.dateEnv);t.renderableEventStore=l.renderableEventStore=il(l.renderableEventStore,n.dateEnv,l.dateEnv)}for(let e in s){if(this.optionsForHandling.indexOf(e)!==-1||o[e]!==a[e]){s[e](a[e],l)}}}this.optionsForHandling=[];if(e.onData){e.onData(l)}}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides){return this.stableCalendarOptionsData}let{refinedOptions:i,pluginHooks:r,localeDefaults:l,availableLocaleData:s,extra:o}=this.processRawCalendarOptions(e,t);Rc(o);let a=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,r,s,i.defaultRangeSeparator);let c=this.buildViewSpecs(r.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l);let f=this.buildTheme(i,r);let u=this.parseToolbars(i,this.stableOptionOverrides,f,c,n);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:r,dateEnv:a,viewSpecs:c,theme:f,toolbarConfig:u,localeDefaults:l,availableRawLocales:s.map}}processRawCalendarOptions(e,t){let{locales:n,locale:i}=ui([ri,e,t]);let r=this.organizeRawLocales(n);let l=r.map;let s=this.buildLocale(i||r.defaultCode,l).options;let o=this.buildPluginHooks(e.plugins||[],mc);let a=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ii),li),si),o.listenerRefiners),o.optionRefiners);let c={};let f=ui([ri,s,e,t]);let u={};let d=this.currentCalendarOptionsInput;let h=this.currentCalendarOptionsRefined;let p=false;for(let e in f){if(this.optionsForRefining.indexOf(e)===-1&&(f[e]===d[e]||oi[e]&&e in d&&oi[e](d[e],f[e]))){u[e]=h[e]}else if(a[e]){u[e]=a[e](f[e]);p=true}else{c[e]=d[e]}}if(p){this.currentCalendarOptionsInput=f;this.currentCalendarOptionsRefined=u;this.stableOptionOverrides=e;this.stableDynamicOptionOverrides=t}this.optionsForHandling.push(...this.optionsForRefining);this.optionsForRefining=[];return{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:r,localeDefaults:s,extra:c}}_computeCurrentViewData(e,t,n,i){let r=t.viewSpecs[e];if(!r){throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`)}let{refinedOptions:l,extra:s}=this.processRawViewOptions(r,t.pluginHooks,t.localeDefaults,n,i);Rc(s);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:r.optionDefaults.dateProfileGeneratorClass,duration:r.duration,durationUnit:r.durationUnit,usesMinMaxTime:r.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount});let a=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:r,options:l,dateProfileGenerator:o,viewApi:a}}processRawViewOptions(e,t,n,i,r){let l=ui([ri,e.optionDefaults,n,i,e.optionOverrides,r]);let s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ii),li),si),fi),t.listenerRefiners),t.optionRefiners);let o={};let a=this.currentViewOptionsInput;let c=this.currentViewOptionsRefined;let f=false;let u={};for(let e in l){if(l[e]===a[e]||oi[e]&&oi[e](l[e],a[e])){o[e]=c[e]}else{if(l[e]===this.currentCalendarOptionsInput[e]||oi[e]&&oi[e](l[e],this.currentCalendarOptionsInput[e])){if(e in this.currentCalendarOptionsRefined){o[e]=this.currentCalendarOptionsRefined[e]}}else if(s[e]){o[e]=s[e](l[e])}else{u[e]=l[e]}f=true}}if(f){this.currentViewOptionsInput=l;this.currentViewOptionsRefined=o}return{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function Ec(e,t,n,i,r,l,s,o){let a=fa(t||s.defaultCode,s.map);return new _i({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:l.namedTimeZonedImpl,locale:a,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:l.cmdFormatter,defaultSeparator:o})}function xc(e,t){let n=t.themeClasses[e.themeSystem]||ya;return new n(e)}function kc(e){let t=e.dateProfileGeneratorClass||br;return new t(e)}function Sc(e,t,n){return new ec(e,t,n)}function Dc(e){return mi(e,(e=>e.ui))}function Cc(e,t,n){let i={"":t};for(let t in e){let r=e[t];if(r.sourceId&&n[r.sourceId]){i[t]=n[r.sourceId]}}return i}function Tc(e){let{options:t}=e;return{eventUiSingleBase:Lr({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap==="boolean"?t.eventOverlap:undefined,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Lr({constraint:t.selectConstraint,overlap:typeof t.selectOverlap==="boolean"?t.selectOverlap:undefined,allow:t.selectAllow},e)}}function Nc(e,t){for(let n of t.pluginHooks.isLoadingFuncs){if(n(e)){return true}}return false}function Mc(e){return ul(e.options.businessHours,e)}function Rc(e,t){for(let n in e){console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}}class Oc extends Qi{render(){let e=this.props.widgetGroups.map((e=>this.renderWidgetGroup(e)));return O("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this;let{theme:n}=this.context;let i=[];let r=true;for(let l of e){let{buttonName:e,buttonClick:s,buttonText:o,buttonIcon:a,buttonHint:c}=l;if(e==="title"){r=false;i.push(O("h2",{className:"fc-toolbar-title",id:t.titleId},t.title))}else{let r=e===t.activeButton;let l=!t.isTodayEnabled&&e==="today"||!t.isPrevEnabled&&e==="prev"||!t.isNextEnabled&&e==="next";let f=[`fc-${e}-button`,n.getClass("button")];if(r){f.push(n.getClass("buttonActive"))}i.push(O("button",{type:"button",title:typeof c==="function"?c(t.navUnit):c,disabled:l,"aria-pressed":r,className:f.join(" "),onClick:s},o||(a?O("span",{className:a,role:"img"}):"")))}}if(i.length>1){let e=r&&n.getClass("buttonGroup")||"";return O("div",{className:e},...i)}return i[0]}}class _c extends Qi{render(){let{model:e,extraClassName:t}=this.props;let n=false;let i;let r;let l=e.sectionWidgets;let s=l.center;if(l.left){n=true;i=l.left}else{i=l.start}if(l.right){n=true;r=l.right}else{r=l.end}let o=[t||"","fc-toolbar",n?"fc-toolbar-ltr":""];return O("div",{className:o.join(" ")},this.renderSection("start",i||[]),this.renderSection("center",s||[]),this.renderSection("end",r||[]))}renderSection(e,t){let{props:n}=this;return O(Oc,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class jc extends Qi{constructor(){super(...arguments);this.state={availableWidth:null};this.handleEl=e=>{this.el=e;Wi(this.props.elRef,e);this.updateAvailableWidth()};this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this;let{aspectRatio:n}=e;let i=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"];let r="";let l="";if(n){if(t.availableWidth!==null){r=t.availableWidth/n}else{l=`${1/n*100}%`}}else{r=e.height||""}return O("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:r,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){if(this.el&&this.props.aspectRatio){this.setState({availableWidth:this.el.offsetWidth})}}}class Ic extends ns{constructor(e){super(e);this.handleSegClick=(e,t)=>{let{component:n}=this;let{context:i}=n;let r=Cl(t);if(r&&n.isValidSegDownEl(e.target)){let l=st(e.target,".fc-event-forced-url");let s=l?l.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new wl(n.context,r.eventRange.def,r.eventRange.instance),jsEvent:e,view:i.viewApi});if(s&&!e.defaultPrevented){window.location.href=s}}};this.destroy=mt(e.el,"click",".fc-event",this.handleSegClick)}}class Bc extends ns{constructor(e){super(e);this.handleEventElRemove=e=>{if(e===this.currentSegEl){this.handleSegLeave(null,this.currentSegEl)}};this.handleSegEnter=(e,t)=>{if(Cl(t)){this.currentSegEl=t;this.triggerEvent("eventMouseEnter",e,t)}};this.handleSegLeave=(e,t)=>{if(this.currentSegEl){this.currentSegEl=null;this.triggerEvent("eventMouseLeave",e,t)}};this.removeHoverListeners=bt(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:i}=this;let{context:r}=i;let l=Cl(n);if(!t||i.isValidSegDownEl(t.target)){r.emitter.trigger(e,{el:n,event:new wl(r,l.eventRange.def,l.eventRange.instance),jsEvent:t,view:r.viewApi})}}}class zc extends Ui{constructor(){super(...arguments);this.buildViewContext=_n(Gi);this.buildViewPropTransformers=_n(Pc);this.buildToolbarProps=_n(Hc);this.headerRef=j();this.footerRef=j();this.interactionsStore={};this.state={viewLabelId:pt()};this.registerInteractiveComponent=(e,t)=>{let n=is(e,t);let i=[Ic,Bc];let r=i.concat(this.props.pluginHooks.componentInteractions);let l=r.map((e=>new e(n)));this.interactionsStore[e.uid]=l;ls[e.uid]=n};this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t){e.destroy()}delete this.interactionsStore[e.uid]}delete ls[e.uid]};this.resizeRunner=new rt((()=>{this.props.emitter.trigger("_resize",true);this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}));this.handleWindowResize=e=>{let{options:t}=this.props;if(t.handleWindowResize&&e.target===window){this.resizeRunner.request(t.windowResizeDelay)}}}render(){let{props:e}=this;let{toolbarConfig:t,options:n}=e;let i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,mr(e.options.now,e.dateEnv),e.viewTitle);let r=false;let l="";let s;if(e.isHeightAuto||e.forPrint){l=""}else if(n.height!=null){r=true}else if(n.contentHeight!=null){l=n.contentHeight}else{s=Math.max(n.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);let a=t.header&&t.header.hasTitle?this.state.viewLabelId:undefined;return O(Pi.Provider,{value:o},t.header&&O(_c,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:t.header,titleId:a},i)),O(jc,{liquid:r,height:l,aspectRatio:s,labeledById:a},this.renderView(e),this.buildAppendContent()),t.footer&&O(_c,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:t.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e)));window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t){t[n](e[n],e)}}componentDidUpdate(e){let{props:t}=this;let{propSetHandlers:n}=t.pluginHooks;for(let i in n){if(t[i]!==e[i]){n[i](t[i],t)}}}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize);this.resizeRunner.clear();for(let e of this.calendarInteractions){e.destroy()}this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;let t=e.pluginHooks.viewContainerAppends.map((t=>t(e)));return O(I,{},...t)}renderView(e){let{pluginHooks:t}=e;let{viewSpec:n}=e;let 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};let r=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of r){Object.assign(i,t.transform(i,e))}let l=n.component;return O(l,Object.assign({},i))}}function Hc(e,t,n,i,r,l){let s=n.build(r,undefined,false);let o=n.buildPrev(t,i,false);let a=n.buildNext(t,i,false);return{title:l,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!cr(t.currentRange,r),isPrevEnabled:o.isValid,isNextEnabled:a.isValid}}function Pc(e){return e.map((e=>new e))}class Gc extends ss{constructor(e,t={}){super();this.isRendering=false;this.isRendered=false;this.currentClassNames=[];this.customContentRenderId=0;this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}};this.handleData=e=>{this.currentData=e;this.renderRunner.request(e.calendarOptions.rerenderDelay)};this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=true;let{currentData:e}=this;Ii((()=>{re(O(ts,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,i,r)=>{this.setClassNames(t);this.setHeight(n);return O(Zi.Provider,{value:this.customContentRenderId},O(zc,Object.assign({isHeightAuto:i,forPrint:r},e)))})),this.el)}))}else if(this.isRendered){this.isRendered=false;re(null,this.el);this.setClassNames([]);this.setHeight("")}};Ze(e);this.el=e;this.renderRunner=new rt(this.handleRenderRequest);new wc({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;if(!e){this.isRendering=true}else{this.customContentRenderId+=1}this.renderRunner.request();if(e){this.updateSize()}}destroy(){if(this.isRendering){this.isRendering=false;this.renderRunner.request()}}updateSize(){Ii((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering");e();this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",true)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!tn(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames){t.remove(e)}for(let n of e){t.add(n)}this.currentClassNames=e}}setHeight(e){ut(this.el,"height",e)}}class Uc extends zs{constructor(){super(...arguments);this.headerElRef=j()}renderSimpleLayout(e,t){let{props:n,context:i}=this;let r=[];let l=_o(i.options);if(e){r.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}})}r.push({type:"body",key:"body",liquid:true,chunk:{content:t}});return O(er,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},O(Io,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:r}))}renderHScrollLayout(e,t,n,i){let r=this.context.pluginHooks.scrollGridImpl;if(!r){throw new Error("No ScrollGrid implementation")}let{props:l,context:s}=this;let o=!l.forPrint&&_o(s.options);let a=!l.forPrint&&jo(s.options);let c=[];if(e){c.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]})}c.push({type:"body",key:"body",liquid:true,chunks:[{key:"main",content:t}]});if(a){c.push({type:"footer",key:"footer",isSticky:true,chunks:[{key:"main",content:Oo}]})}return O(er,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},O(r,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:c}))}}function Qc(e,t){let n=[];for(let e=0;e<t;e+=1){n[e]=[]}for(let t of e){n[t.row].push(t)}return n}function Vc(e,t){let n=[];for(let e=0;e<t;e+=1){n[e]=[]}for(let t of e){n[t.firstCol].push(t)}return n}function Lc(e,t){let n=[];if(!e){for(let e=0;e<t;e+=1){n[e]=null}}else{for(let i=0;i<t;i+=1){n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]}}for(let t of e.segs){n[t.row].segs.push(t)}}return n}const Wc=ni({hour:"numeric",minute:"2-digit",omitZeroMinute:true,meridiem:"narrow"});function Fc(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class Yc extends Qi{render(){let{props:e}=this;return O(Ho,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Wc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class $c extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let{seg:i}=e;let r=n.eventTimeFormat||Wc;let l=Il(i,r,t,true,e.defaultDisplayEventEnd);return O(zo,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Pl(e.seg,t),defaultGenerator:qc,timeText:l,isResizing:false,isDateSelecting:false}))}}function qc(e){return O(I,null,O("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&O("div",{className:"fc-event-time"},e.timeText),O("div",{className:"fc-event-title"},e.event.title||O(I,null," ")))}class Zc extends Qi{constructor(){super(...arguments);this.compileSegs=_n(Jc)}render(){let{props:e}=this;let{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return O(Ko,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return O(I,null,t.map((t=>{let i=t.eventRange.instance.instanceId;return O("div",{className:"fc-daygrid-event-harness",key:i,style:{visibility:n[i]?"hidden":""}},Fc(t)?O($c,Object.assign({seg:t,isDragging:false,isSelected:i===e.eventSelection,defaultDisplayEventEnd:false},Bl(t,e.todayRange))):O(Yc,Object.assign({seg:t,isDragging:false,isResizing:false,isDateSelecting:false,isSelected:i===e.eventSelection,defaultDisplayEventEnd:false},Bl(t,e.todayRange))))})))}})}}function Jc(e){let t=[];let n=[];for(let i of e){t.push(i.seg);if(!i.isVisible){n.push(i.seg)}}return{allSegs:t,invisibleSegs:n}}const Xc=ni({week:"narrow"});class Kc extends zs{constructor(){super(...arguments);this.rootElRef=j();this.state={dayNumberId:pt()};this.handleRootEl=e=>{Wi(this.rootElRef,e);Wi(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:i}=this;let{options:r,dateEnv:l}=e;let{date:s,dateProfile:o}=t;const a=t.showDayNumber&&tf(s,o.currentRange,l);return O(Qo,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:ef,date:s,dateProfile:o,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:a,extraRenderProps:t.extraRenderProps},((l,o)=>O("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&O($o,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ys(e,s,"week"),date:s,defaultFormat:Xc}),!o.isDisabled&&(t.showDayNumber||Vo(r)||t.forceDayTop)?O("div",{className:"fc-daygrid-day-top"},O(l,{elTag:"a",elClasses:["fc-daygrid-day-number",a&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ys(e,s)),{id:n.dayNumberId})})):t.showDayNumber?O("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},O("a",{className:"fc-daygrid-day-number"}," ")):undefined,O("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,O("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},O(Zc,{allDayDate:s,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:i,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),O("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function ef(e){return e.dayNumberText||O(I,null," ")}function tf(e,t,n){const{start:i,end:r}=t;const l=sn(r,-1);const s=n.getYear(i);const o=n.getMonth(i);const a=n.getYear(l);const c=n.getMonth(l);return!(s===a&&o===c)&&Boolean(e.valueOf()===i.valueOf()||n.getDay(e)===1&&e.valueOf()<r.valueOf())}function nf(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function rf(e){return nf(e)+":"+e.lastCol}function lf(e,t,n,i,r,l,s){let o=new cf((t=>{let n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return r[n]||1}));o.allowReslicing=true;o.strictOrder=i;if(t===true||n===true){o.maxCoord=l;o.hiddenConsumes=true}else if(typeof t==="number"){o.maxStackCnt=t}else if(typeof n==="number"){o.maxStackCnt=n;o.hiddenConsumes=true}let a=[];let c=[];for(let t=0;t<e.length;t+=1){let n=e[t];let i=rf(n);let l=r[i];if(l!=null){a.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}})}else{c.push(n)}}let f=o.addSegs(a);let u=o.toRects();let{singleColPlacements:d,multiColPlacements:h,leftoverMargins:p}=sf(u,e,s);let g=[];let v=[];for(let e of c){h[e.firstCol].push({seg:e,isVisible:false,isAbsolute:true,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1){d[t].push({seg:af(e,t,t+1,s),isVisible:false,isAbsolute:false,absoluteTop:0,marginTop:0})}}for(let e=0;e<s.length;e+=1){g.push(0)}for(let t of f){let n=e[t.index];let i=t.span;h[i.start].push({seg:af(n,i.start,i.end,s),isVisible:false,isAbsolute:true,absoluteTop:0,marginTop:0});for(let e=i.start;e<i.end;e+=1){g[e]+=1;d[e].push({seg:af(n,e,e+1,s),isVisible:false,isAbsolute:false,absoluteTop:0,marginTop:0})}}for(let e=0;e<s.length;e+=1){v.push(p[e])}return{singleColPlacements:d,multiColPlacements:h,moreCnts:g,moreMarginTops:v}}function sf(e,t,n){let i=of(e,n.length);let r=[];let l=[];let s=[];for(let e=0;e<n.length;e+=1){let o=i[e];let a=[];let c=0;let f=0;for(let i of o){let r=t[i.index];a.push({seg:af(r,e,e+1,n),isVisible:true,isAbsolute:false,absoluteTop:i.levelCoord,marginTop:i.levelCoord-c});c=i.levelCoord+i.thickness}let u=[];c=0;f=0;for(let i of o){let r=t[i.index];let l=i.span.end-i.span.start>1;let s=i.span.start===e;f+=i.levelCoord-c;c=i.levelCoord+i.thickness;if(l){f+=i.thickness;if(s){u.push({seg:af(r,i.span.start,i.span.end,n),isVisible:true,isAbsolute:true,absoluteTop:i.levelCoord,marginTop:0})}}else if(s){u.push({seg:af(r,i.span.start,i.span.end,n),isVisible:true,isAbsolute:false,absoluteTop:i.levelCoord,marginTop:f});f=0}}r.push(a);l.push(u);s.push(f)}return{singleColPlacements:r,multiColPlacements:l,leftoverMargins:s}}function of(e,t){let n=[];for(let e=0;e<t;e+=1){n.push([])}for(let t of e){for(let e=t.span.start;e<t.span.end;e+=1){n[e].push(t)}}return n}function af(e,t,n,i){if(e.firstCol===t&&e.lastCol===n-1){return e}let r=e.eventRange;let l=r.range;let s=lr(l,{start:i[t].date,end:ln(i[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:false}),instance:r.instance,range:s},isStart:e.isStart&&s.start.valueOf()===l.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===l.end.valueOf()})}class cf extends Hs{constructor(){super(...arguments);this.hiddenConsumes=false;this.forceHidden={}}addSegs(e){const t=super.addSegs(e);const{entriesByLevel:n}=this;const i=e=>!this.forceHidden[Gs(e)];for(let e=0;e<n.length;e+=1){n[e]=n[e].filter(i)}return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:i,forceHidden:r}=this;const{touchingEntry:l,touchingLevel:s,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const e=Gs(l);if(!r[e]){if(this.allowReslicing){const e=Object.assign(Object.assign({},l),{span:Vs(l.span,t.span)});const a=Gs(e);r[a]=true;i[s][o]=e;n.push(e);this.splitEntry(l,t,n)}else{r[e]=true;n.push(l)}}}super.handleInvalidInsertion(e,t,n)}}class ff extends zs{constructor(){super(...arguments);this.cellElRefs=new wo;this.frameElRefs=new wo;this.fgElRefs=new wo;this.segHarnessRefs=new wo;this.rootElRef=j();this.state={framePositions:null,maxContentHeight:null,segHeights:{}};this.handleResize=e=>{if(e){this.updateSizing(true)}}}render(){let{props:e,state:t,context:n}=this;let{options:i}=n;let r=e.cells.length;let l=Vc(e.businessHourSegs,r);let s=Vc(e.bgEventSegs,r);let o=Vc(this.getHighlightSegs(),r);let a=Vc(this.getMirrorSegs(),r);let{singleColPlacements:c,multiColPlacements:f,moreCnts:u,moreMarginTops:d}=lf(Ml(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells);let h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return O("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let i=this.renderFgSegs(n,e.forPrint?c[n]:f[n],e.todayRange,h);let r=this.renderFgSegs(n,uf(a[n],f),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),false);return O(Kc,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&n===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:d[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:O(I,null,O(I,null,i),O(I,null,r)),bgContent:O(I,null,this.renderFillSegs(o[n],"highlight"),this.renderFillSegs(l[n],"non-business"),this.renderFillSegs(s[n],"bg-event")),minHeight:e.cellMinHeight})})))}componentDidMount(){this.updateSizing(true);this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Ai(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;if(e.eventDrag&&e.eventDrag.segs.length){return e.eventDrag.segs}if(e.eventResize&&e.eventResize.segs.length){return e.eventResize.segs}return e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;if(e.eventResize&&e.eventResize.segs.length){return e.eventResize.segs}return[]}renderFgSegs(e,t,n,i,r,l,s){let{context:o}=this;let{eventSelection:a}=this.props;let{framePositions:c}=this.state;let f=this.props.cells.length===1;let u=r||l||s;let d=[];if(c){for(let e of t){let{seg:t}=e;let{instanceId:h}=t.eventRange.instance;let p=e.isVisible&&!i[h];let g=e.isAbsolute;let v="";let m="";if(g){if(o.isRtl){m=0;v=c.lefts[t.lastCol]-c.lefts[t.firstCol]}else{v=0;m=c.rights[t.firstCol]-c.rights[t.lastCol]}}d.push(O("div",{className:"fc-daygrid-event-harness"+(g?" fc-daygrid-event-harness-abs":""),key:nf(t),ref:u?null:this.segHarnessRefs.createRef(rf(t)),style:{visibility:p?"":"hidden",marginTop:g?"":e.marginTop,top:g?e.absoluteTop:"",left:v,right:m}},Fc(t)?O($c,Object.assign({seg:t,isDragging:r,isSelected:h===a,defaultDisplayEventEnd:f},Bl(t,n))):O(Yc,Object.assign({seg:t,isDragging:r,isResizing:l,isDateSelecting:s,isSelected:h===a,defaultDisplayEventEnd:f},Bl(t,n)))))}}return d}renderFillSegs(e,t){let{isRtl:n}=this.context;let{todayRange:i}=this.props;let{framePositions:r}=this.state;let l=[];if(r){for(let s of e){let e=n?{right:0,left:r.lefts[s.lastCol]-r.lefts[s.firstCol]}:{left:0,right:r.rights[s.firstCol]-r.rights[s.lastCol]};l.push(O("div",{key:Hl(s.eventRange),className:"fc-daygrid-bg-harness",style:e},t==="bg-event"?O(Wo,Object.assign({seg:s},Bl(s,i))):Yo(t)))}}return O(I,{},...l)}updateSizing(e){let{props:t,state:n,frameElRefs:i}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let e=t.cells.map((e=>i.currentMap[e.key]));if(e.length){let t=this.rootElRef.current;let i=new Os(t,e,true,false);if(!n.framePositions||!n.framePositions.similarTo(i)){this.setState({framePositions:new Os(t,e,true,false)})}}}const r=this.state.segHeights;const l=this.querySegHeights();const s=t.dayMaxEvents===true||t.dayMaxEventRows===true;this.safeSetState({segHeights:Object.assign(Object.assign({},r),l),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap;let t={};for(let n in e){let i=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,i)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key;let t=this.cellElRefs.currentMap[e];let n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}ff.addStateEquality({segHeights:Ai});function uf(e,t){if(!e.length){return[]}let n=df(t);return e.map((e=>({seg:e,isVisible:true,isAbsolute:true,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}function df(e){let t={};for(let n of e){for(let e of n){t[e.seg.eventRange.instance.instanceId]=e.absoluteTop}}return t}class hf extends zs{constructor(){super(...arguments);this.splitBusinessHourSegs=_n(Qc);this.splitBgEventSegs=_n(Qc);this.splitFgEventSegs=_n(Qc);this.splitDateSelectionSegs=_n(Qc);this.splitEventDrag=_n(Lc);this.splitEventResize=_n(Lc);this.rowRefs=new wo}render(){let{props:e,context:t}=this;let n=e.cells.length;let i=this.splitBusinessHourSegs(e.businessHourSegs,n);let r=this.splitBgEventSegs(e.bgEventSegs,n);let l=this.splitFgEventSegs(e.fgEventSegs,n);let s=this.splitDateSelectionSegs(e.dateSelectionSegs,n);let o=this.splitEventDrag(e.eventDrag,n);let a=this.splitEventResize(e.eventResize,n);let c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return O(eo,{unit:"day"},((t,f)=>O(I,null,e.cells.map(((t,u)=>O(ff,{ref:this.rowRefs.createRef(u),key:t.length?t[0].date.toISOString():u,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:f,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:i[u],eventSelection:e.eventSelection,bgEventSegs:r[u].filter(pf),fgEventSegs:l[u],dateSelectionSegs:s[u],eventDrag:o[u],eventResize:a[u],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0];const t=e?e.closest(".fc-daygrid-body"):null;if(t){this.rootEl=t;this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed})}}}componentWillUnmount(){if(this.rootEl){this.context.unregisterInteractiveComponent(this);this.rootEl=null}}prepareHits(){this.rowPositions=new Os(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),false,true);this.colPositions=new Os(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),true,false)}queryHit(e,t){let{colPositions:n,rowPositions:i}=this;let r=n.leftToIndex(e);let l=i.topToIndex(t);if(l!=null&&r!=null){let e=this.props.cells[l][r];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,r),allDay:true},e.extraDateSpan),dayEl:this.getCellEl(l,r),rect:{left:n.lefts[r],right:n.rights[r],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;let i=ln(n,1);return{start:n,end:i}}}function pf(e){return e.eventRange.def.allDay}class gf extends zs{constructor(){super(...arguments);this.elRef=j();this.needsScrollReset=false}render(){let{props:e}=this;let{dayMaxEventRows:t,dayMaxEvents:n,expandRows:i}=e;let r=n===true||t===true;if(r&&!i){r=false;t=null;n=null}let l=["fc-daygrid-body",r?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return O("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},O("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,O("tbody",{role:"presentation"},O(hf,{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:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){if(e.dateProfile!==this.props.dateProfile){this.requestScrollReset()}else{this.flushScrollReset()}}requestScrollReset(){this.needsScrollReset=true;this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=vf(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body");const n=t.closest(".fc-scroller");const i=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=i?i+1:0}this.needsScrollReset=false}}}function vf(e,t){let n;if(t.currentRangeUnit.match(/year|month/)){n=e.querySelector(`[data-date="${Mn(t.currentDate)}-01"]`)}if(!n){n=e.querySelector(`[data-date="${Nn(t.currentDate)}"]`)}return n}class mf extends so{constructor(){super(...arguments);this.forceDayIfListItem=true}sliceRange(e,t){return t.sliceRange(e)}}class bf extends zs{constructor(){super(...arguments);this.slicer=new mf;this.tableRef=j()}render(){let{props:e,context:t}=this;return O(gf,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class yf extends Uc{constructor(){super(...arguments);this.buildDayTableModel=_n(Af);this.headerRef=j();this.tableRef=j()}render(){let{options:e,dateProfileGenerator:t}=this.context;let{props:n}=this;let i=this.buildDayTableModel(n.dateProfile,t);let r=e.dayHeaders&&O(no,{ref:this.headerRef,dateProfile:n.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1});let l=t=>O(bf,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:i,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(r,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(r,l)}}function Af(e,t){let n=new ro(e.renderRange,t);return new lo(n,/year|month|week/.test(e.currentRangeUnit))}class wf extends br{buildRenderRange(e,t,n){let i=super.buildRenderRange(e,t,n);let{props:r}=this;return Ef({currentRange:i,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:r.fixedWeekCount,dateEnv:r.dateEnv})}}function Ef(e){let{dateEnv:t,currentRange:n}=e;let{start:i,end:r}=n;let l;if(e.snapToWeek){i=t.startOfWeek(i);l=t.startOfWeek(r);if(l.valueOf()!==r.valueOf()){r=rn(l,1)}}if(e.fixedWeekCount){let e=t.startOfWeek(t.startOfMonth(ln(n.end,-1)));let i=Math.ceil(on(e,r));r=rn(r,6-i)}return{start:i,end:r}}var xf=':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}';qe(xf);var kf=pa({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:yf,dateProfileGeneratorClass:wf},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:true},dayGridYear:{type:"dayGrid",duration:{years:1}}}});Ys.touchMouseIgnoreWait=500;let Sf=0;let Df=0;let Cf=false;class Tf{constructor(e){this.subjectEl=null;this.selector="";this.handleSelector="";this.shouldIgnoreMove=false;this.shouldWatchScroll=true;this.isDragging=false;this.isTouchDragging=false;this.wasTouchScroll=false;this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&Nf(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,true);this.emitter.trigger("pointerdown",t);this.initScrollWatch(t);if(!this.shouldIgnoreMove){document.addEventListener("mousemove",this.handleMouseMove)}document.addEventListener("mouseup",this.handleMouseUp)}};this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t);this.emitter.trigger("pointermove",t)};this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove);document.removeEventListener("mouseup",this.handleMouseUp);this.emitter.trigger("pointerup",this.createEventFromMouse(e));this.cleanup()};this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=true;let t=this.createEventFromTouch(e,true);this.emitter.trigger("pointerdown",t);this.initScrollWatch(t);let n=e.target;if(!this.shouldIgnoreMove){n.addEventListener("touchmove",this.handleTouchMove)}n.addEventListener("touchend",this.handleTouchEnd);n.addEventListener("touchcancel",this.handleTouchEnd);window.addEventListener("scroll",this.handleTouchScroll,true)}};this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t);this.emitter.trigger("pointermove",t)};this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove);t.removeEventListener("touchend",this.handleTouchEnd);t.removeEventListener("touchcancel",this.handleTouchEnd);window.removeEventListener("scroll",this.handleTouchScroll,true);this.emitter.trigger("pointerup",this.createEventFromTouch(e));this.cleanup();this.isTouchDragging=false;Mf()}};this.handleTouchScroll=()=>{this.wasTouchScroll=true};this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX;let n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}};this.containerEl=e;this.emitter=new ol;e.addEventListener("mousedown",this.handleMouseDown);e.addEventListener("touchstart",this.handleTouchStart,{passive:true});Rf()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown);this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:true});Of()}tryStart(e){let t=this.querySubjectEl(e);let n=e.target;if(t&&(!this.handleSelector||st(n,this.handleSelector))){this.subjectEl=t;this.isDragging=true;this.wasTouchScroll=false;return true}return false}cleanup(){Cf=false;this.isDragging=false;this.subjectEl=null;this.destroyScrollWatch()}querySubjectEl(e){if(this.selector){return st(e.target,this.selector)}return this.containerEl}shouldIgnoreMouse(){return Sf||this.isTouchDragging}cancelTouchScroll(){if(this.isDragging){Cf=true}}initScrollWatch(e){if(this.shouldWatchScroll){this.recordCoords(e);window.addEventListener("scroll",this.handleScroll,true)}}recordCoords(e){if(this.shouldWatchScroll){this.prevPageX=e.pageX;this.prevPageY=e.pageY;this.prevScrollX=window.scrollX;this.prevScrollY=window.scrollY}}destroyScrollWatch(){if(this.shouldWatchScroll){window.removeEventListener("scroll",this.handleScroll,true)}}createEventFromMouse(e,t){let n=0;let i=0;if(t){this.origPageX=e.pageX;this.origPageY=e.pageY}else{n=e.pageX-this.origPageX;i=e.pageY-this.origPageY}return{origEvent:e,isTouch:false,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:i}}createEventFromTouch(e,t){let n=e.touches;let i;let r;let l=0;let s=0;if(n&&n.length){i=n[0].pageX;r=n[0].pageY}else{i=e.pageX;r=e.pageY}if(t){this.origPageX=i;this.origPageY=r}else{l=i-this.origPageX;s=r-this.origPageY}return{origEvent:e,isTouch:true,subjectEl:this.subjectEl,pageX:i,pageY:r,deltaX:l,deltaY:s}}}function Nf(e){return e.button===0&&!e.ctrlKey}function Mf(){Sf+=1;setTimeout((()=>{Sf-=1}),Ys.touchMouseIgnoreWait)}function Rf(){Df+=1;if(Df===1){window.addEventListener("touchmove",_f,{passive:false})}}function Of(){Df-=1;if(!Df){window.removeEventListener("touchmove",_f,{passive:false})}}function _f(e){if(Cf){e.preventDefault()}}class jf{constructor(){this.isVisible=false;this.sourceEl=null;this.mirrorEl=null;this.sourceElRect=null;this.parentNode=document.body;this.zIndex=9999;this.revertDuration=0}start(e,t,n){this.sourceEl=e;this.sourceElRect=this.sourceEl.getBoundingClientRect();this.origScreenX=t-window.scrollX;this.origScreenY=n-window.scrollY;this.deltaX=0;this.deltaY=0;this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX;this.deltaY=t-window.scrollY-this.origScreenY;this.updateElPosition()}setIsVisible(e){if(e){if(!this.isVisible){if(this.mirrorEl){this.mirrorEl.style.display=""}this.isVisible=e;this.updateElPosition()}}else if(this.isVisible){if(this.mirrorEl){this.mirrorEl.style.display="none"}this.isVisible=e}}stop(e,t){let n=()=>{this.cleanup();t()};if(e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)){this.doRevertAnimation(n,this.revertDuration)}else{setTimeout(n,0)}}doRevertAnimation(e,t){let n=this.mirrorEl;let i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,"+"left "+t+"ms";ft(n,{left:i.left,top:i.top});At(n,(()=>{n.style.transition="";e()}))}cleanup(){if(this.mirrorEl){lt(this.mirrorEl);this.mirrorEl=null}this.sourceEl=null}updateElPosition(){if(this.sourceEl&&this.isVisible){ft(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}}getMirrorEl(){let e=this.sourceElRect;let t=this.mirrorEl;if(!t){t=this.mirrorEl=this.sourceEl.cloneNode(true);t.style.userSelect="none";t.style.webkitUserSelect="none";t.style.pointerEvents="none";t.classList.add("fc-event-dragging");ft(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0});this.parentNode.appendChild(t)}return t}}class If extends js{constructor(e,t){super();this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop();this.scrollLeft=this.scrollController.getScrollLeft();this.handleScrollChange()};this.scrollController=e;this.doesListening=t;this.scrollTop=this.origScrollTop=e.getScrollTop();this.scrollLeft=this.origScrollLeft=e.getScrollLeft();this.scrollWidth=e.getScrollWidth();this.scrollHeight=e.getScrollHeight();this.clientWidth=e.getClientWidth();this.clientHeight=e.getClientHeight();this.clientRect=this.computeClientRect();if(this.doesListening){this.getEventTarget().addEventListener("scroll",this.handleScroll)}}destroy(){if(this.doesListening){this.getEventTarget().removeEventListener("scroll",this.handleScroll)}}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e);if(!this.doesListening){this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0);this.handleScrollChange()}}setScrollLeft(e){this.scrollController.setScrollLeft(e);if(!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 Bf extends If{constructor(e,t){super(new Is(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Ts(this.scrollController.el)}}class zf extends If{constructor(e){super(new Bs,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 Hf=typeof performance==="function"?performance.now:Date.now;class Pf{constructor(){this.isEnabled=true;this.scrollQuery=[window,".fc-scroller"];this.edgeThreshold=50;this.maxVelocity=300;this.pointerScreenX=null;this.pointerScreenY=null;this.isAnimating=false;this.scrollCaches=null;this.everMovedUp=false;this.everMovedDown=false;this.everMovedLeft=false;this.everMovedRight=false;this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=Hf();this.handleSide(e,(t-this.msSinceRequest)/1e3);this.requestAnimation(t)}else{this.isAnimating=false}}}}start(e,t,n){if(this.isEnabled){this.scrollCaches=this.buildCaches(n);this.pointerScreenX=null;this.pointerScreenY=null;this.everMovedUp=false;this.everMovedDown=false;this.everMovedLeft=false;this.everMovedRight=false;this.handleMove(e,t)}}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX;let i=t-window.scrollY;let r=this.pointerScreenY===null?0:i-this.pointerScreenY;let l=this.pointerScreenX===null?0:n-this.pointerScreenX;if(r<0){this.everMovedUp=true}else if(r>0){this.everMovedDown=true}if(l<0){this.everMovedLeft=true}else if(l>0){this.everMovedRight=true}this.pointerScreenX=n;this.pointerScreenY=i;if(!this.isAnimating){this.isAnimating=true;this.requestAnimation(Hf())}}}stop(){if(this.isEnabled){this.isAnimating=false;for(let e of this.scrollCaches){e.destroy()}this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e;requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e;let{edgeThreshold:i}=this;let r=i-e.distance;let l=r*r/(i*i)*this.maxVelocity*t;let s=1;switch(e.name){case"left":s=-1;case"right":n.setScrollLeft(n.getScrollLeft()+l*s);break;case"top":s=-1;case"bottom":n.setScrollTop(n.getScrollTop()+l*s);break}}computeBestEdge(e,t){let{edgeThreshold:n}=this;let i=null;let r=this.scrollCaches||[];for(let l of r){let r=l.clientRect;let s=e-r.left;let o=r.right-e;let a=t-r.top;let c=r.bottom-t;if(s>=0&&o>=0&&a>=0&&c>=0){if(a<=n&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>a)){i={scrollCache:l,name:"top",distance:a}}if(c<=n&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>c)){i={scrollCache:l,name:"bottom",distance:c}}if(s<=n&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>s)){i={scrollCache:l,name:"left",distance:s}}if(o<=n&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>o)){i={scrollCache:l,name:"right",distance:o}}}}return i}buildCaches(e){return this.queryScrollEls(e).map((e=>{if(e===window){return new zf(false)}return new Bf(e,false)}))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery){if(typeof n==="object"){t.push(n)}else{t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)))}}return t}}class Gf extends Fs{constructor(e,t){super(e);this.containerEl=e;this.delay=null;this.minDistance=0;this.touchScrollAllowed=true;this.mirrorNeedsRevert=false;this.isInteracting=false;this.isDragging=false;this.isDelayEnded=false;this.isDistanceSurpassed=false;this.delayTimeoutId=null;this.onPointerDown=e=>{if(!this.isDragging){this.isInteracting=true;this.isDelayEnded=false;this.isDistanceSurpassed=false;Ct(document.body);Nt(document.body);if(!e.isTouch){e.origEvent.preventDefault()}this.emitter.trigger("pointerdown",e);if(this.isInteracting&&!this.pointer.shouldIgnoreMove){this.mirror.setIsVisible(false);this.mirror.start(e.subjectEl,e.pageX,e.pageY);this.startDelay(e);if(!this.minDistance){this.handleDistanceSurpassed(e)}}}};this.onPointerMove=e=>{if(this.isInteracting){this.emitter.trigger("pointermove",e);if(!this.isDistanceSurpassed){let t=this.minDistance;let n;let{deltaX:i,deltaY:r}=e;n=i*i+r*r;if(n>=t*t){this.handleDistanceSurpassed(e)}}if(this.isDragging){if(e.origEvent.type!=="scroll"){this.mirror.handleMove(e.pageX,e.pageY);this.autoScroller.handleMove(e.pageX,e.pageY)}this.emitter.trigger("dragmove",e)}}};this.onPointerUp=e=>{if(this.isInteracting){this.isInteracting=false;Tt(document.body);Mt(document.body);this.emitter.trigger("pointerup",e);if(this.isDragging){this.autoScroller.stop();this.tryStopDrag(e)}if(this.delayTimeoutId){clearTimeout(this.delayTimeoutId);this.delayTimeoutId=null}}};let n=this.pointer=new Tf(e);n.emitter.on("pointerdown",this.onPointerDown);n.emitter.on("pointermove",this.onPointerMove);n.emitter.on("pointerup",this.onPointerUp);if(t){n.selector=t}this.mirror=new jf;this.autoScroller=new Pf}destroy(){this.pointer.destroy();this.onPointerUp({})}startDelay(e){if(typeof this.delay==="number"){this.delayTimeoutId=setTimeout((()=>{this.delayTimeoutId=null;this.handleDelayEnd(e)}),this.delay)}else{this.handleDelayEnd(e)}}handleDelayEnd(e){this.isDelayEnded=true;this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=true;this.tryStartDrag(e)}tryStartDrag(e){if(this.isDelayEnded&&this.isDistanceSurpassed){if(!this.pointer.wasTouchScroll||this.touchScrollAllowed){this.isDragging=true;this.mirrorNeedsRevert=false;this.autoScroller.start(e.pageX,e.pageY,this.containerEl);this.emitter.trigger("dragstart",e);if(this.touchScrollAllowed===false){this.pointer.cancelTouchScroll()}}}}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=false;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 Uf{constructor(e){this.el=e;this.origRect=Ns(e);this.scrollCaches=Rs(e).map((e=>new Bf(e,true)))}destroy(){for(let e of this.scrollCaches){e.destroy()}}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches){e+=t.origScrollLeft-t.getScrollLeft()}return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches){e+=t.origScrollTop-t.getScrollTop()}return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches){if(!Qf(e.getEventTarget())&&!os(n,e.clientRect)){return false}}return true}}function Qf(e){let t=e.tagName;return t==="HTML"||t==="BODY"}class Vf{constructor(e,t){this.useSubjectCenter=false;this.requireInitial=true;this.disablePointCheck=false;this.initialHit=null;this.movingHit=null;this.finalHit=null;this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null;this.movingHit=null;this.finalHit=null;this.prepareHits();this.processFirstCoord(e);if(this.initialHit||!this.requireInitial){t.setIgnoreMove(false);this.emitter.trigger("pointerdown",e)}else{t.setIgnoreMove(true)}};this.handleDragStart=e=>{this.emitter.trigger("dragstart",e);this.handleMove(e,true)};this.handleDragMove=e=>{this.emitter.trigger("dragmove",e);this.handleMove(e)};this.handlePointerUp=e=>{this.releaseHits();this.emitter.trigger("pointerup",e)};this.handleDragEnd=e=>{if(this.movingHit){this.emitter.trigger("hitupdate",null,true,e)}this.finalHit=this.movingHit;this.movingHit=null;this.emitter.trigger("dragend",e)};this.droppableStore=t;e.emitter.on("pointerdown",this.handlePointerDown);e.emitter.on("dragstart",this.handleDragStart);e.emitter.on("dragmove",this.handleDragMove);e.emitter.on("pointerup",this.handlePointerUp);e.emitter.on("dragend",this.handleDragEnd);this.dragging=e;this.emitter=new ol}processFirstCoord(e){let t={left:e.pageX,top:e.pageY};let n=t;let i=e.subjectEl;let r;if(i instanceof HTMLElement){r=Ns(i);n=cs(n,r)}let l=this.initialHit=this.queryHitForOffset(n.left,n.top);if(l){if(this.useSubjectCenter&&r){let e=as(r,l.rect);if(e){n=fs(e)}}this.coordAdjust=us(n,t)}else{this.coordAdjust={left:0,top:0}}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);if(t||!Lf(this.movingHit,n)){this.movingHit=n;this.emitter.trigger("hitupdate",n,false,e)}}prepareHits(){this.offsetTrackers=mi(this.droppableStore,(e=>{e.component.prepareHits();return new Uf(e.el)}))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e){e[t].destroy()}this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:i}=this;let r=null;for(let l in n){let s=n[l].component;let o=i[l];if(o&&o.isWithinClipping(e,t)){let n=o.computeLeft();let i=o.computeTop();let a=e-n;let c=t-i;let{origRect:f}=o;let u=f.right-f.left;let d=f.bottom-f.top;if(a>=0&&a<u&&c>=0&&c<d){let e=s.queryHit(a,c,u,d);if(e&&ar(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(a+n-window.scrollX,c+i-window.scrollY)))&&(!r||e.layer>r.layer)){e.componentId=l;e.context=s.context;e.rect.left+=n;e.rect.right+=n;e.rect.top+=i;e.rect.bottom+=i;r=e}}}}return r}}function Lf(e,t){if(!e&&!t){return true}if(Boolean(e)!==Boolean(t)){return false}return Vl(e.dateSpan,t.dateSpan)}function Wf(e,t){let n={};for(let i of t.pluginHooks.datePointTransforms){Object.assign(n,i(e,t))}Object.assign(n,Ff(e,t.dateEnv));return n}function Ff(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}class Yf extends ns{constructor(e){super(e);this.handlePointerDown=e=>{let{dragging:t}=this;let n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))};this.handleDragEnd=e=>{let{component:t}=this;let{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:i}=this.hitDragging;if(n&&i&&Lf(n,i)){let{context:i}=t;let r=Object.assign(Object.assign({},Wf(n.dateSpan,i)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:i.viewApi||i.calendarApi.view});i.emitter.trigger("dateClick",r)}}};this.dragging=new Gf(e.el);this.dragging.autoScroller.isEnabled=false;let t=this.hitDragging=new Vf(this.dragging,rs(e));t.emitter.on("pointerdown",this.handlePointerDown);t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class $f extends ns{constructor(e){super(e);this.dragSelection=null;this.handlePointerDown=e=>{let{component:t,dragging:n}=this;let{options:i}=t.context;let r=i.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!r);n.delay=e.isTouch?qf(t):null};this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)};this.handleHitUpdate=(e,t)=>{let{context:n}=this.component;let i=null;let r=false;if(e){let t=this.hitDragging.initialHit;let l=e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e);if(!l){i=Zf(t,e,n.pluginHooks.dateSelectionTransformers)}if(!i||!co(i,e.dateProfile,n)){r=true;i=null}}if(i){n.dispatch({type:"SELECT_DATES",selection:i})}else if(!t){n.dispatch({type:"UNSELECT_DATES"})}if(!r){Dt()}else{St()}if(!t){this.dragSelection=i}};this.handlePointerUp=e=>{if(this.dragSelection){hl(this.dragSelection,e,this.component.context);this.dragSelection=null}};let{component:t}=e;let{options:n}=t.context;let i=this.dragging=new Gf(e.el);i.touchScrollAllowed=false;i.minDistance=n.selectMinDistance||0;i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new Vf(this.dragging,rs(e));r.emitter.on("pointerdown",this.handlePointerDown);r.emitter.on("dragstart",this.handleDragStart);r.emitter.on("hitupdate",this.handleHitUpdate);r.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function qf(e){let{options:t}=e.context;let n=t.selectLongPressDelay;if(n==null){n=t.longPressDelay}return n}function Zf(e,t,n){let i=e.dateSpan;let r=t.dateSpan;let l=[i.range.start,i.range.end,r.range.start,r.range.end];l.sort(zt);let s={};for(let i of n){let n=i(e,t);if(n===false){return null}if(n){Object.assign(s,n)}}s.range={start:l[0],end:l[3]};s.allDay=i.allDay;return s}class Jf extends ns{constructor(e){super(e);this.subjectEl=null;this.subjectSeg=null;this.isDragging=false;this.eventRange=null;this.relevantEvents=null;this.receivingContext=null;this.validMutation=null;this.mutatedRelevantEvents=null;this.handlePointerDown=e=>{let t=e.origEvent.target;let{component:n,dragging:i}=this;let{mirror:r}=i;let{options:l}=n.context;let s=n.context;this.subjectEl=e.subjectEl;let o=this.subjectSeg=Cl(e.subjectEl);let a=this.eventRange=o.eventRange;let c=a.instance.instanceId;this.relevantEvents=jr(s.getCurrentData().eventStore,c);i.minDistance=e.isTouch?0:l.eventDragMinDistance;i.delay=e.isTouch&&c!==n.props.eventSelection?Kf(n):null;if(l.fixedMirrorParent){r.parentNode=l.fixedMirrorParent}else{r.parentNode=st(t,".fc")}r.revertDuration=l.dragRevertDuration;let f=n.isValidSegDownEl(t)&&!st(t,".fc-event-resizer");i.setIgnoreMove(!f);this.isDragging=f&&e.subjectEl.classList.contains("fc-event-draggable")};this.handleDragStart=e=>{let t=this.component.context;let n=this.eventRange;let i=n.instance.instanceId;if(e.isTouch){if(i!==this.component.props.eventSelection){t.dispatch({type:"SELECT_EVENT",eventInstanceId:i})}}else{t.dispatch({type:"UNSELECT_EVENT"})}if(this.isDragging){t.calendarApi.unselect(e);t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new wl(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})}};this.handleHitUpdate=(e,t)=>{if(!this.isDragging){return}let n=this.relevantEvents;let i=this.hitDragging.initialHit;let r=this.component.context;let l=null;let s=null;let o=null;let a=false;let c={affectedEvents:n,mutatedEvents:Br(),isEvent:true};if(e){l=e.context;let t=l.options;if(r===l||t.editable&&t.droppable){s=Xf(i,e,this.eventRange.instance.range.start,l.getCurrentData().pluginHooks.eventDragMutationMassagers);if(s){o=ml(n,l.getCurrentData().eventUiBases,s,l);c.mutatedEvents=o;if(!ao(c,e.dateProfile,l)){a=true;s=null;o=null;c.mutatedEvents=Br()}}}else{l=null}}this.displayDrag(l,c);if(!a){Dt()}else{St()}if(!t){if(r===l&&Lf(i,e)){s=null}this.dragging.setMirrorNeedsRevert(!s);this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror"));this.receivingContext=l;this.validMutation=s;this.mutatedRelevantEvents=o}};this.handlePointerUp=()=>{if(!this.isDragging){this.cleanup()}};this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context;let n=t.viewApi;let{receivingContext:i,validMutation:r}=this;let l=this.eventRange.def;let s=this.eventRange.instance;let o=new wl(t,l,s);let a=this.relevantEvents;let c=this.mutatedRelevantEvents;let{finalHit:f}=this.hitDragging;this.clearDrag();t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:o,jsEvent:e.origEvent,view:n});if(r){if(i===t){let i=new wl(t,c.defs[l.defId],s?c.instances[s.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});let f={oldEvent:o,event:i,relatedEvents:xl(c,t,s),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:a})}};let u={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers){Object.assign(u,e(r,t))}t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},f),u),{el:e.subjectEl,delta:r.datesDelta,jsEvent:e.origEvent,view:n}));t.emitter.trigger("eventChange",f)}else if(i){let r={event:o,relatedEvents:xl(a,t,s),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:a})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},r),{draggedEl:e.subjectEl,view:n}));t.dispatch({type:"REMOVE_EVENTS",eventStore:a});t.emitter.trigger("eventRemove",r);let u=c.defs[l.defId];let d=c.instances[s.instanceId];let h=new wl(i,u,d);i.dispatch({type:"MERGE_EVENTS",eventStore:c});let p={event:h,relatedEvents:xl(c,i,d),revert(){i.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};i.emitter.trigger("eventAdd",p);if(e.isTouch){i.dispatch({type:"SELECT_EVENT",eventInstanceId:s.instanceId})}i.emitter.trigger("drop",Object.assign(Object.assign({},Wf(f.dateSpan,i)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:f.context.viewApi}));i.emitter.trigger("eventReceive",Object.assign(Object.assign({},p),{draggedEl:e.subjectEl,view:f.context.viewApi}))}}else{t.emitter.trigger("_noEventDrop")}}this.cleanup()};let{component:t}=this;let{options:n}=t.context;let i=this.dragging=new Gf(e.el);i.pointer.selector=Jf.SELECTOR;i.touchScrollAllowed=false;i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new Vf(this.dragging,ls);r.useSubjectCenter=e.useEventCenter;r.emitter.on("pointerdown",this.handlePointerDown);r.emitter.on("dragstart",this.handleDragStart);r.emitter.on("hitupdate",this.handleHitUpdate);r.emitter.on("pointerup",this.handlePointerUp);r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context;let i=this.receivingContext;if(i&&i!==e){if(i===n){i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:Br(),isEvent:true}})}else{i.dispatch({type:"UNSET_EVENT_DRAG"})}}if(e){e.dispatch({type:"SET_EVENT_DRAG",state:t})}}clearDrag(){let e=this.component.context;let{receivingContext:t}=this;if(t){t.dispatch({type:"UNSET_EVENT_DRAG"})}if(e!==t){e.dispatch({type:"UNSET_EVENT_DRAG"})}}cleanup(){this.subjectSeg=null;this.isDragging=false;this.eventRange=null;this.relevantEvents=null;this.receivingContext=null;this.validMutation=null;this.mutatedRelevantEvents=null}}Jf.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Xf(e,t,n,i){let r=e.dateSpan;let l=t.dateSpan;let s=r.range.start;let o=l.range.start;let a={};if(r.allDay!==l.allDay){a.allDay=l.allDay;a.hasEnd=t.context.options.allDayMaintainDuration;if(l.allDay){s=gn(n)}else{s=n}}let c=pr(s,o,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);if(c.milliseconds){a.allDay=false}let f={datesDelta:c,standardProps:a};for(let n of i){n(f,e,t)}return f}function Kf(e){let{options:t}=e.context;let n=t.eventLongPressDelay;if(n==null){n=t.longPressDelay}return n}class eu extends ns{constructor(e){super(e);this.draggingSegEl=null;this.draggingSeg=null;this.eventRange=null;this.relevantEvents=null;this.validMutation=null;this.mutatedRelevantEvents=null;this.handlePointerDown=e=>{let{component:t}=this;let n=this.querySegEl(e);let i=Cl(n);let r=this.eventRange=i.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance;this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)};this.handleDragStart=e=>{let{context:t}=this.component;let n=this.eventRange;this.relevantEvents=jr(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let i=this.querySegEl(e);this.draggingSegEl=i;this.draggingSeg=Cl(i);t.calendarApi.unselect();t.emitter.trigger("eventResizeStart",{el:i,event:new wl(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})};this.handleHitUpdate=(e,t,n)=>{let{context:i}=this.component;let r=this.relevantEvents;let l=this.hitDragging.initialHit;let s=this.eventRange.instance;let o=null;let a=null;let c=false;let f={affectedEvents:r,mutatedEvents:Br(),isEvent:true};if(e){let t=e.componentId===l.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(l,e);if(!t){o=tu(l,e,n.subjectEl.classList.contains("fc-event-resizer-start"),s.range)}}if(o){a=ml(r,i.getCurrentData().eventUiBases,o,i);f.mutatedEvents=a;if(!ao(f,e.dateProfile,i)){c=true;o=null;a=null;f.mutatedEvents=null}}if(a){i.dispatch({type:"SET_EVENT_RESIZE",state:f})}else{i.dispatch({type:"UNSET_EVENT_RESIZE"})}if(!c){Dt()}else{St()}if(!t){if(o&&Lf(l,e)){o=null}this.validMutation=o;this.mutatedRelevantEvents=a}};this.handleDragEnd=e=>{let{context:t}=this.component;let n=this.eventRange.def;let i=this.eventRange.instance;let r=new wl(t,n,i);let l=this.relevantEvents;let s=this.mutatedRelevantEvents;t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:r,jsEvent:e.origEvent,view:t.viewApi});if(this.validMutation){let o=new wl(t,s.defs[n.defId],i?s.instances[i.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:s});let a={oldEvent:r,event:o,relatedEvents:xl(s,t,i),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},a),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Qt(0),endDelta:this.validMutation.endDelta||Qt(0),jsEvent:e.origEvent,view:t.viewApi}));t.emitter.trigger("eventChange",a)}else{t.emitter.trigger("_noEventResize")}this.draggingSeg=null;this.relevantEvents=null;this.validMutation=null};let{component:t}=e;let n=this.dragging=new Gf(e.el);n.pointer.selector=".fc-event-resizer";n.touchScrollAllowed=false;n.autoScroller.isEnabled=t.context.options.dragScroll;let i=this.hitDragging=new Vf(this.dragging,rs(e));i.emitter.on("pointerdown",this.handlePointerDown);i.emitter.on("dragstart",this.handleDragStart);i.emitter.on("hitupdate",this.handleHitUpdate);i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return st(e.subjectEl,".fc-event")}}function tu(e,t,n,i){let r=e.context.dateEnv;let l=e.dateSpan.range.start;let s=t.dateSpan.range.start;let o=pr(l,s,r,e.largeUnit);if(n){if(r.add(i.start,o)<i.end){return{startDelta:o}}}else if(r.add(i.end,o)>i.start){return{endDelta:o}}return null}class nu{constructor(e){this.context=e;this.isRecentPointerDateSelect=false;this.matchesCancel=false;this.matchesEvent=false;this.onSelect=e=>{if(e.jsEvent){this.isRecentPointerDateSelect=true}};this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel;let n=dt(e.origEvent);this.matchesCancel=!!st(n,t);this.matchesEvent=!!st(n,Jf.SELECTOR)};this.onDocumentPointerUp=e=>{let{context:t}=this;let{documentPointer:n}=this;let i=t.getCurrentData();if(!n.wasTouchScroll){if(i.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;if(n&&(!n||!this.matchesCancel)){t.calendarApi.unselect(e)}}if(i.eventSelection&&!this.matchesEvent){t.dispatch({type:"UNSELECT_EVENT"})}}this.isRecentPointerDateSelect=false};let t=this.documentPointer=new Tf(document);t.shouldIgnoreMove=true;t.shouldWatchScroll=false;t.emitter.on("pointerdown",this.onDocumentPointerDown);t.emitter.on("pointerup",this.onDocumentPointerUp);e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect);this.documentPointer.destroy()}}const iu={fixedMirrorParent:hi};const ru={dateClick:hi,eventDragStart:hi,eventDragStop:hi,eventDrop:hi,eventResizeStart:hi,eventResizeStop:hi,eventResize:hi,drop:hi,eventReceive:hi,eventLeave:hi};Ys.dataAttrPrefix="";class lu extends Fs{constructor(e){super(e);this.shouldIgnoreMove=false;this.mirrorSelector="";this.currentMirrorEl=null;this.handlePointerDown=e=>{this.emitter.trigger("pointerdown",e);if(!this.shouldIgnoreMove){this.emitter.trigger("dragstart",e)}};this.handlePointerMove=e=>{if(!this.shouldIgnoreMove){this.emitter.trigger("dragmove",e)}};this.handlePointerUp=e=>{this.emitter.trigger("pointerup",e);if(!this.shouldIgnoreMove){this.emitter.trigger("dragend",e)}};let t=this.pointer=new Tf(e);t.emitter.on("pointerdown",this.handlePointerDown);t.emitter.on("pointermove",this.handlePointerMove);t.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.pointer.destroy()}setIgnoreMove(e){this.shouldIgnoreMove=e}setMirrorIsVisible(e){if(e){if(this.currentMirrorEl){this.currentMirrorEl.style.visibility="";this.currentMirrorEl=null}}else{let e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;if(e){this.currentMirrorEl=e;e.style.visibility="hidden"}}}}var su=pa({name:"@fullcalendar/interaction",componentInteractions:[Yf,$f,Jf,eu],calendarInteractions:[nu],elementDraggingImpl:Gf,optionRefiners:iu,listenerRefiners:ru});class ou extends Qi{constructor(){super(...arguments);this.state={textId:pt()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:i}=this.context;let{cellId:r,dayDate:l,todayRange:s}=this.props;let{textId:o}=this.state;let a=gs(l,s);let c=n.listDayFormat?t.format(l,n.listDayFormat):"";let f=n.listDaySideFormat?t.format(l,n.listDaySideFormat):"";let u=Object.assign({date:t.toDate(l),view:i,textId:o,text:c,sideText:f,navLinkAttrs:ys(this.context,l),sideNavLinkAttrs:ys(this.context,l,"day",false)},a);return O(Ji,{elTag:"tr",elClasses:["fc-list-day",...vs(a,e)],elAttrs:{"data-date":Nn(l)},renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:au,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(t=>O("th",{scope:"colgroup",colSpan:3,id:r,"aria-labelledby":o},O(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]}))))}}function au(e){return O(I,null,e.text&&O("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&O("a",Object.assign({"aria-hidden":true,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const cu=ni({hour:"numeric",minute:"2-digit",meridiem:"short"});class fu extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let{seg:i,timeHeaderId:r,eventHeaderId:l,dateHeaderId:s}=e;let o=n.eventTimeFormat||cu;return O(zo,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>uu(i,t),seg:i,timeText:"",disableDragging:true,disableResizing:true}),((e,n)=>O(I,null,du(i,o,t,r,s),O("td",{"aria-hidden":true,className:"fc-list-event-graphic"},O("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),O(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${s}`}}))))}}function uu(e,t){let n=Pl(e,t);return O("a",Object.assign({},n),e.eventRange.def.title)}function du(e,t,n,i,r){let{options:l}=n;if(l.displayEventTime!==false){let s=e.eventRange.def;let o=e.eventRange.instance;let a=false;let c;if(s.allDay){a=true}else if(hr(e.eventRange.range)){if(e.isStart){c=Il(e,t,n,null,null,o.range.start,e.end)}else if(e.isEnd){c=Il(e,t,n,null,null,e.start,o.range.end)}else{a=true}}else{c=Il(e,t,n)}if(a){let e={text:n.options.allDayText,view:n.viewApi};return O(Ji,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${i} ${r}`},renderProps:e,generatorName:"allDayContent",customGenerator:l.allDayContent,defaultGenerator:hu,classNameGenerator:l.allDayClassNames,didMount:l.allDayDidMount,willUnmount:l.allDayWillUnmount})}return O("td",{className:"fc-list-event-time"},c)}return null}function hu(e){return e.text}class pu extends zs{constructor(){super(...arguments);this.computeDateVars=_n(vu);this.eventStoreToSegs=_n(this._eventStoreToSegs);this.state={timeHeaderId:pt(),eventHeaderId:pt(),dateHeaderIdRoot:pt()};this.setRootEl=e=>{if(e){this.context.registerInteractiveComponent(this,{el:e})}else{this.context.unregisterInteractiveComponent(this)}}}render(){let{props:e,context:t}=this;let{dayDates:n,dayRanges:i}=this.computeDateVars(e.dateProfile);let r=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return O(er,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),t.options.stickyHeaderDates!==false?"fc-list-sticky":""],viewSpec:t.viewSpec},O(Ao,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},r.length>0?this.renderSegList(r,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context;let n={text:e.noEventsText,view:t};return O(Ji,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:gu,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(e=>O(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]})))}renderSegList(e,t){let{theme:n,options:i}=this.context;let{timeHeaderId:r,eventHeaderId:l,dateHeaderIdRoot:s}=this.state;let o=mu(e);return O(eo,{unit:"day"},((e,a)=>{let c=[];for(let n=0;n<o.length;n+=1){let f=o[n];if(f){let o=Nn(t[n]);let u=s+"-"+o;c.push(O(ou,{key:o,cellId:u,dayDate:t[n],todayRange:a}));f=Ml(f,i.eventOrder);for(let t of f){c.push(O(fu,Object.assign({key:o+":"+t.eventRange.instance.instanceId,seg:t,isDragging:false,isResizing:false,isDateSelecting:false,isSelected:false,timeHeaderId:r,eventHeaderId:l,dateHeaderId:u},Bl(t,a,e))))}}}return O("table",{className:"fc-list-table "+n.getClass("table")},O("thead",null,O("tr",null,O("th",{scope:"col",id:r},i.timeHint),O("th",{scope:"col","aria-hidden":true}),O("th",{scope:"col",id:l},i.eventHint))),O("tbody",null,c))}))}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(kl(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let i of e){n.push(...this.eventRangeToSegs(i,t))}return n}eventRangeToSegs(e,t){let{dateEnv:n}=this.context;let{nextDayThreshold:i}=this.context.options;let r=e.range;let l=e.def.allDay;let s;let o;let a;let c=[];for(s=0;s<t.length;s+=1){o=lr(r,t[s]);if(o){a={component:this,eventRange:e,start:o.start,end:o.end,isStart:e.isStart&&o.start.valueOf()===r.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===r.end.valueOf(),dayIndex:s};c.push(a);if(!a.isEnd&&!l&&s+1<t.length&&r.end<n.add(t[s+1].start,i)){a.end=r.end;a.isEnd=true;break}}}return c}}function gu(e){return e.text}function vu(e){let t=gn(e.renderRange.start);let n=e.renderRange.end;let i=[];let r=[];while(t<n){i.push(t);r.push({start:t,end:ln(t,1)});t=ln(t,1)}return{dayDates:i,dayRanges:r}}function mu(e){let t=[];let n;let i;for(n=0;n<e.length;n+=1){i=e[n];(t[i.dayIndex]||(t[i.dayIndex]=[])).push(i)}return t}var bu=':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}';qe(bu);const yu={listDayFormat:Au,listDaySideFormat:Au,noEventsClassNames:hi,noEventsContent:hi,noEventsDidMount:hi,noEventsWillUnmount:hi};function Au(e){return e===false?null:ni(e)}var wu=pa({name:"@fullcalendar/list",optionRefiners:yu,views:{list:{component:pu,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"}}}});class Eu extends hs{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){if(e.allDay){return["allDay"]}return["timed"]}getKeysForEventDef(e){if(!e.allDay){return["timed"]}if(Sl(e)){return["timed","allDay"]}return["allDay"]}}const xu=ni({hour:"numeric",minute:"2-digit",omitZeroMinute:true,meridiem:"short"});function ku(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return O(Pi.Consumer,null,(n=>{if(!e.isLabeled){return O("td",{className:t.join(" "),"data-time":e.isoTimeStr})}let{dateEnv:i,options:r,viewApi:l}=n;let s=r.slotLabelFormat==null?xu:Array.isArray(r.slotLabelFormat)?ni(r.slotLabelFormat[0]):ni(r.slotLabelFormat);let o={level:0,time:e.time,date:i.toDate(e.date),view:l,text:i.format(e.date,s)};return O(Ji,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:o,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:Su,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(e=>O("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},O(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function Su(e){return e.text}class Du extends Qi{render(){return this.props.slatMetas.map((e=>O("tr",{key:e.key},O(ku,Object.assign({},e)))))}}const Cu=ni({week:"short"});const Tu=5;class Nu extends zs{constructor(){super(...arguments);this.allDaySplitter=new Eu;this.headerElRef=j();this.rootElRef=j();this.scrollerElRef=j();this.state={slatCoords:null};this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;if(t){t.scrollTop=e}};this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context;let{dateProfile:i}=this.props;let r=i.renderRange;let l=an(r.start,r.end);let s=l===1?ys(this.context,r.start,"week"):{};if(n.weekNumbers&&e==="day"){return O($o,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":true},date:r.start,defaultFormat:Cu},(e=>O("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},O(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))))}return O("th",{"aria-hidden":true,className:"fc-timegrid-axis"},O("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))};this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context;let i={text:t.allDayText,view:n};return O(Ji,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":true},renderProps:i,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:Mu,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},(t=>O("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},O(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))};this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:i,props:r}=this;let l=[];let s=_o(i.options);if(e){l.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}})}if(t){l.push({type:"body",key:"all-day",chunk:{content:t}});l.push({type:"body",key:"all-day-divider",outerContent:O("tr",{role:"presentation",className:"fc-scrollgrid-section"},O("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})}l.push({type:"body",key:"body",liquid:true,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}});return O(er,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},O(Io,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,t,n,i,r,l,s){let o=this.context.pluginHooks.scrollGridImpl;if(!o){throw new Error("No ScrollGrid implementation")}let{context:a,props:c}=this;let f=!c.forPrint&&_o(a.options);let u=!c.forPrint&&jo(a.options);let d=[];if(e){d.push({type:"header",key:"header",isSticky:f,syncRowHeights:true,chunks:[{key:"axis",rowContent:e=>O("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]})}if(t){d.push({type:"body",key:"all-day",syncRowHeights:true,chunks:[{key:"axis",rowContent:e=>O("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]});d.push({key:"all-day-divider",type:"body",outerContent:O("tr",{role:"presentation",className:"fc-scrollgrid-section"},O("td",{colSpan:2,className:"fc-timegrid-divider "+a.theme.getClass("tableCellShaded")}))})}let h=a.options.nowIndicator;d.push({type:"body",key:"body",liquid:true,expandRows:Boolean(a.options.expandRows),chunks:[{key:"axis",content:e=>O("div",{className:"fc-timegrid-axis-chunk"},O("table",{"aria-hidden":true,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,O("tbody",null,O(Du,{slatMetas:l}))),O("div",{className:"fc-timegrid-now-indicator-container"},O(eo,{unit:h?"minute":"day"},(e=>{let t=h&&s&&s.safeComputeTop(e);if(typeof t==="number"){return O(Go,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:true,date:e})}return null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]});if(u){d.push({key:"footer",type:"footer",isSticky:true,chunks:[{key:"axis",content:Oo},{key:"cols",content:Oo}]})}return O(er,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:a.viewSpec},O(o,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:false,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:r}]}],sections:d}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;if(e===true||t===true){e=undefined;t=Tu}return{dayMaxEvents:e,dayMaxEventRows:t}}}function Mu(e){return e.text}class Ru{constructor(e,t,n){this.positions=e;this.dateProfile=t;this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(cr(t.currentRange,e)){let n=gn(e);let i=e.valueOf()-n.valueOf();if(i>=Xt(t.slotMinTime)&&i<Xt(t.slotMaxTime)){return this.computeTimeTop(Qt(i))}}return null}computeDateTop(e,t){if(!t){t=gn(e)}return this.computeTimeTop(Qt(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:n}=this;let i=t.els.length;let r=(e.milliseconds-Xt(n.slotMinTime))/Xt(this.slotDuration);let l;let s;r=Math.max(0,r);r=Math.min(i,r);l=Math.floor(r);l=Math.min(l,i-1);s=r-l;return t.tops[l]+t.getHeight(l)*s}}class Ou extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let{slatElRefs:i}=e;return O("tbody",null,e.slatMetas.map(((r,l)=>{let s={time:r.time,date:t.dateEnv.toDate(r.date),view:t.viewApi};return O("tr",{key:r.key,ref:i.createRef(r.key)},e.axis&&O(ku,Object.assign({},r)),O(Ji,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!r.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":r.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}class _u extends Qi{constructor(){super(...arguments);this.rootElRef=j();this.slatElRefs=new wo}render(){let{props:e,context:t}=this;return O("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},O("table",{"aria-hidden":true,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,O(Ou,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){if(this.props.onCoords){this.props.onCoords(null)}}updateSizing(){let{context:e,props:t}=this;if(t.onCoords&&t.clientWidth!==null){let n=this.rootElRef.current;if(n.offsetHeight){t.onCoords(new Ru(new Os(this.rootElRef.current,ju(this.slatElRefs.currentMap,t.slatMetas),false,true),this.props.dateProfile,e.options.slotDuration))}}}}function ju(e,t){return t.map((t=>e[t.key]))}function Iu(e,t){let n=[];let i;for(i=0;i<t;i+=1){n.push([])}if(e){for(i=0;i<e.length;i+=1){n[e[i].col].push(e[i])}}return n}function Bu(e,t){let n=[];if(!e){for(let e=0;e<t;e+=1){n[e]=null}}else{for(let i=0;i<t;i+=1){n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]}}for(let t of e.segs){n[t.col].segs.push(t)}}return n}class zu extends Qi{render(){let{props:e}=this;return O(Ko,{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:()=>Ku(e.hiddenSegs,e),defaultGenerator:Hu,forceTimed:true},(e=>O(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function Hu(e){return e.shortText}function Pu(e,t,n){let i=new Hs;if(t!=null){i.strictOrder=t}if(n!=null){i.maxStackCnt=n}let r=i.addSegs(e);let l=Us(r);let s=Gu(i);s=Wu(s,1);let o=Fu(s);return{segRects:o,hiddenGroups:l}}function Gu(e){const{entriesByLevel:t}=e;const n=Yu(((e,t)=>e+":"+t),((i,r)=>{let l=Lu(e,i,r);let s=Uu(l,n);let o=t[i][r];return[Object.assign(Object.assign({},o),{nextLevelNodes:s[0]}),o.thickness+s[1]]}));return Uu(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function Uu(e,t){if(!e){return[[],0]}let{level:n,lateralStart:i,lateralEnd:r}=e;let l=i;let s=[];while(l<r){s.push(t(n,l));l+=1}s.sort(Qu);return[s.map(Vu),s[0][1]]}function Qu(e,t){return t[1]-e[1]}function Vu(e){return e[0]}function Lu(e,t,n){let{levelCoords:i,entriesByLevel:r}=e;let l=r[t][n];let s=i[t]+l.thickness;let o=i.length;let a=t;for(;a<o&&i[a]<s;a+=1);for(;a<o;a+=1){let e=r[a];let t;let n=Ws(e,l.span.start,Ps);let i=n[0]+n[1];let s=i;while((t=e[s])&&t.span.start<l.span.end){s+=1}if(i<s){return{level:a,lateralStart:i,lateralEnd:s}}}return null}function Wu(e,t){const n=Yu(((e,t,n)=>Gs(e)),((e,i,r)=>{let{nextLevelNodes:l,thickness:s}=e;let o=s+r;let a=s/o;let c;let f=[];if(!l.length){c=t}else{for(let e of l){if(c===undefined){let t=n(e,i,o);c=t[0];f.push(t[1])}else{let t=n(e,c,0);f.push(t[1])}}}let u=(c-i)*a;return[c-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:f})]}));return e.map((e=>n(e,0,0)[1]))}function Fu(e){let t=[];const n=Yu(((e,t,n)=>Gs(e)),((e,n,r)=>{let l=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:r,stackForward:0});t.push(l);return l.stackForward=i(e.nextLevelNodes,n+e.thickness,r+1)+1}));function i(e,t,i){let r=0;for(let l of e){r=Math.max(n(l,t,i),r)}return r}i(e,0,0);return t}function Yu(e,t){const n={};return(...i)=>{let r=e(...i);return r in n?n[r]:n[r]=t(...i)}}function $u(e,t,n=null,i=0){let r=[];if(n){for(let l=0;l<e.length;l+=1){let s=e[l];let o=n.computeDateTop(s.start,t);let a=Math.max(o+(i||0),n.computeDateTop(s.end,t));r.push({start:Math.round(o),end:Math.round(a)})}}return r}function qu(e,t,n,i){let r=[];let l=[];for(let n=0;n<e.length;n+=1){let i=t[n];if(i){r.push({index:n,thickness:1,span:i})}else{l.push(e[n])}}let{segRects:s,hiddenGroups:o}=Pu(r,n,i);let a=[];for(let t of s){a.push({seg:e[t.index],rect:t})}for(let e of l){a.push({seg:e,rect:null})}return{segPlacements:a,hiddenGroups:o}}const Zu=ni({hour:"numeric",minute:"2-digit",meridiem:false});class Ju extends Qi{render(){return O(Ho,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Zu}))}}class Xu extends Qi{constructor(){super(...arguments);this.sortEventSegs=_n(Ml)}render(){let{props:e,context:t}=this;let{options:n}=t;let i=n.selectMirror;let r=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[];let l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};let s=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return O(Qo,{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},(t=>O("div",{className:"fc-timegrid-col-frame"},O("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),O("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,l,false,false,false)),O("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(r,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(i),"mirror")),O("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Vo(n)&&O(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(e,t,n,i,r,l){let{props:s}=this;if(s.forPrint){return Ku(e,s)}return this.renderPositionedFgSegs(e,t,n,i,r,l)}renderPositionedFgSegs(e,t,n,i,r,l){let{eventMaxStack:s,eventShortHeight:o,eventOrderStrict:a,eventMinHeight:c}=this.context.options;let{date:f,slatCoords:u,eventSelection:d,todayRange:h,nowDate:p}=this.props;let g=n||i||r;let v=$u(e,f,u,c);let{segPlacements:m,hiddenGroups:b}=qu(e,v,a,s);return O(I,null,this.renderHiddenGroups(b,e),m.map((e=>{let{seg:s,rect:a}=e;let c=s.eventRange.instance.instanceId;let f=g||Boolean(!t[c]&&a);let u=ed(a&&a.span);let v=!g&&a?this.computeSegHStyle(a):{left:0,right:0};let m=Boolean(a)&&a.stackForward>0;let b=Boolean(a)&&a.span.end-a.span.start<o;return O("div",{className:"fc-timegrid-event-harness"+(m?" fc-timegrid-event-harness-inset":""),key:l||c,style:Object.assign(Object.assign({visibility:f?"":"hidden"},u),v)},O(Ju,Object.assign({seg:s,isDragging:n,isResizing:i,isDateSelecting:r,isSelected:c===d,isShort:b},Bl(s,h,p))))})))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:i,todayRange:r,nowDate:l,eventSelection:s,eventDrag:o,eventResize:a}=this.props;return O(I,null,e.map((e=>{let c=ed(e.span);let f=td(e.entries,t);return O(zu,{key:Tn(na(f)),hiddenSegs:f,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:i,todayRange:r,nowDate:l,eventSelection:s,eventDrag:o,eventResize:a})})))}renderFillSegs(e,t){let{props:n,context:i}=this;let r=$u(e,n.date,n.slatCoords,i.options.eventMinHeight);let l=r.map(((i,r)=>{let l=e[r];return O("div",{key:Hl(l.eventRange),className:"fc-timegrid-bg-harness",style:ed(i)},t==="bg-event"?O(Wo,Object.assign({seg:l},Bl(l,n.todayRange,n.nowDate))):Yo(t))}));return O(I,null,l)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;if(!t){return null}return e.map(((e,i)=>O(Go,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:false,date:n})))}computeSegHStyle(e){let{isRtl:t,options:n}=this.context;let i=n.slotEventOverlap;let r=e.levelCoord;let l=e.levelCoord+e.thickness;let s;let o;if(i){l=Math.min(1,r+(l-r)*2)}if(t){s=1-l;o=r}else{s=r;o=1-l}let a={zIndex:e.stackDepth+1,left:s*100+"%",right:o*100+"%"};if(i&&!e.stackForward){a[t?"marginLeft":"marginRight"]=10*2}return a}}function Ku(e,{todayRange:t,nowDate:n,eventSelection:i,eventDrag:r,eventResize:l}){let s=(r?r.affectedInstances:null)||(l?l.affectedInstances:null)||{};return O(I,null,e.map((e=>{let r=e.eventRange.instance.instanceId;return O("div",{key:r,style:{visibility:s[r]?"hidden":""}},O(Ju,Object.assign({seg:e,isDragging:false,isResizing:false,isDateSelecting:false,isSelected:r===i,isShort:false},Bl(e,t,n))))})))}function ed(e){if(!e){return{top:"",bottom:""}}return{top:e.start,bottom:-e.end}}function td(e,t){return e.map((e=>t[e.index]))}class nd extends Qi{constructor(){super(...arguments);this.splitFgEventSegs=_n(Iu);this.splitBgEventSegs=_n(Iu);this.splitBusinessHourSegs=_n(Iu);this.splitNowIndicatorSegs=_n(Iu);this.splitDateSelectionSegs=_n(Iu);this.splitEventDrag=_n(Bu);this.splitEventResize=_n(Bu);this.rootElRef=j();this.cellElRefs=new wo}render(){let{props:e,context:t}=this;let n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate);let i=e.cells.length;let r=this.splitFgEventSegs(e.fgEventSegs,i);let l=this.splitBgEventSegs(e.bgEventSegs,i);let s=this.splitBusinessHourSegs(e.businessHourSegs,i);let o=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i);let a=this.splitDateSelectionSegs(e.dateSelectionSegs,i);let c=this.splitEventDrag(e.eventDrag,i);let f=this.splitEventResize(e.eventResize,i);return O("div",{className:"fc-timegrid-cols",ref:this.rootElRef},O("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,O("tbody",{role:"presentation"},O("tr",{role:"row"},e.axis&&O("td",{"aria-hidden":true,className:"fc-timegrid-col fc-timegrid-axis"},O("div",{className:"fc-timegrid-col-frame"},O("div",{className:"fc-timegrid-now-indicator-container"},typeof n==="number"&&O(Go,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:true,date:e.nowDate})))),e.cells.map(((t,n)=>O(Xu,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:r[n],bgEventSegs:l[n],businessHourSegs:s[n],nowIndicatorSegs:o[n],dateSelectionSegs:a[n],eventDrag:c[n],eventResize:f[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;if(e.onColCoords&&e.clientWidth!==null){e.onColCoords(new Os(this.rootElRef.current,id(this.cellElRefs.currentMap,e.cells),true,false))}}}function id(e,t){return t.map((t=>e[t.key]))}class rd extends zs{constructor(){super(...arguments);this.processSlotOptions=_n(ld);this.state={slatCoords:null};this.handleRootEl=e=>{if(e){this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed})}else{this.context.unregisterInteractiveComponent(this)}};this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props;let{slatCoords:n}=this.state;if(t&&n){if(e.time){let i=n.computeTimeTop(e.time);i=Math.ceil(i);if(i){i+=1}t(i)}return true}return false};this.handleColCoords=e=>{this.colCoords=e};this.handleSlatCoords=e=>{this.setState({slatCoords:e});if(this.props.onSlatCoords){this.props.onSlatCoords(e)}}}render(){let{props:e,state:t}=this;return O("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},O(_u,{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}),O(nd,{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:t.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,t){let{dateEnv:n,options:i}=this.context;let{colCoords:r}=this;let{dateProfile:l}=this.props;let{slatCoords:s}=this.state;let{snapDuration:o,snapsPerSlot:a}=this.processSlotOptions(this.props.slotDuration,i.snapDuration);let c=r.leftToIndex(e);let f=s.positions.topToIndex(t);if(c!=null&&f!=null){let e=this.props.cells[c];let i=s.positions.tops[f];let u=s.positions.getHeight(f);let d=(t-i)/u;let h=Math.floor(d*a);let p=f*a+h;let g=this.props.cells[c].date;let v=Ft(l.slotMinTime,$t(o,p));let m=n.add(g,v);let b=n.add(m,o);return{dateProfile:l,dateSpan:Object.assign({range:{start:m,end:b},allDay:false},e.extraDateSpan),dayEl:r.els[c],rect:{left:r.lefts[c],right:r.rights[c],top:i,bottom:i+u},layer:0}}return null}}function ld(e,t){let n=t||e;let i=Kt(e,n);if(i===null){n=e;i=1}return{snapDuration:n,snapsPerSlot:i}}class sd extends so{sliceRange(e,t){let n=[];for(let i=0;i<t.length;i+=1){let r=lr(e,t[i]);if(r){n.push({start:r.start,end:r.end,isStart:r.start.valueOf()===e.start.valueOf(),isEnd:r.end.valueOf()===e.end.valueOf(),col:i})}}return n}}class od extends zs{constructor(){super(...arguments);this.buildDayRanges=_n(ad);this.slicer=new sd;this.timeColsRef=j()}render(){let{props:e,context:t}=this;let{dateProfile:n,dayTableModel:i}=e;let{nowIndicator:r,nextDayThreshold:l}=t.options;let s=this.buildDayRanges(i,n,t.dateEnv);return O(eo,{unit:r?"minute":"day"},((o,a)=>O(rd,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,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:r&&this.slicer.sliceNowDate(o,n,l,t,s),todayRange:a,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords}))))}}function ad(e,t,n){let i=[];for(let r of e.headerDates){i.push({start:n.add(r,t.slotMinTime),end:n.add(r,t.slotMaxTime)})}return i}const cd=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function fd(e,t,n,i,r){let l=new Date(0);let s=e;let o=Qt(0);let a=n||ud(i);let c=[];while(Xt(s)<Xt(t)){let e=r.add(l,s);let t=Kt(o,a)!==null;c.push({date:e,time:s,key:e.toISOString(),isoTimeStr:Rn(e),isLabeled:t});s=Ft(s,i);o=Ft(o,i)}return c}function ud(e){let t;let n;let i;for(t=cd.length-1;t>=0;t-=1){n=Qt(cd[t]);i=Kt(n,e);if(i!==null&&i>1){return n}}return e}class dd extends Nu{constructor(){super(...arguments);this.buildTimeColsModel=_n(hd);this.buildSlatMetas=_n(fd)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context;let{props:i}=this;let{dateProfile:r}=i;let l=this.buildTimeColsModel(r,n);let s=this.allDaySplitter.splitProps(i);let o=this.buildSlatMetas(r.slotMinTime,r.slotMaxTime,e.slotLabelInterval,e.slotDuration,t);let{dayMinWidth:a}=e;let c=!a;let f=a;let u=e.dayHeaders&&O(no,{dates:l.headerDates,dateProfile:r,datesRepDistinctDays:true,renderIntro:c?this.renderHeadAxis:null});let d=e.allDaySlot!==false&&(t=>O(bf,Object.assign({},s.allDay,{dateProfile:r,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:false,expandRows:false,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps())));let h=t=>O(od,Object.assign({},s.timed,{dayTableModel:l,dateProfile:r,axis:c,slotDuration:e.slotDuration,slatMetas:o,forPrint:i.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return f?this.renderHScrollLayout(u,d,h,l.colCnt,a,o,this.state.slatCoords):this.renderSimpleLayout(u,d,h)}}function hd(e,t){let n=new ro(e.renderRange,t);return new lo(n,false)}var pd='.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}';qe(pd);const gd={allDaySlot:Boolean};var vd=pa({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:gd,views:{timeGrid:{component:dd,usesMinMaxTime:true,allDaySlot:true,slotDuration:"00:30:00",slotEventOverlap:true},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});var md={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}};var bd={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"};var yd={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"};var Ad={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"};var wd={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"};var Ed={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"};var xd={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"};var kd;(function(e){e["currentDate"]="Sets the date of the calendar. Must be in ISO format (YYYY-MM-DD).";e["customStyle"]="Custom style of the component.";e["data"]="Actual data of the calendar.";e["editableEvents"]="When true, events are editable.";e["hideNavigation"]="When disabled, the navigation toolbar won't be displayed.";e["viewType"]="Type of the view."})(kd||(kd={}));var Sd;(function(e){e["DAY"]="timeGridDay";e["LIST"]="listMonth";e["MONTH"]="dayGridMonth";e["WEEK"]="timeGridWeek"})(Sd||(Sd={}));var Dd;(function(e){e["DATE"]="date";e["DESCR"]="descr";e["END"]="end";e["ICON"]="icon";e["IMAGE"]="image";e["START"]="start";e["STYLE"]="style"})(Dd||(Dd={}));const Cd=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-layer-1)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-subtle)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-gray-color-30)\n );--kup_calendar_event_border_radius:var(\n --kup-calendar-event-border-radius,\n 4px\n );--kup_calendar_event_color:var(\n --kup-calendar-event-color,\n var(--kup-text-secondary)\n );--kup_calendar_font_family:var(\n --kup-calendar-font-family,\n var(--kup-font-family)\n );--kup_calendar_font_size:var(--kup-calendar-font-size, var(--kup-font-size));--kup_calendar_header_background_color:var(\n --kup-calendar-header-background-color,\n var(--kup-layer-2)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-text-secondary)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 1px solid var(--kup-border-subtle)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n var(--kup-layer-0)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-text-secondary)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n var(--kup-layer-2)\n );--kup_calendar_border_top_color:var(\n --kup-calendar-border-top-color,\n var(--kup-border-interactive)\n );--fc-border-color:var(--kup_calendar_border_color);background-color:var(--kup_calendar_background_color);display:block;font-family:var(--kup_calendar_font_family);font-size:var(--kup_calendar_font_size);height:100%;width:100%}.navigation{align-items:center;display:flex;justify-content:space-between;background-color:var(--kup_calendar_background_color)}.navigation__left{--kup-font-size:0.875em;display:flex;margin-left:var(--kup-space-03)}.navigation__right{display:flex;margin-right:var(--kup-space-03)}.navigation__title{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0;margin:0px;padding:0px 0.5em}.navigation__title--centered{padding:0.35em 0;text-align:center;width:100%}.icon-wrapper{display:flex;justify-content:flex-end;flex-wrap:wrap}.image-wrapper{display:flex;justify-content:space-between;flex-wrap:wrap}.image-wrapper img{width:20px;height:20px}.custom-icon{background-color:var(--kup_calendar_event_color);height:1.5em;width:1.5em}#kup-component .fc-toolbar.fc-header-toolbar{margin-top:1.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top{text-align:center;padding:0.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top .fc-day-number{float:none}#kup-component .fc-content{padding:0.25rem}#kup-component .fc-event-title{white-space:normal;word-break:break-word}#kup-component .fc-content,#kup-component .fc-divider,#kup-component .fc-list-heading td,#kup-component .fc-list-view,#kup-component .fc-popover,#kup-component .fc-row,#kup-component .fc-scrollgrid,#kup-component tbody,#kup-component td{border-color:var(--kup_calendar_border_color)}#kup-component .fc-col-header-cell{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color)}#kup-component .fc-h-event{background:none;border:none}#kup-component .fc-list-event-dot{border-color:var(--kup_calendar_event_background_color)}#kup-component .fc-list-day-cushion{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color);font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}#kup-component .fc-list-event:hover td{background:var(--kup-hover-background-color);color:var(--kup-hover-color)}#kup-component .fc-daygrid-event,#kup-component .fc-timegrid-event{background:var(--kup_calendar_event_background_color);border:none;border-color:var(--kup_calendar_event_background_color);color:var(--kup_calendar_event_color)}#kup-component .fc-event-main{color:inherit}#kup-component .fc-event-title{padding:0.25em}#kup-component .fc-event-time{white-space:pre}#kup-component td.fc-day-today{background-color:var(--kup_calendar_today_background_color);border-top:2px solid var(--kup_calendar_border_top_color)}#kup-component td.fc-day-sun,#kup-component td.fc-day-sat{background-color:var(--kup_calendar_no_work_day_background_color);color:var(--kup_calendar_no_work_day_color);opacity:0.7}@media (max-width: 599px){.navigation{flex-direction:column}.calendar{height:100%}.calendar .fc-view-harness{min-height:450px}.navigation .navigation__left{font-size:20px;gap:8px}.navigation .navigation__right .f-chip .chip-set .chip-set__item{font-size:16px}}@media (min-width: 599px){#kup-component .fc-daygrid-event{align-items:baseline;white-space:pre-line}}";const Td=Cd;const Nd=class{constructor(n){e(this,n);this.kupCalendarEventClick=t(this,"kup-calendar-eventclick",6);this.kupCalendarDateClick=t(this,"kup-calendar-dateclick",6);this.kupCalendarEventDrop=t(this,"kup-calendar-eventdrop",6);this.kupCalendarViewChange=t(this,"kup-calendar-viewchange",6);this.calendarContainer=null;this.kupManager=o();this.navTitle=null;this.resizeTimeout=null;this.dateCol=null;this.descrCol=null;this.endCol=null;this.iconCol=null;this.imageCol=null;this.startCol=null;this.styleCol=null;this.currentDate=null;this.customStyle="";this.data=null;this.calendarColumns={[Dd.DATE]:"",[Dd.DESCR]:"",[Dd.END]:"",[Dd.ICON]:"",[Dd.IMAGE]:"",[Dd.START]:"",[Dd.STYLE]:""};this.hideNavigation=false;this.editableEvents=true;this.viewType=Sd.MONTH}setCalendarData(){var e;if(!this.calendarContainer){return}if(this.calendar){this.calendar.destroy()}if((e=this.data)===null||e===void 0?void 0:e.columns){this.data.columns.forEach((e=>{for(const t in this.calendarColumns){if(this.calendarColumns[t]===e.name){this[`${t}Col`]=e.name;break}}}))}this.calendar=new Gc(this.calendarContainer,{dateClick:({date:e})=>{this.kupCalendarDateClick.emit({comp:this,id:this.rootElement.id,date:e})},editable:true,eventClick:({event:e})=>{this.kupCalendarEventClick.emit({comp:this,id:this.rootElement.id,row:e.extendedProps.row})},eventDidMount:e=>{if(this.iconCol){const t=e.event.extendedProps.row;const i=t.cells[this.iconCol];if(i&&i.value){const t=document.createElement("div");t.classList.add("icon-wrapper");i.value.split(";").forEach((e=>{const i=document.createElement("span");i.className="custom-icon";const r=n(`./assets/svg/${e}.svg`);i.style.mask=`url('${r}') no-repeat center`;i.style.webkitMask=`url('${r}') no-repeat center`;t.appendChild(i)}));e.el.appendChild(t)}}if(this.imageCol){const t=e.event.extendedProps.row;const n=t.cells[this.imageCol];if(n&&n.value){const t=document.createElement("div");t.classList.add("image-wrapper");n.value.split(";").forEach((e=>{const n=document.createElement("img");n.src=e;t.appendChild(n)}));e.el.appendChild(t)}}if(this.styleCol){const t=e.event.extendedProps.row;const n=t.cells[this.styleCol];const i=e.el.children[0];const r=i.parentElement;if(n&&n.style){Object.keys(n.style).forEach((e=>{r.style[e]=n.style[e]}))}}},eventDrop:({event:e,oldEvent:t})=>{var n;this.kupCalendarEventDrop.emit({comp:this,id:this.rootElement.id,fromDate:{start:t.start,end:t.end},toDate:{start:e.start,end:e.end},row:(n=t.extendedProps)===null||n===void 0?void 0:n.row})},events:this.getEvents(),headerToolbar:false,initialDate:this.currentDate,initialView:this.viewType,locale:this.getLocale(),locales:[bd,yd,Ad,wd,Ed,xd],plugins:[kf,su,wu,vd]});this.calendar.render()}async getProps(e){return a(this,kd,e)}async refresh(){i(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout);this.resizeTimeout=window.setTimeout((()=>{this.refresh()}),300)}async setProps(e){c(this,kd,e)}changeView(e){this.viewType=e;this.calendar.changeView(e);this.emitNavEvent()}getColumns(){if(this.data&&this.data.rows){return this.data.columns}return[]}getLocale(){switch(this.kupManager.dates.locale){case v.CHINESE:return xd;case v.FRENCH:return yd;case v.ITALIAN:return Ad;case v.POLISH:return wd;case v.RUSSIAN:return Ed;case v.SPANISH:return bd;default:return md}}getRows(){if(this.data&&this.data.rows){return this.data.rows}return[]}setChipProps(){const e={data:[],onClick:[],type:g.CHOICE,wrapperClass:"navigation__choice"};for(const t in Sd){const n=Sd[t];const i={checked:this.viewType===n?true:false,value:this.kupManager.language.translate(f[t]),id:t};e.data.push(i);e.onClick.push((()=>this.changeView(n)))}return e}getEvents(){const e=this.startCol&&this.endCol&&u(this.getColumns(),this.startCol)&&u(this.getColumns(),this.endCol);return this.getRows().map((t=>{const n=t.cells[this.dateCol];let i=this.kupManager.dates.toDayjs(n.value);let r=this.kupManager.dates.toDayjs(n.value);if(e){const e=t.cells[this.startCol];const n=t.cells[this.endCol];if(e&&n){const t=this.kupManager.dates.toDayjs(e.value,m.ISO_TIME);const l=this.kupManager.dates.toDayjs(n.value,m.ISO_TIME);i=i.hour(t.hour());i=i.minute(t.minute());i=i.second(t.second());r=r.hour(l.hour());r=r.minute(l.minute());r=r.second(l.second())}}const l={allDay:e?false:true,editable:this.editableEvents,end:r.toISOString(),extendedProps:{row:t},start:i.toISOString(),title:t.cells[this.descrCol].value};return l}))}onPrev(){this.calendar.prev();this.updateCalendar();this.emitNavEvent()}onNext(){this.calendar.next();this.updateCalendar();this.emitNavEvent()}onToday(){this.calendar.today();this.updateCalendar()}emitNavEvent(){const e=this.kupManager.dates.subtract(this.calendar.view.currentEnd,1,"day").toDate();this.kupCalendarViewChange.emit({comp:this,id:this.rootElement.id,from:this.calendar.view.currentStart,to:e})}updateCalendar(){if(this.calendar){this.calendar.setOption("locale",this.getLocale());this.navTitle.innerText=this.calendar.getCurrentData().viewTitle;this.calendar.updateSize()}}componentWillLoad(){this.kupManager.dates.register(this);this.kupManager.debug.logLoad(this,false);this.kupManager.language.register(this);this.kupManager.theme.register(this)}componentDidLoad(){this.setCalendarData();this.updateCalendar();this.kupManager.resize.observe(this.rootElement);this.kupManager.debug.logLoad(this,true)}componentWillRender(){this.kupManager.debug.logRender(this,false)}componentDidRender(){this.updateCalendar();this.kupManager.debug.logRender(this,true)}render(){return r(l,{key:"bdd424eed81973543ce0456b76729821e630de31"},r("style",{key:"390d5a2a2d06f5119d1e03c7fd00271983ebcce4"},this.kupManager.theme.setKupStyle(this.rootElement)),r("div",{key:"7b24bb47c6b934f5fe47289790ee717ce261d9b9",id:d},r("div",{key:"2f72c647d22945a38bce0073729ffbd3f28dec9e",class:"navigation"},!this.hideNavigation?r("div",{class:"navigation__left"},r(h,{icon:"chevron_left",onClick:()=>this.onPrev(),title:this.kupManager.language.translate(f.PREVIOUS),wrapperClass:"navigation__prev"}),r(h,{icon:"calendar",onClick:()=>this.onToday(),title:this.kupManager.language.translate(f.TODAY),wrapperClass:"navigation__today"}),r(h,{icon:"chevron_right",onClick:()=>this.onNext(),title:this.kupManager.language.translate(f.NEXT),wrapperClass:"navigation__next"})):null,r("div",{key:"35a9b8aa076db1e723de96fcd9a5eb8b6b7dcf40",class:`navigation__title ${this.hideNavigation?"navigation__title--centered":""}`,ref:e=>{this.navTitle=e}}),!this.hideNavigation?r("div",{class:"navigation__right"},r(p,Object.assign({},this.setChipProps()))):null),r("div",{key:"4ade88713da0e92a1c21b62922db53c23f0e6e0a",class:"calendar",ref:e=>this.calendarContainer=e})))}disconnectedCallback(){if(this.calendar){this.calendar.destroy()}this.kupManager.dates.unregister(this);this.kupManager.language.unregister(this);this.kupManager.resize.unobserve(this.rootElement);this.kupManager.theme.unregister(this)}get rootElement(){return s(this)}static get watchers(){return{data:["setCalendarData"],currentDate:["setCalendarData"]}}};Nd.style=Td;export{Nd as kup_calendar};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,g as n,f as i,h as r,H as l,d as s}from"./p-d7c15b0e.js";import{k as o,g as a,s as c,h as f,v as u}from"./p-bf2f70f5.js";import{c as d}from"./p-635bb4b3.js";import{F as h}from"./p-e3032f6d.js";import{c as p,F as g}from"./p-8b2333b1.js";import{b as v,K as m}from"./p-029c7cbe.js";import"./p-e3062c19.js";import"./p-2b519589.js";var b,y,A,w,E,x,k,S,D,C={},T=[],N=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function M(e,t){for(var n in t)e[n]=t[n];return e}function R(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,n){var i,r,l,s={};for(l in t)"key"==l?i=t[l]:"ref"==l?r=t[l]:s[l]=t[l];if(arguments.length>2&&(s.children=arguments.length>3?b.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===s[l]&&(s[l]=e.defaultProps[l]);return _(e,s,i,r,null)}function _(e,t,n,i,r){var l={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++A:r};return null==r&&null!=y.vnode&&y.vnode(l),l}function j(){return{current:null}}function I(e){return e.children}function B(e,t,n,i,r){var l;for(l in n)"children"===l||"key"===l||l in t||H(e,l,null,n[l],i);for(l in t)r&&"function"!=typeof t[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===t[l]||H(e,l,t[l],n[l],i)}function z(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||N.test(t)?n:n+"px"}function H(e,t,n,i,r){var l;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||z(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||z(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])l=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?i||e.addEventListener(t,l?G:P,l):e.removeEventListener(t,l?G:P,l);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function P(e){E=!0;try{return this.l[e.type+!1](y.event?y.event(e):e)}finally{E=!1}}function G(e){E=!0;try{return this.l[e.type+!0](y.event?y.event(e):e)}finally{E=!1}}function U(e,t){this.props=e,this.context=t}function Q(e,t){if(null==t)return e.__?Q(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Q(e):null}function V(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return V(e)}}function L(e){E?setTimeout(e):S(e)}function W(e){(!e.__d&&(e.__d=!0)&&x.push(e)&&!F.__r++||k!==y.debounceRendering)&&((k=y.debounceRendering)||L)(F)}function F(){var e,t,n,i,r,l,s,o;for(x.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=x.shift();)e.__d&&(t=x.length,i=void 0,r=void 0,s=(l=(n=e).__v).__e,(o=n.__P)&&(i=[],(r=M({},l)).__v=l.__v+1,X(o,l,r,n.__n,void 0!==o.ownerSVGElement,null!=l.__h?[s]:null,i,null==s?Q(l):s,l.__h),K(i,l),l.__e!=s&&V(l)),x.length>t&&x.sort((function(e,t){return e.__v.__b-t.__v.__b})));F.__r=0}function Y(e,t,n,i,r,l,s,o,a,c){var f,u,d,h,p,g,v,m=i&&i.__k||T,b=m.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(h=n.__k[f]=null==(h=t[f])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?_(null,h,null,null,h):Array.isArray(h)?_(I,{children:h},null,null,null):h.__b>0?_(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=m[f])||d&&h.key==d.key&&h.type===d.type)m[f]=void 0;else for(u=0;u<b;u++){if((d=m[u])&&h.key==d.key&&h.type===d.type){m[u]=void 0;break}d=null}X(e,h,d=d||C,r,l,s,o,a,c),p=h.__e,(u=h.ref)&&d.ref!=u&&(v||(v=[]),d.ref&&v.push(d.ref,null,h),v.push(u,h.__c||p,h)),null!=p?(null==g&&(g=p),"function"==typeof h.type&&h.__k===d.__k?h.__d=a=$(h,a,e):a=Z(e,h,d,m,p,a),"function"==typeof n.type&&(n.__d=a)):a&&d.__e==a&&a.parentNode!=e&&(a=Q(d))}for(n.__e=g,f=b;f--;)null!=m[f]&&("function"==typeof n.type&&null!=m[f].__e&&m[f].__e==n.__d&&(n.__d=J(i).nextSibling),ne(m[f],m[f]));if(v)for(f=0;f<v.length;f++)te(v[f],v[++f],v[++f])}function $(e,t,n){for(var i,r=e.__k,l=0;r&&l<r.length;l++)(i=r[l])&&(i.__=e,t="function"==typeof i.type?$(i,t,n):Z(n,i,i,r,i.__e,t));return t}function q(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){q(e,t)})):t.push(e)),t}function Z(e,t,n,i,r,l){var s,o,a;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),s=null;else{for(o=l,a=0;(o=o.nextSibling)&&a<i.length;a+=1)if(o==r)break e;e.insertBefore(r,l),s=l}return void 0!==s?s:r.nextSibling}function J(e){var t,n,i;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(i=J(n)))return i;return null}function X(e,t,n,i,r,l,s,o,a){var c,f,u,d,h,p,g,v,m,b,A,w,E,x,k,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,o=t.__e=n.__e,t.__h=null,l=[o]),(c=y.__b)&&c(t);try{e:if("function"==typeof S){if(v=t.props,m=(c=S.contextType)&&i[c.__c],b=c?m?m.props.value:c.__:i,n.__c?g=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(v,b):(t.__c=f=new U(v,b),f.constructor=S,f.render=ie),m&&m.sub(f),f.props=v,f.state||(f.state={}),f.context=b,f.__n=i,u=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=M({},f.__s)),M(f.__s,S.getDerivedStateFromProps(v,f.__s))),d=f.props,h=f.state,f.__v=t,u)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&v!==d&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(v,b),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(v,f.__s,b)||t.__v===n.__v){for(t.__v!==n.__v&&(f.props=v,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(v,f.__s,b),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(d,h,p)}))}if(f.context=b,f.props=v,f.__P=e,w=y.__r,E=0,"prototype"in S&&S.prototype.render){for(f.state=f.__s,f.__d=!1,w&&w(t),c=f.render(f.props,f.state,f.context),x=0;x<f._sb.length;x++)f.__h.push(f._sb[x]);f._sb=[]}else do{f.__d=!1,w&&w(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++E<25);f.state=f.__s,null!=f.getChildContext&&(i=M(M({},i),f.getChildContext())),u||null==f.getSnapshotBeforeUpdate||(p=f.getSnapshotBeforeUpdate(d,h)),k=null!=c&&c.type===I&&null==c.key?c.props.children:c,Y(e,Array.isArray(k)?k:[k],t,n,i,r,l,s,o,a),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),g&&(f.__E=f.__=null),f.__e=!1}else null==l&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ee(n.__e,t,n,i,r,l,s,a);(c=y.diffed)&&c(t)}catch(e){t.__v=null,(a||null!=l)&&(t.__e=o,t.__h=!!a,l[l.indexOf(o)]=null),y.__e(e,t,n)}}function K(e,t){y.__c&&y.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){y.__e(e,t.__v)}}))}function ee(e,t,n,i,r,l,s,o){var a,c,f,u=n.props,d=t.props,h=t.type,p=0;if("svg"===h&&(r=!0),null!=l)for(;p<l.length;p++)if((a=l[p])&&"setAttribute"in a==!!h&&(h?a.localName===h:3===a.nodeType)){e=a,l[p]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),l=null,o=!1}if(null===h)u===d||o&&e.data===d||(e.data=d);else{if(l=l&&b.call(e.childNodes),c=(u=n.props||C).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!o){if(null!=l)for(u={},p=0;p<e.attributes.length;p++)u[e.attributes[p].name]=e.attributes[p].value;(f||c)&&(f&&(c&&f.__html==c.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(B(e,d,u,r,o),f)t.__k=[];else if(p=t.props.children,Y(e,Array.isArray(p)?p:[p],t,n,i,r&&"foreignObject"!==h,l,s,l?l[0]:n.__k&&Q(n,0),o),null!=l)for(p=l.length;p--;)null!=l[p]&&R(l[p]);o||("value"in d&&void 0!==(p=d.value)&&(p!==e.value||"progress"===h&&!p||"option"===h&&p!==u.value)&&H(e,"value",p,u.value,!1),"checked"in d&&void 0!==(p=d.checked)&&p!==e.checked&&H(e,"checked",p,u.checked,!1))}return e}function te(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){y.__e(e,n)}}function ne(e,t,n){var i,r;if(y.unmount&&y.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||te(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){y.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&ne(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||R(e.__e),e.__=e.__e=e.__d=void 0}function ie(e,t,n){return this.constructor(e,n)}function re(e,t,n){var i,r,l;y.__&&y.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,l=[],X(t,e=(!i&&n||t).__k=O(I,null,[e]),r||C,C,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?b.call(t.childNodes):null,l,!i&&n?n:r?r.__e:t.firstChild,i),K(l,e)}function le(e,t){var n={__c:t="__cC"+D++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,W(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}b=T.slice,y={__e:function(e,t,n,i){for(var r,l,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},A=0,w=function(e){return null!=e&&void 0===e.constructor},E=!1,U.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=M({},this.state),"function"==typeof e&&(e=e(M({},n),this.props)),e&&M(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),W(this))},U.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),W(this))},U.prototype.render=I,x=[],S="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,F.__r=0,D=0;var se,oe,ae,ce=[],fe=[],ue=y.__b,de=y.__r,he=y.diffed,pe=y.__c,ge=y.unmount;function ve(){for(var e;e=ce.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ye),e.__H.__h.forEach(Ae),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){se=null,ue&&ue(e)},y.__r=function(e){de&&de(e);var t=(se=e.__c).__H;t&&(oe===se?(t.__h=[],se.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=fe,e.__N=e.i=void 0}))):(t.__h.forEach(ye),t.__h.forEach(Ae),t.__h=[])),oe=se},y.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ce.push(t)&&ae===y.requestAnimationFrame||((ae=y.requestAnimationFrame)||be)(ve)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==fe&&(e.__=e.__V),e.i=void 0,e.__V=fe}))),oe=se=null},y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ye),e.__h=e.__h.filter((function(e){return!e.__||Ae(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],y.__e(n,e.__v)}})),pe&&pe(e,t)},y.unmount=function(e){ge&&ge(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ye(e)}catch(e){t=e}})),n.__H=void 0,t&&y.__e(t,n.__v))};var me="function"==typeof requestAnimationFrame;function be(e){var t,n=function(){clearTimeout(i),me&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);me&&(t=requestAnimationFrame(n))}function ye(e){var t=se,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),se=t}function Ae(e){var t=se;e.__c=e.__(),se=t}function we(e,t){for(var n in t)e[n]=t[n];return e}function Ee(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function xe(e){this.props=e}(xe.prototype=new U).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(e,t){return Ee(this.props,e)||Ee(this.state,t)};var ke=y.__b;y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ke&&ke(e)};var Se=y.__e;y.__e=function(e,t,n,i){if(e.then)for(var r,l=t;l=l.__;)if((r=l.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Se(e,t,n,i)};var De=y.unmount;function Ce(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=we({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ce(e,t,n)}))),e}function Te(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Te(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Ne(){this.__u=0,this.t=null,this.__b=null}function Me(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Re(){this.u=null,this.o=null}y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),De&&De(e)},(Ne.prototype=new U).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Me(i.__v),l=!1,s=function(){l||(l=!0,n.__R=null,r?r(o):o())};n.__R=s;var o=function(){if(! --i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=Te(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}},a=!0===t.__h;i.__u++||a||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(s,s)},Ne.prototype.componentWillUnmount=function(){this.t=[]},Ne.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Ce(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&O(I,null,e.fallback);return r&&(r.__h=null),[O(I,null,t.__a?null:e.children),r]};var Oe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function _e(e){return this.getChildContext=function(){return e.context},e.children}function je(e){var t=this,n=e.i;t.componentWillUnmount=function(){re(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),re(O(_e,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Ie(e,t){var n=O(je,{__v:e,i:t});return n.containerInfo=t,n}(Re.prototype=new U).__a=function(e){var t=this,n=Me(t.__v),i=t.o.get(e);return i[0]++,function(r){var l=function(){t.props.revealOrder?(i.push(r),Oe(t,e,i)):r()};n?n(l):l()}},Re.prototype.render=function(e){this.u=null,this.o=new Map;var t=q(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Re.prototype.componentDidUpdate=Re.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Oe(e,n,t)}))};var Be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?: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]/,He="undefined"!=typeof document,Pe=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};U.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(U.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ge=y.event;function Ue(){}function Qe(){return this.cancelBubble}function Ve(){return this.defaultPrevented}y.event=function(e){return Ge&&(e=Ge(e)),e.persist=Ue,e.isPropagationStopped=Qe,e.isDefaultPrevented=Ve,e.nativeEvent=e};var Le={configurable:!0,get:function(){return this.class}},We=y.vnode;y.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var l in i={},n){var s=n[l];He&&"children"===l&&"noscript"===t||"value"===l&&"defaultValue"in n&&null==s||("defaultValue"===l&&"value"in n&&null==n.value?l="value":"download"===l&&!0===s?s="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+t)&&!Pe(n.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&ze.test(l)?l=l.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(l)&&(l=l.toLowerCase(),i[l]&&(l="oninputCapture")),i[l]=s)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=q(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=q(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i,n.class!=n.className&&(Le.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Le))}e.$$typeof=Be,We&&We(e)};var Fe=y.__r;y.__r=function(e){Fe&&Fe(e)};const Ye=[];const $e=new Map;function qe(e){Ye.push(e);$e.forEach((t=>{Ke(t,e)}))}function Ze(e){if(e.isConnected&&e.getRootNode){Je(e.getRootNode())}}function Je(e){let t=$e.get(e);if(!t||!t.isConnected){t=e.querySelector("style[data-fullcalendar]");if(!t){t=document.createElement("style");t.setAttribute("data-fullcalendar","");const n=tt();if(n){t.nonce=n}const i=e===document?document.head:e;const r=e===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(t,r)}$e.set(e,t);Xe(t)}}function Xe(e){for(const t of Ye){Ke(e,t)}}function Ke(e,t){const{sheet:n}=e;const i=n.cssRules.length;t.split("}").forEach(((e,t)=>{e=e.trim();if(e){n.insertRule(e+"}",i+t)}}))}let et;function tt(){if(et===undefined){et=nt()}return et}function nt(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content")){return e.getAttribute("content")}const t=document.querySelector("script[nonce]");if(t){return t.nonce||""}return""}if(typeof document!=="undefined"){Je(document)}var it=':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)}';qe(it);class rt{constructor(e){this.drainedOption=e;this.isRunning=false;this.isDirty=false;this.pauseDepths={};this.timeoutId=0}request(e){this.isDirty=true;if(!this.isPaused()){this.clearTimeout();if(e==null){this.tryDrain()}else{this.timeoutId=setTimeout(this.tryDrain.bind(this),e)}}}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1;this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t){delete n[e]}else{n[e]-=1;let t=n[e];if(t<=0){delete n[e]}}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){this.isRunning=true;while(this.isDirty){this.isDirty=false;this.drained()}this.isRunning=false}}clear(){this.clearTimeout();this.isDirty=false;this.pauseDepths={}}clearTimeout(){if(this.timeoutId){clearTimeout(this.timeoutId);this.timeoutId=0}}drained(){if(this.drainedOption){this.drainedOption()}}}function lt(e){if(e.parentNode){e.parentNode.removeChild(e)}}function st(e,t){if(e.closest){return e.closest(t)}if(!document.documentElement.contains(e)){return null}do{if(ot(e,t)){return e}e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function ot(e,t){let n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function at(e,t){let n=e instanceof HTMLElement?[e]:e;let i=[];for(let e=0;e<n.length;e+=1){let r=n[e].querySelectorAll(t);for(let e=0;e<r.length;e+=1){i.push(r[e])}}return i}const ct=/(top|left|right|bottom|width|height)$/i;function ft(e,t){for(let n in t){ut(e,n,t[n])}}function ut(e,t,n){if(n==null){e.style[t]=""}else if(typeof n==="number"&&ct.test(t)){e.style[t]=`${n}px`}else{e.style[t]=n}}function dt(e){var t,n;return(n=(t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])!==null&&n!==void 0?n:e.target}let ht=0;function pt(){ht+=1;return"fc-dom-"+ht}function gt(e){e.preventDefault()}function vt(e,t){return n=>{let i=st(n.target,e);if(i){t.call(i,n,i)}}}function mt(e,t,n,i){let r=vt(n,i);e.addEventListener(t,r);return()=>{e.removeEventListener(t,r)}}function bt(e,t,n,i){let r;return mt(e,"mouseover",t,((e,t)=>{if(t!==r){r=t;n(e,t);let l=e=>{r=null;i(e,t);t.removeEventListener("mouseleave",l)};t.addEventListener("mouseleave",l)}}))}const yt=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function At(e,t){let n=i=>{t(i);yt.forEach((t=>{e.removeEventListener(t,n)}))};yt.forEach((t=>{e.addEventListener(t,n)}))}function wt(e){return Object.assign({onClick:e},Et(e))}function Et(e){return{tabIndex:0,onKeyDown(t){if(t.key==="Enter"||t.key===" "){e(t);t.preventDefault()}}}}let xt=0;function kt(){xt+=1;return String(xt)}function St(){document.body.classList.add("fc-not-allowed")}function Dt(){document.body.classList.remove("fc-not-allowed")}function Ct(e){e.style.userSelect="none";e.style.webkitUserSelect="none";e.addEventListener("selectstart",gt)}function Tt(e){e.style.userSelect="";e.style.webkitUserSelect="";e.removeEventListener("selectstart",gt)}function Nt(e){e.addEventListener("contextmenu",gt)}function Mt(e){e.removeEventListener("contextmenu",gt)}function Rt(e){let t=[];let n=[];let i;let r;if(typeof e==="string"){n=e.split(/\s*,\s*/)}else if(typeof e==="function"){n=[e]}else if(Array.isArray(e)){n=e}for(i=0;i<n.length;i+=1){r=n[i];if(typeof r==="string"){t.push(r.charAt(0)==="-"?{field:r.substring(1),order:-1}:{field:r,order:1})}else if(typeof r==="function"){t.push({func:r})}}return t}function Ot(e,t,n){let i;let r;for(i=0;i<n.length;i+=1){r=_t(e,t,n[i]);if(r){return r}}return 0}function _t(e,t,n){if(n.func){return n.func(e,t)}return jt(e[n.field],t[n.field])*(n.order||1)}function jt(e,t){if(!e&&!t){return 0}if(t==null){return-1}if(e==null){return 1}if(typeof e==="string"||typeof t==="string"){return String(e).localeCompare(String(t))}return e-t}function It(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Bt(e,t,n){if(typeof e==="function"){return e(...t)}if(typeof e==="string"){return t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e)}return n}function zt(e,t){return e-t}function Ht(e){return e%1===0}function Pt(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame");let n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t){throw new Error("needs fc-scrollgrid-shrink-frame className")}if(!n){throw new Error("needs fc-scrollgrid-shrink-cushion className")}return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const Gt=["years","months","days","milliseconds"];const Ut=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Qt(e,t){if(typeof e==="string"){return Vt(e)}if(typeof e==="object"&&e){return Lt(e)}if(typeof e==="number"){return Lt({[t||"milliseconds"]:e})}return null}function Vt(e){let t=Ut.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function Lt(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)};let n=e.weeks||e.week;if(n){t.days+=n*7;t.specifiedWeeks=true}return t}function Wt(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function Ft(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Yt(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function $t(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function qt(e){return Jt(e)/365}function Zt(e){return Jt(e)/30}function Jt(e){return Xt(e)/864e5}function Xt(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function Kt(e,t){let n=null;for(let i=0;i<Gt.length;i+=1){let r=Gt[i];if(t[r]){let i=e[r]/t[r];if(!Ht(i)||n!==null&&n!==i){return null}n=i}else if(e[r]){return null}}return n}function en(e){let t=e.milliseconds;if(t){if(t%1e3!==0){return{unit:"millisecond",value:t}}if(t%(1e3*60)!==0){return{unit:"second",value:t/1e3}}if(t%(1e3*60*60)!==0){return{unit:"minute",value:t/(1e3*60)}}if(t){return{unit:"hour",value:t/(1e3*60*60)}}}if(e.days){if(e.specifiedWeeks&&e.days%7===0){return{unit:"week",value:e.days/7}}return{unit:"day",value:e.days}}if(e.months){return{unit:"month",value:e.months}}if(e.years){return{unit:"year",value:e.years}}return{unit:"millisecond",value:0}}function tn(e,t,n){if(e===t){return true}let i=e.length;let r;if(i!==t.length){return false}for(r=0;r<i;r+=1){if(!(n?n(e[r],t[r]):e[r]===t[r])){return false}}return true}const nn=["sun","mon","tue","wed","thu","fri","sat"];function rn(e,t){let n=kn(e);n[2]+=t*7;return Sn(n)}function ln(e,t){let n=kn(e);n[2]+=t;return Sn(n)}function sn(e,t){let n=kn(e);n[6]+=t;return Sn(n)}function on(e,t){return an(e,t)/7}function an(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function cn(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function fn(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function un(e,t){return(t.valueOf()-e.valueOf())/1e3}function dn(e,t){let n=gn(e);let i=gn(t);return{years:0,months:0,days:Math.round(an(n,i)),milliseconds:t.valueOf()-i.valueOf()-(e.valueOf()-n.valueOf())}}function hn(e,t){let n=pn(e,t);if(n!==null&&n%7===0){return n/7}return null}function pn(e,t){if(Cn(e)===Cn(t)){return Math.round(an(e,t))}return null}function gn(e){return Sn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function vn(e){return Sn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function mn(e){return Sn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function bn(e){return Sn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function yn(e,t,n){let i=e.getUTCFullYear();let r=An(e,i,t,n);if(r<1){return An(e,i-1,t,n)}let l=An(e,i+1,t,n);if(l>=1){return Math.min(r,l)}return r}function An(e,t,n,i){let r=Sn([t,0,1+wn(t,n,i)]);let l=gn(e);let s=Math.round(an(r,l));return Math.floor(s/7)+1}function wn(e,t,n){let i=7+t-n;let r=(7+Sn([e,0,i]).getUTCDay()-t)%7;return-r+i-1}function En(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function xn(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function kn(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Sn(e){if(e.length===1){e=e.concat([0])}return new Date(Date.UTC(...e))}function Dn(e){return!isNaN(e.valueOf())}function Cn(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function Tn(e,t,n=false){let i=e.toISOString();i=i.replace(".000","");if(n){i=i.replace("T00:00:00Z","")}if(i.length>10){if(t==null){i=i.replace("Z","")}else if(t!==0){i=i.replace("Z",On(t,true))}}return i}function Nn(e){return e.toISOString().replace(/T.*$/,"")}function Mn(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Rn(e){return It(e.getUTCHours(),2)+":"+It(e.getUTCMinutes(),2)+":"+It(e.getUTCSeconds(),2)}function On(e,t=false){let n=e<0?"-":"+";let i=Math.abs(e);let r=Math.floor(i/60);let l=Math.round(i%60);if(t){return`${n+It(r,2)}:${It(l,2)}`}return`GMT${n}${r}${l?`:${It(l,2)}`:""}`}function _n(e,t,n){let i;let r;return function(...l){if(!i){r=e.apply(this,l)}else if(!tn(i,l)){if(n){n(r)}let i=e.apply(this,l);if(!t||!t(i,r)){r=i}}i=l;return r}}function jn(e,t,n){let i;let r;return l=>{if(!i){r=e.call(this,l)}else if(!Ai(i,l)){if(n){n(r)}let i=e.call(this,l);if(!t||!t(i,r)){r=i}}i=l;return r}}const In={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0};const Bn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1};const zn=/\s*([ap])\.?m\.?/i;const Hn=/,/g;const Pn=/\s+/g;const Gn=/\u200e/g;const Un=/UTC|GMT/;class Qn{constructor(e){let t={};let n={};let i=0;for(let r in e){if(r in In){n[r]=e[r];i=Math.max(In[r],i)}else{t[r]=e[r];if(r in Bn){i=Math.max(Bn[r],i)}}}this.standardDateProps=t;this.extendedSettings=n;this.severity=i;this.buildFormattingFunc=_n(Vn)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,i){let{standardDateProps:r,extendedSettings:l}=this;let s=qn(e.marker,t.marker,n.calendarSystem);if(!s){return this.format(e,n)}let o=s;if(o>1&&(r.year==="numeric"||r.year==="2-digit")&&(r.month==="numeric"||r.month==="2-digit")&&(r.day==="numeric"||r.day==="2-digit")){o=1}let a=this.format(e,n);let c=this.format(t,n);if(a===c){return a}let f=Zn(r,o);let u=Vn(f,l,n);let d=u(e);let h=u(t);let p=Jn(a,d,c,h);let g=l.separator||i||n.defaultSeparator||"";if(p){return p.before+d+g+h+p.after}return a+g+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Vn(e,t,n){let i=Object.keys(e).length;if(i===1&&e.timeZoneName==="short"){return e=>On(e.timeZoneOffset)}if(i===0&&t.week){return e=>$n(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}return Ln(e,t,n)}function Ln(e,t,n){e=Object.assign({},e);t=Object.assign({},t);Wn(e,t);e.timeZone="UTC";let i=new Intl.DateTimeFormat(n.locale.codes,e);let r;if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute;r=new Intl.DateTimeFormat(n.locale.codes,t)}return l=>{let{marker:s}=l;let o;if(r&&!s.getUTCMinutes()){o=r}else{o=i}let a=o.format(s);return Fn(a,l,e,t,n)}}function Wn(e,t){if(e.timeZoneName){if(!e.hour){e.hour="2-digit"}if(!e.minute){e.minute="2-digit"}}if(e.timeZoneName==="long"){e.timeZoneName="short"}if(t.omitZeroMinute&&(e.second||e.millisecond)){delete t.omitZeroMinute}}function Fn(e,t,n,i,r){e=e.replace(Gn,"");if(n.timeZoneName==="short"){e=Yn(e,r.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":On(t.timeZoneOffset))}if(i.omitCommas){e=e.replace(Hn,"").trim()}if(i.omitZeroMinute){e=e.replace(":00","")}if(i.meridiem===false){e=e.replace(zn,"").trim()}else if(i.meridiem==="narrow"){e=e.replace(zn,((e,t)=>t.toLocaleLowerCase()))}else if(i.meridiem==="short"){e=e.replace(zn,((e,t)=>`${t.toLocaleLowerCase()}m`))}else if(i.meridiem==="lowercase"){e=e.replace(zn,(e=>e.toLocaleLowerCase()))}e=e.replace(Pn," ");e=e.trim();return e}function Yn(e,t){let n=false;e=e.replace(Un,(()=>{n=true;return t}));if(!n){e+=` ${t}`}return e}function $n(e,t,n,i,r){let l=[];if(r==="long"){l.push(n)}else if(r==="short"||r==="narrow"){l.push(t)}if(r==="long"||r==="short"){l.push(" ")}l.push(i.simpleNumberFormat.format(e));if(i.options.direction==="rtl"){l.reverse()}return l.join("")}function qn(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t)){return 5}if(n.getMarkerMonth(e)!==n.getMarkerMonth(t)){return 4}if(n.getMarkerDay(e)!==n.getMarkerDay(t)){return 2}if(Cn(e)!==Cn(t)){return 1}return 0}function Zn(e,t){let n={};for(let i in e){if(!(i in Bn)||Bn[i]<=t){n[i]=e[i]}}return n}function Jn(e,t,n,i){let r=0;while(r<e.length){let l=e.indexOf(t,r);if(l===-1){break}let s=e.substr(0,l);r=l+t.length;let o=e.substr(r);let a=0;while(a<n.length){let e=n.indexOf(i,a);if(e===-1){break}let t=n.substr(0,e);a=e+i.length;let r=n.substr(a);if(s===t&&o===r){return{before:s,after:o}}}}return null}function Xn(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Kn(e,t,n,i){let r=Xn(e,n.calendarSystem);let l=t?Xn(t,n.calendarSystem):null;return{date:r,start:r,end:l,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:i||n.defaultSeparator}}class ei{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Kn(e,null,t,n))}formatRange(e,t,n,i){return n.cmdFormatter(this.cmdStr,Kn(e,t,n,i))}}class ti{constructor(e){this.func=e}format(e,t,n){return this.func(Kn(e,null,t,n))}formatRange(e,t,n,i){return this.func(Kn(e,t,n,i))}}function ni(e){if(typeof e==="object"&&e){return new Qn(e)}if(typeof e==="string"){return new ei(e)}if(typeof e==="function"){return new ti(e)}return null}const ii={navLinkDayClick:hi,navLinkWeekClick:hi,duration:Qt,bootstrapFontAwesome:hi,buttonIcons:hi,customButtons:hi,defaultAllDayEventDuration:Qt,defaultTimedEventDuration:Qt,nextDayThreshold:Qt,scrollTime:Qt,scrollTimeReset:Boolean,slotMinTime:Qt,slotMaxTime:Qt,dayPopoverFormat:ni,slotDuration:Qt,snapDuration:Qt,headerToolbar:hi,footerToolbar:hi,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ni,dayHeaderClassNames:hi,dayHeaderContent:hi,dayHeaderDidMount:hi,dayHeaderWillUnmount:hi,dayCellClassNames:hi,dayCellContent:hi,dayCellDidMount:hi,dayCellWillUnmount:hi,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:hi,weekNumbers:Boolean,weekNumberClassNames:hi,weekNumberContent:hi,weekNumberDidMount:hi,weekNumberWillUnmount:hi,editable:Boolean,viewClassNames:hi,viewDidMount:hi,viewWillUnmount:hi,nowIndicator:Boolean,nowIndicatorClassNames:hi,nowIndicatorContent:hi,nowIndicatorDidMount:hi,nowIndicatorWillUnmount:hi,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:hi,locale:hi,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:hi,eventOrder:Rt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:hi,contentHeight:hi,direction:String,weekNumberFormat:ni,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:hi,initialDate:hi,now:hi,eventDataTransform:hi,stickyHeaderDates:hi,stickyFooterScrollbar:hi,viewHeight:hi,defaultAllDay:Boolean,eventSourceFailure:hi,eventSourceSuccess:hi,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:hi,eventConstraint:hi,eventAllow:hi,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:hi,eventContent:hi,eventDidMount:hi,eventWillUnmount:hi,selectConstraint:hi,selectOverlap:hi,selectAllow:hi,droppable:Boolean,unselectCancel:String,slotLabelFormat:hi,slotLaneClassNames:hi,slotLaneContent:hi,slotLaneDidMount:hi,slotLaneWillUnmount:hi,slotLabelClassNames:hi,slotLabelContent:hi,slotLabelDidMount:hi,slotLabelWillUnmount:hi,dayMaxEvents:hi,dayMaxEventRows:hi,dayMinWidth:Number,slotLabelInterval:Qt,allDayText:String,allDayClassNames:hi,allDayContent:hi,allDayDidMount:hi,allDayWillUnmount:hi,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ni,rerenderDelay:Number,moreLinkText:hi,moreLinkHint:hi,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:hi,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Qt,hiddenDays:hi,fixedWeekCount:Boolean,validRange:hi,visibleRange:hi,titleFormat:hi,eventInteractive:Boolean,noEventsText:String,viewHint:hi,navLinkHint:hi,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:hi,moreLinkClassNames:hi,moreLinkContent:hi,moreLinkDidMount:hi,moreLinkWillUnmount:hi,monthStartFormat:ni,handleCustomRendering:hi,customRenderingMetaMap:hi,customRenderingReplaces:Boolean};const ri={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:false,nextDayThreshold:"00:00:00",dayHeaders:true,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:true,weekNumbers:false,weekNumberCalculation:"local",editable:false,nowIndicator:false,scrollTime:"06:00:00",scrollTimeReset:true,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:true,lazyFetching:true,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:true,allDayMaintainDuration:false,unselectAuto:true,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:true,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:false,navLinks:false,selectable:false,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}};const li={datesSet:hi,eventsSet:hi,eventAdd:hi,eventChange:hi,eventRemove:hi,windowResize:hi,eventClick:hi,eventMouseEnter:hi,eventMouseLeave:hi,select:hi,unselect:hi,loading:hi,_unmount:hi,_beforeprint:hi,_afterprint:hi,_noEventDrop:hi,_noEventResize:hi,_resize:hi,_scrollRequest:hi};const si={buttonText:hi,buttonHints:hi,views:hi,plugins:hi,initialEvents:hi,events:hi,eventSources:hi};const oi={headerToolbar:ai,footerToolbar:ai,buttonText:ai,buttonHints:ai,buttonIcons:ai,dateIncrement:ai,plugins:ci,events:ci,eventSources:ci,["resources"]:ci};function ai(e,t){if(typeof e==="object"&&typeof t==="object"&&e&&t){return Ai(e,t)}return e===t}function ci(e,t){if(Array.isArray(e)&&Array.isArray(t)){return tn(e,t)}return e===t}const fi={type:String,component:hi,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:hi,usesMinMaxTime:Boolean,classNames:hi,content:hi,didMount:hi,willUnmount:hi};function ui(e){return gi(e,oi)}function di(e,t){let n={};let i={};for(let i in t){if(i in e){n[i]=t[i](e[i])}}for(let n in e){if(!(n in t)){i[n]=e[n]}}return{refined:n,extra:i}}function hi(e){return e}const{hasOwnProperty:pi}=Object.prototype;function gi(e,t){let n={};if(t){for(let i in t){if(t[i]===ai){let t=[];for(let r=e.length-1;r>=0;r-=1){let l=e[r][i];if(typeof l==="object"&&l){t.unshift(l)}else if(l!==undefined){n[i]=l;break}}if(t.length){n[i]=gi(t)}}}}for(let t=e.length-1;t>=0;t-=1){let i=e[t];for(let e in i){if(!(e in n)){n[e]=i[e]}}}return n}function vi(e,t){let n={};for(let i in e){if(t(e[i],i)){n[i]=e[i]}}return n}function mi(e,t){let n={};for(let i in e){n[i]=t(e[i],i)}return n}function bi(e){let t={};for(let n of e){t[n]=true}return t}function yi(e){let t=[];for(let n in e){t.push(e[n])}return t}function Ai(e,t){if(e===t){return true}for(let n in e){if(pi.call(e,n)){if(!(n in t)){return false}}}for(let n in t){if(pi.call(t,n)){if(e[n]!==t[n]){return false}}}return true}const wi=/^on[A-Z]/;function Ei(e,t){const n=xi(e,t);for(let e of n){if(!wi.test(e)){return false}}return true}function xi(e,t){let n=[];for(let i in e){if(pi.call(e,i)){if(!(i in t)){n.push(i)}}}for(let i in t){if(pi.call(t,i)){if(e[i]!==t[i]){n.push(i)}}}return n}function ki(e,t,n={}){if(e===t){return true}for(let i in t){if(i in e&&Si(e[i],t[i],n[i]));else{return false}}for(let n in e){if(!(n in t)){return false}}return true}function Si(e,t,n){if(e===t||n===true){return true}if(n){return n(e,t)}return false}function Di(e,t=0,n,i=1){let r=[];if(n==null){n=Object.keys(e).length}for(let l=t;l<n;l+=i){let t=e[l];if(t!==undefined){r.push(t)}}return r}let Ci={};function Ti(e,t){Ci[e]=t}function Ni(e){return new Ci[e]}class Mi{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Sn(e)}markerToArray(e){return kn(e)}}Ti("gregory",Mi);const Ri=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Oi(e){let t=Ri.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number(`0.${t[12]}`)*1e3:0));if(Dn(e)){let n=null;if(t[13]){n=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))}return{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}class _i{constructor(e){let t=this.timeZone=e.timeZone;let n=t!=="local"&&t!=="UTC";if(e.namedTimeZoneImpl&&n){this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)}this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl);this.calendarSystem=Ni(e.calendarSystem);this.locale=e.locale;this.weekDow=e.locale.week.dow;this.weekDoy=e.locale.week.doy;if(e.weekNumberCalculation==="ISO"){this.weekDow=1;this.weekDoy=4}if(typeof e.firstDay==="number"){this.weekDow=e.firstDay}if(typeof e.weekNumberCalculation==="function"){this.weekNumberFunc=e.weekNumberCalculation}this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText;this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText;this.cmdFormatter=e.cmdFormatter;this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);if(t===null){return null}return t.marker}createNowMarker(){if(this.canComputeOffset){return this.timestampToMarker((new Date).valueOf())}return Sn(En(new Date))}createMarkerMeta(e){if(typeof e==="string"){return this.parse(e)}let t=null;if(typeof e==="number"){t=this.timestampToMarker(e)}else if(e instanceof Date){e=e.valueOf();if(!isNaN(e)){t=this.timestampToMarker(e)}}else if(Array.isArray(e)){t=Sn(e)}if(t===null||!Dn(t)){return null}return{marker:t,isTimeUnspecified:false,forcedTzo:null}}parse(e){let t=Oi(e);if(t===null){return null}let{marker:n}=t;let i=null;if(t.timeZoneOffset!==null){if(this.canComputeOffset){n=this.timestampToMarker(n.valueOf()-t.timeZoneOffset*60*1e3)}else{i=t.timeZoneOffset}}return{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);n[0]+=t.years;n[1]+=t.months;n[2]+=t.days;n[6]+=t.milliseconds;return this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);n[0]-=t.years;n[1]-=t.months;n[2]-=t.days;n[6]-=t.milliseconds;return this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);n[0]+=t;return this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);n[1]+=t;return this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;if(Cn(e)===Cn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)){return n.getMarkerYear(t)-n.getMarkerYear(e)}return null}diffWholeMonths(e,t){let{calendarSystem:n}=this;if(Cn(e)===Cn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)){return n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12}return null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);if(n!==null){return{unit:"year",value:n}}n=this.diffWholeMonths(e,t);if(n!==null){return{unit:"month",value:n}}n=hn(e,t);if(n!==null){return{unit:"week",value:n}}n=pn(e,t);if(n!==null){return{unit:"day",value:n}}n=cn(e,t);if(Ht(n)){return{unit:"hour",value:n}}n=fn(e,t);if(Ht(n)){return{unit:"minute",value:n}}n=un(e,t);if(Ht(n)){return{unit:"second",value:n}}return{unit:"millisecond",value:t.valueOf()-e.valueOf()}}countDurationsBetween(e,t,n){let i;if(n.years){i=this.diffWholeYears(e,t);if(i!==null){return i/qt(n)}}if(n.months){i=this.diffWholeMonths(e,t);if(i!==null){return i/Zt(n)}}if(n.days){i=pn(e,t);if(i!==null){return i/Jt(n)}}return(t.valueOf()-e.valueOf())/Xt(n)}startOf(e,t){if(t==="year"){return this.startOfYear(e)}if(t==="month"){return this.startOfMonth(e)}if(t==="week"){return this.startOfWeek(e)}if(t==="day"){return gn(e)}if(t==="hour"){return vn(e)}if(t==="minute"){return mn(e)}if(t==="second"){return bn(e)}return 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){if(this.weekNumberFunc){return this.weekNumberFunc(this.toDate(e))}return yn(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:n.forcedTzo!=null?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,i={}){if(i.isEndExclusive){t=sn(t,-1)}return n.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(t)},this,i.defaultSeparator)}formatIso(e,t={}){let n=null;if(!t.omitTimeZoneOffset){if(t.forcedTzo!=null){n=t.forcedTzo}else{n=this.offsetForMarker(e)}}return Tn(e,n,t.omitTime)}timestampToMarker(e){if(this.timeZone==="local"){return Sn(En(new Date(e)))}if(this.timeZone==="UTC"||!this.namedTimeZoneImpl){return new Date(e)}return Sn(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){if(this.timeZone==="local"){return-xn(kn(e)).getTimezoneOffset()}if(this.timeZone==="UTC"){return 0}if(this.namedTimeZoneImpl){return this.namedTimeZoneImpl.offsetForArray(kn(e))}return null}toDate(e,t){if(this.timeZone==="local"){return xn(kn(e))}if(this.timeZone==="UTC"){return new Date(e.valueOf())}if(!this.namedTimeZoneImpl){return new Date(e.valueOf()-(t||0))}return new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(kn(e))*1e3*60)}}class ji{constructor(e){if(this.iconOverrideOption){this.setIconOverride(e[this.iconOverrideOption])}}setIconOverride(e){let t;let n;if(typeof e==="object"&&e){t=Object.assign({},this.iconClasses);for(n in e){t[n]=this.applyIconOverridePrefix(e[n])}this.iconClasses=t}else if(e===false){this.iconClasses={}}}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;if(t&&e.indexOf(t)!==0){e=t+e}return e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;if(t&&this.rtlIconClasses){n=this.rtlIconClasses[e]||this.iconClasses[e]}else{n=this.iconClasses[e]}if(n){return`${this.baseIconClass} ${n}`}return""}getCustomButtonIconClass(e){let t;if(this.iconOverrideCustomButtonOption){t=e[this.iconOverrideCustomButtonOption];if(t){return`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`}}return""}}ji.prototype.classes={};ji.prototype.iconClasses={};ji.prototype.baseIconClass="";ji.prototype.iconOverridePrefix="";function Ii(e){e();let t=y.debounceRendering;let n=[];function i(e){n.push(e)}y.debounceRendering=i;re(O(Bi,{}),document.createElement("div"));while(n.length){n.shift()()}y.debounceRendering=t}class Bi extends U{render(){return O("div",{})}componentDidMount(){this.setState({})}}function zi(e){let t=le(e);let n=t.Provider;t.Provider=function(){let e=!this.getChildContext;let t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{if(this.props.value!==t.value){e.forEach((e=>{e.context=t.value;e.forceUpdate()}))}};this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1);n&&n.call(t)}}}return t};return t}class Hi{constructor(e,t,n,i){this.execFunc=e;this.emitter=t;this.scrollTime=n;this.scrollTimeReset=i;this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e);this.drain()};t.on("_scrollRequest",this.handleScrollRequest);this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){if(e&&this.scrollTimeReset){this.fireInitialScroll()}else{this.drain()}}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){if(this.queuedRequest&&this.execFunc(this.queuedRequest)){this.queuedRequest=null}}}const Pi=zi({});function Gi(e,t,n,i,r,l,s,o,a,c,f,u,d){return{dateEnv:r,options:n,pluginHooks:s,emitter:c,dispatch:o,getCurrentData:a,calendarApi:f,viewSpec:e,viewApi:t,dateProfileGenerator:i,theme:l,isRtl:n.direction==="rtl",addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder(e){return new Hi(e,c,Qt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:d}}class Ui extends U{shouldComponentUpdate(e,t){if(this.debug){console.log(xi(e,this.props),xi(t,this.state))}return!ki(this.props,e,this.propEquality)||!ki(this.state,t,this.stateEquality)}safeSetState(e){if(!ki(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)){this.setState(e)}}}Ui.addPropsEquality=Vi;Ui.addStateEquality=Li;Ui.contextType=Pi;Ui.prototype.propEquality={};Ui.prototype.stateEquality={};class Qi extends Ui{}Qi.contextType=Pi;function Vi(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e);this.prototype.propEquality=t}function Li(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e);this.prototype.stateEquality=t}function Wi(e,t){if(typeof e==="function"){e(t)}else if(e){e.current=t}}class Fi extends Qi{constructor(){super(...arguments);this.id=kt();this.queuedDomNodes=[];this.currentDomNodes=[];this.handleEl=e=>{const{options:t}=this.context;const{generatorName:n}=this.props;if(!t.customRenderingReplaces||!Yi(n,t)){this.updateElRef(e)}};this.updateElRef=e=>{if(this.props.elRef){Wi(this.props.elRef,e)}}}render(){const{props:e,context:t}=this;const{options:n}=t;const{customGenerator:i,defaultGenerator:r,renderProps:l}=e;const s=$i(e,[],this.handleEl);let o=false;let a;let c=[];let f;if(i!=null){const e=typeof i==="function"?i(l,O):i;if(e===true){o=true}else{const t=e&&typeof e==="object";if(t&&"html"in e){s.dangerouslySetInnerHTML={__html:e.html}}else if(t&&"domNodes"in e){c=Array.prototype.slice.call(e.domNodes)}else if(t?w(e):typeof e!=="function"){a=e}else{f=e}}}else{o=!Yi(e.generatorName,n)}if(o&&r){a=r(l)}this.queuedDomNodes=c;this.currentGeneratorMeta=f;return O(e.elTag,s,a)}componentDidMount(){this.applyQueueudDomNodes();this.triggerCustomRendering(true)}componentDidUpdate(){this.applyQueueudDomNodes();this.triggerCustomRendering(true)}componentWillUnmount(){this.triggerCustomRendering(false)}triggerCustomRendering(e){var t;const{props:n,context:i}=this;const{handleCustomRendering:r,customRenderingMetaMap:l}=i.options;if(r){const i=(t=this.currentGeneratorMeta)!==null&&t!==void 0?t:l===null||l===void 0?void 0:l[n.generatorName];if(i){r(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:i},n),{elClasses:(n.elClasses||[]).filter(qi)}))}}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this;const n=this.base;if(!tn(e,t)){t.forEach(lt);for(let t of e){n.appendChild(t)}this.currentDomNodes=e}}}Fi.addPropsEquality({elClasses:tn,elStyle:Ai,elAttrs:Ei,renderProps:Ai});function Yi(e,t){var n;return Boolean(t.handleCustomRendering&&e&&((n=t.customRenderingMetaMap)===null||n===void 0?void 0:n[e]))}function $i(e,t,n){const i=Object.assign(Object.assign({},e.elAttrs),{ref:n});if(e.elClasses||t){i.className=(e.elClasses||[]).concat(t||[]).concat(i.className||[]).filter(Boolean).join(" ")}if(e.elStyle){i.style=e.elStyle}return i}function qi(e){return Boolean(e)}const Zi=zi(0);class Ji extends U{constructor(){super(...arguments);this.InnerContent=Xi.bind(undefined,this);this.handleEl=e=>{this.el=e;if(this.props.elRef){Wi(this.props.elRef,e);if(e&&this.didMountMisfire){this.componentDidMount()}}}}render(){const{props:e}=this;const t=Ki(e.classNameGenerator,e.renderProps);if(e.children){const n=$i(e,t,this.handleEl);const i=e.children(this.InnerContent,e.renderProps,n);if(e.elTag){return O(e.elTag,n,i)}else{return i}}else{return O(Fi,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}}componentDidMount(){var e,t;if(this.el){(t=(e=this.props).didMount)===null||t===void 0?void 0:t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}else{this.didMountMisfire=true}}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)===null||t===void 0?void 0:t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Ji.contextType=Zi;function Xi(e,t){const n=e.props;return O(Fi,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function Ki(e,t){const n=typeof e==="function"?e(t):e||[];return typeof n==="string"?[n]:n}class er extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let i={view:t.viewApi};return O(Ji,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...tr(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:undefined,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function tr(e){return[`fc-${e.type}-view`,"fc-view"]}function nr(e,t){let n=null;let i=null;if(e.start){n=t.createMarker(e.start)}if(e.end){i=t.createMarker(e.end)}if(!n&&!i){return null}if(n&&i&&i<n){return null}return{start:n,end:i}}function ir(e,t){let n=[];let{start:i}=t;let r;let l;e.sort(rr);for(r=0;r<e.length;r+=1){l=e[r];if(l.start>i){n.push({start:i,end:l.start})}if(l.end>i){i=l.end}}if(i<t.end){n.push({start:i,end:t.end})}return n}function rr(e,t){return e.start.valueOf()-t.start.valueOf()}function lr(e,t){let{start:n,end:i}=e;let r=null;if(t.start!==null){if(n===null){n=t.start}else{n=new Date(Math.max(n.valueOf(),t.start.valueOf()))}}if(t.end!=null){if(i===null){i=t.end}else{i=new Date(Math.min(i.valueOf(),t.end.valueOf()))}}if(n===null||i===null||n<i){r={start:n,end:i}}return r}function sr(e,t){return(e.start===null?null:e.start.valueOf())===(t.start===null?null:t.start.valueOf())&&(e.end===null?null:e.end.valueOf())===(t.end===null?null:t.end.valueOf())}function or(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function ar(e,t){return(e.start===null||t.start!==null&&t.start>=e.start)&&(e.end===null||t.end!==null&&t.end<=e.end)}function cr(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function fr(e,t){if(t.start!=null&&e<t.start){return t.start}if(t.end!=null&&e>=t.end){return new Date(t.end.valueOf()-1)}return e}function ur(e){let t=Math.floor(an(e.start,e.end))||1;let n=gn(e.start);let i=ln(n,t);return{start:n,end:i}}function dr(e,t=Qt(0)){let n=null;let i=null;if(e.end){i=gn(e.end);let n=e.end.valueOf()-i.valueOf();if(n&&n>=Xt(t)){i=ln(i,1)}}if(e.start){n=gn(e.start);if(i&&i<=n){i=ln(n,1)}}return{start:n,end:i}}function hr(e){let t=dr(e);return an(t.start,t.end)>1}function pr(e,t,n,i){if(i==="year"){return Qt(n.diffWholeYears(e,t),"year")}if(i==="month"){return Qt(n.diffWholeMonths(e,t),"month")}return dn(e,t)}function gr(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function vr(e,t){let n=e.initialDate;if(n!=null){return t.createMarker(n)}return mr(e.now,t)}function mr(e,t){if(typeof e==="function"){e=e()}if(e==null){return t.createNowMarker()}return t.createMarker(e)}class br{constructor(e){this.props=e;this.nowDate=mr(e.nowInput,e.dateEnv);this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:i}=this.props;let r=i.subtract(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1,n)}buildNext(e,t,n){let{dateEnv:i}=this.props;let r=i.add(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1,n)}build(e,t,n=true){let{props:i}=this;let r;let l;let s;let o;let a;let c;r=this.buildValidRange();r=this.trimHiddenDays(r);if(n){e=fr(e,r)}l=this.buildCurrentRangeInfo(e,t);s=/^(year|month|week|day)$/.test(l.unit);o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,s);o=this.trimHiddenDays(o);a=o;if(!i.showNonCurrentDates){a=lr(a,l.range)}a=this.adjustActiveRange(a);a=lr(a,r);c=or(l.range,r);if(!cr(o,e)){e=o.start}return{currentDate:e,validRange:r,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:s,activeRange:a,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput;let t=typeof e==="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:n}=this;let i=null;let r=null;let l=null;let s;if(n.duration){i=n.duration;r=n.durationUnit;l=this.buildRangeFromDuration(e,t,i,r)}else if(s=this.props.dayCount){r="day";l=this.buildRangeFromDayCount(e,t,s)}else if(l=this.buildCustomVisibleRange(e)){r=n.dateEnv.greatestWholeUnit(l.start,l.end).unit}else{i=this.getFallbackDuration();r=en(i).unit;l=this.buildRangeFromDuration(e,t,i,r)}return{duration:i,unit:r,range:l}}getFallbackDuration(){return Qt({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:i,slotMaxTime:r}=this.props;let{start:l,end:s}=e;if(n){if(Jt(i)<0){l=gn(l);l=t.add(l,i)}if(Jt(r)>1){s=gn(s);s=ln(s,-1);s=t.add(s,r)}}return{start:l,end:s}}buildRangeFromDuration(e,t,n,i){let{dateEnv:r,dateAlignment:l}=this.props;let s;let o;let a;if(!l){let{dateIncrement:e}=this.props;if(e){if(Xt(e)<Xt(n)){l=en(e).unit}else{l=i}}else{l=i}}if(Jt(n)<=1){if(this.isHiddenDay(s)){s=this.skipHiddenDays(s,t);s=gn(s)}}function c(){s=r.startOf(e,l);o=r.add(s,n);a={start:s,end:o}}c();if(!this.trimHiddenDays(a)){e=this.skipHiddenDays(e,t);c()}return a}buildRangeFromDayCount(e,t,n){let{dateEnv:i,dateAlignment:r}=this.props;let l=0;let s=e;let o;if(r){s=i.startOf(s,r)}s=gn(s);s=this.skipHiddenDays(s,t);o=s;do{o=ln(o,1);if(!this.isHiddenDay(o)){l+=1}}while(l<n);return{start:s,end:o}}buildCustomVisibleRange(e){let{props:t}=this;let n=t.visibleRangeInput;let i=typeof n==="function"?n.call(t.calendarApi,t.dateEnv.toDate(e)):n;let r=this.refineRange(i);if(r&&(r.start==null||r.end==null)){return null}return r}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props;let n;if(t){return t}if(n=this.props.dateAlignment){return Qt(1,n)}if(e){return e}return Qt({days:1})}refineRange(e){if(e){let t=nr(e,this.props.dateEnv);if(t){t=dr(t)}return t}return null}initHiddenDays(){let e=this.props.hiddenDays||[];let t=[];let n=0;let i;if(this.props.weekends===false){e.push(0,6)}for(i=0;i<7;i+=1){if(!(t[i]=e.indexOf(i)!==-1)){n+=1}}if(!n){throw new Error("invalid hiddenDays")}this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:n}=e;if(t){t=this.skipHiddenDays(t)}if(n){n=this.skipHiddenDays(n,-1,true)}if(t==null||n==null||t<n){return{start:t,end:n}}return null}isHiddenDay(e){if(e instanceof Date){e=e.getUTCDay()}return this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=false){while(this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7]){e=ln(e,t)}return e}}function yr(e,t,n,i){return{instanceId:kt(),defId:e,range:t,forcedStartTzo:n==null?null:n,forcedEndTzo:i==null?null:i}}function Ar(e,t,n,i){for(let r=0;r<i.length;r+=1){let l=i[r].parse(e,n);if(l){let{allDay:n}=e;if(n==null){n=t;if(n==null){n=l.allDayGuess;if(n==null){n=false}}}return{allDay:n,duration:l.duration,typeData:l.typeData,typeId:r}}}return null}function wr(e,t,n){let{dateEnv:i,pluginHooks:r,options:l}=n;let{defs:s,instances:o}=e;o=vi(o,(e=>!s[e.defId].recurringDef));for(let e in s){let n=s[e];if(n.recurringDef){let{duration:s}=n.recurringDef;if(!s){s=n.allDay?l.defaultAllDayEventDuration:l.defaultTimedEventDuration}let a=Er(n,s,t,i,r.recurringTypes);for(let t of a){let n=yr(e,{start:t,end:i.add(t,s)});o[n.instanceId]=n}}}return{defs:s,instances:o}}function Er(e,t,n,i,r){let l=r[e.recurringDef.typeId];let s=l.expand(e.recurringDef.typeData,{start:i.subtract(n.start,t),end:n.end},i);if(e.allDay){s=s.map(gn)}return s}const xr={id:String,groupId:String,title:String,url:String,interactive:Boolean};const kr={start:hi,end:hi,date:hi,allDay:Boolean};const Sr=Object.assign(Object.assign(Object.assign({},xr),kr),{extendedProps:hi});function Dr(e,t,n,i,r=Tr(n),l,s){let{refined:o,extra:a}=Cr(e,n,r);let c=Rr(t,n);let f=Ar(o,c,n.dateEnv,n.pluginHooks.recurringTypes);if(f){let e=Nr(o,a,t?t.sourceId:"",f.allDay,Boolean(f.duration),n,l);e.recurringDef={typeId:f.typeId,typeData:f.typeData,duration:f.duration};return{def:e,instance:null}}let u=Mr(o,c,n,i);if(u){let e=Nr(o,a,t?t.sourceId:"",u.allDay,u.hasEnd,n,l);let i=yr(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);if(s&&e.publicId&&s[e.publicId]){i.instanceId=s[e.publicId]}return{def:e,instance:i}}return null}function Cr(e,t,n=Tr(t)){return di(e,n)}function Tr(e){return Object.assign(Object.assign(Object.assign({},Qr),Sr),e.pluginHooks.eventRefiners)}function Nr(e,t,n,i,r,l,s){let o={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(s&&e.id?s[e.id]:"")||kt(),sourceId:n,allDay:i,hasEnd:r,interactive:e.interactive,ui:Lr(e,l),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of l.pluginHooks.eventDefMemberAdders){Object.assign(o,t(e))}Object.freeze(o.ui.classNames);Object.freeze(o.extendedProps);return o}function Mr(e,t,n,i){let{allDay:r}=e;let l;let s=null;let o=false;let a;let c=null;let f=e.start!=null?e.start:e.date;l=n.dateEnv.createMarkerMeta(f);if(l){s=l.marker}else if(!i){return null}if(e.end!=null){a=n.dateEnv.createMarkerMeta(e.end)}if(r==null){if(t!=null){r=t}else{r=(!l||l.isTimeUnspecified)&&(!a||a.isTimeUnspecified)}}if(r&&s){s=gn(s)}if(a){c=a.marker;if(r){c=gn(c)}if(s&&c<=s){c=null}}if(c){o=true}else if(!i){o=n.options.forceEventDuration||false;c=n.dateEnv.add(s,r?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)}return{allDay:r,hasEnd:o,range:{start:s,end:c},forcedStartTzo:l?l.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}function Rr(e,t){let n=null;if(e){n=e.defaultAllDay}if(n==null){n=t.options.defaultAllDay}return n}function Or(e,t,n,i,r,l){let s=Br();let o=Tr(n);for(let a of e){let e=Dr(a,t,n,i,o,r,l);if(e){_r(e,s)}}return s}function _r(e,t=Br()){t.defs[e.def.defId]=e.def;if(e.instance){t.instances[e.instance.instanceId]=e.instance}return t}function jr(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId];let i=Hr(e,(e=>Ir(t,e)));i.defs[t.defId]=t;i.instances[n.instanceId]=n;return i}return Br()}function Ir(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Br(){return{defs:{},instances:{}}}function zr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Hr(e,t){let n=vi(e.defs,t);let i=vi(e.instances,(e=>n[e.defId]));return{defs:n,instances:i}}function Pr(e,t){let{defs:n,instances:i}=e;let r={};let l={};for(let e in n){if(!t.defs[e]){r[e]=n[e]}}for(let e in i){if(!t.instances[e]&&r[i[e].defId]){l[e]=i[e]}}return{defs:r,instances:l}}function Gr(e,t){if(Array.isArray(e)){return Or(e,null,t,true)}if(typeof e==="object"&&e){return Or([e],null,t,true)}if(e!=null){return String(e)}return null}function Ur(e){if(Array.isArray(e)){return e}if(typeof e==="string"){return e.split(/\s+/)}return[]}const Qr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:hi,overlap:hi,allow:hi,className:Ur,classNames:Ur,color:String,backgroundColor:String,borderColor:String,textColor:String};const Vr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Lr(e,t){let n=Gr(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable!=null?e.startEditable:e.editable,durationEditable:e.durationEditable!=null?e.durationEditable:e.editable,constraints:n!=null?[n]:[],overlap:e.overlap!=null?e.overlap:null,allows:e.allow!=null?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Wr(e){return e.reduce(Fr,Vr)}function Fr(e,t){return{display:t.display!=null?t.display:e.display,startEditable:t.startEditable!=null?t.startEditable:e.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap==="boolean"?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const Yr={id:String,defaultAllDay:Boolean,url:String,format:String,events:hi,eventDataTransform:hi,success:hi,failure:hi};function $r(e,t,n=qr(t)){let i;if(typeof e==="string"){i={url:e}}else if(typeof e==="function"||Array.isArray(e)){i={events:e}}else if(typeof e==="object"&&e){i=e}if(i){let{refined:r,extra:l}=di(i,n);let s=Zr(r,t);if(s){return{_raw:e,isFetching:false,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:kt(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Lr(r,t),extendedProps:l}}}return null}function qr(e){return Object.assign(Object.assign(Object.assign({},Qr),Yr),e.pluginHooks.eventSourceRefiners)}function Zr(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let i=n[t];let r=i.parseMeta(e);if(r){return{sourceDefId:t,meta:r}}}return null}function Jr(e,t,n,i,r){switch(t.type){case"RECEIVE_EVENTS":return Xr(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,r);case"RESET_RAW_EVENTS":return Kr(e,n[t.sourceId],t.rawEvents,i.activeRange,r);case"ADD_EVENTS":return nl(e,t.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return zr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(i){return wr(e,i.activeRange,r)}return e;case"REMOVE_EVENTS":return Pr(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return rl(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Hr(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return Br();default:return e}}function Xr(e,t,n,i,r,l){if(t&&n===t.latestFetchId){let n=Or(el(r,t,l),t,l);if(i){n=wr(n,i,l)}return zr(rl(e,t.sourceId),n)}return e}function Kr(e,t,n,i,r){const{defIdMap:l,instanceIdMap:s}=sl(e);let o=Or(el(n,t,r),t,r,false,l,s);return wr(o,i,r)}function el(e,t,n){let i=n.options.eventDataTransform;let r=t?t.eventDataTransform:null;if(r){e=tl(e,r)}if(i){e=tl(e,i)}return e}function tl(e,t){let n;if(!t){n=e}else{n=[];for(let i of e){let e=t(i);if(e){n.push(e)}else if(e==null){n.push(i)}}}return n}function nl(e,t,n,i){if(n){t=wr(t,n,i)}return zr(e,t)}function il(e,t,n){let{defs:i}=e;let r=mi(e.instances,(e=>{let r=i[e.defId];if(r.allDay){return e}return Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:i,instances:r}}function rl(e,t){return Hr(e,(e=>e.sourceId!==t))}function ll(e,t){return{defs:e.defs,instances:vi(e.instances,(e=>!t[e.instanceId]))}}function sl(e){const{defs:t,instances:n}=e;const i={};const r={};for(let e in t){const n=t[e];const{publicId:r}=n;if(r){i[r]=e}}for(let e in n){const i=n[e];const l=t[i.defId];const{publicId:s}=l;if(s){r[s]=e}}return{defIdMap:i,instanceIdMap:r}}class ol{constructor(){this.handlers={};this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){al(this.handlers,e,t)}off(e,t){cl(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[];let i=this.options&&this.options[e];let r=[].concat(i||[],n);for(let e of r){e.apply(this.thisContext,t)}}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function al(e,t,n){(e[t]||(e[t]=[])).push(n)}function cl(e,t,n){if(n){if(e[t]){e[t]=e[t].filter((e=>e!==n))}}else{delete e[t]}}const fl={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ul(e,t){return Or(dl(e),null,t)}function dl(e){let t;if(e===true){t=[{}]}else if(Array.isArray(e)){t=e.filter((e=>e.daysOfWeek))}else if(typeof e==="object"&&e){t=[e]}else{t=[]}t=t.map((e=>Object.assign(Object.assign({},fl),e)));return t}function hl(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},gl(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function pl(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function gl(e,t){let n={};for(let i of t.pluginHooks.dateSpanTransforms){Object.assign(n,i(e,t))}Object.assign(n,Wl(e,t.dateEnv));return n}function vl(e,t,n){let{dateEnv:i,options:r}=n;let l=t;if(e){l=gn(l);l=i.add(l,r.defaultAllDayEventDuration)}else{l=i.add(l,r.defaultTimedEventDuration)}return l}function ml(e,t,n,i){let r=Tl(e.defs,t);let l=Br();for(let t in e.defs){let s=e.defs[t];l.defs[t]=bl(s,r[t],n,i)}for(let t in e.instances){let s=e.instances[t];let o=l.defs[s.defId];l.instances[t]=yl(s,o,r[s.defId],n,i)}return l}function bl(e,t,n,i){let r=n.standardProps||{};if(r.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)){r.hasEnd=true}let l=Object.assign(Object.assign(Object.assign({},e),r),{ui:Object.assign(Object.assign({},e.ui),r.ui)});if(n.extendedProps){l.extendedProps=Object.assign(Object.assign({},l.extendedProps),n.extendedProps)}for(let e of i.pluginHooks.eventDefMutationAppliers){e(l,n,i)}if(!l.hasEnd&&i.options.forceEventDuration){l.hasEnd=true}return l}function yl(e,t,n,i,r){let{dateEnv:l}=r;let s=i.standardProps&&i.standardProps.allDay===true;let o=i.standardProps&&i.standardProps.hasEnd===false;let a=Object.assign({},e);if(s){a.range=ur(a.range)}if(i.datesDelta&&n.startEditable){a.range={start:l.add(a.range.start,i.datesDelta),end:l.add(a.range.end,i.datesDelta)}}if(i.startDelta&&n.durationEditable){a.range={start:l.add(a.range.start,i.startDelta),end:a.range.end}}if(i.endDelta&&n.durationEditable){a.range={start:a.range.start,end:l.add(a.range.end,i.endDelta)}}if(o){a.range={start:a.range.start,end:vl(t.allDay,a.range.start,r)}}if(t.allDay){a.range={start:gn(a.range.start),end:gn(a.range.end)}}if(a.range.end<a.range.start){a.range.end=vl(t.allDay,a.range.start,r)}return a}class Al{constructor(e,t){this.context=e;this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:true})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class wl{constructor(e,t,n){this._context=e;this._def=t;this._instance=n||null}setProp(e,t){if(e in kr){console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.")}else if(e==="id"){t=xr[e](t);this.mutate({standardProps:{publicId:t}})}else if(e in xr){t=xr[e](t);this.mutate({standardProps:{[e]:t}})}else if(e in Qr){let n=Qr[e](t);if(e==="color"){n={backgroundColor:t,borderColor:t}}else if(e==="editable"){n={startEditable:t,durationEditable:t}}else{n={[e]:t}}this.mutate({standardProps:{ui:n}})}else{console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context;let i=n.createMarker(e);if(i&&this._instance){let e=this._instance.range;let r=pr(e.start,i,n,t.granularity);if(t.maintainDuration){this.mutate({datesDelta:r})}else{this.mutate({startDelta:r})}}}setEnd(e,t={}){let{dateEnv:n}=this._context;let i;if(e!=null){i=n.createMarker(e);if(!i){return}}if(this._instance){if(i){let e=pr(this._instance.range.end,i,n,t.granularity);this.mutate({endDelta:e})}else{this.mutate({standardProps:{hasEnd:false}})}}}setDates(e,t,n={}){let{dateEnv:i}=this._context;let r={allDay:n.allDay};let l=i.createMarker(e);let s;if(!l){return}if(t!=null){s=i.createMarker(t);if(!s){return}}if(this._instance){let e=this._instance.range;if(n.allDay===true){e=ur(e)}let t=pr(e.start,l,i,n.granularity);if(s){let l=pr(e.end,s,i,n.granularity);if(Wt(t,l)){this.mutate({datesDelta:t,standardProps:r})}else{this.mutate({startDelta:t,endDelta:l,standardProps:r})}}else{r.hasEnd=false;this.mutate({datesDelta:t,standardProps:r})}}}moveStart(e){let t=Qt(e);if(t){this.mutate({startDelta:t})}}moveEnd(e){let t=Qt(e);if(t){this.mutate({endDelta:t})}}moveDates(e){let t=Qt(e);if(t){this.mutate({datesDelta:t})}}setAllDay(e,t={}){let n={allDay:e};let{maintainDuration:i}=t;if(i==null){i=this._context.options.allDayMaintainDuration}if(this._def.allDay!==e){n.hasEnd=i}this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context;let n=this._instance;let i=ni(e);if(this._def.hasEnd){return t.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo})}return t.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def;let i=this._context;let{eventStore:r}=i.getCurrentData();let l=jr(r,t.instanceId);let s={"":{display:"",startEditable:true,durationEditable:true,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}};l=ml(l,s,e,i);let o=new wl(i,n,t);this._def=l.defs[n.defId];this._instance=l.instances[t.instanceId];i.dispatch({type:"MERGE_EVENTS",eventStore:l});i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:xl(l,i,t),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:r})}})}}remove(){let e=this._context;let t=El(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t});e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;if(e){return new Al(this._context,this._context.getCurrentData().eventSources[e])}return 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;if(e){return this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo})}return""}get endStr(){let e=this._instance;if(e&&this._def.hasEnd){return this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo})}return""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def;let{ui:n}=t;let{startStr:i,endStr:r}=this;let l={allDay:t.allDay};if(t.title){l.title=t.title}if(i){l.start=i}if(r){l.end=r}if(t.publicId){l.id=t.publicId}if(t.groupId){l.groupId=t.groupId}if(t.url){l.url=t.url}if(n.display&&n.display!=="auto"){l.display=n.display}if(e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor){l.color=n.backgroundColor}else{if(n.backgroundColor){l.backgroundColor=n.backgroundColor}if(n.borderColor){l.borderColor=n.borderColor}}if(n.textColor){l.textColor=n.textColor}if(n.classNames.length){l.classNames=n.classNames}if(Object.keys(t.extendedProps).length){if(e.collapseExtendedProps){Object.assign(l,t.extendedProps)}else{l.extendedProps=t.extendedProps}}return l}toJSON(){return this.toPlainObject()}}function El(e){let t=e._def;let n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function xl(e,t,n){let{defs:i,instances:r}=e;let l=[];let s=n?n.instanceId:"";for(let e in r){let n=r[e];let o=i[n.defId];if(n.instanceId!==s){l.push(new wl(t,o,n))}}return l}function kl(e,t,n,i){let r={};let l={};let s={};let o=[];let a=[];let c=Tl(e.defs,t);for(let t in e.defs){let n=e.defs[t];let i=c[n.defId];if(i.display==="inverse-background"){if(n.groupId){r[n.groupId]=[];if(!s[n.groupId]){s[n.groupId]=n}}else{l[t]=[]}}}for(let t in e.instances){let s=e.instances[t];let f=e.defs[s.defId];let u=c[f.defId];let d=s.range;let h=!f.allDay&&i?dr(d,i):d;let p=lr(h,n);if(p){if(u.display==="inverse-background"){if(f.groupId){r[f.groupId].push(p)}else{l[s.defId].push(p)}}else if(u.display!=="none"){(u.display==="background"?o:a).push({def:f,ui:u,instance:s,range:p,isStart:h.start&&h.start.valueOf()===p.start.valueOf(),isEnd:h.end&&h.end.valueOf()===p.end.valueOf()})}}}for(let e in r){let t=r[e];let i=ir(t,n);for(let t of i){let n=s[e];let i=c[n.defId];o.push({def:n,ui:i,instance:null,range:t,isStart:false,isEnd:false})}}for(let t in l){let i=l[t];let r=ir(i,n);for(let n of r){o.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:false,isEnd:false})}}return{bg:o,fg:a}}function Sl(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function Dl(e,t){e.fcSeg=t}function Cl(e){return e.fcSeg||e.parentNode.fcSeg||null}function Tl(e,t){return mi(e,(e=>Nl(e,t)))}function Nl(e,t){let n=[];if(t[""]){n.push(t[""])}if(t[e.defId]){n.push(t[e.defId])}n.push(e.ui);return Wr(n)}function Ml(e,t){let n=e.map(Rl);n.sort(((e,n)=>Ot(e,n,t)));return n.map((e=>e._seg))}function Rl(e){let{eventRange:t}=e;let n=t.def;let i=t.instance?t.instance.range:t.range;let r=i.start?i.start.valueOf():0;let l=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:r,end:l,duration:l-r,allDay:Number(n.allDay),_seg:e})}function Ol(e,t){let{pluginHooks:n}=t;let i=n.isDraggableTransformers;let{def:r,ui:l}=e.eventRange;let s=l.startEditable;for(let e of i){s=e(s,r,l,t)}return s}function _l(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function jl(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Il(e,t,n,i,r,l,s){let{dateEnv:o,options:a}=n;let{displayEventTime:c,displayEventEnd:f}=a;let u=e.eventRange.def;let d=e.eventRange.instance;if(c==null){c=i!==false}if(f==null){f=r!==false}let h=d.range.start;let p=d.range.end;let g=l||e.start||e.eventRange.range.start;let v=s||e.end||e.eventRange.range.end;let m=gn(h).valueOf()===gn(g).valueOf();let b=gn(sn(p,-1)).valueOf()===gn(sn(v,-1)).valueOf();if(c&&!u.allDay&&(m||b)){g=m?h:g;v=b?p:v;if(f&&u.hasEnd){return o.formatRange(g,v,t,{forcedStartTzo:l?null:d.forcedStartTzo,forcedEndTzo:s?null:d.forcedEndTzo})}return o.format(g,t,{forcedTzo:l?null:d.forcedStartTzo})}return""}function Bl(e,t,n){let i=e.eventRange.range;return{isPast:i.end<=(n||t.start),isFuture:i.start>=(n||t.end),isToday:t&&cr(t,i.start)}}function zl(e){let t=["fc-event"];if(e.isMirror){t.push("fc-event-mirror")}if(e.isDraggable){t.push("fc-event-draggable")}if(e.isStartResizable||e.isEndResizable){t.push("fc-event-resizable")}if(e.isDragging){t.push("fc-event-dragging")}if(e.isResizing){t.push("fc-event-resizing")}if(e.isSelected){t.push("fc-event-selected")}if(e.isStart){t.push("fc-event-start")}if(e.isEnd){t.push("fc-event-end")}if(e.isPast){t.push("fc-event-past")}if(e.isToday){t.push("fc-event-today")}if(e.isFuture){t.push("fc-event-future")}return t}function Hl(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Pl(e,t){let{def:n,instance:i}=e.eventRange;let{url:r}=n;if(r){return{href:r}}let{emitter:l,options:s}=t;let{eventInteractive:o}=s;if(o==null){o=n.interactive;if(o==null){o=Boolean(l.hasHandlers("eventClick"))}}if(o){return Et((e=>{l.trigger("eventClick",{el:e.target,event:new wl(t,n,i),jsEvent:e,view:t.viewApi})}))}return{}}const Gl={start:hi,end:hi,allDay:Boolean};function Ul(e,t,n){let i=Ql(e,t);let{range:r}=i;if(!r.start){return null}if(!r.end){if(n==null){return null}r.end=t.add(r.start,n)}return i}function Ql(e,t){let{refined:n,extra:i}=di(e,Gl);let r=n.start?t.createMarkerMeta(n.start):null;let l=n.end?t.createMarkerMeta(n.end):null;let{allDay:s}=n;if(s==null){s=r&&r.isTimeUnspecified&&(!l||l.isTimeUnspecified)}return Object.assign({range:{start:r?r.marker:null,end:l?l.marker:null},allDay:s},i)}function Vl(e,t){return sr(e.range,t.range)&&e.allDay===t.allDay&&Ll(e,t)}function Ll(e,t){for(let n in t){if(n!=="range"&&n!=="allDay"){if(e[n]!==t[n]){return false}}}for(let n in e){if(!(n in t)){return false}}return true}function Wl(e,t){return Object.assign(Object.assign({},Yl(e.range,t,e.allDay)),{allDay:e.allDay})}function Fl(e,t,n){return Object.assign(Object.assign({},Yl(e,t,n)),{timeZone:t.timeZone})}function Yl(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function $l(e,t,n){let i=Cr({editable:false},n);let r=Nr(i.refined,i.extra,"",e.allDay,true,n);return{def:r,ui:Nl(r,t),instance:yr(r.defId,e.range),range:e.range,isStart:true,isEnd:true}}function ql(e,t,n){let i=false;let r=function(e){if(!i){i=true;t(e)}};let l=function(e){if(!i){i=true;n(e)}};let s=e(r,l);if(s&&typeof s.then==="function"){s.then(r,l)}}class Zl extends Error{constructor(e,t){super(e);this.response=t}}function Jl(e,t,n){e=e.toUpperCase();const i={method:e};if(e==="GET"){t+=(t.indexOf("?")===-1?"?":"&")+new URLSearchParams(n)}else{i.body=new URLSearchParams(n);i.headers={"Content-Type":"application/x-www-form-urlencoded"}}return fetch(t,i).then((e=>{if(e.ok){return e.json().then((t=>[t,e]),(()=>{throw new Zl("Failure parsing JSON",e)}))}else{throw new Zl("Request failed",e)}}))}let Xl;function Kl(){if(Xl==null){Xl=es()}return Xl}function es(){if(typeof document==="undefined"){return true}let e=document.createElement("div");e.style.position="absolute";e.style.top="0px";e.style.left="0px";e.innerHTML="<table><tr><td><div></div></td></tr></table>";e.querySelector("table").style.height="100px";e.querySelector("div").style.height="100%";document.body.appendChild(e);let t=e.querySelector("div");let n=t.offsetHeight>0;document.body.removeChild(e);return n}class ts extends Qi{constructor(){super(...arguments);this.state={forPrint:false};this.handleBeforePrint=()=>{Ii((()=>{this.setState({forPrint:true})}))};this.handleAfterPrint=()=>{Ii((()=>{this.setState({forPrint:false})}))}}render(){let{props:e}=this;let{options:t}=e;let{forPrint:n}=this.state;let i=n||t.height==="auto"||t.contentHeight==="auto";let r=!i&&t.height!=null?t.height:"";let l=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];if(!Kl()){l.push("fc-liquid-hack")}return e.children(l,r,i,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint);e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint);e.off("_afterprint",this.handleAfterPrint)}}class ns{constructor(e){this.component=e.component;this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function is(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:true,isHitComboAllowed:t.isHitComboAllowed||null}}function rs(e){return{[e.component.uid]:e}}const ls={};class ss{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",true)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;if(n.currentCalendarOptionsRefiners[e]){n.emitter.on(e,t)}else{console.warn(`Unknown listener name '${e}'`)}}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{this.unselect();if(t){if(t.start&&t.end){this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e});this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t})}else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}}else{this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}}))}zoomTo(e,t){let n=this.getCurrentData();let i;t=t||"day";i=n.viewSpecs[t]||this.getUnitViewSpec(t);this.unselect();if(i){this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e})}else{this.dispatch({type:"CHANGE_DATE",dateMarker:e})}}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:n}=this.getCurrentData();let i=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]);let r;let l;for(let e in t){i.push(e)}for(r=0;r<i.length;r+=1){l=t[i[r]];if(l){if(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:mr(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect();this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData();let n=Qt(e);if(n){this.unselect();this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)})}}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),ni(t))}formatRange(e,t,n){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(t),ni(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;if(t==null){if(e.start!=null){n=e}else{n={start:e,end:null}}}else{n={start:e,end:t}}let i=this.getCurrentData();let r=Ul(n,i.dateEnv,Qt({days:1}));if(r){this.dispatch({type:"SELECT_DATES",selection:r});hl(r,null,i)}}unselect(e){let t=this.getCurrentData();if(t.dateSelection){this.dispatch({type:"UNSELECT_DATES"});pl(e,t)}}addEvent(e,t){if(e instanceof wl){let t=e._def;let n=e._instance;let i=this.getCurrentData();if(!i.eventStore.defs[t.defId]){this.dispatch({type:"ADD_EVENTS",eventStore:_r({def:t,instance:n})});this.triggerEventAdd(e)}return e}let n=this.getCurrentData();let i;if(t instanceof Al){i=t.internalEventSource}else if(typeof t==="boolean"){if(t){[i]=yi(n.eventSources)}}else if(t!=null){let e=this.getEventSourceById(t);if(!e){console.warn(`Could not find an event source with ID "${t}"`);return null}i=e.internalEventSource}let r=Dr(e,i,n,false);if(r){let e=new wl(n,r.def,r.def.recurringDef?null:r.instance);this.dispatch({type:"ADD_EVENTS",eventStore:_r(r)});this.triggerEventAdd(e);return e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:El(e)})}})}getEventById(e){let t=this.getCurrentData();let{defs:n,instances:i}=t.eventStore;e=String(e);for(let r in n){let l=n[r];if(l.publicId===e){if(l.recurringDef){return new wl(t,l,null)}for(let e in i){let n=i[e];if(n.defId===l.defId){return new wl(t,l,n)}}}}return null}getEvents(){let e=this.getCurrentData();return xl(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData();let t=e.eventSources;let n=[];for(let i in t){n.push(new Al(e,t[i]))}return n}getEventSourceById(e){let t=this.getCurrentData();let n=t.eventSources;e=String(e);for(let i in n){if(n[i].publicId===e){return new Al(t,n[i])}}return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Al){if(!t.eventSources[e.internalEventSource.sourceId]){this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]})}return e}let n=$r(e,t);if(n){this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]});return new Al(t,n)}return null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:true})}scrollToTime(e){let t=Qt(e);if(t){this.trigger("_scrollRequest",{time:t})}}}function os(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function as(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};if(n.left<n.right&&n.top<n.bottom){return n}return false}function cs(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function fs(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function us(e,t){return{left:e.left-t.left,top:e.top-t.top}}const ds=Br();class hs{constructor(){this.getKeysForEventDefs=_n(this._getKeysForEventDefs);this.splitDateSelection=_n(this._splitDateSpan);this.splitEventStore=_n(this._splitEventStore);this.splitIndividualUi=_n(this._splitIndividualUi);this.splitEventDrag=_n(this._splitInteraction);this.splitEventResize=_n(this._splitInteraction);this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e);let n=this.getKeysForEventDefs(e.eventStore);let i=this.splitDateSelection(e.dateSelection);let r=this.splitIndividualUi(e.eventUiBases,n);let l=this.splitEventStore(e.eventStore,n);let s=this.splitEventDrag(e.eventDrag);let o=this.splitEventResize(e.eventResize);let a={};this.eventUiBuilders=mi(t,((e,t)=>this.eventUiBuilders[t]||_n(ps)));for(let n in t){let c=t[n];let f=l[n]||ds;let u=this.eventUiBuilders[n];a[n]={businessHours:c.businessHours||e.businessHours,dateSelection:i[n]||null,eventStore:f,eventUiBases:u(e.eventUiBases[""],c.ui,r[n]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[n]||null,eventResize:o[n]||null}}return a}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let i of n){t[i]=e}}return t}_getKeysForEventDefs(e){return mi(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:i}=e;let r={};for(let e in n){for(let i of t[e]){if(!r[i]){r[i]=Br()}r[i].defs[e]=n[e]}}for(let e in i){let n=i[e];for(let i of t[n.defId]){if(r[i]){r[i].instances[e]=n}}}return r}_splitIndividualUi(e,t){let n={};for(let i in e){if(i){for(let r of t[i]){if(!n[r]){n[r]={}}n[r][i]=e[i]}}}return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents));let i=this._getKeysForEventDefs(e.mutatedEvents);let r=this._splitEventStore(e.mutatedEvents,i);let l=i=>{if(!t[i]){t[i]={affectedEvents:n[i]||ds,mutatedEvents:r[i]||ds,isEvent:e.isEvent}}};for(let e in n){l(e)}for(let e in r){l(e)}}return t}}function ps(e,t,n){let i=[];if(e){i.push(e)}if(t){i.push(t)}let r={"":Wr(i)};if(n){Object.assign(r,n)}return r}function gs(e,t,n,i){return{dow:e.getUTCDay(),isDisabled:Boolean(i&&!cr(i.activeRange,e)),isOther:Boolean(i&&!cr(i.currentRange,e)),isToday:Boolean(t&&cr(t,e)),isPast:Boolean(n?e<n:t?e<t.start:false),isFuture:Boolean(n?e>n:t?e>=t.end:false)}}function vs(e,t){let n=["fc-day",`fc-day-${nn[e.dow]}`];if(e.isDisabled){n.push("fc-day-disabled")}else{if(e.isToday){n.push("fc-day-today");n.push(t.getClass("today"))}if(e.isPast){n.push("fc-day-past")}if(e.isFuture){n.push("fc-day-future")}if(e.isOther){n.push("fc-day-other")}}return n}const ms=ni({year:"numeric",month:"long",day:"numeric"});const bs=ni({week:"long"});function ys(e,t,n="day",i=true){const{dateEnv:r,options:l,calendarApi:s}=e;let o=r.format(t,n==="week"?bs:ms);if(l.navLinks){let e=r.toDate(t);const a=e=>{let i=n==="day"?l.navLinkDayClick:n==="week"?l.navLinkWeekClick:null;if(typeof i==="function"){i.call(s,r.toDate(t),e)}else{if(typeof i==="string"){n=i}s.zoomTo(t,n)}};return Object.assign({title:Bt(l.navLinkHint,[o,e],o),"data-navlink":""},i?wt(a):{onClick:a})}return{"aria-label":o}}let As=null;function ws(){if(As===null){As=Es()}return As}function Es(){let e=document.createElement("div");ft(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"});e.innerHTML="<div></div>";document.body.appendChild(e);let t=e.firstChild;let n=t.getBoundingClientRect().left>e.getBoundingClientRect().left;lt(e);return n}let xs;function ks(){if(!xs){xs=Ss()}return xs}function Ss(){let e=document.createElement("div");e.style.overflow="scroll";e.style.position="absolute";e.style.top="-9999px";e.style.left="-9999px";document.body.appendChild(e);let t=Ds(e);document.body.removeChild(e);return t}function Ds(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Cs(e,t=false){let n=window.getComputedStyle(e);let i=parseInt(n.borderLeftWidth,10)||0;let r=parseInt(n.borderRightWidth,10)||0;let l=parseInt(n.borderTopWidth,10)||0;let s=parseInt(n.borderBottomWidth,10)||0;let o=Ds(e);let a=o.y-i-r;let c=o.x-l-s;let f={borderLeft:i,borderRight:r,borderTop:l,borderBottom:s,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};if(ws()&&n.direction==="rtl"){f.scrollbarLeft=a}else{f.scrollbarRight=a}if(t){f.paddingLeft=parseInt(n.paddingLeft,10)||0;f.paddingRight=parseInt(n.paddingRight,10)||0;f.paddingTop=parseInt(n.paddingTop,10)||0;f.paddingBottom=parseInt(n.paddingBottom,10)||0}return f}function Ts(e,t=false,n){let i=n?e.getBoundingClientRect():Ns(e);let r=Cs(e,t);let l={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};if(t){l.left+=r.paddingLeft;l.right-=r.paddingRight;l.top+=r.paddingTop;l.bottom-=r.paddingBottom}return l}function Ns(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function Ms(e){let t=Rs(e);let n=e.getBoundingClientRect();for(let e of t){let t=as(n,e.getBoundingClientRect());if(t){n=t}else{return null}}return n}function Rs(e){let t=[];while(e instanceof HTMLElement){let n=window.getComputedStyle(e);if(n.position==="fixed"){break}if(/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)){t.push(e)}e=e.parentNode}return t}class Os{constructor(e,t,n,i){this.els=t;let r=this.originClientRect=e.getBoundingClientRect();if(n){this.buildElHorizontals(r.left)}if(i){this.buildElVerticals(r.top)}}buildElHorizontals(e){let t=[];let n=[];for(let i of this.els){let r=i.getBoundingClientRect();t.push(r.left-e);n.push(r.right-e)}this.lefts=t;this.rights=n}buildElVerticals(e){let t=[];let n=[];for(let i of this.els){let r=i.getBoundingClientRect();t.push(r.top-e);n.push(r.bottom-e)}this.tops=t;this.bottoms=n}leftToIndex(e){let{lefts:t,rights:n}=this;let i=t.length;let r;for(r=0;r<i;r+=1){if(e>=t[r]&&e<n[r]){return r}}return undefined}topToIndex(e){let{tops:t,bottoms:n}=this;let i=t.length;let r;for(r=0;r<i;r+=1){if(e>=t[r]&&e<n[r]){return r}}return undefined}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return _s(this.tops||[],e.tops||[])&&_s(this.bottoms||[],e.bottoms||[])&&_s(this.lefts||[],e.lefts||[])&&_s(this.rights||[],e.rights||[])}}function _s(e,t){const n=e.length;if(n!==t.length){return false}for(let i=0;i<n;i++){if(Math.round(e[i])!==Math.round(t[i])){return false}}return true}class js{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 Is extends js{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 Bs extends js{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 zs extends Qi{constructor(){super(...arguments);this.uid=kt()}prepareHits(){}queryHit(e,t,n,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!st(e,".fc-event-mirror")}isValidDateDownEl(e){return!st(e,".fc-event:not(.fc-bg-event)")&&!st(e,".fc-more-link")&&!st(e,"a[data-navlink]")&&!st(e,".fc-popover")}}class Hs{constructor(e=(e=>e.thickness||1)){this.getEntryThickness=e;this.strictOrder=false;this.allowReslicing=false;this.maxCoord=-1;this.maxStackCnt=-1;this.levelCoords=[];this.entriesByLevel=[];this.stackCnts={}}addSegs(e){let t=[];for(let n of e){this.insertEntry(n,t)}return t}insertEntry(e,t){let n=this.findInsertion(e);if(this.isInsertionValid(n,e)){this.insertEntryAt(e,n)}else{this.handleInvalidInsertion(n,e,t)}}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},t),{span:Vs(t.span,e.touchingEntry.span)});n.push(i);this.splitEntry(t,e.touchingEntry,n)}else{n.push(t)}}splitEntry(e,t,n){let i=e.span;let r=t.span;if(i.start<r.start){this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:r.start}},n)}if(i.end>r.end){this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.end,end:i.end}},n)}}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:i}=this;if(t.lateral===-1){Ls(i,t.level,t.levelCoord);Ls(n,t.level,[e])}else{Ls(n[t.level],t.lateral,e)}this.stackCnts[Gs(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:i,stackCnts:r}=this;let l=t.length;let s=0;let o=-1;let a=-1;let c=null;let f=0;for(let u=0;u<l;u+=1){const l=t[u];if(!i&&l>=s+this.getEntryThickness(e)){break}let d=n[u];let h;let p=Ws(d,e.span.start,Ps);let g=p[0]+p[1];while((h=d[g])&&h.span.start<e.span.end){let e=l+this.getEntryThickness(h);if(e>s){s=e;c=h;o=u;a=g}if(e===s){f=Math.max(f,r[Gs(h)]+1)}g+=1}}let u=0;if(c){u=o+1;while(u<l&&t[u]<s){u+=1}}let d=-1;if(u<l&&t[u]===s){d=Ws(n[u],e.span.end,Ps)[0]}return{touchingLevel:o,touchingLateral:a,touchingEntry:c,stackCnt:f,levelCoord:s,level:u,lateral:d}}toRects(){let{entriesByLevel:e,levelCoords:t}=this;let n=e.length;let i=[];for(let r=0;r<n;r+=1){let n=e[r];let l=t[r];for(let e of n){i.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:l}))}}return i}}function Ps(e){return e.span.end}function Gs(e){return e.index+":"+e.span.start}function Us(e){let t=[];for(let n of e){let e=[];let i={span:n.span,entries:[n]};for(let n of t){if(Vs(n.span,i.span)){i={entries:n.entries.concat(i.entries),span:Qs(n.span,i.span)}}else{e.push(n)}}e.push(i);t=e}return t}function Qs(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Vs(e,t){let n=Math.max(e.start,t.start);let i=Math.min(e.end,t.end);if(n<i){return{start:n,end:i}}return null}function Ls(e,t,n){e.splice(t,0,n)}function Ws(e,t,n){let i=0;let r=e.length;if(!r||t<n(e[i])){return[0,0]}if(t>n(e[r-1])){return[r,0]}while(i<r){let l=Math.floor(i+(r-i)/2);let s=n(e[l]);if(t<s){r=l}else if(t>s){i=l+1}else{return[l,1]}}return[i,0]}class Fs{constructor(e,t){this.emitter=new ol}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Ys={};function $s(e,t){if(!e||t>10){return ni({weekday:"short"})}if(t>1){return ni({weekday:"short",month:"numeric",day:"numeric",omitCommas:true})}return ni({weekday:"long"})}const qs="fc-col-header-cell";function Zs(e){return e.text}class Js extends Qi{render(){let{dateEnv:e,options:t,theme:n,viewApi:i}=this.context;let{props:r}=this;let{date:l,dateProfile:s}=r;let o=gs(l,r.todayRange,null,s);let a=[qs].concat(vs(o,n));let c=e.format(l,r.dayHeaderFormat);let f=!o.isDisabled&&r.colCnt>1?ys(this.context,l):{};let u=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},r.extraRenderProps),{text:c}),o);return O(Ji,{elTag:"th",elClasses:a,elAttrs:Object.assign({role:"columnheader",colSpan:r.colSpan,"data-date":!o.isDisabled?Nn(l):undefined},r.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:Zs,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>O("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&O(e,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",r.isSticky&&"fc-sticky"]}))))}}const Xs=ni({weekday:"long"});class Ks extends Qi{render(){let{props:e}=this;let{dateEnv:t,theme:n,viewApi:i,options:r}=this.context;let l=ln(new Date(2592e5),e.dow);let s={dow:e.dow,isDisabled:false,isFuture:false,isPast:false,isToday:false,isOther:false};let o=t.format(l,e.dayHeaderFormat);let a=Object.assign(Object.assign(Object.assign(Object.assign({date:l},s),{view:i}),e.extraRenderProps),{text:o});return O(Ji,{elTag:"th",elClasses:[qs,...vs(s,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:a,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Zs,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(n=>O("div",{className:"fc-scrollgrid-sync-inner"},O(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(l,Xs)}}))))}}class eo extends U{constructor(e,t){super(e,t);this.initialNowDate=mr(t.options.now,t.dateEnv);this.initialNowQueriedMs=(new Date).valueOf();this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){if(e.unit!==this.props.unit){this.clearTimeout();this.setTimeout()}}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this;let n=sn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs);let i=t.dateEnv.startOf(n,e.unit);let r=t.dateEnv.add(i,Qt(1,e.unit));let l=r.valueOf()-n.valueOf();l=Math.min(1e3*60*60*24,l);return{currentState:{nowDate:i,todayRange:to(i)},nextState:{nowDate:r,todayRange:to(r)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){if(this.timeoutId){clearTimeout(this.timeoutId)}}}eo.contextType=Pi;function to(e){let t=gn(e);let n=ln(t,1);return{start:t,end:n}}class no extends Qi{constructor(){super(...arguments);this.createDayHeaderFormatter=_n(io)}render(){let{context:e}=this;let{dates:t,dateProfile:n,datesRepDistinctDays:i,renderIntro:r}=this.props;let l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,t.length);return O(eo,{unit:"day"},((e,s)=>O("tr",{role:"row"},r&&r("day"),t.map((e=>i?O(Js,{key:e.toISOString(),date:e,dateProfile:n,todayRange:s,colCnt:t.length,dayHeaderFormat:l}):O(Ks,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:l}))))))}}function io(e,t,n){return e||$s(t,n)}class ro{constructor(e,t){let n=e.start;let{end:i}=e;let r=[];let l=[];let s=-1;while(n<i){if(t.isHiddenDay(n)){r.push(s+.5)}else{s+=1;r.push(s);l.push(n)}n=ln(n,1)}this.dates=l;this.indices=r;this.cnt=l.length}sliceRange(e){let t=this.getDateDayIndex(e.start);let n=this.getDateDayIndex(ln(e.end,-1));let i=Math.max(0,t);let r=Math.min(this.cnt-1,n);i=Math.ceil(i);r=Math.floor(r);if(i<=r){return{firstIndex:i,lastIndex:r,isStart:t===i,isEnd:n===r}}return null}getDateDayIndex(e){let{indices:t}=this;let n=Math.floor(an(this.dates[0],e));if(n<0){return t[0]-1}if(n>=t.length){return t[t.length-1]+1}return t[n]}}class lo{constructor(e,t){let{dates:n}=e;let i;let r;let l;if(t){r=n[0].getUTCDay();for(i=1;i<n.length;i+=1){if(n[i].getUTCDay()===r){break}}l=Math.ceil(n.length/i)}else{l=1;i=n.length}this.rowCnt=l;this.colCnt=i;this.daySeries=e;this.cells=this.buildCells();this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1){n.push(this.buildCell(t,e))}e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1){e.push(this.cells[0][t].date)}return e}sliceRange(e){let{colCnt:t}=this;let n=this.daySeries.sliceRange(e);let i=[];if(n){let{firstIndex:e,lastIndex:r}=n;let l=e;while(l<=r){let s=Math.floor(l/t);let o=Math.min((s+1)*t,r+1);i.push({row:s,firstCol:l%t,lastCol:(o-1)%t,isStart:n.isStart&&l===e,isEnd:n.isEnd&&o-1===r});l=o}}return i}}class so{constructor(){this.sliceBusinessHours=_n(this._sliceBusinessHours);this.sliceDateSelection=_n(this._sliceDateSpan);this.sliceEventStore=_n(this._sliceEventStore);this.sliceEventDrag=_n(this._sliceInteraction);this.sliceEventResize=_n(this._sliceInteraction);this.forceDayIfListItem=false}sliceProps(e,t,n,i,...r){let{eventUiBases:l}=e;let s=this.sliceEventStore(e.eventStore,l,t,n,...r);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,l,i,...r),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,i,...r),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,t,n,...r),eventResize:this.sliceEventResize(e.eventResize,l,t,n,...r),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,i,...r){return this._sliceDateSpan({range:{start:e,end:sn(e,1)},allDay:false},t,n,{},i,...r)}_sliceBusinessHours(e,t,n,i,...r){if(!e){return[]}return this._sliceEventStore(wr(e,oo(t,Boolean(n)),i),{},t,n,...r).bg}_sliceEventStore(e,t,n,i,...r){if(e){let l=kl(e,t,oo(n,Boolean(i)),i);return{bg:this.sliceEventRanges(l.bg,r),fg:this.sliceEventRanges(l.fg,r)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,i,...r){if(!e){return null}let l=kl(e.mutatedEvents,t,oo(n,Boolean(i)),i);return{segs:this.sliceEventRanges(l.fg,r),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,i,r,...l){if(!e){return[]}let s=oo(t,Boolean(n));let o=lr(e.range,s);if(o){e=Object.assign(Object.assign({},e),{range:o});let t=$l(e,i,r);let n=this.sliceRange(e.range,...l);for(let e of n){e.eventRange=t}return n}return[]}sliceEventRanges(e,t){let n=[];for(let i of e){n.push(...this.sliceEventRange(i,t))}return n}sliceEventRange(e,t){let n=e.range;if(this.forceDayIfListItem&&e.ui.display==="list-item"){n={start:n.start,end:ln(n.start,1)}}let i=this.sliceRange(n,...t);for(let t of i){t.eventRange=e;t.isStart=e.isStart&&t.isStart;t.isEnd=e.isEnd&&t.isEnd}return i}}function oo(e,t){let n=e.activeRange;if(t){return n}return{start:sn(n.start,e.slotMinTime.milliseconds),end:sn(n.end,e.slotMaxTime.milliseconds-864e5)}}function ao(e,t,n){let{instances:i}=e.mutatedEvents;for(let e in i){if(!ar(t.validRange,i[e].range)){return false}}return fo({eventDrag:e},n)}function co(e,t,n){if(!ar(t.validRange,e.range)){return false}return fo({dateSelection:e},n)}function fo(e,t){let n=t.getCurrentData();let i=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||uo)(i,t)}function uo(e,t,n={},i){if(e.eventDrag&&!ho(e,t,n,i)){return false}if(e.dateSelection&&!po(e,t,n,i)){return false}return true}function ho(e,t,n,i){let r=t.getCurrentData();let l=e.eventDrag;let s=l.mutatedEvents;let o=s.defs;let a=s.instances;let c=Tl(o,l.isEvent?e.eventUiBases:{"":r.selectionConfig});if(i){c=mi(c,i)}let f=ll(e.eventStore,l.affectedEvents.instances);let u=f.defs;let d=f.instances;let h=Tl(u,e.eventUiBases);for(let i in a){let s=a[i];let p=s.range;let g=c[s.defId];let v=o[s.defId];if(!go(g.constraints,p,f,e.businessHours,t)){return false}let{eventOverlap:m}=t.options;let b=typeof m==="function"?m:null;for(let e in d){let n=d[e];if(or(p,n.range)){let e=h[n.defId].overlap;if(e===false&&l.isEvent){return false}if(g.overlap===false){return false}if(b&&!b(new wl(t,u[n.defId],n),new wl(t,v,s))){return false}}}let y=r.eventStore;for(let e of g.allows){let r=Object.assign(Object.assign({},n),{range:s.range,allDay:v.allDay});let l=y.defs[v.defId];let o=y.instances[i];let a;if(l){a=new wl(t,l,o)}else{a=new wl(t,v)}if(!e(gl(r,t),a)){return false}}}return true}function po(e,t,n,i){let r=e.eventStore;let l=r.defs;let s=r.instances;let o=e.dateSelection;let a=o.range;let{selectionConfig:c}=t.getCurrentData();if(i){c=i(c)}if(!go(c.constraints,a,r,e.businessHours,t)){return false}let{selectOverlap:f}=t.options;let u=typeof f==="function"?f:null;for(let e in s){let n=s[e];if(or(a,n.range)){if(c.overlap===false){return false}if(u&&!u(new wl(t,l[n.defId],n),null)){return false}}}for(let e of c.allows){let i=Object.assign(Object.assign({},n),o);if(!e(gl(i,t),null)){return false}}return true}function go(e,t,n,i,r){for(let l of e){if(!bo(vo(l,t,n,i,r),t)){return false}}return true}function vo(e,t,n,i,r){if(e==="businessHours"){return mo(wr(i,t,r))}if(typeof e==="string"){return mo(Hr(n,(t=>t.groupId===e)))}if(typeof e==="object"&&e){return mo(wr(e,t,r))}return[]}function mo(e){let{instances:t}=e;let n=[];for(let e in t){n.push(t[e].range)}return n}function bo(e,t){for(let n of e){if(ar(n,t)){return true}}return false}const yo=/^(visible|hidden)$/;class Ao extends Qi{constructor(){super(...arguments);this.handleEl=e=>{this.el=e;Wi(this.props.elRef,e)}}render(){let{props:e}=this;let{liquid:t,liquidIsAbsolute:n}=e;let i=t&&n;let r=["fc-scroller"];if(t){if(n){r.push("fc-scroller-liquid-absolute")}else{r.push("fc-scroller-liquid")}}return O("div",{ref:this.handleEl,className:r.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(yo.test(this.props.overflowX)){return false}let{el:e}=this;let t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth();let{children:n}=e;for(let e=0;e<n.length;e+=1){let i=n[e];if(i.getBoundingClientRect().width>t){return true}}return false}needsYScrolling(){if(yo.test(this.props.overflowY)){return false}let{el:e}=this;let t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth();let{children:n}=e;for(let e=0;e<n.length;e+=1){let i=n[e];if(i.getBoundingClientRect().height>t){return true}}return false}getXScrollbarWidth(){if(yo.test(this.props.overflowX)){return 0}return this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){if(yo.test(this.props.overflowY)){return 0}return this.el.offsetWidth-this.el.clientWidth}}class wo{constructor(e){this.masterCallback=e;this.currentMap={};this.depths={};this.callbackMap={};this.handleValue=(e,t)=>{let{depths:n,currentMap:i}=this;let r=false;let l=false;if(e!==null){r=t in i;i[t]=e;n[t]=(n[t]||0)+1;l=true}else{n[t]-=1;if(!n[t]){delete i[t];delete this.callbackMap[t];r=true}}if(this.masterCallback){if(r){this.masterCallback(null,String(t))}if(l){this.masterCallback(e,String(t))}}}}createRef(e){let t=this.callbackMap[e];if(!t){t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}}return t}collect(e,t,n){return Di(this.currentMap,e,t,n)}getAll(){return yi(this.currentMap)}}function Eo(e){let t=at(e,".fc-scrollgrid-shrink");let n=0;for(let e of t){n=Math.max(n,Pt(e))}return Math.ceil(n)}function xo(e,t){return e.liquid&&t.liquid}function ko(e,t){return t.maxHeight!=null||xo(e,t)}function So(e,t,n,i){let{expandRows:r}=n;let l=typeof t.content==="function"?t.content(n):O("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,O(i?"thead":"tbody",{role:"presentation"},typeof t.rowContent==="function"?t.rowContent(n):t.rowContent));return l}function Do(e,t){return tn(e,t,Ai)}function Co(e,t){let n=[];for(let i of e){let e=i.span||1;for(let r=0;r<e;r+=1){n.push(O("col",{style:{width:i.width==="shrink"?To(t):i.width||"",minWidth:i.minWidth||""}}))}}return O("colgroup",{},...n)}function To(e){return e==null?4:e}function No(e){for(let t of e){if(t.width==="shrink"){return true}}return false}function Mo(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];if(e){n.push("fc-scrollgrid-liquid")}return n}function Ro(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];if(t&&e.liquid&&e.maxHeight==null){n.push("fc-scrollgrid-section-liquid")}if(e.isSticky){n.push("fc-scrollgrid-section-sticky")}return n}function Oo(e){return O("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function _o(e){let{stickyHeaderDates:t}=e;if(t==null||t==="auto"){t=e.height==="auto"||e.viewHeight==="auto"}return t}function jo(e){let{stickyFooterScrollbar:t}=e;if(t==null||t==="auto"){t=e.height==="auto"||e.viewHeight==="auto"}return t}class Io extends Qi{constructor(){super(...arguments);this.processCols=_n((e=>e),Do);this.renderMicroColGroup=_n(Co);this.scrollerRefs=new wo;this.scrollerElRefs=new wo(this._handleScrollerEl.bind(this));this.state={shrinkWidth:null,forceYScrollbars:false,scrollerClientWidths:{},scrollerClientHeights:{}};this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this;let i=e.sections||[];let r=this.processCols(e.cols);let l=this.renderMicroColGroup(r,t.shrinkWidth);let s=Mo(e.liquid,n);if(e.collapsibleWidth){s.push("fc-scrollgrid-collapsible")}let o=i.length;let a=0;let c;let f=[];let u=[];let d=[];while(a<o&&(c=i[a]).type==="header"){f.push(this.renderSection(c,l,true));a+=1}while(a<o&&(c=i[a]).type==="body"){u.push(this.renderSection(c,l,false));a+=1}while(a<o&&(c=i[a]).type==="footer"){d.push(this.renderSection(c,l,true));a+=1}let h=!Kl();const p={role:"rowgroup"};return O("table",{role:"grid",className:s.join(" "),style:{height:e.height}},Boolean(!h&&f.length)&&O("thead",p,...f),Boolean(!h&&u.length)&&O("tbody",p,...u),Boolean(!h&&d.length)&&O("tfoot",p,...d),h&&O("tbody",p,...f,...u,...d))}renderSection(e,t,n){if("outerContent"in e){return O(I,{key:e.key},e.outerContent)}return O("tr",{key:e.key,role:"presentation",className:Ro(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,i){if("outerContent"in n){return n.outerContent}let{props:r}=this;let{forceYScrollbars:l,scrollerClientWidths:s,scrollerClientHeights:o}=this.state;let a=ko(r,e);let c=xo(r,e);let f=!r.liquid?"visible":l?"scroll":!a?"hidden":"auto";let u=e.key;let d=So(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:!r.collapsibleWidth&&s[u]!==undefined?s[u]:null,clientHeight:o[u]!==undefined?o[u]:null,expandRows:e.expandRows,syncRowHeights:false,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return O(i?"th":"td",{ref:n.elRef,role:"presentation"},O("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},O(Ao,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:f,overflowX:!r.liquid?"visible":"hidden",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:true},d)))}_handleScrollerEl(e,t){let n=Bo(this.props.sections,t);if(n){Wi(n.chunk.scrollerElRef,e)}}componentDidMount(){this.handleSizing();this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return No(this.props.cols)?Eo(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=ks();let{scrollerRefs:t,scrollerElRefs:n}=this;let i=false;let r={};let l={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){i=true;break}}for(let t of this.props.sections){let s=t.key;let o=n.currentMap[s];if(o){let t=o.parentNode;r[s]=Math.floor(t.getBoundingClientRect().width-(i?e.y:0));l[s]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:r,scrollerClientHeights:l}}}Io.addStateEquality({scrollerClientWidths:Ai,scrollerClientHeights:Ai});function Bo(e,t){for(let n of e){if(n.key===t){return n}}return null}class zo extends Qi{constructor(){super(...arguments);this.handleEl=e=>{this.el=e;if(e){Dl(e,this.props.seg)}}}render(){const{props:e,context:t}=this;const{options:n}=t;const{seg:i}=e;const{eventRange:r}=i;const{ui:l}=r;const s={event:new wl(t,r.def,r.instance),view:t.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&Ol(i,t),isStartResizable:!e.disableResizing&&_l(i,t),isEndResizable:!e.disableResizing&&jl(i),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return O(Ji,Object.assign({},e,{elRef:this.handleEl,elClasses:[...zl(s),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){if(this.el&&this.props.seg!==e.seg){Dl(this.el,this.props.seg)}}}class Ho extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let{seg:i}=e;let{ui:r}=i.eventRange;let l=n.eventTimeFormat||e.defaultTimeFormat;let s=Il(i,l,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return O(zo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:r.borderColor,backgroundColor:r.backgroundColor},elAttrs:Pl(i,t),defaultGenerator:Po,timeText:s}),((e,t)=>O(I,null,O(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&O("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&O("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function Po(e){return O("div",{className:"fc-event-main-frame"},e.timeText&&O("div",{className:"fc-event-time"},e.timeText),O("div",{className:"fc-event-title-container"},O("div",{className:"fc-event-title fc-sticky"},e.event.title||O(I,null," "))))}const Go=e=>O(Pi.Consumer,null,(t=>{let{options:n}=t;let i={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return O(Ji,Object.assign({},e,{elTag:e.elTag||"div",renderProps:i,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}));const Uo=ni({day:"numeric"});class Qo extends Qi{constructor(){super(...arguments);this.refineRenderProps=jn(Lo)}render(){let{props:e,context:t}=this;let{options:n}=t;let i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||false,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return O(Ji,Object.assign({},e,{elClasses:[...vs(i,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Nn(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?undefined:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function Vo(e){return Boolean(e.dayCellContent||Yi("dayCellContent",e))}function Lo(e){let{date:t,dateEnv:n,dateProfile:i,isMonthStart:r}=e;let l=gs(t,e.todayRange,null,i);let s=e.showDayNumber?n.format(t,r?e.monthStartFormat:Uo):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},l),{isMonthStart:r,dayNumberText:s}),e.extraRenderProps)}class Wo extends Qi{render(){let{props:e}=this;let{seg:t}=e;return O(zo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:Fo,seg:t,timeText:"",isDragging:false,isResizing:false,isDateSelecting:false,isSelected:false,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:true,disableResizing:true})}}function Fo(e){let{title:t}=e.event;return t&&O("div",{className:"fc-event-title"},e.event.title)}function Yo(e){return O("div",{className:`fc-${e}`})}const $o=e=>O(Pi.Consumer,null,(t=>{let{dateEnv:n,options:i}=t;let{date:r}=e;let l=i.weekNumberFormat||e.defaultFormat;let s=n.computeWeekNumber(r);let o=n.format(r,l);let a={num:s,text:o,date:r};return O(Ji,Object.assign({},e,{renderProps:a,generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:qo,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount}))}));function qo(e){return e.text}const Zo=10;class Jo extends Qi{constructor(){super(...arguments);this.state={titleId:pt()};this.handleRootEl=e=>{this.rootEl=e;if(this.props.elRef){Wi(this.props.elRef,e)}};this.handleDocumentMouseDown=e=>{const t=dt(e);if(!this.rootEl.contains(t)){this.handleCloseClick()}};this.handleDocumentKeyDown=e=>{if(e.key==="Escape"){this.handleCloseClick()}};this.handleCloseClick=()=>{let{onClose:e}=this.props;if(e){e()}}}render(){let{theme:e,options:t}=this.context;let{props:n,state:i}=this;let r=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return Ie(O("div",Object.assign({},n.extraAttrs,{id:n.id,className:r.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),O("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},O("span",{className:"fc-popover-title",id:i.titleId},n.title),O("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),O("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown);document.addEventListener("keydown",this.handleDocumentKeyDown);this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown);document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context;let{alignmentEl:t,alignGridTop:n}=this.props;let{rootEl:i}=this;let r=Ms(t);if(r){let l=i.getBoundingClientRect();let s=n?st(t,".fc-scrollgrid").getBoundingClientRect().top:r.top;let o=e?r.right-l.width:r.left;s=Math.max(s,Zo);o=Math.min(o,document.documentElement.clientWidth-Zo-l.width);o=Math.max(o,Zo);let a=i.offsetParent.getBoundingClientRect();ft(i,{top:s-a.top,left:o-a.left})}}}class Xo extends zs{constructor(){super(...arguments);this.handleRootEl=e=>{this.rootEl=e;if(e){this.context.registerInteractiveComponent(this,{el:e,useEventCenter:false})}else{this.context.unregisterInteractiveComponent(this)}}}render(){let{options:e,dateEnv:t}=this.context;let{props:n}=this;let{startDate:i,todayRange:r,dateProfile:l}=n;let s=t.format(i,e.dayPopoverFormat);return O(Qo,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:r},((t,i,r)=>O(Jo,{elRef:r.ref,id:n.id,title:s,extraClassNames:["fc-more-popover"].concat(r.className||[]),extraAttrs:r,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Vo(e)&&O(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,i){let{rootEl:r,props:l}=this;if(e>=0&&e<n&&t>=0&&t<i){return{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:r,rect:{left:0,top:0,right:n,bottom:i},layer:1}}return null}}class Ko extends Qi{constructor(){super(...arguments);this.state={isPopoverOpen:false,popoverId:pt()};this.handleLinkEl=e=>{this.linkEl=e;if(this.props.elRef){Wi(this.props.elRef,e)}};this.handleClick=e=>{let{props:t,context:n}=this;let{moreLinkClick:i}=n.options;let r=ta(t).start;function l(e){let{def:t,instance:i,range:r}=e.eventRange;return{event:new wl(n,t,i),start:n.dateEnv.toDate(r.start),end:n.dateEnv.toDate(r.end),isStart:e.isStart,isEnd:e.isEnd}}if(typeof i==="function"){i=i({date:r,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(l),hiddenSegs:t.hiddenSegs.map(l),jsEvent:e,view:n.viewApi})}if(!i||i==="popover"){this.setState({isPopoverOpen:true})}else if(typeof i==="string"){n.calendarApi.zoomTo(r,i)}};this.handlePopoverClose=()=>{this.setState({isPopoverOpen:false})}}render(){let{props:e,state:t}=this;return O(Pi.Consumer,null,(n=>{let{viewApi:i,options:r,calendarApi:l}=n;let{moreLinkText:s}=r;let{moreCnt:o}=e;let a=ta(e);let c=typeof s==="function"?s.call(l,o):`+${o} ${s}`;let f=Bt(r.moreLinkHint,[o],c);let u={num:o,shortText:`+${o}`,text:c,view:i};return O(I,null,Boolean(e.moreCnt)&&O(Ji,{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),wt(this.handleClick)),{title:f,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:r.moreLinkContent,defaultGenerator:e.defaultGenerator||ea,classNameGenerator:r.moreLinkClassNames,didMount:r.moreLinkDidMount,willUnmount:r.moreLinkWillUnmount},e.children),t.isPopoverOpen&&O(Xo,{id:t.popoverId,startDate:a.start,endDate:a.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(){if(this.linkEl){this.parentEl=st(this.linkEl,".fc-view-harness")}}}function ea(e){return e.text}function ta(e){if(e.allDayDate){return{start:e.allDayDate,end:ln(e.allDayDate,1)}}let{hiddenSegs:t}=e;return{start:na(t),end:ra(t)}}function na(e){return e.reduce(ia).eventRange.range.start}function ia(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function ra(e){return e.reduce(la).eventRange.range.end}function la(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}const sa=[];const oa={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"};const aa=Object.assign(Object.assign({},oa),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return t==="day"?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}});function ca(e){let t=e.length>0?e[0].code:"en";let n=sa.concat(e);let i={en:aa};for(let e of n){i[e.code]=e}return{map:i,defaultCode:t}}function fa(e,t){if(typeof e==="object"&&!Array.isArray(e)){return ha(e.code,[e.code],e)}return ua(e,t)}function ua(e,t){let n=[].concat(e||[]);let i=da(n,t)||aa;return ha(e,n,i)}function da(e,t){for(let n=0;n<e.length;n+=1){let i=e[n].toLocaleLowerCase().split("-");for(let e=i.length;e>0;e-=1){let n=i.slice(0,e).join("-");if(t[n]){return t[n]}}}return null}function ha(e,t,n){let i=gi([oa,n],["buttonText"]);delete i.code;let{week:r}=i;delete i.week;return{codeArg:e,codes:t,week:r,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function pa(e){return{id:kt(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):undefined,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function ga(e,t){let n={};let i={premiumReleaseDate:undefined,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 r(e){for(let t of e){const e=t.name;const l=n[e];if(l===undefined){n[e]=t.id;r(t.deps);i=ma(i,t)}else if(l!==t.id){console.warn(`Duplicate plugin '${e}'`)}}}if(e){r(e)}r(t);return i}function va(){let e=[];let t=[];let n;return(i,r)=>{if(!n||!tn(i,e)||!tn(r,t)){n=ga(i,r)}e=i;t=r;return n}}function ma(e,t){return{premiumReleaseDate:ba(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function ba(e,t){if(e===undefined){return t}if(t===undefined){return e}return new Date(Math.max(e.valueOf(),t.valueOf()))}class ya extends ji{}ya.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ya.prototype.baseIconClass="fc-icon";ya.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"};ya.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ya.prototype.iconOverrideOption="buttonIcons";ya.prototype.iconOverrideCustomButtonOption="icon";ya.prototype.iconOverridePrefix="fc-icon-";function Aa(e,t){let n={};let i;for(i in e){wa(i,n,e,t)}for(i in t){wa(i,n,e,t)}return n}function wa(e,t,n,i){if(t[e]){return t[e]}let r=Ea(e,t,n,i);if(r){t[e]=r}return r}function Ea(e,t,n,i){let r=n[e];let l=i[e];let s=e=>r&&r[e]!==null?r[e]:l&&l[e]!==null?l[e]:null;let o=s("component");let a=s("superType");let c=null;if(a){if(a===e){throw new Error("Can't have a custom view type that references itself")}c=wa(a,t,n,i)}if(!o&&c){o=c.component}if(!o){return null}return{type:e,component:o,defaults:Object.assign(Object.assign({},c?c.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),l?l.rawOptions:{})}}function xa(e){return mi(e,ka)}function ka(e){let t=typeof e==="function"?{component:e}:e;let{component:n}=t;if(t.content){n=Sa(t)}else if(n&&!(n.prototype instanceof Qi)){n=Sa(Object.assign(Object.assign({},t),{content:n}))}return{superType:t.type,component:n,rawOptions:t}}function Sa(e){return t=>O(Pi.Consumer,null,(n=>O(Ji,{elTag:"div",elClasses:tr(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:undefined,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function Da(e,t,n,i){let r=xa(e);let l=xa(t.views);let s=Aa(r,l);return mi(s,(e=>Ca(e,l,t,n,i)))}function Ca(e,t,n,i,r){let l=e.overrides.duration||e.defaults.duration||i.duration||n.duration;let s=null;let o="";let a="";let c={};if(l){s=Na(l);if(s){let e=en(s);o=e.unit;if(e.value===1){a=o;c=t[o]?t[o].rawOptions:{}}}}let f=t=>{let n=t.buttonText||{};let i=e.defaults.buttonTextKey;if(i!=null&&n[i]!=null){return n[i]}if(n[e.type]!=null){return n[e.type]}if(n[a]!=null){return n[a]}return null};let u=t=>{let n=t.buttonHints||{};let i=e.defaults.buttonTextKey;if(i!=null&&n[i]!=null){return n[i]}if(n[e.type]!=null){return n[e.type]}if(n[a]!=null){return n[a]}return null};return{type:e.type,component:e.component,duration:s,durationUnit:o,singleUnit:a,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:f(i)||f(n)||e.overrides.buttonText,buttonTextDefault:f(r)||e.defaults.buttonText||f(ri)||e.type,buttonTitleOverride:u(i)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(r)||e.defaults.buttonHint||u(ri)}}let Ta={};function Na(e){let t=JSON.stringify(e);let n=Ta[t];if(n===undefined){n=Qt(e);Ta[t]=n}return n}function Ma(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function Ra(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function Oa(e,t,n,i){let r;switch(t.type){case"CHANGE_VIEW_TYPE":return i.build(t.dateMarker||n);case"CHANGE_DATE":return i.build(t.dateMarker);case"PREV":r=i.buildPrev(e,n);if(r.isValid){return r}break;case"NEXT":r=i.buildNext(e,n);if(r.isValid){return r}break}return e}function _a(e,t,n){let i=t?t.activeRange:null;return za({},Wa(e,n),i,n)}function ja(e,t,n,i){let r=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return za(e,t.sources,r,i);case"REMOVE_EVENT_SOURCE":return Ha(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(n){return Pa(e,r,i)}return e;case"FETCH_EVENT_SOURCES":return Ua(e,t.sourceIds?bi(t.sourceIds):La(e,i),r,t.isRefetch||false,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Va(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Ia(e,t,n){let i=t?t.activeRange:null;return Ua(e,La(e,n),i,true,n)}function Ba(e){for(let t in e){if(e[t].isFetching){return true}}return false}function za(e,t,n,i){let r={};for(let e of t){r[e.sourceId]=e}if(n){r=Pa(r,n,i)}return Object.assign(Object.assign({},e),r)}function Ha(e,t){return vi(e,(e=>e.sourceId!==t))}function Pa(e,t,n){return Ua(e,vi(e,(e=>Ga(e,t,n))),t,false,n)}function Ga(e,t,n){if(!Fa(e,n)){return!e.latestFetchId}return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}function Ua(e,t,n,i,r){let l={};for(let s in e){let o=e[s];if(t[s]){l[s]=Qa(o,n,i,r)}else{l[s]=o}}return l}function Qa(e,t,n,i){let{options:r,calendarApi:l}=i;let s=i.pluginHooks.eventSourceDefs[e.sourceDefId];let o=kt();s.fetch({eventSource:e,range:t,isRefetch:n,context:i},(n=>{let{rawEvents:s}=n;if(r.eventSourceSuccess){s=r.eventSourceSuccess.call(l,s,n.response)||s}if(e.success){s=e.success.call(l,s,n.response)||s}i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:o,fetchRange:t,rawEvents:s})}),(n=>{let s=false;if(r.eventSourceFailure){r.eventSourceFailure.call(l,n);s=true}if(e.failure){e.failure(n);s=true}if(!s){console.warn(n.message,n)}i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:o,fetchRange:t,error:n})}));return Object.assign(Object.assign({},e),{isFetching:true,latestFetchId:o})}function Va(e,t,n,i){let r=e[t];if(r&&n===r.latestFetchId){return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},r),{isFetching:false,fetchRange:i})})}return e}function La(e,t){return vi(e,(e=>Fa(e,t)))}function Wa(e,t){let n=qr(t);let i=[].concat(e.eventSources||[]);let r=[];if(e.initialEvents){i.unshift(e.initialEvents)}if(e.events){i.unshift(e.events)}for(let e of i){let i=$r(e,t,n);if(i){r.push(i)}}return r}function Fa(e,t){let n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function Ya(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function $a(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function qa(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Za(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Ja(e,t,n,i,r){let l=e.headerToolbar?Xa(e.headerToolbar,e,t,n,i,r):null;let s=e.footerToolbar?Xa(e.footerToolbar,e,t,n,i,r):null;return{header:l,footer:s}}function Xa(e,t,n,i,r,l){let s={};let o=[];let a=false;for(let c in e){let f=e[c];let u=Ka(f,t,n,i,r,l);s[c]=u.widgets;o.push(...u.viewsWithButtons);a=a||u.hasTitle}return{sectionWidgets:s,viewsWithButtons:o,hasTitle:a}}function Ka(e,t,n,i,r,l){let s=t.direction==="rtl";let o=t.customButtons||{};let a=n.buttonText||{};let c=t.buttonText||{};let f=n.buttonHints||{};let u=t.buttonHints||{};let d=e?e.split(" "):[];let h=[];let p=false;let g=d.map((e=>e.split(",").map((e=>{if(e==="title"){p=true;return{buttonName:e}}let n;let d;let g;let v;let m;let b;if(n=o[e]){g=e=>{if(n.click){n.click.call(e.target,e,e.target)}};(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(e,s))||(m=n.text);b=n.hint||n.text}else if(d=r[e]){h.push(e);g=()=>{l.changeView(e)};(m=d.buttonTextOverride)||(v=i.getIconClass(e,s))||(m=d.buttonTextDefault);let n=d.buttonTextOverride||d.buttonTextDefault;b=Bt(d.buttonTitleOverride||d.buttonTitleDefault||t.viewHint,[n,e],n)}else if(l[e]){g=()=>{l[e]()};(m=a[e])||(v=i.getIconClass(e,s))||(m=c[e]);if(e==="prevYear"||e==="nextYear"){let t=e==="prevYear"?"prev":"next";b=Bt(f[t]||u[t],[c.year||"year","year"],c[e])}else{b=t=>Bt(f[e]||u[e],[c[t]||t,t],c[e])}}return{buttonName:e,buttonClick:g,buttonIcon:v,buttonText:m,buttonHint:b}}))));return{widgets:g,viewsWithButtons:h,hasTitle:p}}class ec{constructor(e,t,n){this.type=e;this.getCurrentData=t;this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let tc={ignoreRange:true,parseMeta(e){if(Array.isArray(e.events)){return e.events}return null},fetch(e,t){t({rawEvents:e.eventSource.meta})}};const nc=pa({name:"array-event-source",eventSourceDefs:[tc]});let ic={parseMeta(e){if(typeof e.events==="function"){return e.events}return null},fetch(e,t,n){const{dateEnv:i}=e.context;const r=e.eventSource.meta;ql(r.bind(null,Fl(e.range,i)),(e=>t({rawEvents:e})),n)}};const rc=pa({name:"func-event-source",eventSourceDefs:[ic]});const lc={method:String,extraParams:hi,startParam:String,endParam:String,timeZoneParam:String};let sc={parseMeta(e){if(e.url&&(e.format==="json"||!e.format)){return{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}}return null},fetch(e,t,n){const{meta:i}=e.eventSource;const r=ac(i,e.range,e.context);Jl(i.method,i.url,r).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const oc=pa({name:"json-event-source",eventSourceRefiners:lc,eventSourceDefs:[sc]});function ac(e,t,n){let{dateEnv:i,options:r}=n;let l;let s;let o;let a;let c={};l=e.startParam;if(l==null){l=r.startParam}s=e.endParam;if(s==null){s=r.endParam}o=e.timeZoneParam;if(o==null){o=r.timeZoneParam}if(typeof e.extraParams==="function"){a=e.extraParams()}else{a=e.extraParams||{}}Object.assign(c,a);c[l]=i.formatIso(t.start);c[s]=i.formatIso(t.end);if(i.timeZone!=="local"){c[o]=i.timeZone}return c}const cc={daysOfWeek:hi,startTime:Qt,endTime:Qt,duration:Qt,startRecur:hi,endRecur:hi};let fc={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};let i;if(e.duration){i=e.duration}if(!i&&e.startTime&&e.endTime){i=Yt(e.endTime,e.startTime)}return{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:n}}return null},expand(e,t,n){let i=lr(t,{start:e.startRecur,end:e.endRecur});if(i){return dc(e.daysOfWeek,e.startTime,i,n)}return[]}};const uc=pa({name:"simple-recurring-event",recurringTypes:[fc],eventRefiners:cc});function dc(e,t,n,i){let r=e?bi(e):null;let l=gn(n.start);let s=n.end;let o=[];while(l<s){let e;if(!r||r[l.getUTCDay()]){if(t){e=i.add(l,t)}else{e=l}o.push(e)}l=ln(l,1)}return o}const hc=pa({name:"change-handler",optionChangeHandlers:{events(e,t){pc([e],t)},eventSources:pc}});function pc(e,t){let n=yi(t.getCurrentData().eventSources);if(n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])){t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});return}let i=[];for(let t of e){let e=false;for(let i=0;i<n.length;i+=1){if(n[i]._raw===t){n.splice(i,1);e=true;break}}if(!e){i.push(t)}}for(let e of n){t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId})}for(let e of i){t.calendarApi.addEventSource(e)}}function gc(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Fl(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function vc(e,t){let{emitter:n}=t;if(n.hasHandlers("eventsSet")){n.trigger("eventsSet",xl(e,t))}}const mc=[nc,rc,oc,uc,hc,pa({name:"misc",isLoadingFuncs:[e=>Ba(e.eventSources)],propSetHandlers:{dateProfile:gc,eventStore:vc}})];class bc{constructor(e,t){this.runTaskOption=e;this.drainedOption=t;this.queue=[];this.delayedRunner=new rt(this.drain.bind(this))}request(e,t){this.queue.push(e);this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;while(e.length){let t=[];let n;while(n=e.shift()){this.runTask(n);t.push(n)}this.drained(t)}}runTask(e){if(this.runTaskOption){this.runTaskOption(e)}}drained(e){if(this.drainedOption){this.drainedOption(e)}}}function yc(e,t,n){let i;if(/^(year|month)$/.test(e.currentRangeUnit)){i=e.currentRange}else{i=e.activeRange}return n.formatRange(i.start,i.end,ni(t.titleFormat||Ac(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function Ac(e){let{currentRangeUnit:t}=e;if(t==="year"){return{year:"numeric"}}if(t==="month"){return{year:"numeric",month:"long"}}let n=pn(e.currentRange.start,e.currentRange.end);if(n!==null&&n>1){return{year:"numeric",month:"short",day:"numeric"}}return{year:"numeric",month:"long",day:"numeric"}}class wc{constructor(e){this.computeCurrentViewData=_n(this._computeCurrentViewData);this.organizeRawLocales=_n(ca);this.buildLocale=_n(fa);this.buildPluginHooks=va();this.buildDateEnv=_n(Ec);this.buildTheme=_n(xc);this.parseToolbars=_n(Ja);this.buildViewSpecs=_n(Da);this.buildDateProfileGenerator=jn(kc);this.buildViewApi=_n(Sc);this.buildViewUiProps=jn(Tc);this.buildEventUiBySource=_n(Dc,Ai);this.buildEventUiBases=_n(Cc);this.parseContextBusinessHours=jn(Mc);this.buildTitle=_n(yc);this.emitter=new ol;this.actionRunner=new bc(this._handleAction.bind(this),this.updateData.bind(this));this.currentCalendarOptionsInput={};this.currentCalendarOptionsRefined={};this.currentViewOptionsInput={};this.currentViewOptionsRefined={};this.currentCalendarOptionsRefiners={};this.optionsForRefining=[];this.optionsForHandling=[];this.getCurrentData=()=>this.data;this.dispatch=e=>{this.actionRunner.request(e)};this.props=e;this.actionRunner.pause();let t={};let n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi);let i=n.calendarOptions.initialView||n.pluginHooks.initialView;let r=this.computeCurrentViewData(i,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this;this.emitter.setThisContext(e.calendarApi);this.emitter.setOptions(r.options);let l=vr(n.calendarOptions,n.dateEnv);let s=r.dateProfileGenerator.build(l);if(!cr(s.activeRange,l)){l=s.currentRange.start}let o={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit){e(o)}let a=_a(n.calendarOptions,s,o);let c={dynamicOptionOverrides:t,currentViewType:i,currentDate:l,dateProfile:s,businessHours:this.parseContextBusinessHours(o),eventSources:a,eventUiBases:{},eventStore:Br(),renderableEventStore:Br(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig};let f=Object.assign(Object.assign({},o),c);for(let e of n.pluginHooks.reducers){Object.assign(c,e(null,null,f))}if(Nc(c,o)){this.emitter.trigger("loading",true)}this.state=c;this.updateData();this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;if(t===undefined){n.optionOverrides=e}else{n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e);this.optionsForRefining.push(...t)}if(t===undefined||t.length){this.actionRunner.request({type:"NOTHING"})}}_handleAction(e){let{props:t,state:n,emitter:i}=this;let r=Ra(n.dynamicOptionOverrides,e);let l=this.computeOptionsData(t.optionOverrides,r,t.calendarApi);let s=Ma(n.currentViewType,e);let o=this.computeCurrentViewData(s,l,t.optionOverrides,r);t.calendarApi.currentDataManager=this;i.setThisContext(t.calendarApi);i.setOptions(o.options);let a={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData};let{currentDate:c,dateProfile:f}=n;if(this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator){f=o.dateProfileGenerator.build(c)}c=gr(c,e);f=Oa(f,e,c,o.dateProfileGenerator);if(e.type==="PREV"||e.type==="NEXT"||!cr(f.currentRange,c)){c=f.currentRange.start}let u=ja(n.eventSources,e,f,a);let d=Jr(n.eventStore,e,u,f,a);let h=Ba(u);let p=h&&!o.options.progressiveEventRendering?n.renderableEventStore||d:d;let{eventUiSingleBase:g,selectionConfig:v}=this.buildViewUiProps(a);let m=this.buildEventUiBySource(u);let b=this.buildEventUiBases(p.defs,g,m);let y={dynamicOptionOverrides:r,currentViewType:s,currentDate:c,dateProfile:f,eventSources:u,eventStore:d,renderableEventStore:p,selectionConfig:v,eventUiBases:b,businessHours:this.parseContextBusinessHours(a),dateSelection:Ya(n.dateSelection,e),eventSelection:$a(n.eventSelection,e),eventDrag:qa(n.eventDrag,e),eventResize:Za(n.eventResize,e)};let A=Object.assign(Object.assign({},a),y);for(let t of l.pluginHooks.reducers){Object.assign(y,t(n,e,A))}let w=Nc(n,a);let E=Nc(y,a);if(!w&&E){i.trigger("loading",true)}else if(w&&!E){i.trigger("loading",false)}this.state=y;if(t.onAction){t.onAction(e)}}updateData(){let{props:e,state:t}=this;let n=this.data;let i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi);let r=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides);let l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,r.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),r),t);let s=i.pluginHooks.optionChangeHandlers;let o=n&&n.calendarOptions;let a=i.calendarOptions;if(o&&o!==a){if(o.timeZone!==a.timeZone){t.eventSources=l.eventSources=Ia(l.eventSources,t.dateProfile,l);t.eventStore=l.eventStore=il(l.eventStore,n.dateEnv,l.dateEnv);t.renderableEventStore=l.renderableEventStore=il(l.renderableEventStore,n.dateEnv,l.dateEnv)}for(let e in s){if(this.optionsForHandling.indexOf(e)!==-1||o[e]!==a[e]){s[e](a[e],l)}}}this.optionsForHandling=[];if(e.onData){e.onData(l)}}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides){return this.stableCalendarOptionsData}let{refinedOptions:i,pluginHooks:r,localeDefaults:l,availableLocaleData:s,extra:o}=this.processRawCalendarOptions(e,t);Rc(o);let a=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,r,s,i.defaultRangeSeparator);let c=this.buildViewSpecs(r.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l);let f=this.buildTheme(i,r);let u=this.parseToolbars(i,this.stableOptionOverrides,f,c,n);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:r,dateEnv:a,viewSpecs:c,theme:f,toolbarConfig:u,localeDefaults:l,availableRawLocales:s.map}}processRawCalendarOptions(e,t){let{locales:n,locale:i}=ui([ri,e,t]);let r=this.organizeRawLocales(n);let l=r.map;let s=this.buildLocale(i||r.defaultCode,l).options;let o=this.buildPluginHooks(e.plugins||[],mc);let a=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ii),li),si),o.listenerRefiners),o.optionRefiners);let c={};let f=ui([ri,s,e,t]);let u={};let d=this.currentCalendarOptionsInput;let h=this.currentCalendarOptionsRefined;let p=false;for(let e in f){if(this.optionsForRefining.indexOf(e)===-1&&(f[e]===d[e]||oi[e]&&e in d&&oi[e](d[e],f[e]))){u[e]=h[e]}else if(a[e]){u[e]=a[e](f[e]);p=true}else{c[e]=d[e]}}if(p){this.currentCalendarOptionsInput=f;this.currentCalendarOptionsRefined=u;this.stableOptionOverrides=e;this.stableDynamicOptionOverrides=t}this.optionsForHandling.push(...this.optionsForRefining);this.optionsForRefining=[];return{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:r,localeDefaults:s,extra:c}}_computeCurrentViewData(e,t,n,i){let r=t.viewSpecs[e];if(!r){throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`)}let{refinedOptions:l,extra:s}=this.processRawViewOptions(r,t.pluginHooks,t.localeDefaults,n,i);Rc(s);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:r.optionDefaults.dateProfileGeneratorClass,duration:r.duration,durationUnit:r.durationUnit,usesMinMaxTime:r.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount});let a=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:r,options:l,dateProfileGenerator:o,viewApi:a}}processRawViewOptions(e,t,n,i,r){let l=ui([ri,e.optionDefaults,n,i,e.optionOverrides,r]);let s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ii),li),si),fi),t.listenerRefiners),t.optionRefiners);let o={};let a=this.currentViewOptionsInput;let c=this.currentViewOptionsRefined;let f=false;let u={};for(let e in l){if(l[e]===a[e]||oi[e]&&oi[e](l[e],a[e])){o[e]=c[e]}else{if(l[e]===this.currentCalendarOptionsInput[e]||oi[e]&&oi[e](l[e],this.currentCalendarOptionsInput[e])){if(e in this.currentCalendarOptionsRefined){o[e]=this.currentCalendarOptionsRefined[e]}}else if(s[e]){o[e]=s[e](l[e])}else{u[e]=l[e]}f=true}}if(f){this.currentViewOptionsInput=l;this.currentViewOptionsRefined=o}return{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function Ec(e,t,n,i,r,l,s,o){let a=fa(t||s.defaultCode,s.map);return new _i({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:l.namedTimeZonedImpl,locale:a,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:l.cmdFormatter,defaultSeparator:o})}function xc(e,t){let n=t.themeClasses[e.themeSystem]||ya;return new n(e)}function kc(e){let t=e.dateProfileGeneratorClass||br;return new t(e)}function Sc(e,t,n){return new ec(e,t,n)}function Dc(e){return mi(e,(e=>e.ui))}function Cc(e,t,n){let i={"":t};for(let t in e){let r=e[t];if(r.sourceId&&n[r.sourceId]){i[t]=n[r.sourceId]}}return i}function Tc(e){let{options:t}=e;return{eventUiSingleBase:Lr({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap==="boolean"?t.eventOverlap:undefined,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Lr({constraint:t.selectConstraint,overlap:typeof t.selectOverlap==="boolean"?t.selectOverlap:undefined,allow:t.selectAllow},e)}}function Nc(e,t){for(let n of t.pluginHooks.isLoadingFuncs){if(n(e)){return true}}return false}function Mc(e){return ul(e.options.businessHours,e)}function Rc(e,t){for(let n in e){console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}}class Oc extends Qi{render(){let e=this.props.widgetGroups.map((e=>this.renderWidgetGroup(e)));return O("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this;let{theme:n}=this.context;let i=[];let r=true;for(let l of e){let{buttonName:e,buttonClick:s,buttonText:o,buttonIcon:a,buttonHint:c}=l;if(e==="title"){r=false;i.push(O("h2",{className:"fc-toolbar-title",id:t.titleId},t.title))}else{let r=e===t.activeButton;let l=!t.isTodayEnabled&&e==="today"||!t.isPrevEnabled&&e==="prev"||!t.isNextEnabled&&e==="next";let f=[`fc-${e}-button`,n.getClass("button")];if(r){f.push(n.getClass("buttonActive"))}i.push(O("button",{type:"button",title:typeof c==="function"?c(t.navUnit):c,disabled:l,"aria-pressed":r,className:f.join(" "),onClick:s},o||(a?O("span",{className:a,role:"img"}):"")))}}if(i.length>1){let e=r&&n.getClass("buttonGroup")||"";return O("div",{className:e},...i)}return i[0]}}class _c extends Qi{render(){let{model:e,extraClassName:t}=this.props;let n=false;let i;let r;let l=e.sectionWidgets;let s=l.center;if(l.left){n=true;i=l.left}else{i=l.start}if(l.right){n=true;r=l.right}else{r=l.end}let o=[t||"","fc-toolbar",n?"fc-toolbar-ltr":""];return O("div",{className:o.join(" ")},this.renderSection("start",i||[]),this.renderSection("center",s||[]),this.renderSection("end",r||[]))}renderSection(e,t){let{props:n}=this;return O(Oc,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class jc extends Qi{constructor(){super(...arguments);this.state={availableWidth:null};this.handleEl=e=>{this.el=e;Wi(this.props.elRef,e);this.updateAvailableWidth()};this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this;let{aspectRatio:n}=e;let i=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"];let r="";let l="";if(n){if(t.availableWidth!==null){r=t.availableWidth/n}else{l=`${1/n*100}%`}}else{r=e.height||""}return O("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:r,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){if(this.el&&this.props.aspectRatio){this.setState({availableWidth:this.el.offsetWidth})}}}class Ic extends ns{constructor(e){super(e);this.handleSegClick=(e,t)=>{let{component:n}=this;let{context:i}=n;let r=Cl(t);if(r&&n.isValidSegDownEl(e.target)){let l=st(e.target,".fc-event-forced-url");let s=l?l.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new wl(n.context,r.eventRange.def,r.eventRange.instance),jsEvent:e,view:i.viewApi});if(s&&!e.defaultPrevented){window.location.href=s}}};this.destroy=mt(e.el,"click",".fc-event",this.handleSegClick)}}class Bc extends ns{constructor(e){super(e);this.handleEventElRemove=e=>{if(e===this.currentSegEl){this.handleSegLeave(null,this.currentSegEl)}};this.handleSegEnter=(e,t)=>{if(Cl(t)){this.currentSegEl=t;this.triggerEvent("eventMouseEnter",e,t)}};this.handleSegLeave=(e,t)=>{if(this.currentSegEl){this.currentSegEl=null;this.triggerEvent("eventMouseLeave",e,t)}};this.removeHoverListeners=bt(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:i}=this;let{context:r}=i;let l=Cl(n);if(!t||i.isValidSegDownEl(t.target)){r.emitter.trigger(e,{el:n,event:new wl(r,l.eventRange.def,l.eventRange.instance),jsEvent:t,view:r.viewApi})}}}class zc extends Ui{constructor(){super(...arguments);this.buildViewContext=_n(Gi);this.buildViewPropTransformers=_n(Pc);this.buildToolbarProps=_n(Hc);this.headerRef=j();this.footerRef=j();this.interactionsStore={};this.state={viewLabelId:pt()};this.registerInteractiveComponent=(e,t)=>{let n=is(e,t);let i=[Ic,Bc];let r=i.concat(this.props.pluginHooks.componentInteractions);let l=r.map((e=>new e(n)));this.interactionsStore[e.uid]=l;ls[e.uid]=n};this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t){e.destroy()}delete this.interactionsStore[e.uid]}delete ls[e.uid]};this.resizeRunner=new rt((()=>{this.props.emitter.trigger("_resize",true);this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}));this.handleWindowResize=e=>{let{options:t}=this.props;if(t.handleWindowResize&&e.target===window){this.resizeRunner.request(t.windowResizeDelay)}}}render(){let{props:e}=this;let{toolbarConfig:t,options:n}=e;let i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,mr(e.options.now,e.dateEnv),e.viewTitle);let r=false;let l="";let s;if(e.isHeightAuto||e.forPrint){l=""}else if(n.height!=null){r=true}else if(n.contentHeight!=null){l=n.contentHeight}else{s=Math.max(n.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);let a=t.header&&t.header.hasTitle?this.state.viewLabelId:undefined;return O(Pi.Provider,{value:o},t.header&&O(_c,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:t.header,titleId:a},i)),O(jc,{liquid:r,height:l,aspectRatio:s,labeledById:a},this.renderView(e),this.buildAppendContent()),t.footer&&O(_c,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:t.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e)));window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t){t[n](e[n],e)}}componentDidUpdate(e){let{props:t}=this;let{propSetHandlers:n}=t.pluginHooks;for(let i in n){if(t[i]!==e[i]){n[i](t[i],t)}}}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize);this.resizeRunner.clear();for(let e of this.calendarInteractions){e.destroy()}this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;let t=e.pluginHooks.viewContainerAppends.map((t=>t(e)));return O(I,{},...t)}renderView(e){let{pluginHooks:t}=e;let{viewSpec:n}=e;let 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};let r=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of r){Object.assign(i,t.transform(i,e))}let l=n.component;return O(l,Object.assign({},i))}}function Hc(e,t,n,i,r,l){let s=n.build(r,undefined,false);let o=n.buildPrev(t,i,false);let a=n.buildNext(t,i,false);return{title:l,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!cr(t.currentRange,r),isPrevEnabled:o.isValid,isNextEnabled:a.isValid}}function Pc(e){return e.map((e=>new e))}class Gc extends ss{constructor(e,t={}){super();this.isRendering=false;this.isRendered=false;this.currentClassNames=[];this.customContentRenderId=0;this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}};this.handleData=e=>{this.currentData=e;this.renderRunner.request(e.calendarOptions.rerenderDelay)};this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=true;let{currentData:e}=this;Ii((()=>{re(O(ts,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,i,r)=>{this.setClassNames(t);this.setHeight(n);return O(Zi.Provider,{value:this.customContentRenderId},O(zc,Object.assign({isHeightAuto:i,forPrint:r},e)))})),this.el)}))}else if(this.isRendered){this.isRendered=false;re(null,this.el);this.setClassNames([]);this.setHeight("")}};Ze(e);this.el=e;this.renderRunner=new rt(this.handleRenderRequest);new wc({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;if(!e){this.isRendering=true}else{this.customContentRenderId+=1}this.renderRunner.request();if(e){this.updateSize()}}destroy(){if(this.isRendering){this.isRendering=false;this.renderRunner.request()}}updateSize(){Ii((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering");e();this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",true)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!tn(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames){t.remove(e)}for(let n of e){t.add(n)}this.currentClassNames=e}}setHeight(e){ut(this.el,"height",e)}}class Uc extends zs{constructor(){super(...arguments);this.headerElRef=j()}renderSimpleLayout(e,t){let{props:n,context:i}=this;let r=[];let l=_o(i.options);if(e){r.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}})}r.push({type:"body",key:"body",liquid:true,chunk:{content:t}});return O(er,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},O(Io,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:r}))}renderHScrollLayout(e,t,n,i){let r=this.context.pluginHooks.scrollGridImpl;if(!r){throw new Error("No ScrollGrid implementation")}let{props:l,context:s}=this;let o=!l.forPrint&&_o(s.options);let a=!l.forPrint&&jo(s.options);let c=[];if(e){c.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]})}c.push({type:"body",key:"body",liquid:true,chunks:[{key:"main",content:t}]});if(a){c.push({type:"footer",key:"footer",isSticky:true,chunks:[{key:"main",content:Oo}]})}return O(er,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},O(r,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:c}))}}function Qc(e,t){let n=[];for(let e=0;e<t;e+=1){n[e]=[]}for(let t of e){n[t.row].push(t)}return n}function Vc(e,t){let n=[];for(let e=0;e<t;e+=1){n[e]=[]}for(let t of e){n[t.firstCol].push(t)}return n}function Lc(e,t){let n=[];if(!e){for(let e=0;e<t;e+=1){n[e]=null}}else{for(let i=0;i<t;i+=1){n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]}}for(let t of e.segs){n[t.row].segs.push(t)}}return n}const Wc=ni({hour:"numeric",minute:"2-digit",omitZeroMinute:true,meridiem:"narrow"});function Fc(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class Yc extends Qi{render(){let{props:e}=this;return O(Ho,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Wc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class $c extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let{seg:i}=e;let r=n.eventTimeFormat||Wc;let l=Il(i,r,t,true,e.defaultDisplayEventEnd);return O(zo,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Pl(e.seg,t),defaultGenerator:qc,timeText:l,isResizing:false,isDateSelecting:false}))}}function qc(e){return O(I,null,O("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&O("div",{className:"fc-event-time"},e.timeText),O("div",{className:"fc-event-title"},e.event.title||O(I,null," ")))}class Zc extends Qi{constructor(){super(...arguments);this.compileSegs=_n(Jc)}render(){let{props:e}=this;let{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return O(Ko,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return O(I,null,t.map((t=>{let i=t.eventRange.instance.instanceId;return O("div",{className:"fc-daygrid-event-harness",key:i,style:{visibility:n[i]?"hidden":""}},Fc(t)?O($c,Object.assign({seg:t,isDragging:false,isSelected:i===e.eventSelection,defaultDisplayEventEnd:false},Bl(t,e.todayRange))):O(Yc,Object.assign({seg:t,isDragging:false,isResizing:false,isDateSelecting:false,isSelected:i===e.eventSelection,defaultDisplayEventEnd:false},Bl(t,e.todayRange))))})))}})}}function Jc(e){let t=[];let n=[];for(let i of e){t.push(i.seg);if(!i.isVisible){n.push(i.seg)}}return{allSegs:t,invisibleSegs:n}}const Xc=ni({week:"narrow"});class Kc extends zs{constructor(){super(...arguments);this.rootElRef=j();this.state={dayNumberId:pt()};this.handleRootEl=e=>{Wi(this.rootElRef,e);Wi(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:i}=this;let{options:r,dateEnv:l}=e;let{date:s,dateProfile:o}=t;const a=t.showDayNumber&&tf(s,o.currentRange,l);return O(Qo,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:ef,date:s,dateProfile:o,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:a,extraRenderProps:t.extraRenderProps},((l,o)=>O("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&O($o,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ys(e,s,"week"),date:s,defaultFormat:Xc}),!o.isDisabled&&(t.showDayNumber||Vo(r)||t.forceDayTop)?O("div",{className:"fc-daygrid-day-top"},O(l,{elTag:"a",elClasses:["fc-daygrid-day-number",a&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ys(e,s)),{id:n.dayNumberId})})):t.showDayNumber?O("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},O("a",{className:"fc-daygrid-day-number"}," ")):undefined,O("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,O("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},O(Zc,{allDayDate:s,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:i,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),O("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function ef(e){return e.dayNumberText||O(I,null," ")}function tf(e,t,n){const{start:i,end:r}=t;const l=sn(r,-1);const s=n.getYear(i);const o=n.getMonth(i);const a=n.getYear(l);const c=n.getMonth(l);return!(s===a&&o===c)&&Boolean(e.valueOf()===i.valueOf()||n.getDay(e)===1&&e.valueOf()<r.valueOf())}function nf(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function rf(e){return nf(e)+":"+e.lastCol}function lf(e,t,n,i,r,l,s){let o=new cf((t=>{let n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return r[n]||1}));o.allowReslicing=true;o.strictOrder=i;if(t===true||n===true){o.maxCoord=l;o.hiddenConsumes=true}else if(typeof t==="number"){o.maxStackCnt=t}else if(typeof n==="number"){o.maxStackCnt=n;o.hiddenConsumes=true}let a=[];let c=[];for(let t=0;t<e.length;t+=1){let n=e[t];let i=rf(n);let l=r[i];if(l!=null){a.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}})}else{c.push(n)}}let f=o.addSegs(a);let u=o.toRects();let{singleColPlacements:d,multiColPlacements:h,leftoverMargins:p}=sf(u,e,s);let g=[];let v=[];for(let e of c){h[e.firstCol].push({seg:e,isVisible:false,isAbsolute:true,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1){d[t].push({seg:af(e,t,t+1,s),isVisible:false,isAbsolute:false,absoluteTop:0,marginTop:0})}}for(let e=0;e<s.length;e+=1){g.push(0)}for(let t of f){let n=e[t.index];let i=t.span;h[i.start].push({seg:af(n,i.start,i.end,s),isVisible:false,isAbsolute:true,absoluteTop:0,marginTop:0});for(let e=i.start;e<i.end;e+=1){g[e]+=1;d[e].push({seg:af(n,e,e+1,s),isVisible:false,isAbsolute:false,absoluteTop:0,marginTop:0})}}for(let e=0;e<s.length;e+=1){v.push(p[e])}return{singleColPlacements:d,multiColPlacements:h,moreCnts:g,moreMarginTops:v}}function sf(e,t,n){let i=of(e,n.length);let r=[];let l=[];let s=[];for(let e=0;e<n.length;e+=1){let o=i[e];let a=[];let c=0;let f=0;for(let i of o){let r=t[i.index];a.push({seg:af(r,e,e+1,n),isVisible:true,isAbsolute:false,absoluteTop:i.levelCoord,marginTop:i.levelCoord-c});c=i.levelCoord+i.thickness}let u=[];c=0;f=0;for(let i of o){let r=t[i.index];let l=i.span.end-i.span.start>1;let s=i.span.start===e;f+=i.levelCoord-c;c=i.levelCoord+i.thickness;if(l){f+=i.thickness;if(s){u.push({seg:af(r,i.span.start,i.span.end,n),isVisible:true,isAbsolute:true,absoluteTop:i.levelCoord,marginTop:0})}}else if(s){u.push({seg:af(r,i.span.start,i.span.end,n),isVisible:true,isAbsolute:false,absoluteTop:i.levelCoord,marginTop:f});f=0}}r.push(a);l.push(u);s.push(f)}return{singleColPlacements:r,multiColPlacements:l,leftoverMargins:s}}function of(e,t){let n=[];for(let e=0;e<t;e+=1){n.push([])}for(let t of e){for(let e=t.span.start;e<t.span.end;e+=1){n[e].push(t)}}return n}function af(e,t,n,i){if(e.firstCol===t&&e.lastCol===n-1){return e}let r=e.eventRange;let l=r.range;let s=lr(l,{start:i[t].date,end:ln(i[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:false}),instance:r.instance,range:s},isStart:e.isStart&&s.start.valueOf()===l.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===l.end.valueOf()})}class cf extends Hs{constructor(){super(...arguments);this.hiddenConsumes=false;this.forceHidden={}}addSegs(e){const t=super.addSegs(e);const{entriesByLevel:n}=this;const i=e=>!this.forceHidden[Gs(e)];for(let e=0;e<n.length;e+=1){n[e]=n[e].filter(i)}return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:i,forceHidden:r}=this;const{touchingEntry:l,touchingLevel:s,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const e=Gs(l);if(!r[e]){if(this.allowReslicing){const e=Object.assign(Object.assign({},l),{span:Vs(l.span,t.span)});const a=Gs(e);r[a]=true;i[s][o]=e;n.push(e);this.splitEntry(l,t,n)}else{r[e]=true;n.push(l)}}}super.handleInvalidInsertion(e,t,n)}}class ff extends zs{constructor(){super(...arguments);this.cellElRefs=new wo;this.frameElRefs=new wo;this.fgElRefs=new wo;this.segHarnessRefs=new wo;this.rootElRef=j();this.state={framePositions:null,maxContentHeight:null,segHeights:{}};this.handleResize=e=>{if(e){this.updateSizing(true)}}}render(){let{props:e,state:t,context:n}=this;let{options:i}=n;let r=e.cells.length;let l=Vc(e.businessHourSegs,r);let s=Vc(e.bgEventSegs,r);let o=Vc(this.getHighlightSegs(),r);let a=Vc(this.getMirrorSegs(),r);let{singleColPlacements:c,multiColPlacements:f,moreCnts:u,moreMarginTops:d}=lf(Ml(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells);let h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return O("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let i=this.renderFgSegs(n,e.forPrint?c[n]:f[n],e.todayRange,h);let r=this.renderFgSegs(n,uf(a[n],f),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),false);return O(Kc,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&n===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:d[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:O(I,null,O(I,null,i),O(I,null,r)),bgContent:O(I,null,this.renderFillSegs(o[n],"highlight"),this.renderFillSegs(l[n],"non-business"),this.renderFillSegs(s[n],"bg-event")),minHeight:e.cellMinHeight})})))}componentDidMount(){this.updateSizing(true);this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Ai(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;if(e.eventDrag&&e.eventDrag.segs.length){return e.eventDrag.segs}if(e.eventResize&&e.eventResize.segs.length){return e.eventResize.segs}return e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;if(e.eventResize&&e.eventResize.segs.length){return e.eventResize.segs}return[]}renderFgSegs(e,t,n,i,r,l,s){let{context:o}=this;let{eventSelection:a}=this.props;let{framePositions:c}=this.state;let f=this.props.cells.length===1;let u=r||l||s;let d=[];if(c){for(let e of t){let{seg:t}=e;let{instanceId:h}=t.eventRange.instance;let p=e.isVisible&&!i[h];let g=e.isAbsolute;let v="";let m="";if(g){if(o.isRtl){m=0;v=c.lefts[t.lastCol]-c.lefts[t.firstCol]}else{v=0;m=c.rights[t.firstCol]-c.rights[t.lastCol]}}d.push(O("div",{className:"fc-daygrid-event-harness"+(g?" fc-daygrid-event-harness-abs":""),key:nf(t),ref:u?null:this.segHarnessRefs.createRef(rf(t)),style:{visibility:p?"":"hidden",marginTop:g?"":e.marginTop,top:g?e.absoluteTop:"",left:v,right:m}},Fc(t)?O($c,Object.assign({seg:t,isDragging:r,isSelected:h===a,defaultDisplayEventEnd:f},Bl(t,n))):O(Yc,Object.assign({seg:t,isDragging:r,isResizing:l,isDateSelecting:s,isSelected:h===a,defaultDisplayEventEnd:f},Bl(t,n)))))}}return d}renderFillSegs(e,t){let{isRtl:n}=this.context;let{todayRange:i}=this.props;let{framePositions:r}=this.state;let l=[];if(r){for(let s of e){let e=n?{right:0,left:r.lefts[s.lastCol]-r.lefts[s.firstCol]}:{left:0,right:r.rights[s.firstCol]-r.rights[s.lastCol]};l.push(O("div",{key:Hl(s.eventRange),className:"fc-daygrid-bg-harness",style:e},t==="bg-event"?O(Wo,Object.assign({seg:s},Bl(s,i))):Yo(t)))}}return O(I,{},...l)}updateSizing(e){let{props:t,state:n,frameElRefs:i}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let e=t.cells.map((e=>i.currentMap[e.key]));if(e.length){let t=this.rootElRef.current;let i=new Os(t,e,true,false);if(!n.framePositions||!n.framePositions.similarTo(i)){this.setState({framePositions:new Os(t,e,true,false)})}}}const r=this.state.segHeights;const l=this.querySegHeights();const s=t.dayMaxEvents===true||t.dayMaxEventRows===true;this.safeSetState({segHeights:Object.assign(Object.assign({},r),l),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap;let t={};for(let n in e){let i=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,i)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key;let t=this.cellElRefs.currentMap[e];let n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}ff.addStateEquality({segHeights:Ai});function uf(e,t){if(!e.length){return[]}let n=df(t);return e.map((e=>({seg:e,isVisible:true,isAbsolute:true,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}function df(e){let t={};for(let n of e){for(let e of n){t[e.seg.eventRange.instance.instanceId]=e.absoluteTop}}return t}class hf extends zs{constructor(){super(...arguments);this.splitBusinessHourSegs=_n(Qc);this.splitBgEventSegs=_n(Qc);this.splitFgEventSegs=_n(Qc);this.splitDateSelectionSegs=_n(Qc);this.splitEventDrag=_n(Lc);this.splitEventResize=_n(Lc);this.rowRefs=new wo}render(){let{props:e,context:t}=this;let n=e.cells.length;let i=this.splitBusinessHourSegs(e.businessHourSegs,n);let r=this.splitBgEventSegs(e.bgEventSegs,n);let l=this.splitFgEventSegs(e.fgEventSegs,n);let s=this.splitDateSelectionSegs(e.dateSelectionSegs,n);let o=this.splitEventDrag(e.eventDrag,n);let a=this.splitEventResize(e.eventResize,n);let c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return O(eo,{unit:"day"},((t,f)=>O(I,null,e.cells.map(((t,u)=>O(ff,{ref:this.rowRefs.createRef(u),key:t.length?t[0].date.toISOString():u,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:f,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:i[u],eventSelection:e.eventSelection,bgEventSegs:r[u].filter(pf),fgEventSegs:l[u],dateSelectionSegs:s[u],eventDrag:o[u],eventResize:a[u],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0];const t=e?e.closest(".fc-daygrid-body"):null;if(t){this.rootEl=t;this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed})}}}componentWillUnmount(){if(this.rootEl){this.context.unregisterInteractiveComponent(this);this.rootEl=null}}prepareHits(){this.rowPositions=new Os(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),false,true);this.colPositions=new Os(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),true,false)}queryHit(e,t){let{colPositions:n,rowPositions:i}=this;let r=n.leftToIndex(e);let l=i.topToIndex(t);if(l!=null&&r!=null){let e=this.props.cells[l][r];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,r),allDay:true},e.extraDateSpan),dayEl:this.getCellEl(l,r),rect:{left:n.lefts[r],right:n.rights[r],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;let i=ln(n,1);return{start:n,end:i}}}function pf(e){return e.eventRange.def.allDay}class gf extends zs{constructor(){super(...arguments);this.elRef=j();this.needsScrollReset=false}render(){let{props:e}=this;let{dayMaxEventRows:t,dayMaxEvents:n,expandRows:i}=e;let r=n===true||t===true;if(r&&!i){r=false;t=null;n=null}let l=["fc-daygrid-body",r?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return O("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},O("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,O("tbody",{role:"presentation"},O(hf,{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:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){if(e.dateProfile!==this.props.dateProfile){this.requestScrollReset()}else{this.flushScrollReset()}}requestScrollReset(){this.needsScrollReset=true;this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=vf(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body");const n=t.closest(".fc-scroller");const i=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=i?i+1:0}this.needsScrollReset=false}}}function vf(e,t){let n;if(t.currentRangeUnit.match(/year|month/)){n=e.querySelector(`[data-date="${Mn(t.currentDate)}-01"]`)}if(!n){n=e.querySelector(`[data-date="${Nn(t.currentDate)}"]`)}return n}class mf extends so{constructor(){super(...arguments);this.forceDayIfListItem=true}sliceRange(e,t){return t.sliceRange(e)}}class bf extends zs{constructor(){super(...arguments);this.slicer=new mf;this.tableRef=j()}render(){let{props:e,context:t}=this;return O(gf,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class yf extends Uc{constructor(){super(...arguments);this.buildDayTableModel=_n(Af);this.headerRef=j();this.tableRef=j()}render(){let{options:e,dateProfileGenerator:t}=this.context;let{props:n}=this;let i=this.buildDayTableModel(n.dateProfile,t);let r=e.dayHeaders&&O(no,{ref:this.headerRef,dateProfile:n.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1});let l=t=>O(bf,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:i,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(r,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(r,l)}}function Af(e,t){let n=new ro(e.renderRange,t);return new lo(n,/year|month|week/.test(e.currentRangeUnit))}class wf extends br{buildRenderRange(e,t,n){let i=super.buildRenderRange(e,t,n);let{props:r}=this;return Ef({currentRange:i,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:r.fixedWeekCount,dateEnv:r.dateEnv})}}function Ef(e){let{dateEnv:t,currentRange:n}=e;let{start:i,end:r}=n;let l;if(e.snapToWeek){i=t.startOfWeek(i);l=t.startOfWeek(r);if(l.valueOf()!==r.valueOf()){r=rn(l,1)}}if(e.fixedWeekCount){let e=t.startOfWeek(t.startOfMonth(ln(n.end,-1)));let i=Math.ceil(on(e,r));r=rn(r,6-i)}return{start:i,end:r}}var xf=':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}';qe(xf);var kf=pa({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:yf,dateProfileGeneratorClass:wf},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:true},dayGridYear:{type:"dayGrid",duration:{years:1}}}});Ys.touchMouseIgnoreWait=500;let Sf=0;let Df=0;let Cf=false;class Tf{constructor(e){this.subjectEl=null;this.selector="";this.handleSelector="";this.shouldIgnoreMove=false;this.shouldWatchScroll=true;this.isDragging=false;this.isTouchDragging=false;this.wasTouchScroll=false;this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&Nf(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,true);this.emitter.trigger("pointerdown",t);this.initScrollWatch(t);if(!this.shouldIgnoreMove){document.addEventListener("mousemove",this.handleMouseMove)}document.addEventListener("mouseup",this.handleMouseUp)}};this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t);this.emitter.trigger("pointermove",t)};this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove);document.removeEventListener("mouseup",this.handleMouseUp);this.emitter.trigger("pointerup",this.createEventFromMouse(e));this.cleanup()};this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=true;let t=this.createEventFromTouch(e,true);this.emitter.trigger("pointerdown",t);this.initScrollWatch(t);let n=e.target;if(!this.shouldIgnoreMove){n.addEventListener("touchmove",this.handleTouchMove)}n.addEventListener("touchend",this.handleTouchEnd);n.addEventListener("touchcancel",this.handleTouchEnd);window.addEventListener("scroll",this.handleTouchScroll,true)}};this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t);this.emitter.trigger("pointermove",t)};this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove);t.removeEventListener("touchend",this.handleTouchEnd);t.removeEventListener("touchcancel",this.handleTouchEnd);window.removeEventListener("scroll",this.handleTouchScroll,true);this.emitter.trigger("pointerup",this.createEventFromTouch(e));this.cleanup();this.isTouchDragging=false;Mf()}};this.handleTouchScroll=()=>{this.wasTouchScroll=true};this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX;let n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}};this.containerEl=e;this.emitter=new ol;e.addEventListener("mousedown",this.handleMouseDown);e.addEventListener("touchstart",this.handleTouchStart,{passive:true});Rf()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown);this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:true});Of()}tryStart(e){let t=this.querySubjectEl(e);let n=e.target;if(t&&(!this.handleSelector||st(n,this.handleSelector))){this.subjectEl=t;this.isDragging=true;this.wasTouchScroll=false;return true}return false}cleanup(){Cf=false;this.isDragging=false;this.subjectEl=null;this.destroyScrollWatch()}querySubjectEl(e){if(this.selector){return st(e.target,this.selector)}return this.containerEl}shouldIgnoreMouse(){return Sf||this.isTouchDragging}cancelTouchScroll(){if(this.isDragging){Cf=true}}initScrollWatch(e){if(this.shouldWatchScroll){this.recordCoords(e);window.addEventListener("scroll",this.handleScroll,true)}}recordCoords(e){if(this.shouldWatchScroll){this.prevPageX=e.pageX;this.prevPageY=e.pageY;this.prevScrollX=window.scrollX;this.prevScrollY=window.scrollY}}destroyScrollWatch(){if(this.shouldWatchScroll){window.removeEventListener("scroll",this.handleScroll,true)}}createEventFromMouse(e,t){let n=0;let i=0;if(t){this.origPageX=e.pageX;this.origPageY=e.pageY}else{n=e.pageX-this.origPageX;i=e.pageY-this.origPageY}return{origEvent:e,isTouch:false,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:i}}createEventFromTouch(e,t){let n=e.touches;let i;let r;let l=0;let s=0;if(n&&n.length){i=n[0].pageX;r=n[0].pageY}else{i=e.pageX;r=e.pageY}if(t){this.origPageX=i;this.origPageY=r}else{l=i-this.origPageX;s=r-this.origPageY}return{origEvent:e,isTouch:true,subjectEl:this.subjectEl,pageX:i,pageY:r,deltaX:l,deltaY:s}}}function Nf(e){return e.button===0&&!e.ctrlKey}function Mf(){Sf+=1;setTimeout((()=>{Sf-=1}),Ys.touchMouseIgnoreWait)}function Rf(){Df+=1;if(Df===1){window.addEventListener("touchmove",_f,{passive:false})}}function Of(){Df-=1;if(!Df){window.removeEventListener("touchmove",_f,{passive:false})}}function _f(e){if(Cf){e.preventDefault()}}class jf{constructor(){this.isVisible=false;this.sourceEl=null;this.mirrorEl=null;this.sourceElRect=null;this.parentNode=document.body;this.zIndex=9999;this.revertDuration=0}start(e,t,n){this.sourceEl=e;this.sourceElRect=this.sourceEl.getBoundingClientRect();this.origScreenX=t-window.scrollX;this.origScreenY=n-window.scrollY;this.deltaX=0;this.deltaY=0;this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX;this.deltaY=t-window.scrollY-this.origScreenY;this.updateElPosition()}setIsVisible(e){if(e){if(!this.isVisible){if(this.mirrorEl){this.mirrorEl.style.display=""}this.isVisible=e;this.updateElPosition()}}else if(this.isVisible){if(this.mirrorEl){this.mirrorEl.style.display="none"}this.isVisible=e}}stop(e,t){let n=()=>{this.cleanup();t()};if(e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)){this.doRevertAnimation(n,this.revertDuration)}else{setTimeout(n,0)}}doRevertAnimation(e,t){let n=this.mirrorEl;let i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,"+"left "+t+"ms";ft(n,{left:i.left,top:i.top});At(n,(()=>{n.style.transition="";e()}))}cleanup(){if(this.mirrorEl){lt(this.mirrorEl);this.mirrorEl=null}this.sourceEl=null}updateElPosition(){if(this.sourceEl&&this.isVisible){ft(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}}getMirrorEl(){let e=this.sourceElRect;let t=this.mirrorEl;if(!t){t=this.mirrorEl=this.sourceEl.cloneNode(true);t.style.userSelect="none";t.style.webkitUserSelect="none";t.style.pointerEvents="none";t.classList.add("fc-event-dragging");ft(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0});this.parentNode.appendChild(t)}return t}}class If extends js{constructor(e,t){super();this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop();this.scrollLeft=this.scrollController.getScrollLeft();this.handleScrollChange()};this.scrollController=e;this.doesListening=t;this.scrollTop=this.origScrollTop=e.getScrollTop();this.scrollLeft=this.origScrollLeft=e.getScrollLeft();this.scrollWidth=e.getScrollWidth();this.scrollHeight=e.getScrollHeight();this.clientWidth=e.getClientWidth();this.clientHeight=e.getClientHeight();this.clientRect=this.computeClientRect();if(this.doesListening){this.getEventTarget().addEventListener("scroll",this.handleScroll)}}destroy(){if(this.doesListening){this.getEventTarget().removeEventListener("scroll",this.handleScroll)}}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e);if(!this.doesListening){this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0);this.handleScrollChange()}}setScrollLeft(e){this.scrollController.setScrollLeft(e);if(!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 Bf extends If{constructor(e,t){super(new Is(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Ts(this.scrollController.el)}}class zf extends If{constructor(e){super(new Bs,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 Hf=typeof performance==="function"?performance.now:Date.now;class Pf{constructor(){this.isEnabled=true;this.scrollQuery=[window,".fc-scroller"];this.edgeThreshold=50;this.maxVelocity=300;this.pointerScreenX=null;this.pointerScreenY=null;this.isAnimating=false;this.scrollCaches=null;this.everMovedUp=false;this.everMovedDown=false;this.everMovedLeft=false;this.everMovedRight=false;this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=Hf();this.handleSide(e,(t-this.msSinceRequest)/1e3);this.requestAnimation(t)}else{this.isAnimating=false}}}}start(e,t,n){if(this.isEnabled){this.scrollCaches=this.buildCaches(n);this.pointerScreenX=null;this.pointerScreenY=null;this.everMovedUp=false;this.everMovedDown=false;this.everMovedLeft=false;this.everMovedRight=false;this.handleMove(e,t)}}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX;let i=t-window.scrollY;let r=this.pointerScreenY===null?0:i-this.pointerScreenY;let l=this.pointerScreenX===null?0:n-this.pointerScreenX;if(r<0){this.everMovedUp=true}else if(r>0){this.everMovedDown=true}if(l<0){this.everMovedLeft=true}else if(l>0){this.everMovedRight=true}this.pointerScreenX=n;this.pointerScreenY=i;if(!this.isAnimating){this.isAnimating=true;this.requestAnimation(Hf())}}}stop(){if(this.isEnabled){this.isAnimating=false;for(let e of this.scrollCaches){e.destroy()}this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e;requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e;let{edgeThreshold:i}=this;let r=i-e.distance;let l=r*r/(i*i)*this.maxVelocity*t;let s=1;switch(e.name){case"left":s=-1;case"right":n.setScrollLeft(n.getScrollLeft()+l*s);break;case"top":s=-1;case"bottom":n.setScrollTop(n.getScrollTop()+l*s);break}}computeBestEdge(e,t){let{edgeThreshold:n}=this;let i=null;let r=this.scrollCaches||[];for(let l of r){let r=l.clientRect;let s=e-r.left;let o=r.right-e;let a=t-r.top;let c=r.bottom-t;if(s>=0&&o>=0&&a>=0&&c>=0){if(a<=n&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>a)){i={scrollCache:l,name:"top",distance:a}}if(c<=n&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>c)){i={scrollCache:l,name:"bottom",distance:c}}if(s<=n&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>s)){i={scrollCache:l,name:"left",distance:s}}if(o<=n&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>o)){i={scrollCache:l,name:"right",distance:o}}}}return i}buildCaches(e){return this.queryScrollEls(e).map((e=>{if(e===window){return new zf(false)}return new Bf(e,false)}))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery){if(typeof n==="object"){t.push(n)}else{t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)))}}return t}}class Gf extends Fs{constructor(e,t){super(e);this.containerEl=e;this.delay=null;this.minDistance=0;this.touchScrollAllowed=true;this.mirrorNeedsRevert=false;this.isInteracting=false;this.isDragging=false;this.isDelayEnded=false;this.isDistanceSurpassed=false;this.delayTimeoutId=null;this.onPointerDown=e=>{if(!this.isDragging){this.isInteracting=true;this.isDelayEnded=false;this.isDistanceSurpassed=false;Ct(document.body);Nt(document.body);if(!e.isTouch){e.origEvent.preventDefault()}this.emitter.trigger("pointerdown",e);if(this.isInteracting&&!this.pointer.shouldIgnoreMove){this.mirror.setIsVisible(false);this.mirror.start(e.subjectEl,e.pageX,e.pageY);this.startDelay(e);if(!this.minDistance){this.handleDistanceSurpassed(e)}}}};this.onPointerMove=e=>{if(this.isInteracting){this.emitter.trigger("pointermove",e);if(!this.isDistanceSurpassed){let t=this.minDistance;let n;let{deltaX:i,deltaY:r}=e;n=i*i+r*r;if(n>=t*t){this.handleDistanceSurpassed(e)}}if(this.isDragging){if(e.origEvent.type!=="scroll"){this.mirror.handleMove(e.pageX,e.pageY);this.autoScroller.handleMove(e.pageX,e.pageY)}this.emitter.trigger("dragmove",e)}}};this.onPointerUp=e=>{if(this.isInteracting){this.isInteracting=false;Tt(document.body);Mt(document.body);this.emitter.trigger("pointerup",e);if(this.isDragging){this.autoScroller.stop();this.tryStopDrag(e)}if(this.delayTimeoutId){clearTimeout(this.delayTimeoutId);this.delayTimeoutId=null}}};let n=this.pointer=new Tf(e);n.emitter.on("pointerdown",this.onPointerDown);n.emitter.on("pointermove",this.onPointerMove);n.emitter.on("pointerup",this.onPointerUp);if(t){n.selector=t}this.mirror=new jf;this.autoScroller=new Pf}destroy(){this.pointer.destroy();this.onPointerUp({})}startDelay(e){if(typeof this.delay==="number"){this.delayTimeoutId=setTimeout((()=>{this.delayTimeoutId=null;this.handleDelayEnd(e)}),this.delay)}else{this.handleDelayEnd(e)}}handleDelayEnd(e){this.isDelayEnded=true;this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=true;this.tryStartDrag(e)}tryStartDrag(e){if(this.isDelayEnded&&this.isDistanceSurpassed){if(!this.pointer.wasTouchScroll||this.touchScrollAllowed){this.isDragging=true;this.mirrorNeedsRevert=false;this.autoScroller.start(e.pageX,e.pageY,this.containerEl);this.emitter.trigger("dragstart",e);if(this.touchScrollAllowed===false){this.pointer.cancelTouchScroll()}}}}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=false;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 Uf{constructor(e){this.el=e;this.origRect=Ns(e);this.scrollCaches=Rs(e).map((e=>new Bf(e,true)))}destroy(){for(let e of this.scrollCaches){e.destroy()}}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches){e+=t.origScrollLeft-t.getScrollLeft()}return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches){e+=t.origScrollTop-t.getScrollTop()}return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches){if(!Qf(e.getEventTarget())&&!os(n,e.clientRect)){return false}}return true}}function Qf(e){let t=e.tagName;return t==="HTML"||t==="BODY"}class Vf{constructor(e,t){this.useSubjectCenter=false;this.requireInitial=true;this.disablePointCheck=false;this.initialHit=null;this.movingHit=null;this.finalHit=null;this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null;this.movingHit=null;this.finalHit=null;this.prepareHits();this.processFirstCoord(e);if(this.initialHit||!this.requireInitial){t.setIgnoreMove(false);this.emitter.trigger("pointerdown",e)}else{t.setIgnoreMove(true)}};this.handleDragStart=e=>{this.emitter.trigger("dragstart",e);this.handleMove(e,true)};this.handleDragMove=e=>{this.emitter.trigger("dragmove",e);this.handleMove(e)};this.handlePointerUp=e=>{this.releaseHits();this.emitter.trigger("pointerup",e)};this.handleDragEnd=e=>{if(this.movingHit){this.emitter.trigger("hitupdate",null,true,e)}this.finalHit=this.movingHit;this.movingHit=null;this.emitter.trigger("dragend",e)};this.droppableStore=t;e.emitter.on("pointerdown",this.handlePointerDown);e.emitter.on("dragstart",this.handleDragStart);e.emitter.on("dragmove",this.handleDragMove);e.emitter.on("pointerup",this.handlePointerUp);e.emitter.on("dragend",this.handleDragEnd);this.dragging=e;this.emitter=new ol}processFirstCoord(e){let t={left:e.pageX,top:e.pageY};let n=t;let i=e.subjectEl;let r;if(i instanceof HTMLElement){r=Ns(i);n=cs(n,r)}let l=this.initialHit=this.queryHitForOffset(n.left,n.top);if(l){if(this.useSubjectCenter&&r){let e=as(r,l.rect);if(e){n=fs(e)}}this.coordAdjust=us(n,t)}else{this.coordAdjust={left:0,top:0}}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);if(t||!Lf(this.movingHit,n)){this.movingHit=n;this.emitter.trigger("hitupdate",n,false,e)}}prepareHits(){this.offsetTrackers=mi(this.droppableStore,(e=>{e.component.prepareHits();return new Uf(e.el)}))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e){e[t].destroy()}this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:i}=this;let r=null;for(let l in n){let s=n[l].component;let o=i[l];if(o&&o.isWithinClipping(e,t)){let n=o.computeLeft();let i=o.computeTop();let a=e-n;let c=t-i;let{origRect:f}=o;let u=f.right-f.left;let d=f.bottom-f.top;if(a>=0&&a<u&&c>=0&&c<d){let e=s.queryHit(a,c,u,d);if(e&&ar(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(a+n-window.scrollX,c+i-window.scrollY)))&&(!r||e.layer>r.layer)){e.componentId=l;e.context=s.context;e.rect.left+=n;e.rect.right+=n;e.rect.top+=i;e.rect.bottom+=i;r=e}}}}return r}}function Lf(e,t){if(!e&&!t){return true}if(Boolean(e)!==Boolean(t)){return false}return Vl(e.dateSpan,t.dateSpan)}function Wf(e,t){let n={};for(let i of t.pluginHooks.datePointTransforms){Object.assign(n,i(e,t))}Object.assign(n,Ff(e,t.dateEnv));return n}function Ff(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}class Yf extends ns{constructor(e){super(e);this.handlePointerDown=e=>{let{dragging:t}=this;let n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))};this.handleDragEnd=e=>{let{component:t}=this;let{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:i}=this.hitDragging;if(n&&i&&Lf(n,i)){let{context:i}=t;let r=Object.assign(Object.assign({},Wf(n.dateSpan,i)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:i.viewApi||i.calendarApi.view});i.emitter.trigger("dateClick",r)}}};this.dragging=new Gf(e.el);this.dragging.autoScroller.isEnabled=false;let t=this.hitDragging=new Vf(this.dragging,rs(e));t.emitter.on("pointerdown",this.handlePointerDown);t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class $f extends ns{constructor(e){super(e);this.dragSelection=null;this.handlePointerDown=e=>{let{component:t,dragging:n}=this;let{options:i}=t.context;let r=i.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!r);n.delay=e.isTouch?qf(t):null};this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)};this.handleHitUpdate=(e,t)=>{let{context:n}=this.component;let i=null;let r=false;if(e){let t=this.hitDragging.initialHit;let l=e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e);if(!l){i=Zf(t,e,n.pluginHooks.dateSelectionTransformers)}if(!i||!co(i,e.dateProfile,n)){r=true;i=null}}if(i){n.dispatch({type:"SELECT_DATES",selection:i})}else if(!t){n.dispatch({type:"UNSELECT_DATES"})}if(!r){Dt()}else{St()}if(!t){this.dragSelection=i}};this.handlePointerUp=e=>{if(this.dragSelection){hl(this.dragSelection,e,this.component.context);this.dragSelection=null}};let{component:t}=e;let{options:n}=t.context;let i=this.dragging=new Gf(e.el);i.touchScrollAllowed=false;i.minDistance=n.selectMinDistance||0;i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new Vf(this.dragging,rs(e));r.emitter.on("pointerdown",this.handlePointerDown);r.emitter.on("dragstart",this.handleDragStart);r.emitter.on("hitupdate",this.handleHitUpdate);r.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function qf(e){let{options:t}=e.context;let n=t.selectLongPressDelay;if(n==null){n=t.longPressDelay}return n}function Zf(e,t,n){let i=e.dateSpan;let r=t.dateSpan;let l=[i.range.start,i.range.end,r.range.start,r.range.end];l.sort(zt);let s={};for(let i of n){let n=i(e,t);if(n===false){return null}if(n){Object.assign(s,n)}}s.range={start:l[0],end:l[3]};s.allDay=i.allDay;return s}class Jf extends ns{constructor(e){super(e);this.subjectEl=null;this.subjectSeg=null;this.isDragging=false;this.eventRange=null;this.relevantEvents=null;this.receivingContext=null;this.validMutation=null;this.mutatedRelevantEvents=null;this.handlePointerDown=e=>{let t=e.origEvent.target;let{component:n,dragging:i}=this;let{mirror:r}=i;let{options:l}=n.context;let s=n.context;this.subjectEl=e.subjectEl;let o=this.subjectSeg=Cl(e.subjectEl);let a=this.eventRange=o.eventRange;let c=a.instance.instanceId;this.relevantEvents=jr(s.getCurrentData().eventStore,c);i.minDistance=e.isTouch?0:l.eventDragMinDistance;i.delay=e.isTouch&&c!==n.props.eventSelection?Kf(n):null;if(l.fixedMirrorParent){r.parentNode=l.fixedMirrorParent}else{r.parentNode=st(t,".fc")}r.revertDuration=l.dragRevertDuration;let f=n.isValidSegDownEl(t)&&!st(t,".fc-event-resizer");i.setIgnoreMove(!f);this.isDragging=f&&e.subjectEl.classList.contains("fc-event-draggable")};this.handleDragStart=e=>{let t=this.component.context;let n=this.eventRange;let i=n.instance.instanceId;if(e.isTouch){if(i!==this.component.props.eventSelection){t.dispatch({type:"SELECT_EVENT",eventInstanceId:i})}}else{t.dispatch({type:"UNSELECT_EVENT"})}if(this.isDragging){t.calendarApi.unselect(e);t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new wl(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})}};this.handleHitUpdate=(e,t)=>{if(!this.isDragging){return}let n=this.relevantEvents;let i=this.hitDragging.initialHit;let r=this.component.context;let l=null;let s=null;let o=null;let a=false;let c={affectedEvents:n,mutatedEvents:Br(),isEvent:true};if(e){l=e.context;let t=l.options;if(r===l||t.editable&&t.droppable){s=Xf(i,e,this.eventRange.instance.range.start,l.getCurrentData().pluginHooks.eventDragMutationMassagers);if(s){o=ml(n,l.getCurrentData().eventUiBases,s,l);c.mutatedEvents=o;if(!ao(c,e.dateProfile,l)){a=true;s=null;o=null;c.mutatedEvents=Br()}}}else{l=null}}this.displayDrag(l,c);if(!a){Dt()}else{St()}if(!t){if(r===l&&Lf(i,e)){s=null}this.dragging.setMirrorNeedsRevert(!s);this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror"));this.receivingContext=l;this.validMutation=s;this.mutatedRelevantEvents=o}};this.handlePointerUp=()=>{if(!this.isDragging){this.cleanup()}};this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context;let n=t.viewApi;let{receivingContext:i,validMutation:r}=this;let l=this.eventRange.def;let s=this.eventRange.instance;let o=new wl(t,l,s);let a=this.relevantEvents;let c=this.mutatedRelevantEvents;let{finalHit:f}=this.hitDragging;this.clearDrag();t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:o,jsEvent:e.origEvent,view:n});if(r){if(i===t){let i=new wl(t,c.defs[l.defId],s?c.instances[s.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});let f={oldEvent:o,event:i,relatedEvents:xl(c,t,s),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:a})}};let u={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers){Object.assign(u,e(r,t))}t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},f),u),{el:e.subjectEl,delta:r.datesDelta,jsEvent:e.origEvent,view:n}));t.emitter.trigger("eventChange",f)}else if(i){let r={event:o,relatedEvents:xl(a,t,s),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:a})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},r),{draggedEl:e.subjectEl,view:n}));t.dispatch({type:"REMOVE_EVENTS",eventStore:a});t.emitter.trigger("eventRemove",r);let u=c.defs[l.defId];let d=c.instances[s.instanceId];let h=new wl(i,u,d);i.dispatch({type:"MERGE_EVENTS",eventStore:c});let p={event:h,relatedEvents:xl(c,i,d),revert(){i.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};i.emitter.trigger("eventAdd",p);if(e.isTouch){i.dispatch({type:"SELECT_EVENT",eventInstanceId:s.instanceId})}i.emitter.trigger("drop",Object.assign(Object.assign({},Wf(f.dateSpan,i)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:f.context.viewApi}));i.emitter.trigger("eventReceive",Object.assign(Object.assign({},p),{draggedEl:e.subjectEl,view:f.context.viewApi}))}}else{t.emitter.trigger("_noEventDrop")}}this.cleanup()};let{component:t}=this;let{options:n}=t.context;let i=this.dragging=new Gf(e.el);i.pointer.selector=Jf.SELECTOR;i.touchScrollAllowed=false;i.autoScroller.isEnabled=n.dragScroll;let r=this.hitDragging=new Vf(this.dragging,ls);r.useSubjectCenter=e.useEventCenter;r.emitter.on("pointerdown",this.handlePointerDown);r.emitter.on("dragstart",this.handleDragStart);r.emitter.on("hitupdate",this.handleHitUpdate);r.emitter.on("pointerup",this.handlePointerUp);r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context;let i=this.receivingContext;if(i&&i!==e){if(i===n){i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:Br(),isEvent:true}})}else{i.dispatch({type:"UNSET_EVENT_DRAG"})}}if(e){e.dispatch({type:"SET_EVENT_DRAG",state:t})}}clearDrag(){let e=this.component.context;let{receivingContext:t}=this;if(t){t.dispatch({type:"UNSET_EVENT_DRAG"})}if(e!==t){e.dispatch({type:"UNSET_EVENT_DRAG"})}}cleanup(){this.subjectSeg=null;this.isDragging=false;this.eventRange=null;this.relevantEvents=null;this.receivingContext=null;this.validMutation=null;this.mutatedRelevantEvents=null}}Jf.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Xf(e,t,n,i){let r=e.dateSpan;let l=t.dateSpan;let s=r.range.start;let o=l.range.start;let a={};if(r.allDay!==l.allDay){a.allDay=l.allDay;a.hasEnd=t.context.options.allDayMaintainDuration;if(l.allDay){s=gn(n)}else{s=n}}let c=pr(s,o,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);if(c.milliseconds){a.allDay=false}let f={datesDelta:c,standardProps:a};for(let n of i){n(f,e,t)}return f}function Kf(e){let{options:t}=e.context;let n=t.eventLongPressDelay;if(n==null){n=t.longPressDelay}return n}class eu extends ns{constructor(e){super(e);this.draggingSegEl=null;this.draggingSeg=null;this.eventRange=null;this.relevantEvents=null;this.validMutation=null;this.mutatedRelevantEvents=null;this.handlePointerDown=e=>{let{component:t}=this;let n=this.querySegEl(e);let i=Cl(n);let r=this.eventRange=i.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance;this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)};this.handleDragStart=e=>{let{context:t}=this.component;let n=this.eventRange;this.relevantEvents=jr(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let i=this.querySegEl(e);this.draggingSegEl=i;this.draggingSeg=Cl(i);t.calendarApi.unselect();t.emitter.trigger("eventResizeStart",{el:i,event:new wl(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})};this.handleHitUpdate=(e,t,n)=>{let{context:i}=this.component;let r=this.relevantEvents;let l=this.hitDragging.initialHit;let s=this.eventRange.instance;let o=null;let a=null;let c=false;let f={affectedEvents:r,mutatedEvents:Br(),isEvent:true};if(e){let t=e.componentId===l.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(l,e);if(!t){o=tu(l,e,n.subjectEl.classList.contains("fc-event-resizer-start"),s.range)}}if(o){a=ml(r,i.getCurrentData().eventUiBases,o,i);f.mutatedEvents=a;if(!ao(f,e.dateProfile,i)){c=true;o=null;a=null;f.mutatedEvents=null}}if(a){i.dispatch({type:"SET_EVENT_RESIZE",state:f})}else{i.dispatch({type:"UNSET_EVENT_RESIZE"})}if(!c){Dt()}else{St()}if(!t){if(o&&Lf(l,e)){o=null}this.validMutation=o;this.mutatedRelevantEvents=a}};this.handleDragEnd=e=>{let{context:t}=this.component;let n=this.eventRange.def;let i=this.eventRange.instance;let r=new wl(t,n,i);let l=this.relevantEvents;let s=this.mutatedRelevantEvents;t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:r,jsEvent:e.origEvent,view:t.viewApi});if(this.validMutation){let o=new wl(t,s.defs[n.defId],i?s.instances[i.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:s});let a={oldEvent:r,event:o,relatedEvents:xl(s,t,i),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},a),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Qt(0),endDelta:this.validMutation.endDelta||Qt(0),jsEvent:e.origEvent,view:t.viewApi}));t.emitter.trigger("eventChange",a)}else{t.emitter.trigger("_noEventResize")}this.draggingSeg=null;this.relevantEvents=null;this.validMutation=null};let{component:t}=e;let n=this.dragging=new Gf(e.el);n.pointer.selector=".fc-event-resizer";n.touchScrollAllowed=false;n.autoScroller.isEnabled=t.context.options.dragScroll;let i=this.hitDragging=new Vf(this.dragging,rs(e));i.emitter.on("pointerdown",this.handlePointerDown);i.emitter.on("dragstart",this.handleDragStart);i.emitter.on("hitupdate",this.handleHitUpdate);i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return st(e.subjectEl,".fc-event")}}function tu(e,t,n,i){let r=e.context.dateEnv;let l=e.dateSpan.range.start;let s=t.dateSpan.range.start;let o=pr(l,s,r,e.largeUnit);if(n){if(r.add(i.start,o)<i.end){return{startDelta:o}}}else if(r.add(i.end,o)>i.start){return{endDelta:o}}return null}class nu{constructor(e){this.context=e;this.isRecentPointerDateSelect=false;this.matchesCancel=false;this.matchesEvent=false;this.onSelect=e=>{if(e.jsEvent){this.isRecentPointerDateSelect=true}};this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel;let n=dt(e.origEvent);this.matchesCancel=!!st(n,t);this.matchesEvent=!!st(n,Jf.SELECTOR)};this.onDocumentPointerUp=e=>{let{context:t}=this;let{documentPointer:n}=this;let i=t.getCurrentData();if(!n.wasTouchScroll){if(i.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;if(n&&(!n||!this.matchesCancel)){t.calendarApi.unselect(e)}}if(i.eventSelection&&!this.matchesEvent){t.dispatch({type:"UNSELECT_EVENT"})}}this.isRecentPointerDateSelect=false};let t=this.documentPointer=new Tf(document);t.shouldIgnoreMove=true;t.shouldWatchScroll=false;t.emitter.on("pointerdown",this.onDocumentPointerDown);t.emitter.on("pointerup",this.onDocumentPointerUp);e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect);this.documentPointer.destroy()}}const iu={fixedMirrorParent:hi};const ru={dateClick:hi,eventDragStart:hi,eventDragStop:hi,eventDrop:hi,eventResizeStart:hi,eventResizeStop:hi,eventResize:hi,drop:hi,eventReceive:hi,eventLeave:hi};Ys.dataAttrPrefix="";class lu extends Fs{constructor(e){super(e);this.shouldIgnoreMove=false;this.mirrorSelector="";this.currentMirrorEl=null;this.handlePointerDown=e=>{this.emitter.trigger("pointerdown",e);if(!this.shouldIgnoreMove){this.emitter.trigger("dragstart",e)}};this.handlePointerMove=e=>{if(!this.shouldIgnoreMove){this.emitter.trigger("dragmove",e)}};this.handlePointerUp=e=>{this.emitter.trigger("pointerup",e);if(!this.shouldIgnoreMove){this.emitter.trigger("dragend",e)}};let t=this.pointer=new Tf(e);t.emitter.on("pointerdown",this.handlePointerDown);t.emitter.on("pointermove",this.handlePointerMove);t.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.pointer.destroy()}setIgnoreMove(e){this.shouldIgnoreMove=e}setMirrorIsVisible(e){if(e){if(this.currentMirrorEl){this.currentMirrorEl.style.visibility="";this.currentMirrorEl=null}}else{let e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;if(e){this.currentMirrorEl=e;e.style.visibility="hidden"}}}}var su=pa({name:"@fullcalendar/interaction",componentInteractions:[Yf,$f,Jf,eu],calendarInteractions:[nu],elementDraggingImpl:Gf,optionRefiners:iu,listenerRefiners:ru});class ou extends Qi{constructor(){super(...arguments);this.state={textId:pt()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:i}=this.context;let{cellId:r,dayDate:l,todayRange:s}=this.props;let{textId:o}=this.state;let a=gs(l,s);let c=n.listDayFormat?t.format(l,n.listDayFormat):"";let f=n.listDaySideFormat?t.format(l,n.listDaySideFormat):"";let u=Object.assign({date:t.toDate(l),view:i,textId:o,text:c,sideText:f,navLinkAttrs:ys(this.context,l),sideNavLinkAttrs:ys(this.context,l,"day",false)},a);return O(Ji,{elTag:"tr",elClasses:["fc-list-day",...vs(a,e)],elAttrs:{"data-date":Nn(l)},renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:au,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(t=>O("th",{scope:"colgroup",colSpan:3,id:r,"aria-labelledby":o},O(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]}))))}}function au(e){return O(I,null,e.text&&O("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&O("a",Object.assign({"aria-hidden":true,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const cu=ni({hour:"numeric",minute:"2-digit",meridiem:"short"});class fu extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let{seg:i,timeHeaderId:r,eventHeaderId:l,dateHeaderId:s}=e;let o=n.eventTimeFormat||cu;return O(zo,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>uu(i,t),seg:i,timeText:"",disableDragging:true,disableResizing:true}),((e,n)=>O(I,null,du(i,o,t,r,s),O("td",{"aria-hidden":true,className:"fc-list-event-graphic"},O("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),O(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${s}`}}))))}}function uu(e,t){let n=Pl(e,t);return O("a",Object.assign({},n),e.eventRange.def.title)}function du(e,t,n,i,r){let{options:l}=n;if(l.displayEventTime!==false){let s=e.eventRange.def;let o=e.eventRange.instance;let a=false;let c;if(s.allDay){a=true}else if(hr(e.eventRange.range)){if(e.isStart){c=Il(e,t,n,null,null,o.range.start,e.end)}else if(e.isEnd){c=Il(e,t,n,null,null,e.start,o.range.end)}else{a=true}}else{c=Il(e,t,n)}if(a){let e={text:n.options.allDayText,view:n.viewApi};return O(Ji,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${i} ${r}`},renderProps:e,generatorName:"allDayContent",customGenerator:l.allDayContent,defaultGenerator:hu,classNameGenerator:l.allDayClassNames,didMount:l.allDayDidMount,willUnmount:l.allDayWillUnmount})}return O("td",{className:"fc-list-event-time"},c)}return null}function hu(e){return e.text}class pu extends zs{constructor(){super(...arguments);this.computeDateVars=_n(vu);this.eventStoreToSegs=_n(this._eventStoreToSegs);this.state={timeHeaderId:pt(),eventHeaderId:pt(),dateHeaderIdRoot:pt()};this.setRootEl=e=>{if(e){this.context.registerInteractiveComponent(this,{el:e})}else{this.context.unregisterInteractiveComponent(this)}}}render(){let{props:e,context:t}=this;let{dayDates:n,dayRanges:i}=this.computeDateVars(e.dateProfile);let r=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return O(er,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),t.options.stickyHeaderDates!==false?"fc-list-sticky":""],viewSpec:t.viewSpec},O(Ao,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},r.length>0?this.renderSegList(r,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context;let n={text:e.noEventsText,view:t};return O(Ji,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:gu,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(e=>O(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]})))}renderSegList(e,t){let{theme:n,options:i}=this.context;let{timeHeaderId:r,eventHeaderId:l,dateHeaderIdRoot:s}=this.state;let o=mu(e);return O(eo,{unit:"day"},((e,a)=>{let c=[];for(let n=0;n<o.length;n+=1){let f=o[n];if(f){let o=Nn(t[n]);let u=s+"-"+o;c.push(O(ou,{key:o,cellId:u,dayDate:t[n],todayRange:a}));f=Ml(f,i.eventOrder);for(let t of f){c.push(O(fu,Object.assign({key:o+":"+t.eventRange.instance.instanceId,seg:t,isDragging:false,isResizing:false,isDateSelecting:false,isSelected:false,timeHeaderId:r,eventHeaderId:l,dateHeaderId:u},Bl(t,a,e))))}}}return O("table",{className:"fc-list-table "+n.getClass("table")},O("thead",null,O("tr",null,O("th",{scope:"col",id:r},i.timeHint),O("th",{scope:"col","aria-hidden":true}),O("th",{scope:"col",id:l},i.eventHint))),O("tbody",null,c))}))}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(kl(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let i of e){n.push(...this.eventRangeToSegs(i,t))}return n}eventRangeToSegs(e,t){let{dateEnv:n}=this.context;let{nextDayThreshold:i}=this.context.options;let r=e.range;let l=e.def.allDay;let s;let o;let a;let c=[];for(s=0;s<t.length;s+=1){o=lr(r,t[s]);if(o){a={component:this,eventRange:e,start:o.start,end:o.end,isStart:e.isStart&&o.start.valueOf()===r.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===r.end.valueOf(),dayIndex:s};c.push(a);if(!a.isEnd&&!l&&s+1<t.length&&r.end<n.add(t[s+1].start,i)){a.end=r.end;a.isEnd=true;break}}}return c}}function gu(e){return e.text}function vu(e){let t=gn(e.renderRange.start);let n=e.renderRange.end;let i=[];let r=[];while(t<n){i.push(t);r.push({start:t,end:ln(t,1)});t=ln(t,1)}return{dayDates:i,dayRanges:r}}function mu(e){let t=[];let n;let i;for(n=0;n<e.length;n+=1){i=e[n];(t[i.dayIndex]||(t[i.dayIndex]=[])).push(i)}return t}var bu=':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}';qe(bu);const yu={listDayFormat:Au,listDaySideFormat:Au,noEventsClassNames:hi,noEventsContent:hi,noEventsDidMount:hi,noEventsWillUnmount:hi};function Au(e){return e===false?null:ni(e)}var wu=pa({name:"@fullcalendar/list",optionRefiners:yu,views:{list:{component:pu,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"}}}});class Eu extends hs{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){if(e.allDay){return["allDay"]}return["timed"]}getKeysForEventDef(e){if(!e.allDay){return["timed"]}if(Sl(e)){return["timed","allDay"]}return["allDay"]}}const xu=ni({hour:"numeric",minute:"2-digit",omitZeroMinute:true,meridiem:"short"});function ku(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return O(Pi.Consumer,null,(n=>{if(!e.isLabeled){return O("td",{className:t.join(" "),"data-time":e.isoTimeStr})}let{dateEnv:i,options:r,viewApi:l}=n;let s=r.slotLabelFormat==null?xu:Array.isArray(r.slotLabelFormat)?ni(r.slotLabelFormat[0]):ni(r.slotLabelFormat);let o={level:0,time:e.time,date:i.toDate(e.date),view:l,text:i.format(e.date,s)};return O(Ji,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:o,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:Su,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(e=>O("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},O(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function Su(e){return e.text}class Du extends Qi{render(){return this.props.slatMetas.map((e=>O("tr",{key:e.key},O(ku,Object.assign({},e)))))}}const Cu=ni({week:"short"});const Tu=5;class Nu extends zs{constructor(){super(...arguments);this.allDaySplitter=new Eu;this.headerElRef=j();this.rootElRef=j();this.scrollerElRef=j();this.state={slatCoords:null};this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;if(t){t.scrollTop=e}};this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context;let{dateProfile:i}=this.props;let r=i.renderRange;let l=an(r.start,r.end);let s=l===1?ys(this.context,r.start,"week"):{};if(n.weekNumbers&&e==="day"){return O($o,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":true},date:r.start,defaultFormat:Cu},(e=>O("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},O(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))))}return O("th",{"aria-hidden":true,className:"fc-timegrid-axis"},O("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))};this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context;let i={text:t.allDayText,view:n};return O(Ji,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":true},renderProps:i,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:Mu,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},(t=>O("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},O(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))};this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:i,props:r}=this;let l=[];let s=_o(i.options);if(e){l.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}})}if(t){l.push({type:"body",key:"all-day",chunk:{content:t}});l.push({type:"body",key:"all-day-divider",outerContent:O("tr",{role:"presentation",className:"fc-scrollgrid-section"},O("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})}l.push({type:"body",key:"body",liquid:true,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}});return O(er,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},O(Io,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,t,n,i,r,l,s){let o=this.context.pluginHooks.scrollGridImpl;if(!o){throw new Error("No ScrollGrid implementation")}let{context:a,props:c}=this;let f=!c.forPrint&&_o(a.options);let u=!c.forPrint&&jo(a.options);let d=[];if(e){d.push({type:"header",key:"header",isSticky:f,syncRowHeights:true,chunks:[{key:"axis",rowContent:e=>O("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]})}if(t){d.push({type:"body",key:"all-day",syncRowHeights:true,chunks:[{key:"axis",rowContent:e=>O("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]});d.push({key:"all-day-divider",type:"body",outerContent:O("tr",{role:"presentation",className:"fc-scrollgrid-section"},O("td",{colSpan:2,className:"fc-timegrid-divider "+a.theme.getClass("tableCellShaded")}))})}let h=a.options.nowIndicator;d.push({type:"body",key:"body",liquid:true,expandRows:Boolean(a.options.expandRows),chunks:[{key:"axis",content:e=>O("div",{className:"fc-timegrid-axis-chunk"},O("table",{"aria-hidden":true,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,O("tbody",null,O(Du,{slatMetas:l}))),O("div",{className:"fc-timegrid-now-indicator-container"},O(eo,{unit:h?"minute":"day"},(e=>{let t=h&&s&&s.safeComputeTop(e);if(typeof t==="number"){return O(Go,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:true,date:e})}return null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]});if(u){d.push({key:"footer",type:"footer",isSticky:true,chunks:[{key:"axis",content:Oo},{key:"cols",content:Oo}]})}return O(er,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:a.viewSpec},O(o,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:false,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:r}]}],sections:d}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;if(e===true||t===true){e=undefined;t=Tu}return{dayMaxEvents:e,dayMaxEventRows:t}}}function Mu(e){return e.text}class Ru{constructor(e,t,n){this.positions=e;this.dateProfile=t;this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(cr(t.currentRange,e)){let n=gn(e);let i=e.valueOf()-n.valueOf();if(i>=Xt(t.slotMinTime)&&i<Xt(t.slotMaxTime)){return this.computeTimeTop(Qt(i))}}return null}computeDateTop(e,t){if(!t){t=gn(e)}return this.computeTimeTop(Qt(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:n}=this;let i=t.els.length;let r=(e.milliseconds-Xt(n.slotMinTime))/Xt(this.slotDuration);let l;let s;r=Math.max(0,r);r=Math.min(i,r);l=Math.floor(r);l=Math.min(l,i-1);s=r-l;return t.tops[l]+t.getHeight(l)*s}}class Ou extends Qi{render(){let{props:e,context:t}=this;let{options:n}=t;let{slatElRefs:i}=e;return O("tbody",null,e.slatMetas.map(((r,l)=>{let s={time:r.time,date:t.dateEnv.toDate(r.date),view:t.viewApi};return O("tr",{key:r.key,ref:i.createRef(r.key)},e.axis&&O(ku,Object.assign({},r)),O(Ji,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!r.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":r.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}class _u extends Qi{constructor(){super(...arguments);this.rootElRef=j();this.slatElRefs=new wo}render(){let{props:e,context:t}=this;return O("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},O("table",{"aria-hidden":true,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,O(Ou,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){if(this.props.onCoords){this.props.onCoords(null)}}updateSizing(){let{context:e,props:t}=this;if(t.onCoords&&t.clientWidth!==null){let n=this.rootElRef.current;if(n.offsetHeight){t.onCoords(new Ru(new Os(this.rootElRef.current,ju(this.slatElRefs.currentMap,t.slatMetas),false,true),this.props.dateProfile,e.options.slotDuration))}}}}function ju(e,t){return t.map((t=>e[t.key]))}function Iu(e,t){let n=[];let i;for(i=0;i<t;i+=1){n.push([])}if(e){for(i=0;i<e.length;i+=1){n[e[i].col].push(e[i])}}return n}function Bu(e,t){let n=[];if(!e){for(let e=0;e<t;e+=1){n[e]=null}}else{for(let i=0;i<t;i+=1){n[i]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]}}for(let t of e.segs){n[t.col].segs.push(t)}}return n}class zu extends Qi{render(){let{props:e}=this;return O(Ko,{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:()=>Ku(e.hiddenSegs,e),defaultGenerator:Hu,forceTimed:true},(e=>O(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function Hu(e){return e.shortText}function Pu(e,t,n){let i=new Hs;if(t!=null){i.strictOrder=t}if(n!=null){i.maxStackCnt=n}let r=i.addSegs(e);let l=Us(r);let s=Gu(i);s=Wu(s,1);let o=Fu(s);return{segRects:o,hiddenGroups:l}}function Gu(e){const{entriesByLevel:t}=e;const n=Yu(((e,t)=>e+":"+t),((i,r)=>{let l=Lu(e,i,r);let s=Uu(l,n);let o=t[i][r];return[Object.assign(Object.assign({},o),{nextLevelNodes:s[0]}),o.thickness+s[1]]}));return Uu(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function Uu(e,t){if(!e){return[[],0]}let{level:n,lateralStart:i,lateralEnd:r}=e;let l=i;let s=[];while(l<r){s.push(t(n,l));l+=1}s.sort(Qu);return[s.map(Vu),s[0][1]]}function Qu(e,t){return t[1]-e[1]}function Vu(e){return e[0]}function Lu(e,t,n){let{levelCoords:i,entriesByLevel:r}=e;let l=r[t][n];let s=i[t]+l.thickness;let o=i.length;let a=t;for(;a<o&&i[a]<s;a+=1);for(;a<o;a+=1){let e=r[a];let t;let n=Ws(e,l.span.start,Ps);let i=n[0]+n[1];let s=i;while((t=e[s])&&t.span.start<l.span.end){s+=1}if(i<s){return{level:a,lateralStart:i,lateralEnd:s}}}return null}function Wu(e,t){const n=Yu(((e,t,n)=>Gs(e)),((e,i,r)=>{let{nextLevelNodes:l,thickness:s}=e;let o=s+r;let a=s/o;let c;let f=[];if(!l.length){c=t}else{for(let e of l){if(c===undefined){let t=n(e,i,o);c=t[0];f.push(t[1])}else{let t=n(e,c,0);f.push(t[1])}}}let u=(c-i)*a;return[c-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:f})]}));return e.map((e=>n(e,0,0)[1]))}function Fu(e){let t=[];const n=Yu(((e,t,n)=>Gs(e)),((e,n,r)=>{let l=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:r,stackForward:0});t.push(l);return l.stackForward=i(e.nextLevelNodes,n+e.thickness,r+1)+1}));function i(e,t,i){let r=0;for(let l of e){r=Math.max(n(l,t,i),r)}return r}i(e,0,0);return t}function Yu(e,t){const n={};return(...i)=>{let r=e(...i);return r in n?n[r]:n[r]=t(...i)}}function $u(e,t,n=null,i=0){let r=[];if(n){for(let l=0;l<e.length;l+=1){let s=e[l];let o=n.computeDateTop(s.start,t);let a=Math.max(o+(i||0),n.computeDateTop(s.end,t));r.push({start:Math.round(o),end:Math.round(a)})}}return r}function qu(e,t,n,i){let r=[];let l=[];for(let n=0;n<e.length;n+=1){let i=t[n];if(i){r.push({index:n,thickness:1,span:i})}else{l.push(e[n])}}let{segRects:s,hiddenGroups:o}=Pu(r,n,i);let a=[];for(let t of s){a.push({seg:e[t.index],rect:t})}for(let e of l){a.push({seg:e,rect:null})}return{segPlacements:a,hiddenGroups:o}}const Zu=ni({hour:"numeric",minute:"2-digit",meridiem:false});class Ju extends Qi{render(){return O(Ho,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Zu}))}}class Xu extends Qi{constructor(){super(...arguments);this.sortEventSegs=_n(Ml)}render(){let{props:e,context:t}=this;let{options:n}=t;let i=n.selectMirror;let r=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[];let l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};let s=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return O(Qo,{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},(t=>O("div",{className:"fc-timegrid-col-frame"},O("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),O("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,l,false,false,false)),O("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(r,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(i),"mirror")),O("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Vo(n)&&O(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(e,t,n,i,r,l){let{props:s}=this;if(s.forPrint){return Ku(e,s)}return this.renderPositionedFgSegs(e,t,n,i,r,l)}renderPositionedFgSegs(e,t,n,i,r,l){let{eventMaxStack:s,eventShortHeight:o,eventOrderStrict:a,eventMinHeight:c}=this.context.options;let{date:f,slatCoords:u,eventSelection:d,todayRange:h,nowDate:p}=this.props;let g=n||i||r;let v=$u(e,f,u,c);let{segPlacements:m,hiddenGroups:b}=qu(e,v,a,s);return O(I,null,this.renderHiddenGroups(b,e),m.map((e=>{let{seg:s,rect:a}=e;let c=s.eventRange.instance.instanceId;let f=g||Boolean(!t[c]&&a);let u=ed(a&&a.span);let v=!g&&a?this.computeSegHStyle(a):{left:0,right:0};let m=Boolean(a)&&a.stackForward>0;let b=Boolean(a)&&a.span.end-a.span.start<o;return O("div",{className:"fc-timegrid-event-harness"+(m?" fc-timegrid-event-harness-inset":""),key:l||c,style:Object.assign(Object.assign({visibility:f?"":"hidden"},u),v)},O(Ju,Object.assign({seg:s,isDragging:n,isResizing:i,isDateSelecting:r,isSelected:c===d,isShort:b},Bl(s,h,p))))})))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:i,todayRange:r,nowDate:l,eventSelection:s,eventDrag:o,eventResize:a}=this.props;return O(I,null,e.map((e=>{let c=ed(e.span);let f=td(e.entries,t);return O(zu,{key:Tn(na(f)),hiddenSegs:f,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:i,todayRange:r,nowDate:l,eventSelection:s,eventDrag:o,eventResize:a})})))}renderFillSegs(e,t){let{props:n,context:i}=this;let r=$u(e,n.date,n.slatCoords,i.options.eventMinHeight);let l=r.map(((i,r)=>{let l=e[r];return O("div",{key:Hl(l.eventRange),className:"fc-timegrid-bg-harness",style:ed(i)},t==="bg-event"?O(Wo,Object.assign({seg:l},Bl(l,n.todayRange,n.nowDate))):Yo(t))}));return O(I,null,l)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;if(!t){return null}return e.map(((e,i)=>O(Go,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:false,date:n})))}computeSegHStyle(e){let{isRtl:t,options:n}=this.context;let i=n.slotEventOverlap;let r=e.levelCoord;let l=e.levelCoord+e.thickness;let s;let o;if(i){l=Math.min(1,r+(l-r)*2)}if(t){s=1-l;o=r}else{s=r;o=1-l}let a={zIndex:e.stackDepth+1,left:s*100+"%",right:o*100+"%"};if(i&&!e.stackForward){a[t?"marginLeft":"marginRight"]=10*2}return a}}function Ku(e,{todayRange:t,nowDate:n,eventSelection:i,eventDrag:r,eventResize:l}){let s=(r?r.affectedInstances:null)||(l?l.affectedInstances:null)||{};return O(I,null,e.map((e=>{let r=e.eventRange.instance.instanceId;return O("div",{key:r,style:{visibility:s[r]?"hidden":""}},O(Ju,Object.assign({seg:e,isDragging:false,isResizing:false,isDateSelecting:false,isSelected:r===i,isShort:false},Bl(e,t,n))))})))}function ed(e){if(!e){return{top:"",bottom:""}}return{top:e.start,bottom:-e.end}}function td(e,t){return e.map((e=>t[e.index]))}class nd extends Qi{constructor(){super(...arguments);this.splitFgEventSegs=_n(Iu);this.splitBgEventSegs=_n(Iu);this.splitBusinessHourSegs=_n(Iu);this.splitNowIndicatorSegs=_n(Iu);this.splitDateSelectionSegs=_n(Iu);this.splitEventDrag=_n(Bu);this.splitEventResize=_n(Bu);this.rootElRef=j();this.cellElRefs=new wo}render(){let{props:e,context:t}=this;let n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate);let i=e.cells.length;let r=this.splitFgEventSegs(e.fgEventSegs,i);let l=this.splitBgEventSegs(e.bgEventSegs,i);let s=this.splitBusinessHourSegs(e.businessHourSegs,i);let o=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i);let a=this.splitDateSelectionSegs(e.dateSelectionSegs,i);let c=this.splitEventDrag(e.eventDrag,i);let f=this.splitEventResize(e.eventResize,i);return O("div",{className:"fc-timegrid-cols",ref:this.rootElRef},O("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,O("tbody",{role:"presentation"},O("tr",{role:"row"},e.axis&&O("td",{"aria-hidden":true,className:"fc-timegrid-col fc-timegrid-axis"},O("div",{className:"fc-timegrid-col-frame"},O("div",{className:"fc-timegrid-now-indicator-container"},typeof n==="number"&&O(Go,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:true,date:e.nowDate})))),e.cells.map(((t,n)=>O(Xu,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:r[n],bgEventSegs:l[n],businessHourSegs:s[n],nowIndicatorSegs:o[n],dateSelectionSegs:a[n],eventDrag:c[n],eventResize:f[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;if(e.onColCoords&&e.clientWidth!==null){e.onColCoords(new Os(this.rootElRef.current,id(this.cellElRefs.currentMap,e.cells),true,false))}}}function id(e,t){return t.map((t=>e[t.key]))}class rd extends zs{constructor(){super(...arguments);this.processSlotOptions=_n(ld);this.state={slatCoords:null};this.handleRootEl=e=>{if(e){this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed})}else{this.context.unregisterInteractiveComponent(this)}};this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props;let{slatCoords:n}=this.state;if(t&&n){if(e.time){let i=n.computeTimeTop(e.time);i=Math.ceil(i);if(i){i+=1}t(i)}return true}return false};this.handleColCoords=e=>{this.colCoords=e};this.handleSlatCoords=e=>{this.setState({slatCoords:e});if(this.props.onSlatCoords){this.props.onSlatCoords(e)}}}render(){let{props:e,state:t}=this;return O("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},O(_u,{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}),O(nd,{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:t.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,t){let{dateEnv:n,options:i}=this.context;let{colCoords:r}=this;let{dateProfile:l}=this.props;let{slatCoords:s}=this.state;let{snapDuration:o,snapsPerSlot:a}=this.processSlotOptions(this.props.slotDuration,i.snapDuration);let c=r.leftToIndex(e);let f=s.positions.topToIndex(t);if(c!=null&&f!=null){let e=this.props.cells[c];let i=s.positions.tops[f];let u=s.positions.getHeight(f);let d=(t-i)/u;let h=Math.floor(d*a);let p=f*a+h;let g=this.props.cells[c].date;let v=Ft(l.slotMinTime,$t(o,p));let m=n.add(g,v);let b=n.add(m,o);return{dateProfile:l,dateSpan:Object.assign({range:{start:m,end:b},allDay:false},e.extraDateSpan),dayEl:r.els[c],rect:{left:r.lefts[c],right:r.rights[c],top:i,bottom:i+u},layer:0}}return null}}function ld(e,t){let n=t||e;let i=Kt(e,n);if(i===null){n=e;i=1}return{snapDuration:n,snapsPerSlot:i}}class sd extends so{sliceRange(e,t){let n=[];for(let i=0;i<t.length;i+=1){let r=lr(e,t[i]);if(r){n.push({start:r.start,end:r.end,isStart:r.start.valueOf()===e.start.valueOf(),isEnd:r.end.valueOf()===e.end.valueOf(),col:i})}}return n}}class od extends zs{constructor(){super(...arguments);this.buildDayRanges=_n(ad);this.slicer=new sd;this.timeColsRef=j()}render(){let{props:e,context:t}=this;let{dateProfile:n,dayTableModel:i}=e;let{nowIndicator:r,nextDayThreshold:l}=t.options;let s=this.buildDayRanges(i,n,t.dateEnv);return O(eo,{unit:r?"minute":"day"},((o,a)=>O(rd,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,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:r&&this.slicer.sliceNowDate(o,n,l,t,s),todayRange:a,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords}))))}}function ad(e,t,n){let i=[];for(let r of e.headerDates){i.push({start:n.add(r,t.slotMinTime),end:n.add(r,t.slotMaxTime)})}return i}const cd=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function fd(e,t,n,i,r){let l=new Date(0);let s=e;let o=Qt(0);let a=n||ud(i);let c=[];while(Xt(s)<Xt(t)){let e=r.add(l,s);let t=Kt(o,a)!==null;c.push({date:e,time:s,key:e.toISOString(),isoTimeStr:Rn(e),isLabeled:t});s=Ft(s,i);o=Ft(o,i)}return c}function ud(e){let t;let n;let i;for(t=cd.length-1;t>=0;t-=1){n=Qt(cd[t]);i=Kt(n,e);if(i!==null&&i>1){return n}}return e}class dd extends Nu{constructor(){super(...arguments);this.buildTimeColsModel=_n(hd);this.buildSlatMetas=_n(fd)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context;let{props:i}=this;let{dateProfile:r}=i;let l=this.buildTimeColsModel(r,n);let s=this.allDaySplitter.splitProps(i);let o=this.buildSlatMetas(r.slotMinTime,r.slotMaxTime,e.slotLabelInterval,e.slotDuration,t);let{dayMinWidth:a}=e;let c=!a;let f=a;let u=e.dayHeaders&&O(no,{dates:l.headerDates,dateProfile:r,datesRepDistinctDays:true,renderIntro:c?this.renderHeadAxis:null});let d=e.allDaySlot!==false&&(t=>O(bf,Object.assign({},s.allDay,{dateProfile:r,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:false,expandRows:false,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps())));let h=t=>O(od,Object.assign({},s.timed,{dayTableModel:l,dateProfile:r,axis:c,slotDuration:e.slotDuration,slatMetas:o,forPrint:i.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return f?this.renderHScrollLayout(u,d,h,l.colCnt,a,o,this.state.slatCoords):this.renderSimpleLayout(u,d,h)}}function hd(e,t){let n=new ro(e.renderRange,t);return new lo(n,false)}var pd='.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}';qe(pd);const gd={allDaySlot:Boolean};var vd=pa({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:gd,views:{timeGrid:{component:dd,usesMinMaxTime:true,allDaySlot:true,slotDuration:"00:30:00",slotEventOverlap:true},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});var md={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}};var bd={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"};var yd={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"};var Ad={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"};var wd={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"};var Ed={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"};var xd={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"};var kd;(function(e){e["currentDate"]="Sets the date of the calendar. Must be in ISO format (YYYY-MM-DD).";e["customStyle"]="Custom style of the component.";e["data"]="Actual data of the calendar.";e["editableEvents"]="When true, events are editable.";e["hideNavigation"]="When disabled, the navigation toolbar won't be displayed.";e["viewType"]="Type of the view."})(kd||(kd={}));var Sd;(function(e){e["DAY"]="timeGridDay";e["LIST"]="listMonth";e["MONTH"]="dayGridMonth";e["WEEK"]="timeGridWeek"})(Sd||(Sd={}));var Dd;(function(e){e["DATE"]="date";e["DESCR"]="descr";e["END"]="end";e["ICON"]="icon";e["IMAGE"]="image";e["START"]="start";e["STYLE"]="style"})(Dd||(Dd={}));const Cd=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-layer-1)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-subtle)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-gray-color-30)\n );--kup_calendar_event_border_radius:var(\n --kup-calendar-event-border-radius,\n 4px\n );--kup_calendar_event_color:var(\n --kup-calendar-event-color,\n var(--kup-text-secondary)\n );--kup_calendar_font_family:var(\n --kup-calendar-font-family,\n var(--kup-font-family)\n );--kup_calendar_font_size:var(--kup-calendar-font-size, var(--kup-font-size));--kup_calendar_header_background_color:var(\n --kup-calendar-header-background-color,\n var(--kup-layer-2)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-text-secondary)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 1px solid var(--kup-border-subtle)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n var(--kup-layer-0)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-text-secondary)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n var(--kup-layer-2)\n );--kup_calendar_border_top_color:var(\n --kup-calendar-border-top-color,\n var(--kup-border-interactive)\n );--fc-border-color:var(--kup_calendar_border_color);background-color:var(--kup_calendar_background_color);display:block;font-family:var(--kup_calendar_font_family);font-size:var(--kup_calendar_font_size);height:100%;width:100%}.navigation{align-items:center;display:flex;justify-content:space-between;background-color:var(--kup_calendar_background_color)}.navigation__left{--kup-font-size:0.875em;display:flex;margin-left:var(--kup-space-03)}.navigation__right{display:flex;margin-right:var(--kup-space-03)}.navigation__title{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0;margin:0px;padding:0px 0.5em}.navigation__title--centered{padding:0.35em 0;text-align:center;width:100%}.icon-wrapper{display:flex;justify-content:flex-end;flex-wrap:wrap}.image-wrapper{display:flex;justify-content:space-between;flex-wrap:wrap}.image-wrapper img{width:20px;height:20px}.custom-icon{background-color:var(--kup_calendar_event_color);height:1.5em;width:1.5em}#kup-component .fc-toolbar.fc-header-toolbar{margin-top:1.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top{text-align:center;padding:0.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top .fc-day-number{float:none}#kup-component .fc-content{padding:0.25rem}#kup-component .fc-event-title{white-space:normal;word-break:break-word}#kup-component .fc-content,#kup-component .fc-divider,#kup-component .fc-list-heading td,#kup-component .fc-list-view,#kup-component .fc-popover,#kup-component .fc-row,#kup-component .fc-scrollgrid,#kup-component tbody,#kup-component td{border-color:var(--kup_calendar_border_color)}#kup-component .fc-col-header-cell{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color)}#kup-component .fc-h-event{background:none;border:none}#kup-component .fc-list-event-dot{border-color:var(--kup_calendar_event_background_color)}#kup-component .fc-list-day-cushion{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color);font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}#kup-component .fc-list-event:hover td{background:var(--kup-hover-background-color);color:var(--kup-hover-color)}#kup-component .fc-daygrid-event,#kup-component .fc-timegrid-event{background:var(--kup_calendar_event_background_color);border:none;border-color:var(--kup_calendar_event_background_color);color:var(--kup_calendar_event_color)}#kup-component .fc-event-main{color:inherit}#kup-component .fc-event-title{padding:0.25em}#kup-component .fc-event-time{white-space:pre}#kup-component td.fc-day-today{background-color:var(--kup_calendar_today_background_color);border-top:2px solid var(--kup_calendar_border_top_color)}#kup-component td.fc-day-sun,#kup-component td.fc-day-sat{background-color:var(--kup_calendar_no_work_day_background_color);color:var(--kup_calendar_no_work_day_color);opacity:0.7}@media (max-width: 599px){.navigation{flex-direction:column}.calendar{height:100%}.calendar .fc-view-harness{min-height:450px}.navigation .navigation__left{font-size:20px;gap:8px}.navigation .navigation__right .f-chip .chip-set .chip-set__item{font-size:16px}}@media (min-width: 599px){#kup-component .fc-daygrid-event{align-items:baseline;white-space:pre-line}}";const Td=Cd;const Nd=class{constructor(n){e(this,n);this.kupCalendarEventClick=t(this,"kup-calendar-eventclick",6);this.kupCalendarDateClick=t(this,"kup-calendar-dateclick",6);this.kupCalendarEventDrop=t(this,"kup-calendar-eventdrop",6);this.kupCalendarViewChange=t(this,"kup-calendar-viewchange",6);this.calendarContainer=null;this.kupManager=o();this.navTitle=null;this.resizeTimeout=null;this.dateCol=null;this.descrCol=null;this.endCol=null;this.iconCol=null;this.imageCol=null;this.startCol=null;this.styleCol=null;this.currentDate=null;this.customStyle="";this.data=null;this.calendarColumns={[Dd.DATE]:"",[Dd.DESCR]:"",[Dd.END]:"",[Dd.ICON]:"",[Dd.IMAGE]:"",[Dd.START]:"",[Dd.STYLE]:""};this.hideNavigation=false;this.editableEvents=true;this.viewType=Sd.MONTH}setCalendarData(){var e;if(!this.calendarContainer){return}if(this.calendar){this.calendar.destroy()}if((e=this.data)===null||e===void 0?void 0:e.columns){this.data.columns.forEach((e=>{for(const t in this.calendarColumns){if(this.calendarColumns[t]===e.name){this[`${t}Col`]=e.name;break}}}))}this.calendar=new Gc(this.calendarContainer,{dateClick:({date:e})=>{this.kupCalendarDateClick.emit({comp:this,id:this.rootElement.id,date:e})},editable:true,eventClick:({event:e})=>{this.kupCalendarEventClick.emit({comp:this,id:this.rootElement.id,row:e.extendedProps.row})},eventDidMount:e=>{if(this.iconCol){const t=e.event.extendedProps.row;const i=t.cells[this.iconCol];if(i&&i.value){const t=document.createElement("div");t.classList.add("icon-wrapper");i.value.split(";").forEach((e=>{const i=document.createElement("span");i.className="custom-icon";const r=n(`./assets/svg/${e}.svg`);i.style.mask=`url('${r}') no-repeat center`;i.style.webkitMask=`url('${r}') no-repeat center`;t.appendChild(i)}));e.el.appendChild(t)}}if(this.imageCol){const t=e.event.extendedProps.row;const n=t.cells[this.imageCol];if(n&&n.value){const t=document.createElement("div");t.classList.add("image-wrapper");n.value.split(";").forEach((e=>{const n=document.createElement("img");n.src=e;t.appendChild(n)}));e.el.appendChild(t)}}if(this.styleCol){const t=e.event.extendedProps.row;const n=t.cells[this.styleCol];const i=e.el.children[0];const r=i.parentElement;if(n&&n.style){Object.keys(n.style).forEach((e=>{r.style[e]=n.style[e]}))}}},eventDrop:({event:e,oldEvent:t})=>{var n;this.kupCalendarEventDrop.emit({comp:this,id:this.rootElement.id,fromDate:{start:t.start,end:t.end},toDate:{start:e.start,end:e.end},row:(n=t.extendedProps)===null||n===void 0?void 0:n.row})},events:this.getEvents(),headerToolbar:false,initialDate:this.currentDate,initialView:this.viewType,locale:this.getLocale(),locales:[bd,yd,Ad,wd,Ed,xd],plugins:[kf,su,wu,vd]});this.calendar.render()}async getProps(e){return a(this,kd,e)}async refresh(){i(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout);this.resizeTimeout=window.setTimeout((()=>{this.refresh()}),300)}async setProps(e){c(this,kd,e)}changeView(e){this.viewType=e;this.calendar.changeView(e);this.emitNavEvent()}getColumns(){if(this.data&&this.data.rows){return this.data.columns}return[]}getLocale(){switch(this.kupManager.dates.locale){case v.CHINESE:return xd;case v.FRENCH:return yd;case v.ITALIAN:return Ad;case v.POLISH:return wd;case v.RUSSIAN:return Ed;case v.SPANISH:return bd;default:return md}}getRows(){if(this.data&&this.data.rows){return this.data.rows}return[]}setChipProps(){const e={data:[],onClick:[],type:g.CHOICE,wrapperClass:"navigation__choice"};for(const t in Sd){const n=Sd[t];const i={checked:this.viewType===n?true:false,value:this.kupManager.language.translate(f[t]),id:t};e.data.push(i);e.onClick.push((()=>this.changeView(n)))}return e}getEvents(){const e=this.startCol&&this.endCol&&u(this.getColumns(),this.startCol)&&u(this.getColumns(),this.endCol);return this.getRows().map((t=>{const n=t.cells[this.dateCol];let i=this.kupManager.dates.toDayjs(n.value);let r=this.kupManager.dates.toDayjs(n.value);if(e){const e=t.cells[this.startCol];const n=t.cells[this.endCol];if(e&&n){const t=this.kupManager.dates.toDayjs(e.value,m.ISO_TIME);const l=this.kupManager.dates.toDayjs(n.value,m.ISO_TIME);i=i.hour(t.hour());i=i.minute(t.minute());i=i.second(t.second());r=r.hour(l.hour());r=r.minute(l.minute());r=r.second(l.second())}}const l={allDay:e?false:true,editable:this.editableEvents,end:r.toISOString(),extendedProps:{row:t},start:i.toISOString(),title:t.cells[this.descrCol].value};return l}))}onPrev(){this.calendar.prev();this.updateCalendar();this.emitNavEvent()}onNext(){this.calendar.next();this.updateCalendar();this.emitNavEvent()}onToday(){this.calendar.today();this.updateCalendar()}emitNavEvent(){const e=this.kupManager.dates.subtract(this.calendar.view.currentEnd,1,"day").toDate();this.kupCalendarViewChange.emit({comp:this,id:this.rootElement.id,from:this.calendar.view.currentStart,to:e})}updateCalendar(){if(this.calendar){this.calendar.setOption("locale",this.getLocale());this.navTitle.innerText=this.calendar.getCurrentData().viewTitle;this.calendar.updateSize()}}componentWillLoad(){this.kupManager.dates.register(this);this.kupManager.debug.logLoad(this,false);this.kupManager.language.register(this);this.kupManager.theme.register(this)}componentDidLoad(){this.setCalendarData();this.updateCalendar();this.kupManager.resize.observe(this.rootElement);this.kupManager.debug.logLoad(this,true)}componentWillRender(){this.kupManager.debug.logRender(this,false)}componentDidRender(){this.updateCalendar();this.kupManager.debug.logRender(this,true)}render(){return r(l,{key:"bdd424eed81973543ce0456b76729821e630de31"},r("style",{key:"390d5a2a2d06f5119d1e03c7fd00271983ebcce4"},this.kupManager.theme.setKupStyle(this.rootElement)),r("div",{key:"7b24bb47c6b934f5fe47289790ee717ce261d9b9",id:d},r("div",{key:"2f72c647d22945a38bce0073729ffbd3f28dec9e",class:"navigation"},!this.hideNavigation?r("div",{class:"navigation__left"},r(h,{icon:"chevron_left",onClick:()=>this.onPrev(),title:this.kupManager.language.translate(f.PREVIOUS),wrapperClass:"navigation__prev"}),r(h,{icon:"calendar",onClick:()=>this.onToday(),title:this.kupManager.language.translate(f.TODAY),wrapperClass:"navigation__today"}),r(h,{icon:"chevron_right",onClick:()=>this.onNext(),title:this.kupManager.language.translate(f.NEXT),wrapperClass:"navigation__next"})):null,r("div",{key:"35a9b8aa076db1e723de96fcd9a5eb8b6b7dcf40",class:`navigation__title ${this.hideNavigation?"navigation__title--centered":""}`,ref:e=>{this.navTitle=e}}),!this.hideNavigation?r("div",{class:"navigation__right"},r(p,Object.assign({},this.setChipProps()))):null),r("div",{key:"4ade88713da0e92a1c21b62922db53c23f0e6e0a",class:"calendar",ref:e=>this.calendarContainer=e})))}disconnectedCallback(){if(this.calendar){this.calendar.destroy()}this.kupManager.dates.unregister(this);this.kupManager.language.unregister(this);this.kupManager.resize.unobserve(this.rootElement);this.kupManager.theme.unregister(this)}get rootElement(){return s(this)}static get watchers(){return{data:["setCalendarData"],currentDate:["setCalendarData"]}}};Nd.style=Td;export{Nd as kup_calendar};
|
|
2
|
+
//# sourceMappingURL=p-ce048e24.entry.js.map
|