@sme.up/ketchup 4.0.0 → 4.1.0
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/{cell-utils-1f89a299.js → cell-utils-841a7769.js} +2 -2
- package/dist/cjs/{f-chip-2d58c8f7.js → f-chip-b9f489ff.js} +7 -5
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-0c3e6aa7.js} +3 -4
- package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +1014 -1103
- package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
- package/dist/cjs/kup-dash-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-dash_2.cjs.entry.js +106 -62
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/kup-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +21 -30
- package/dist/cjs/{kup-manager-59ad8bdc.js → kup-manager-828bd598.js} +599 -519
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/{kup-objects-59ea949c.js → kup-objects-89f38d6a.js} +7 -29
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-2af73538.js → utils-5192ee20.js} +1 -1
- package/dist/collection/assets/data-table.js +1 -0
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/components/kup-accordion/kup-accordion.js +14 -14
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +9 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +20 -23
- package/dist/collection/components/kup-badge/kup-badge.js +12 -12
- package/dist/collection/components/kup-box/kup-box.css +30 -30
- package/dist/collection/components/kup-box/kup-box.js +181 -171
- package/dist/collection/components/kup-button/kup-button.css +8 -5
- package/dist/collection/components/kup-button/kup-button.js +26 -26
- package/dist/collection/components/kup-button-list/kup-button-list.css +8 -5
- package/dist/collection/components/kup-button-list/kup-button-list.js +18 -18
- package/dist/collection/components/kup-calendar/kup-calendar.css +8 -6
- package/dist/collection/components/kup-calendar/kup-calendar.js +30 -30
- package/dist/collection/components/kup-card/kup-card-helper.js +2 -1
- package/dist/collection/components/kup-card/kup-card.css +20 -1
- package/dist/collection/components/kup-card/kup-card.js +26 -26
- package/dist/collection/components/kup-chart/kup-chart.js +40 -40
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +18 -18
- package/dist/collection/components/kup-chip/kup-chip.css +0 -1
- package/dist/collection/components/kup-chip/kup-chip.js +14 -14
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +6 -9
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +32 -40
- package/dist/collection/components/kup-combobox/kup-combobox.css +9 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +20 -23
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +2 -2
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +25 -46
- package/dist/collection/components/kup-data-table/kup-data-table.css +83 -87
- package/dist/collection/components/kup-data-table/kup-data-table.js +364 -531
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +2373 -5
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +72 -104
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -8
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +13 -5
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +38 -43
- package/dist/collection/components/kup-field/kup-field.js +20 -20
- package/dist/collection/components/kup-gauge/kup-gauge.js +16 -16
- package/dist/collection/components/kup-grid/kup-grid.css +2 -1
- package/dist/collection/components/kup-grid/kup-grid.js +12 -12
- package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
- package/dist/collection/components/kup-image/kup-image.js +24 -24
- package/dist/collection/components/kup-lazy/kup-lazy.js +16 -16
- package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
- package/dist/collection/components/kup-list/kup-list.css +4 -0
- package/dist/collection/components/kup-list/kup-list.js +38 -47
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +11 -6
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +27 -36
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +10 -10
- package/dist/collection/components/kup-paginator/kup-paginator.css +8 -5
- package/dist/collection/components/kup-probe/kup-probe.js +8 -8
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +20 -20
- package/dist/collection/components/kup-radio/kup-radio.js +16 -16
- package/dist/collection/components/kup-rating/kup-rating.js +14 -14
- package/dist/collection/components/kup-spinner/kup-spinner.js +22 -22
- package/dist/collection/components/kup-switch/kup-switch.js +16 -16
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +12 -12
- package/dist/collection/components/kup-text-field/kup-text-field.js +48 -48
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +2376 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +50 -83
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +18 -12
- package/dist/collection/components/kup-tree/kup-tree.css +10 -10
- package/dist/collection/components/kup-tree/kup-tree.js +96 -66
- package/dist/collection/f-components/f-button/f-button.js +4 -2
- package/dist/collection/f-components/f-image/f-image.js +1 -2
- package/dist/collection/f-components/f-text-field/f-text-field.js +8 -6
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +11 -3
- package/dist/collection/utils/kup-debug/kup-debug.js +25 -27
- package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +3 -5
- package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
- package/dist/collection/utils/kup-interact/kup-interact.js +362 -0
- package/dist/collection/utils/kup-manager/kup-manager.js +18 -6
- package/dist/collection/utils/kup-objects/kup-objects.js +7 -29
- package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
- package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
- package/dist/esm/{cell-utils-cb612463.js → cell-utils-de384721.js} +2 -2
- package/dist/esm/{f-chip-125d5dd6.js → f-chip-d585b63e.js} +7 -5
- package/dist/esm/{f-image-68b34fab.js → f-image-23548d00.js} +3 -4
- package/dist/esm/{index-bf2824a6.js → index-51694018.js} +73 -64
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_29.entry.js +818 -907
- package/dist/esm/kup-calendar.entry.js +8 -8
- package/dist/esm/kup-dash-list.entry.js +6 -6
- package/dist/esm/kup-dash_2.entry.js +106 -62
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/kup-field.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +21 -30
- package/dist/esm/{kup-manager-e7d7b353.js → kup-manager-583f2815.js} +595 -520
- package/dist/esm/kup-nav-bar.entry.js +4 -4
- package/dist/esm/{kup-objects-d38d2fa2.js → kup-objects-5968aefd.js} +7 -29
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-13dd007a.js → utils-a1dd14c3.js} +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-64ea7e37.entry.js → p-0e91c9c9.entry.js} +1 -1
- package/dist/ketchup/{p-0320e24e.entry.js → p-0f2b6a24.entry.js} +1 -1
- package/dist/ketchup/{p-a5424073.js → p-361d9431.js} +1 -1
- package/dist/ketchup/p-565785ce.js +1 -0
- package/dist/ketchup/{p-7896031c.entry.js → p-57eb45ac.entry.js} +1 -1
- package/dist/ketchup/{p-08c7a092.js → p-6f5d8830.js} +1 -1
- package/dist/ketchup/{p-9c858a38.entry.js → p-802d8906.entry.js} +1 -1
- package/dist/ketchup/p-850b9e67.entry.js +1 -0
- package/dist/ketchup/{p-a12a5690.entry.js → p-88a5787a.entry.js} +1 -1
- package/dist/ketchup/p-8ed2b7bf.entry.js +1 -0
- package/dist/ketchup/{p-ee89966f.entry.js → p-90a0c2b7.entry.js} +2 -2
- package/dist/ketchup/{p-876da4c2.entry.js → p-94c0dd8c.entry.js} +1 -1
- package/dist/ketchup/p-9ec3c377.entry.js +45 -0
- package/dist/ketchup/p-b30f34d8.js +1 -0
- package/dist/ketchup/p-b6a47512.entry.js +1 -0
- package/dist/ketchup/p-bfaf8a82.js +1 -0
- package/dist/ketchup/{p-940ab57a.entry.js → p-ca0ebdcc.entry.js} +1 -1
- package/dist/ketchup/p-d5a3a4ed.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-ee7b190c.js} +1 -1
- package/dist/ketchup/{p-b0724035.entry.js → p-f6b54fa1.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +11 -2
- package/dist/types/components/kup-box/kup-box.d.ts +8 -4
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +0 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +12 -4
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +0 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +16 -49
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -14
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +0 -4
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
- package/dist/types/components/kup-list/kup-list.d.ts +2 -3
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +7 -11
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
- package/dist/types/components/kup-tree/kup-tree.d.ts +3 -0
- package/dist/types/components.d.ts +84 -121
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
- package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
- package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
- package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +21 -4
- package/dist/types/utils/kup-manager/kup-manager.d.ts +2 -2
- package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
- package/package.json +3 -3
- package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
- package/dist/cjs/kup-grid.cjs.entry.js +0 -130
- package/dist/collection/assets/images/drag-multiple.js +0 -1
- package/dist/collection/components/kup-layout/kup-layout.css +0 -53
- package/dist/collection/components/kup-layout/kup-layout.js +0 -156
- package/dist/collection/utils/drag-and-drop.js +0 -109
- package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
- package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
- package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
- package/dist/esm/kup-grid.entry.js +0 -126
- package/dist/ketchup/p-00fe1e3e.js +0 -1
- package/dist/ketchup/p-1165f4ea.entry.js +0 -1
- package/dist/ketchup/p-170d3cba.js +0 -1
- package/dist/ketchup/p-18cb3ba3.js +0 -1
- package/dist/ketchup/p-23541a97.entry.js +0 -45
- package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
- package/dist/ketchup/p-b14e77f0.js +0 -1
- package/dist/ketchup/p-d24cfdea.entry.js +0 -1
- package/dist/ketchup/p-fcd2fd8f.js +0 -1
- package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
- package/dist/types/assets/images/drag-multiple.d.ts +0 -1
- package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
- package/dist/types/utils/drag-and-drop.d.ts +0 -53
- package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
- package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,c as n,f as e,g as r,h as i,a as o}from"./p-00fe1e3e.js";import{_ as a,a as u,b as s}from"./p-5a4a5fdc.js";import{d as c,g as l,e as f}from"./p-a5424073.js";import{k as d,d as h}from"./p-18cb3ba3.js";import{c as v}from"./p-08c7a092.js";import{c as p}from"./p-ad2e21d2.js";import{F as g,a as m,b}from"./p-b14e77f0.js";import{g as y,s as A}from"./p-c7ee1fbc.js";import"./p-0fd98ab4.js";import"./p-fcd2fd8f.js";var w,k,_,x,E,D,N,S={},C=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function M(t,n){for(var e in n)t[e]=n[e];return t}function R(t){var n=t.parentNode;n&&n.removeChild(t)}function B(t,n,e){var r,i,o,a={};for(o in n)"key"==o?r=n[o]:"ref"==o?i=n[o]:a[o]=n[o];if(arguments.length>2&&(a.children=arguments.length>3?w.call(arguments,2):e),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===a[o]&&(a[o]=t.defaultProps[o]);return z(t,a,r,i,null)}function z(t,n,e,r,i){var o={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++_:i};return null!=k.vnode&&k.vnode(o),o}function I(t){return t.children}function P(t,n){this.props=t,this.context=n}function Q(t,n){if(null==n)return t.__?Q(t.__,t.__.__k.indexOf(t)+1):null;for(var e;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof t.type?Q(t):null}function O(t){var n,e;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e){t.__e=t.__c.base=e.__e;break}return O(t)}}function V(t){(!t.__d&&(t.__d=!0)&&x.push(t)&&!H.__r++||D!==k.debounceRendering)&&((D=k.debounceRendering)||E)(H)}function H(){for(var t;H.__r=x.length;)t=x.sort((function(t,n){return t.__v.__b-n.__v.__b})),x=[],t.some((function(t){var n,e,r,i,o,a;t.__d&&(o=(i=(n=t).__v).__e,(a=n.__P)&&(e=[],(r=M({},i)).__v=i.__v+1,q(a,i,r,n.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,e,null==o?Q(i):o,i.__h),J(e,i),i.__e!=o&&O(i)))}))}function j(t,n,e,r,i,o,a,u,s,c){var l,f,d,h,v,p,g,m=r&&r.__k||C,b=m.length;for(e.__k=[],l=0;l<n.length;l++)if(null!=(h=e.__k[l]=null==(h=n[l])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?z(null,h,null,null,h):Array.isArray(h)?z(I,{children:h},null,null,null):h.__b>0?z(h.type,h.props,h.key,null,h.__v):h)){if(h.__=e,h.__b=e.__b+1,null===(d=m[l])||d&&h.key==d.key&&h.type===d.type)m[l]=void 0;else for(f=0;f<b;f++){if((d=m[f])&&h.key==d.key&&h.type===d.type){m[f]=void 0;break}d=null}q(t,h,d=d||S,i,o,a,u,s,c),v=h.__e,(f=h.ref)&&d.ref!=f&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(f,h.__c||v,h)),null!=v?(null==p&&(p=v),"function"==typeof h.type&&null!=h.__k&&h.__k===d.__k?h.__d=s=U(h,s,t):s=G(t,h,d,m,v,s),c||"option"!==e.type?"function"==typeof e.type&&(e.__d=s):t.value=""):s&&d.__e==s&&s.parentNode!=t&&(s=Q(d))}for(e.__e=p,l=b;l--;)null!=m[l]&&("function"==typeof e.type&&null!=m[l].__e&&m[l].__e==e.__d&&(e.__d=Q(r,l+1)),K(m[l],m[l]));if(g)for(l=0;l<g.length;l++)$(g[l],g[++l],g[++l])}function U(t,n,e){var r,i;for(r=0;r<t.__k.length;r++)(i=t.__k[r])&&(i.__=t,n="function"==typeof i.type?U(i,n,e):G(e,i,i,t.__k,i.__e,n));return n}function F(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){F(t,n)})):n.push(t)),n}function G(t,n,e,r,i,o){var a,u,s;if(void 0!==n.__d)a=n.__d,n.__d=void 0;else if(null==e||i!=o||null==i.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(i),a=null;else{for(u=o,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==i)break t;t.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function L(t,n,e){"-"===n[0]?t.setProperty(n,e):t[n]=null==e?"":"number"!=typeof e||T.test(n)?e:e+"px"}function W(t,n,e,r,i){var o;t:if("style"===n)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(n in r)e&&n in e||L(t.style,n,"");if(e)for(n in e)r&&e[n]===r[n]||L(t.style,n,e[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+o]=e,e?r||t.addEventListener(n,o?Z:Y,o):t.removeEventListener(n,o?Z:Y,o);else if("dangerouslySetInnerHTML"!==n){if(i)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==e?"":e;break t}catch(t){}"function"==typeof e||(null!=e&&(!1!==e||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,e):t.removeAttribute(n))}}function Y(t){this.l[t.type+!1](k.event?k.event(t):t)}function Z(t){this.l[t.type+!0](k.event?k.event(t):t)}function q(t,n,e,r,i,o,a,u,s){var c,l,f,d,h,v,p,g,m,b,y,A=n.type;if(void 0!==n.constructor)return null;null!=e.__h&&(s=e.__h,u=n.__e=e.__e,n.__h=null,o=[u]),(c=k.__b)&&c(n);try{t:if("function"==typeof A){if(g=n.props,m=(c=A.contextType)&&r[c.__c],b=c?m?m.props.value:c.__:r,e.__c?p=(l=n.__c=e.__c).__=l.__E:("prototype"in A&&A.prototype.render?n.__c=l=new A(g,b):(n.__c=l=new P(g,b),l.constructor=A,l.render=tt),m&&m.sub(l),l.props=g,l.state||(l.state={}),l.context=b,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=A.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=M({},l.__s)),M(l.__s,A.getDerivedStateFromProps(g,l.__s))),d=l.props,h=l.state,f)null==A.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==A.getDerivedStateFromProps&&g!==d&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,b),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,b)||n.__v===e.__v){l.props=g,l.state=l.__s,n.__v!==e.__v&&(l.__d=!1),l.__v=n,n.__e=e.__e,n.__k=e.__k,n.__k.forEach((function(t){t&&(t.__=n)})),l.__h.length&&a.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,b),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(d,h,v)}))}l.context=b,l.props=g,l.state=l.__s,(c=k.__r)&&c(n),l.__d=!1,l.__v=n,l.__P=t,c=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=M(M({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(v=l.getSnapshotBeforeUpdate(d,h)),y=null!=c&&c.type===I&&null==c.key?c.props.children:c,j(t,Array.isArray(y)?y:[y],n,e,r,i,o,a,u,s),l.base=n.__e,n.__h=null,l.__h.length&&a.push(l),p&&(l.__E=l.__=null),l.__e=!1}else null==o&&n.__v===e.__v?(n.__k=e.__k,n.__e=e.__e):n.__e=X(e.__e,n,e,r,i,o,a,s);(c=k.diffed)&&c(n)}catch(t){n.__v=null,(s||null!=o)&&(n.__e=u,n.__h=!!s,o[o.indexOf(u)]=null),k.__e(t,n,e)}}function J(t,n){k.__c&&k.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){k.__e(t,n.__v)}}))}function X(t,n,e,r,i,o,a,u){var s,c,l,f=e.props,d=n.props,h=n.type,v=0;if("svg"===h&&(i=!0),null!=o)for(;v<o.length;v++)if((s=o[v])&&(s===t||(h?s.localName==h:3==s.nodeType))){t=s,o[v]=null;break}if(null==t){if(null===h)return document.createTextNode(d);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,u=!1}if(null===h)f===d||u&&t.data===d||(t.data=d);else{if(o=o&&w.call(t.childNodes),c=(f=e.props||S).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!u){if(null!=o)for(f={},v=0;v<t.attributes.length;v++)f[t.attributes[v].name]=t.attributes[v].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===t.innerHTML)||(t.innerHTML=l&&l.__html||""))}if(function(t,n,e,r,i){var o;for(o in e)"children"===o||"key"===o||o in n||W(t,o,null,e[o],r);for(o in n)i&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||e[o]===n[o]||W(t,o,n[o],e[o],r)}(t,d,f,i,u),l)n.__k=[];else if(v=n.props.children,j(t,Array.isArray(v)?v:[v],n,e,r,i&&"foreignObject"!==h,o,a,o?o[0]:e.__k&&Q(e,0),u),null!=o)for(v=o.length;v--;)null!=o[v]&&R(o[v]);u||("value"in d&&void 0!==(v=d.value)&&(v!==t.value||"progress"===h&&!v)&&W(t,"value",v,f.value,!1),"checked"in d&&void 0!==(v=d.checked)&&v!==t.checked&&W(t,"checked",v,f.checked,!1))}return t}function $(t,n,e){try{"function"==typeof t?t(n):t.current=n}catch(t){k.__e(t,e)}}function K(t,n,e){var r,i;if(k.unmount&&k.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||$(r,null,n)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){k.__e(t,n)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&K(r[i],n,"function"!=typeof t.type);e||null==t.__e||R(t.__e),t.__e=t.__d=void 0}function tt(t,n,e){return this.constructor(t,e)}function nt(t,n,e){var r,i,o;k.__&&k.__(t,n),i=(r="function"==typeof e)?null:e&&e.__k||n.__k,o=[],q(n,t=(!r&&e||n).__k=B(I,null,[t]),i||S,S,void 0!==n.ownerSVGElement,!r&&e?[e]:i?null:n.firstChild?w.call(n.childNodes):null,o,!r&&e?e:i?i.__e:n.firstChild,r),J(o,t)}w=C.slice,k={__e:function(t,n){for(var e,r,i;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),i=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),i=e.__d),i)return e.__E=e}catch(n){t=n}throw t}},_=0,P.prototype.setState=function(t,n){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=M({},this.state),"function"==typeof t&&(t=t(M({},e),this.props)),t&&M(e,t),null!=t&&this.__v&&(n&&this.__h.push(n),V(this))},P.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),V(this))},P.prototype.render=I,x=[],E="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,H.__r=0,N=0;var et,rt,it=[],ot=k.__b,at=k.__r,ut=k.diffed,st=k.__c,ct=k.unmount;function lt(){it.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(dt),t.__H.__h.forEach(ht),t.__H.__h=[]}catch(n){t.__H.__h=[],k.__e(n,t.__v)}})),it=[]}k.__b=function(t){et=null,ot&&ot(t)},k.__r=function(t){at&&at(t);var n=(et=t.__c).__H;n&&(n.__h.forEach(dt),n.__h.forEach(ht),n.__h=[])},k.diffed=function(t){ut&&ut(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==it.push(n)&&rt===k.requestAnimationFrame||((rt=k.requestAnimationFrame)||function(t){var n,e=function(){clearTimeout(r),ft&&cancelAnimationFrame(n),setTimeout(t)},r=setTimeout(e,100);ft&&(n=requestAnimationFrame(e))})(lt)),et=void 0},k.__c=function(t,n){n.some((function(t){try{t.__h.forEach(dt),t.__h=t.__h.filter((function(t){return!t.__||ht(t)}))}catch(e){n.some((function(t){t.__h&&(t.__h=[])})),n=[],k.__e(e,t.__v)}})),st&&st(t,n)},k.unmount=function(t){ct&&ct(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(dt)}catch(t){k.__e(t,n.__v)}};var ft="function"==typeof requestAnimationFrame;function dt(t){var n=et;"function"==typeof t.__c&&t.__c(),et=n}function ht(t){var n=et;t.__c=t.__(),et=n}function vt(t,n){for(var e in t)if("__source"!==e&&!(e in n))return!0;for(var r in n)if("__source"!==r&&t[r]!==n[r])return!0;return!1}function pt(t){this.props=t}(pt.prototype=new P).isPureReactComponent=!0,pt.prototype.shouldComponentUpdate=function(t,n){return vt(this.props,t)||vt(this.state,n)};var gt=k.__b;k.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),gt&>(t)};var mt=k.__e;k.__e=function(t,n,e){if(t.then)for(var r,i=n;i=i.__;)if((r=i.__c)&&r.__c)return null==n.__e&&(n.__e=e.__e,n.__k=e.__k),r.__c(t,n);mt(t,n,e)};var bt=k.unmount;function yt(){this.__u=0,this.t=null,this.__b=null}function At(t){var n=t.__.__c;return n&&n.__e&&n.__e(t)}function wt(){this.u=null,this.o=null}k.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&!0===t.__h&&(t.type=null),bt&&bt(t)},(yt.prototype=new P).__c=function(t,n){var e=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var i=At(r.__v),o=!1,a=function(){o||(o=!0,e.__R=null,i?i(u):u())};e.__R=a;var u=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(n,e,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return t(n,e,r)})),n.__c&&n.__c.__P===e&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(t,t.__c.__P,t.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},s=!0===n.__h;r.__u++||s||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},yt.prototype.componentWillUnmount=function(){this.t=[]},yt.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(n,e,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),n.__c.__H=null),null!=(n=function(t,n){for(var e in n)t[e]=n[e];return t}({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=e),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return t(n,e,r)}))),n}(this.__b,e,r.__O=r.__P)}this.__b=null}var i=n.__e&&B(I,null,t.fallback);return i&&(i.__h=null),[B(I,null,n.__e?null:t.children),i]};var kt=function(t,n,e){if(++e[1]===e[0]&&t.o.delete(n),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(e=t.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;t.u=e=e[2]}};function _t(t){return this.getChildContext=function(){return t.context},t.children}function xt(t){var n=this,e=t.i;n.componentWillUnmount=function(){nt(null,n.l),n.l=null,n.i=null},n.i&&n.i!==e&&n.componentWillUnmount(),t.__v?(n.l||(n.i=e,n.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(t){this.childNodes.push(t),n.i.appendChild(t)},insertBefore:function(t){this.childNodes.push(t),n.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),n.i.removeChild(t)}}),nt(B(_t,{context:n.context},t.__v),n.l)):n.l&&n.componentWillUnmount()}(wt.prototype=new P).__e=function(t){var n=this,e=At(n.__v),r=n.o.get(t);return r[0]++,function(i){var o=function(){n.props.revealOrder?(r.push(i),kt(n,t,r)):i()};e?e(o):o()}},wt.prototype.render=function(t){this.u=null,this.o=new Map;var n=F(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&n.reverse();for(var e=n.length;e--;)this.o.set(n[e],this.u=[1,0,this.u]);return t.children},wt.prototype.componentDidUpdate=wt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(n,e){kt(t,e,n)}))};var Et="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Dt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Nt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};P.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(P.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}));var St=k.event;function Ct(){}function Tt(){return this.cancelBubble}function Mt(){return this.defaultPrevented}k.event=function(t){return St&&(t=St(t)),t.persist=Ct,t.isPropagationStopped=Tt,t.isDefaultPrevented=Mt,t.nativeEvent=t};var Rt={configurable:!0,get:function(){return this.class}},Bt=k.vnode;k.vnode=function(t){var n=t.type,e=t.props,r=e;if("string"==typeof n){for(var i in r={},e){var o=e[i];"value"===i&&"defaultValue"in e&&null==o||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===o?o="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Nt(e.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():Dt.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[i]=o)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=F(e.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=F(e.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r}n&&e.class!=e.className&&(Rt.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",Rt)),t.$$typeof=Et,Bt&&Bt(t)};var zt=k.__r;k.__r=function(t){zt&&zt(t)};var It="undefined"!=typeof globalThis?globalThis:window;It.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):It.FullCalendarVDom={Component:P,createElement:B,render:nt,createRef:function(){return{current:null}},Fragment:I,createContext:function(t){var n=function(t,n){var e={__c:n="__cC"+N++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var e,r;return this.getChildContext||(e=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&e.some(V)},this.sub=function(t){e.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){e.splice(e.indexOf(t),1),n&&n.call(t)}}),t.children}};return e.Provider.__=e.Consumer.contextType=e}(t),e=n.Provider;return n.Provider=function(){var t=this,n=!this.getChildContext,r=e.apply(this,arguments);if(n){var i=[];this.shouldComponentUpdate=function(n){t.props.value!==n.value&&i.forEach((function(t){t.context=n.value,t.forceUpdate()}))},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}}return r},n},createPortal:function(t,n){return B(xt,{__v:t,i:n})},flushToDom:function(){var t=k.debounceRendering,n=[];for(k.debounceRendering=function(t){n.push(t)},nt(B(Pt,{}),document.createElement("div"));n.length;)n.shift()();k.debounceRendering=t},unmountComponentAtNode:function(t){nt(null,t)}};var Pt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){return B("div",{})},n.prototype.componentDidMount=function(){this.setState({})},n}(P);if("undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var Qt=FullCalendarVDom.Component,Ot=FullCalendarVDom.createElement,Vt=FullCalendarVDom.render,Ht=FullCalendarVDom.createRef,jt=FullCalendarVDom.Fragment,Ut=FullCalendarVDom.createContext,Ft=FullCalendarVDom.createPortal,Gt=FullCalendarVDom.flushToDom,Lt=FullCalendarVDom.unmountComponentAtNode,Wt=function(){function t(t,n){this.context=t,this.internalEventSource=n}return t.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},t.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(t.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),t}();function Yt(t){t.parentNode&&t.parentNode.removeChild(t)}function Zt(t,n){if(t.closest)return t.closest(n);if(!document.documentElement.contains(t))return null;do{if(qt(t,n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}function qt(t,n){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,n)}var Jt=/(top|left|right|bottom|width|height)$/i;function Xt(t,n){for(var e in n)$t(t,e,n[e])}function $t(t,n,e){t.style[n]=null==e?"":"number"==typeof e&&Jt.test(n)?e+"px":e}function Kt(t){var n,e;return null!==(e=null===(n=t.composedPath)||void 0===n?void 0:n.call(t)[0])&&void 0!==e?e:t.target}function tn(t){return t.getRootNode?t.getRootNode():document}function nn(t){t.preventDefault()}function en(t,n){return function(e){var r=Zt(e.target,t);r&&n.call(r,e,r)}}function rn(t,n,e,r){var i=en(e,r);return t.addEventListener(n,i),function(){t.removeEventListener(n,i)}}var on=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],an=0;function un(){return String(an+=1)}function sn(){document.body.classList.add("fc-not-allowed")}function cn(){document.body.classList.remove("fc-not-allowed")}function ln(t,n,e){return e.func?e.func(t,n):function(t,n){return t||n?null==n?-1:null==t?1:"string"==typeof t||"string"==typeof n?String(t).localeCompare(String(n)):t-n:0}(t[e.field],n[e.field])*(e.order||1)}function fn(t,n){var e=String(t);return"000".substr(0,n-e.length)+e}function dn(t,n){return t-n}function hn(t){return t%1==0}function vn(t){var n=t.querySelector(".fc-scrollgrid-shrink-frame"),e=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!n)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!e)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-n.getBoundingClientRect().width+e.getBoundingClientRect().width}var pn=["sun","mon","tue","wed","thu","fri","sat"];function gn(t,n){var e=Dn(t);return e[2]+=7*n,Nn(e)}function mn(t,n){var e=Dn(t);return e[2]+=n,Nn(e)}function bn(t,n){var e=Dn(t);return e[6]+=n,Nn(e)}function yn(t,n){return(n.valueOf()-t.valueOf())/864e5}function An(t,n){return Cn(t)===Cn(n)?Math.round(yn(t,n)):null}function wn(t){return Nn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function kn(t,n,e,r){var i=Nn([n,0,1+_n(n,e,r)]),o=wn(t),a=Math.round(yn(i,o));return Math.floor(a/7)+1}function _n(t,n,e){var r=7+n-e;return-(7+Nn([t,0,r]).getUTCDay()-n)%7+r-1}function xn(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function En(t){return new Date(t[0],t[1]||0,null==t[2]?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Dn(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Nn(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC.apply(Date,t))}function Sn(t){return!isNaN(t.valueOf())}function Cn(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}function Tn(t,n,e,r){return{instanceId:un(),defId:t,range:n,forcedStartTzo:null==e?null:e,forcedEndTzo:null==r?null:r}}var Mn=Object.prototype.hasOwnProperty;function Rn(t,n){var e={};if(n)for(var r in n){for(var i=[],o=t.length-1;o>=0;o-=1){var a=t[o][r];if("object"==typeof a&&a)i.unshift(a);else if(void 0!==a){e[r]=a;break}}i.length&&(e[r]=Rn(i))}for(o=t.length-1;o>=0;o-=1){var u=t[o];for(var s in u)s in e||(e[s]=u[s])}return e}function Bn(t,n){var e={};for(var r in t)n(t[r],r)&&(e[r]=t[r]);return e}function zn(t,n){var e={};for(var r in t)e[r]=n(t[r],r);return e}function In(t){for(var n={},e=0,r=t;e<r.length;e++)n[r[e]]=!0;return n}function Pn(t){var n=[];for(var e in t)n.push(t[e]);return n}function Qn(t,n){if(t===n)return!0;for(var e in t)if(Mn.call(t,e)&&!(e in n))return!1;for(var e in n)if(Mn.call(n,e)&&t[e]!==n[e])return!1;return!0}function On(t,n){var e=[];for(var r in t)Mn.call(t,r)&&(r in n||e.push(r));for(var r in n)Mn.call(n,r)&&t[r]!==n[r]&&e.push(r);return e}function Vn(t,n,e){if(void 0===e&&(e={}),t===n)return!0;for(var r in n)if(!(r in t&&(i=t[r],o=n[r],a=e[r],i===o||!0===a||a&&a(i,o))))return!1;var i,o,a;for(var r in t)if(!(r in n))return!1;return!0}function Hn(t,n,e){var r=e.dateEnv,i=e.pluginHooks,o=e.options,a=t.defs,u=t.instances;for(var s in u=Bn(u,(function(t){return!a[t.defId].recurringDef})),a){var c=a[s];if(c.recurringDef){var l=c.recurringDef.duration;l||(l=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var f=0,d=jn(c,l,n,r,i.recurringTypes);f<d.length;f++){var h=d[f],v=Tn(s,{start:h,end:r.add(h,l)});u[v.instanceId]=v}}}return{defs:a,instances:u}}function jn(t,n,e,r,i){var o=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(e.start,n),end:e.end},r);return t.allDay&&(o=o.map(wn)),o}var Un=["years","months","days","milliseconds"],Fn=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Gn(t,n){var e;return"string"==typeof t?function(t){var n=Fn.exec(t);if(n){var e=n[1]?-1:1;return{years:0,months:0,days:e*(n[2]?parseInt(n[2],10):0),milliseconds:e*(60*(n[3]?parseInt(n[3],10):0)*60*1e3+60*(n[4]?parseInt(n[4],10):0)*1e3+1e3*(n[5]?parseInt(n[5],10):0)+(n[6]?parseInt(n[6],10):0))}}return null}(t):"object"==typeof t&&t?Ln(t):"number"==typeof t?Ln(((e={})[n||"milliseconds"]=t,e)):null}function Ln(t){var n={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:60*(t.hours||t.hour||0)*60*1e3+60*(t.minutes||t.minute||0)*1e3+1e3*(t.seconds||t.second||0)+(t.milliseconds||t.millisecond||t.ms||0)},e=t.weeks||t.week;return e&&(n.days+=7*e,n.specifiedWeeks=!0),n}function Wn(t,n){return{years:t.years+n.years,months:t.months+n.months,days:t.days+n.days,milliseconds:t.milliseconds+n.milliseconds}}function Yn(t){return Zn(t)/864e5}function Zn(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function qn(t,n){for(var e=null,r=0;r<Un.length;r+=1){var i=Un[r];if(n[i]){var o=t[i]/n[i];if(!hn(o)||null!==e&&e!==o)return null;e=o}else if(t[i])return null}return e}function Jn(t){var n=t.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return t.days?t.specifiedWeeks&&t.days%7==0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Xn(t,n,e){void 0===e&&(e=!1);var r=t.toISOString();return r=r.replace(".000",""),e&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==n?r=r.replace("Z",""):0!==n&&(r=r.replace("Z",Kn(n,!0)))),r}function $n(t){return t.toISOString().replace(/T.*$/,"")}function Kn(t,n){void 0===n&&(n=!1);var e=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=Math.round(r%60);return n?e+fn(i,2)+":"+fn(o,2):"GMT"+e+i+(o?":"+fn(o,2):"")}function te(t,n,e){if(t===n)return!0;var r,i=t.length;if(i!==n.length)return!1;for(r=0;r<i;r+=1)if(!(e?e(t[r],n[r]):t[r]===n[r]))return!1;return!0}function ne(t,n,e){var r,i;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(r){if(!te(r,o)){e&&e(i);var u=t.apply(this,o);n&&n(u,i)||(i=u)}}else i=t.apply(this,o);return r=o,i}}function ee(t,n,e){var r,i,o=this;return function(a){if(r){if(!Qn(r,a)){e&&e(i);var u=t.call(o,a);n&&n(u,i)||(i=u)}}else i=t.call(o,a);return r=a,i}}var re={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},ie={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},oe=/\s*([ap])\.?m\.?/i,ae=/,/g,ue=/\s+/g,se=/\u200e/g,ce=/UTC|GMT/,le=function(){function t(t){var n={},e={},r=0;for(var i in t)i in re?(e[i]=t[i],r=Math.max(re[i],r)):(n[i]=t[i],i in ie&&(r=Math.max(ie[i],r)));this.standardDateProps=n,this.extendedSettings=e,this.severity=r,this.buildFormattingFunc=ne(fe)}return t.prototype.format=function(t,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(t)},t.prototype.formatRange=function(t,n,e,r){var i,o,a,u=this.standardDateProps,s=this.extendedSettings,c=(o=n.marker,(a=e.calendarSystem).getMarkerYear(i=t.marker)!==a.getMarkerYear(o)?5:a.getMarkerMonth(i)!==a.getMarkerMonth(o)?4:a.getMarkerDay(i)!==a.getMarkerDay(o)?2:Cn(i)!==Cn(o)?1:0);if(!c)return this.format(t,e);var l=c;!(l>1)||"numeric"!==u.year&&"2-digit"!==u.year||"numeric"!==u.month&&"2-digit"!==u.month||"numeric"!==u.day&&"2-digit"!==u.day||(l=1);var f=this.format(t,e),d=this.format(n,e);if(f===d)return f;var h=fe(function(t,n){var e={};for(var r in t)(!(r in ie)||ie[r]<=n)&&(e[r]=t[r]);return e}(u,l),s,e),v=h(t),p=h(n),g=function(t,n,e,r){for(var i=0;i<t.length;){var o=t.indexOf(n,i);if(-1===o)break;for(var a=t.substr(0,o),u=t.substr(i=o+n.length),s=0;s<e.length;){var c=e.indexOf(r,s);if(-1===c)break;var l=e.substr(0,c),f=e.substr(s=c+r.length);if(a===l&&u===f)return{before:a,after:u}}}return null}(f,v,d,p),m=s.separator||r||e.defaultSeparator||"";return g?g.before+v+m+p+g.after:f+m+d},t.prototype.getLargestUnit=function(){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"}},t}();function fe(t,n,e){var r=Object.keys(t).length;return 1===r&&"short"===t.timeZoneName?function(t){return Kn(t.timeZoneOffset)}:0===r&&n.week?function(t){return r=e.computeWeekNumber(t.marker),i=e.weekText,o=e.locale,u=[],"narrow"===(a=n.week)?u.push(i):"short"===a&&u.push(i," "),u.push(o.simpleNumberFormat.format(r)),"rtl"===o.options.direction&&u.reverse(),u.join("");var r,i,o,a,u}:function(t,n,e){t=u({},t),n=u({},n),function(t,n){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),"long"===t.timeZoneName&&(t.timeZoneName="short"),n.omitZeroMinute&&(t.second||t.millisecond)&&delete n.omitZeroMinute}(t,n),t.timeZone="UTC";var r,i=new Intl.DateTimeFormat(e.locale.codes,t);if(n.omitZeroMinute){var o=u({},t);delete o.minute,r=new Intl.DateTimeFormat(e.locale.codes,o)}return function(o){var a=o.marker;return function(t,n,e,r,i){return t=t.replace(se,""),"short"===e.timeZoneName&&(t=function(t,n){var e=!1;return t=t.replace(ce,(function(){return e=!0,n})),e||(t+=" "+n),t}(t,"UTC"===i.timeZone||null==n.timeZoneOffset?"UTC":Kn(n.timeZoneOffset))),r.omitCommas&&(t=t.replace(ae,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),!1===r.meridiem?t=t.replace(oe,"").trim():"narrow"===r.meridiem?t=t.replace(oe,(function(t,n){return n.toLocaleLowerCase()})):"short"===r.meridiem?t=t.replace(oe,(function(t,n){return n.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(t=t.replace(oe,(function(t){return t.toLocaleLowerCase()}))),(t=t.replace(ue," ")).trim()}((r&&!a.getUTCMinutes()?r:i).format(a),o,t,n,e)}}(t,n,e)}function de(t,n){var e=n.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:e,year:e[0],month:e[1],day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]}}function he(t,n,e,r){var i=de(t,e.calendarSystem);return{date:i,start:i,end:n?de(n,e.calendarSystem):null,timeZone:e.timeZone,localeCodes:e.locale.codes,defaultSeparator:r||e.defaultSeparator}}var ve=function(){function t(t){this.cmdStr=t}return t.prototype.format=function(t,n,e){return n.cmdFormatter(this.cmdStr,he(t,null,n,e))},t.prototype.formatRange=function(t,n,e,r){return e.cmdFormatter(this.cmdStr,he(t,n,e,r))},t}(),pe=function(){function t(t){this.func=t}return t.prototype.format=function(t,n,e){return this.func(he(t,null,n,e))},t.prototype.formatRange=function(t,n,e,r){return this.func(he(t,n,e,r))},t}();function ge(t){return"object"==typeof t&&t?new le(t):"string"==typeof t?new ve(t):"function"==typeof t?new pe(t):null}var me={navLinkDayClick:De,navLinkWeekClick:De,duration:Gn,bootstrapFontAwesome:De,buttonIcons:De,customButtons:De,defaultAllDayEventDuration:Gn,defaultTimedEventDuration:Gn,nextDayThreshold:Gn,scrollTime:Gn,scrollTimeReset:Boolean,slotMinTime:Gn,slotMaxTime:Gn,dayPopoverFormat:ge,slotDuration:Gn,snapDuration:Gn,headerToolbar:De,footerToolbar:De,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ge,dayHeaderClassNames:De,dayHeaderContent:De,dayHeaderDidMount:De,dayHeaderWillUnmount:De,dayCellClassNames:De,dayCellContent:De,dayCellDidMount:De,dayCellWillUnmount:De,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:De,weekNumbers:Boolean,weekNumberClassNames:De,weekNumberContent:De,weekNumberDidMount:De,weekNumberWillUnmount:De,editable:Boolean,viewClassNames:De,viewDidMount:De,viewWillUnmount:De,nowIndicator:Boolean,nowIndicatorClassNames:De,nowIndicatorContent:De,nowIndicatorDidMount:De,nowIndicatorWillUnmount:De,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:De,locale:De,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:De,eventOrder:function(t){var n,e,r=[],i=[];for("string"==typeof t?i=t.split(/\s*,\s*/):"function"==typeof t?i=[t]:Array.isArray(t)&&(i=t),n=0;n<i.length;n+=1)"string"==typeof(e=i[n])?r.push("-"===e.charAt(0)?{field:e.substring(1),order:-1}:{field:e,order:1}):"function"==typeof e&&r.push({func:e});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:De,contentHeight:De,direction:String,weekNumberFormat:ge,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:De,initialDate:De,now:De,eventDataTransform:De,stickyHeaderDates:De,stickyFooterScrollbar:De,viewHeight:De,defaultAllDay:Boolean,eventSourceFailure:De,eventSourceSuccess:De,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:De,eventConstraint:De,eventAllow:De,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:De,eventContent:De,eventDidMount:De,eventWillUnmount:De,selectConstraint:De,selectOverlap:De,selectAllow:De,droppable:Boolean,unselectCancel:String,slotLabelFormat:De,slotLaneClassNames:De,slotLaneContent:De,slotLaneDidMount:De,slotLaneWillUnmount:De,slotLabelClassNames:De,slotLabelContent:De,slotLabelDidMount:De,slotLabelWillUnmount:De,dayMaxEvents:De,dayMaxEventRows:De,dayMinWidth:Number,slotLabelInterval:Gn,allDayText:String,allDayClassNames:De,allDayContent:De,allDayDidMount:De,allDayWillUnmount:De,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ge,rerenderDelay:Number,moreLinkText:De,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:De,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Gn,hiddenDays:De,monthMode:Boolean,fixedWeekCount:Boolean,validRange:De,visibleRange:De,titleFormat:De,noEventsText:String,moreLinkClick:De,moreLinkClassNames:De,moreLinkContent:De,moreLinkDidMount:De,moreLinkWillUnmount:De},be={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},ye={datesSet:De,eventsSet:De,eventAdd:De,eventChange:De,eventRemove:De,windowResize:De,eventClick:De,eventMouseEnter:De,eventMouseLeave:De,select:De,unselect:De,loading:De,_unmount:De,_beforeprint:De,_afterprint:De,_noEventDrop:De,_noEventResize:De,_resize:De,_scrollRequest:De},Ae={buttonText:De,views:De,plugins:De,initialEvents:De,events:De,eventSources:De},we={headerToolbar:ke,footerToolbar:ke,buttonText:ke,buttonIcons:ke};function ke(t,n){return"object"==typeof t&&"object"==typeof n&&t&&n?Qn(t,n):t===n}var _e={type:String,component:De,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:De,usesMinMaxTime:Boolean,classNames:De,content:De,didMount:De,willUnmount:De};function xe(t){return Rn(t,we)}function Ee(t,n){var e={},r={};for(var i in n)i in t&&(e[i]=n[i](t[i]));for(var i in t)i in n||(r[i]=t[i]);return{refined:e,extra:r}}function De(t){return t}function Ne(t,n,e,r){for(var i={defs:{},instances:{}},o=Fe(e),a=0,u=t;a<u.length;a++){var s=je(u[a],n,e,r,o);s&&Se(s,i)}return i}function Se(t,n){return void 0===n&&(n={defs:{},instances:{}}),n.defs[t.def.defId]=t.def,t.instance&&(n.instances[t.instance.instanceId]=t.instance),n}function Ce(t,n){var e=t.instances[n];if(e){var r=t.defs[e.defId],i=Me(t,(function(t){return n=r,Boolean(n.groupId&&n.groupId===t.groupId);var n}));return i.defs[r.defId]=r,i.instances[e.instanceId]=e,i}return{defs:{},instances:{}}}function Te(t,n){return{defs:u(u({},t.defs),n.defs),instances:u(u({},t.instances),n.instances)}}function Me(t,n){var e=Bn(t.defs,n),r=Bn(t.instances,(function(t){return e[t.defId]}));return{defs:e,instances:r}}function Re(t){return Array.isArray(t)?t:"string"==typeof t?t.split(/\s+/):[]}var Be={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:De,overlap:De,allow:De,className:Re,classNames:Re,color:String,backgroundColor:String,borderColor:String,textColor:String},ze={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ie(t,n){var e=function(t,n){return Array.isArray(t)?Ne(t,null,n,!0):"object"==typeof t&&t?Ne([t],null,n,!0):null!=t?String(t):null}(t.constraint,n);return{display:t.display||null,startEditable:null!=t.startEditable?t.startEditable:t.editable,durationEditable:null!=t.durationEditable?t.durationEditable:t.editable,constraints:null!=e?[e]:[],overlap:null!=t.overlap?t.overlap:null,allows:null!=t.allow?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Pe(t){return t.reduce(Qe,ze)}function Qe(t,n){return{display:null!=n.display?n.display:t.display,startEditable:null!=n.startEditable?n.startEditable:t.startEditable,durationEditable:null!=n.durationEditable?n.durationEditable:t.durationEditable,constraints:t.constraints.concat(n.constraints),overlap:"boolean"==typeof n.overlap?n.overlap:t.overlap,allows:t.allows.concat(n.allows),backgroundColor:n.backgroundColor||t.backgroundColor,borderColor:n.borderColor||t.borderColor,textColor:n.textColor||t.textColor,classNames:t.classNames.concat(n.classNames)}}var Oe={id:String,groupId:String,title:String,url:String},Ve={start:De,end:De,date:De,allDay:Boolean},He=u(u(u({},Oe),Ve),{extendedProps:De});function je(t,n,e,r,i){void 0===i&&(i=Fe(e));var o=Ue(t,e,i),a=o.refined,u=o.extra,s=function(t,n){var e=null;return t&&(e=t.defaultAllDay),null==e&&(e=n.options.defaultAllDay),e}(n,e),c=function(t,n,e,r){for(var i=0;i<r.length;i+=1){var o=r[i].parse(t,e);if(o){var a=t.allDay;return null==a&&null==(a=n)&&null==(a=o.allDayGuess)&&(a=!1),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}(a,s,e.dateEnv,e.pluginHooks.recurringTypes);if(c)return(l=Ge(a,u,n?n.sourceId:"",c.allDay,Boolean(c.duration),e)).recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:l,instance:null};var l,f=function(t,n,e,r){var i,o,a=t.allDay,u=null,s=!1,c=null;if(i=e.dateEnv.createMarkerMeta(null!=t.start?t.start:t.date))u=i.marker;else if(!r)return null;return null!=t.end&&(o=e.dateEnv.createMarkerMeta(t.end)),null==a&&(a=null!=n?n:(!i||i.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),a&&u&&(u=wn(u)),o&&(c=o.marker,a&&(c=wn(c)),u&&c<=u&&(c=null)),c?s=!0:r||(s=e.options.forceEventDuration||!1,c=e.dateEnv.add(u,a?e.options.defaultAllDayEventDuration:e.options.defaultTimedEventDuration)),{allDay:a,hasEnd:s,range:{start:u,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(a,s,e,r);return f?{def:l=Ge(a,u,n?n.sourceId:"",f.allDay,f.hasEnd,e),instance:Tn(l.defId,f.range,f.forcedStartTzo,f.forcedEndTzo)}:null}function Ue(t,n,e){return void 0===e&&(e=Fe(n)),Ee(t,e)}function Fe(t){return u(u(u({},Be),He),t.pluginHooks.eventRefiners)}function Ge(t,n,e,r,i,o){for(var a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:un(),sourceId:e,allDay:r,hasEnd:i,ui:Ie(t,o),extendedProps:u(u({},t.extendedProps||{}),n)},s=0,c=o.pluginHooks.eventDefMemberAdders;s<c.length;s++)u(a,(0,c[s])(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Le(t){var n=Math.floor(yn(t.start,t.end))||1,e=wn(t.start);return{start:e,end:mn(e,n)}}function We(t,n){void 0===n&&(n=Gn(0));var e=null,r=null;if(t.end){r=wn(t.end);var i=t.end.valueOf()-r.valueOf();i&&i>=Zn(n)&&(r=mn(r,1))}return t.start&&(e=wn(t.start),r&&r<=e&&(r=mn(e,1))),{start:e,end:r}}function Ye(t,n,e,r){return"year"===r?Gn(e.diffWholeYears(t,n),"year"):"month"===r?Gn(e.diffWholeMonths(t,n),"month"):(o=n,a=wn(i=t),u=wn(o),{years:0,months:0,days:Math.round(yn(a,u)),milliseconds:o.valueOf()-u.valueOf()-(i.valueOf()-a.valueOf())});var i,o,a,u}function Ze(t,n){var e,r,i=[],o=n.start;for(t.sort(qe),e=0;e<t.length;e+=1)(r=t[e]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<n.end&&i.push({start:o,end:n.end}),i}function qe(t,n){return t.start.valueOf()-n.start.valueOf()}function Je(t,n){var e=t.start,r=t.end,i=null;return null!==n.start&&(e=null===e?n.start:new Date(Math.max(e.valueOf(),n.start.valueOf()))),null!=n.end&&(r=null===r?n.end:new Date(Math.min(r.valueOf(),n.end.valueOf()))),(null===e||null===r||e<r)&&(i={start:e,end:r}),i}function Xe(t,n){return(null===t.end||null===n.start||t.end>n.start)&&(null===t.start||null===n.end||t.start<n.end)}function $e(t,n){return(null===t.start||null!==n.start&&n.start>=t.start)&&(null===t.end||null!==n.end&&n.end<=t.end)}function Ke(t,n){return(null===t.start||n>=t.start)&&(null===t.end||n<t.end)}function tr(t,n,e,r){var i={},o={},a={},u=[],s=[],c=rr(t.defs,n);for(var l in t.defs)"inverse-background"===(h=c[(A=t.defs[l]).defId]).display&&(A.groupId?(i[A.groupId]=[],a[A.groupId]||(a[A.groupId]=A)):o[l]=[]);for(var f in t.instances){var d=t.instances[f],h=c[(A=t.defs[d.defId]).defId],v=d.range,p=!A.allDay&&r?We(v,r):v,g=Je(p,e);g&&("inverse-background"===h.display?A.groupId?i[A.groupId].push(g):o[d.defId].push(g):"none"!==h.display&&("background"===h.display?u:s).push({def:A,ui:h,instance:d,range:g,isStart:p.start&&p.start.valueOf()===g.start.valueOf(),isEnd:p.end&&p.end.valueOf()===g.end.valueOf()}))}for(var m in i)for(var b=0,y=Ze(i[m],e);b<y.length;b++){var A;u.push({def:A=a[m],ui:h=c[A.defId],instance:null,range:y[b],isStart:!1,isEnd:!1})}for(var l in o)for(var w=0,k=Ze(o[l],e);w<k.length;w++)u.push({def:t.defs[l],ui:c[l],instance:null,range:k[w],isStart:!1,isEnd:!1});return{bg:u,fg:s}}function nr(t,n){t.fcSeg=n}function er(t){return t.fcSeg||t.parentNode.fcSeg||null}function rr(t,n){return zn(t,(function(t){return ir(t,n)}))}function ir(t,n){var e=[];return n[""]&&e.push(n[""]),n[t.defId]&&e.push(n[t.defId]),e.push(t.ui),Pe(e)}function or(t,n){var e=t.map(ar);return e.sort((function(t,e){return function(t,n,e){var r,i;for(r=0;r<e.length;r+=1)if(i=ln(t,n,e[r]))return i;return 0}(t,e,n)})),e.map((function(t){return t._seg}))}function ar(t){var n=t.eventRange,e=n.def,r=n.instance?n.instance.range:n.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return u(u(u({},e.extendedProps),e),{id:e.publicId,start:i,end:o,duration:o-i,allDay:Number(e.allDay),_seg:t})}function ur(t,n){for(var e=t.eventRange,r=e.def,i=e.ui,o=i.startEditable,a=0,u=n.pluginHooks.isDraggableTransformers;a<u.length;a++)o=(0,u[a])(o,r,i,n);return o}function sr(t,n){return t.isStart&&t.eventRange.ui.durationEditable&&n.options.eventResizableFromStart}function cr(t){return t.isEnd&&t.eventRange.ui.durationEditable}function lr(t,n,e,r,i,o,a){var u=e.dateEnv,s=e.options,c=s.displayEventTime,l=s.displayEventEnd,f=t.eventRange.def,d=t.eventRange.instance;null==c&&(c=!1!==r),null==l&&(l=!1!==i);var h=d.range.start,v=d.range.end,p=o||t.start||t.eventRange.range.start,g=a||t.end||t.eventRange.range.end,m=wn(h).valueOf()===wn(p).valueOf(),b=wn(bn(v,-1)).valueOf()===wn(bn(g,-1)).valueOf();return c&&!f.allDay&&(m||b)?(p=m?h:p,g=b?v:g,l&&f.hasEnd?u.formatRange(p,g,n,{forcedStartTzo:o?null:d.forcedStartTzo,forcedEndTzo:a?null:d.forcedEndTzo}):u.format(p,n,{forcedTzo:o?null:d.forcedStartTzo})):""}function fr(t,n,e){var r=t.eventRange.range;return{isPast:r.end<(e||n.start),isFuture:r.start>=(e||n.end),isToday:n&&Ke(n,r.start)}}function dr(t){return t.instance?t.instance.instanceId:t.def.defId+":"+t.range.start.toISOString()}var hr={start:De,end:De,allDay:Boolean};function vr(t,n,e){return u(u({},pr(t,n,e)),{timeZone:n.timeZone})}function pr(t,n,e){return{start:n.toDate(t.start),end:n.toDate(t.end),startStr:n.formatIso(t.start,{omitTime:e}),endStr:n.formatIso(t.end,{omitTime:e})}}function gr(t,n,e){var r=Ue({editable:!1},e),i=Ge(r.refined,r.extra,"",t.allDay,!0,e);return{def:i,ui:ir(i,n),instance:Tn(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function mr(t,n,e){e.emitter.trigger("select",u(u({},br(t,e)),{jsEvent:n?n.origEvent:null,view:e.viewApi||e.calendarApi.view}))}function br(t,n){for(var e,r={},i=0,o=n.pluginHooks.dateSpanTransforms;i<o.length;i++)u(r,(0,o[i])(t,n));return u(r,u(u({},pr((e=t).range,n.dateEnv,e.allDay)),{allDay:e.allDay})),r}function yr(t,n,e){var r=e.dateEnv,i=e.options,o=n;return t?(o=wn(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function Ar(t,n,e,r){var i=rr(t.defs,n),o={defs:{},instances:{}};for(var a in t.defs)o.defs[a]=wr(t.defs[a],i[a],e,r);for(var u in t.instances){var s=t.instances[u];o.instances[u]=kr(s,o.defs[s.defId],i[s.defId],e,r)}return o}function wr(t,n,e,r){var i=e.standardProps||{};null==i.hasEnd&&n.durationEditable&&(e.startDelta||e.endDelta)&&(i.hasEnd=!0);var o=u(u(u({},t),i),{ui:u(u({},t.ui),i.ui)});e.extendedProps&&(o.extendedProps=u(u({},o.extendedProps),e.extendedProps));for(var a=0,s=r.pluginHooks.eventDefMutationAppliers;a<s.length;a++)(0,s[a])(o,e,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function kr(t,n,e,r,i){var o=i.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,c=u({},t);return a&&(c.range=Le(c.range)),r.datesDelta&&e.startEditable&&(c.range={start:o.add(c.range.start,r.datesDelta),end:o.add(c.range.end,r.datesDelta)}),r.startDelta&&e.durationEditable&&(c.range={start:o.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&e.durationEditable&&(c.range={start:c.range.start,end:o.add(c.range.end,r.endDelta)}),s&&(c.range={start:c.range.start,end:yr(n.allDay,c.range.start,i)}),n.allDay&&(c.range={start:wn(c.range.start),end:wn(c.range.end)}),c.range.end<c.range.start&&(c.range.end=yr(n.allDay,c.range.start,i)),c}var _r=function(){function t(t,n,e){this.type=t,this.getCurrentData=n,this.dateEnv=e}return Object.defineProperty(t.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),t.prototype.getOption=function(t){return this.getCurrentData().options[t]},t}(),xr={id:String,defaultAllDay:Boolean,url:String,format:String,events:De,eventDataTransform:De,success:De,failure:De};function Er(t,n,e){var r;if(void 0===e&&(e=Dr(n)),"string"==typeof t?r={url:t}:"function"==typeof t||Array.isArray(t)?r={events:t}:"object"==typeof t&&t&&(r=t),r){var i=Ee(r,e),o=i.refined,a=i.extra,u=function(t,n){for(var e=n.pluginHooks.eventSourceDefs,r=e.length-1;r>=0;r-=1){var i=e[r].parseMeta(t);if(i)return{sourceDefId:r,meta:i}}return null}(o,n);if(u)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:un(),sourceDefId:u.sourceDefId,meta:u.meta,ui:Ie(o,n),extendedProps:a}}return null}function Dr(t){return u(u(u({},Be),xr),t.pluginHooks.eventSourceRefiners)}function Nr(t,n){return"function"==typeof t&&(t=t()),null==t?n.createNowMarker():n.createMarker(t)}var Sr=function(){function t(){}return t.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},t.prototype.dispatch=function(t){return this.currentDataManager.dispatch(t)},Object.defineProperty(t.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),t.prototype.batchRendering=function(t){t()},t.prototype.updateSize=function(){this.trigger("_resize",!0)},t.prototype.setOption=function(t,n){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:n})},t.prototype.getOption=function(t){return this.currentDataManager.currentCalendarOptionsInput[t]},t.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},t.prototype.on=function(t,n){var e=this.currentDataManager;e.currentCalendarOptionsRefiners[t]?e.emitter.on(t,n):console.warn("Unknown listener name '"+t+"'")},t.prototype.off=function(t,n){this.currentDataManager.emitter.off(t,n)},t.prototype.trigger=function(t){for(var n,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];(n=this.currentDataManager.emitter).trigger.apply(n,s([t],e))},t.prototype.changeView=function(t,n){var e=this;this.batchRendering((function(){if(e.unselect(),n)if(n.start&&n.end)e.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),e.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{var r=e.getCurrentData().dateEnv;e.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:r.createMarker(n)})}else e.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})}))},t.prototype.zoomTo=function(t,n){var e;e=this.getCurrentData().viewSpecs[n=n||"day"]||this.getUnitViewSpec(n),this.unselect(),this.dispatch(e?{type:"CHANGE_VIEW_TYPE",viewType:e.type,dateMarker:t}:{type:"CHANGE_DATE",dateMarker:t})},t.prototype.getUnitViewSpec=function(t){var n,e,r=this.getCurrentData(),i=r.viewSpecs,o=[].concat(r.toolbarConfig.viewsWithButtons);for(var a in i)o.push(a);for(n=0;n<o.length;n+=1)if((e=i[o[n]])&&e.singleUnit===t)return e;return null},t.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},t.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},t.prototype.prevYear=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})},t.prototype.nextYear=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})},t.prototype.today=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Nr(t.calendarOptions.now,t.dateEnv)})},t.prototype.gotoDate=function(t){var n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(t)})},t.prototype.incrementDate=function(t){var n=this.getCurrentData(),e=Gn(t);e&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,e)}))},t.prototype.getDate=function(){var t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)},t.prototype.formatDate=function(t,n){var e=this.getCurrentData().dateEnv;return e.format(e.createMarker(t),ge(n))},t.prototype.formatRange=function(t,n,e){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(t),r.createMarker(n),ge(e),e)},t.prototype.formatIso=function(t,n){var e=this.getCurrentData().dateEnv;return e.formatIso(e.createMarker(t),{omitTime:n})},t.prototype.select=function(t,n){var e;e=null==n?null!=t.start?t:{start:t,end:null}:{start:t,end:n};var r=this.getCurrentData(),i=function(t,n,e){var r=function(t,n){var e=Ee(t,hr),r=e.refined,i=e.extra,o=r.start?n.createMarkerMeta(r.start):null,a=r.end?n.createMarkerMeta(r.end):null,s=r.allDay;return null==s&&(s=o&&o.isTimeUnspecified&&(!a||a.isTimeUnspecified)),u({range:{start:o?o.marker:null,end:a?a.marker:null},allDay:s},i)}(t,n),i=r.range;if(!i.start)return null;if(!i.end){if(null==e)return null;i.end=n.add(i.start,e)}return r}(e,r.dateEnv,Gn({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),mr(i,null,r))},t.prototype.unselect=function(t){var n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(t,n){n.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view})}(t,n))},t.prototype.addEvent=function(t,n){if(t instanceof Cr){var e=t._def,r=t._instance;return this.getCurrentData().eventStore.defs[e.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Se({def:e,instance:r})}),this.triggerEventAdd(t)),t}var i,o=this.getCurrentData();if(n instanceof Wt)i=n.internalEventSource;else if("boolean"==typeof n)n&&(i=Pn(o.eventSources)[0]);else if(null!=n){var a=this.getEventSourceById(n);if(!a)return console.warn('Could not find an event source with ID "'+n+'"'),null;i=a.internalEventSource}var u=je(t,i,o,!1);if(u){var s=new Cr(o,u.def,u.def.recurringDef?null:u.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Se(u)}),this.triggerEventAdd(s),s}return null},t.prototype.triggerEventAdd=function(t){var n=this;this.getCurrentData().emitter.trigger("eventAdd",{event:t,relatedEvents:[],revert:function(){n.dispatch({type:"REMOVE_EVENTS",eventStore:Tr(t)})}})},t.prototype.getEventById=function(t){var n=this.getCurrentData(),e=n.eventStore,r=e.defs,i=e.instances;for(var o in t=String(t),r){var a=r[o];if(a.publicId===t){if(a.recurringDef)return new Cr(n,a,null);for(var u in i){var s=i[u];if(s.defId===a.defId)return new Cr(n,a,s)}}}return null},t.prototype.getEvents=function(){var t=this.getCurrentData();return Mr(t.eventStore,t)},t.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},t.prototype.getEventSources=function(){var t=this.getCurrentData(),n=t.eventSources,e=[];for(var r in n)e.push(new Wt(t,n[r]));return e},t.prototype.getEventSourceById=function(t){var n=this.getCurrentData(),e=n.eventSources;for(var r in t=String(t),e)if(e[r].publicId===t)return new Wt(n,e[r]);return null},t.prototype.addEventSource=function(t){var n=this.getCurrentData();if(t instanceof Wt)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;var e=Er(t,n);return e?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e]}),new Wt(n,e)):null},t.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},t.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},t.prototype.scrollToTime=function(t){var n=Gn(t);n&&this.trigger("_scrollRequest",{time:n})},t}(),Cr=function(){function t(t,n,e){this._context=t,this._def=n,this._instance=e||null}return t.prototype.setProp=function(t,n){var e,r;if(t in Ve)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===t)n=Oe[t](n),this.mutate({standardProps:{publicId:n}});else if(t in Oe)n=Oe[t](n),this.mutate({standardProps:(e={},e[t]=n,e)});else if(t in Be){var i=Be[t](n);"color"===t?i={backgroundColor:n,borderColor:n}:"editable"===t?i={startEditable:n,durationEditable:n}:((r={})[t]=n,i=r),this.mutate({standardProps:{ui:i}})}else console.warn("Could not set prop '"+t+"'. Use setExtendedProp instead.")},t.prototype.setExtendedProp=function(t,n){var e;this.mutate({extendedProps:(e={},e[t]=n,e)})},t.prototype.setStart=function(t,n){void 0===n&&(n={});var e=this._context.dateEnv,r=e.createMarker(t);if(r&&this._instance){var i=Ye(this._instance.range.start,r,e,n.granularity);this.mutate(n.maintainDuration?{datesDelta:i}:{startDelta:i})}},t.prototype.setEnd=function(t,n){void 0===n&&(n={});var e,r=this._context.dateEnv;if((null==t||(e=r.createMarker(t)))&&this._instance)if(e){var i=Ye(this._instance.range.end,e,r,n.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},t.prototype.setDates=function(t,n,e){void 0===e&&(e={});var r,i,o,a=this._context.dateEnv,u={allDay:e.allDay},s=a.createMarker(t);if(s&&(null==n||(r=a.createMarker(n)))&&this._instance){var c=this._instance.range;!0===e.allDay&&(c=Le(c));var l=Ye(c.start,s,a,e.granularity);if(r){var f=Ye(c.end,r,a,e.granularity);this.mutate((i=l).years===(o=f).years&&i.months===o.months&&i.days===o.days&&i.milliseconds===o.milliseconds?{datesDelta:l,standardProps:u}:{startDelta:l,endDelta:f,standardProps:u})}else u.hasEnd=!1,this.mutate({datesDelta:l,standardProps:u})}},t.prototype.moveStart=function(t){var n=Gn(t);n&&this.mutate({startDelta:n})},t.prototype.moveEnd=function(t){var n=Gn(t);n&&this.mutate({endDelta:n})},t.prototype.moveDates=function(t){var n=Gn(t);n&&this.mutate({datesDelta:n})},t.prototype.setAllDay=function(t,n){void 0===n&&(n={});var e={allDay:t},r=n.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(e.hasEnd=r),this.mutate({standardProps:e})},t.prototype.formatRange=function(t){var n=this._context.dateEnv,e=this._instance,r=ge(t);return this._def.hasEnd?n.formatRange(e.range.start,e.range.end,r,{forcedStartTzo:e.forcedStartTzo,forcedEndTzo:e.forcedEndTzo}):n.format(e.range.start,r,{forcedTzo:e.forcedStartTzo})},t.prototype.mutate=function(n){var e=this._instance;if(e){var r=this._def,i=this._context,o=i.getCurrentData().eventStore,a=Ce(o,e.instanceId);a=Ar(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},n,i);var u=new t(i,r,e);this._def=a.defs[r.defId],this._instance=a.instances[e.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:a}),i.emitter.trigger("eventChange",{oldEvent:u,event:this,relatedEvents:Mr(a,i,e),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},t.prototype.remove=function(){var t=this._context,n=Tr(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:n}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:n})}})},Object.defineProperty(t.prototype,"source",{get:function(){var t=this._def.sourceId;return t?new Wt(this._context,this._context.getCurrentData().eventSources[t]):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startStr",{get:function(){var t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endStr",{get:function(){var t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),t.prototype.toPlainObject=function(t){void 0===t&&(t={});var n=this._def,e=n.ui,r=this.startStr,i=this.endStr,o={};return n.title&&(o.title=n.title),r&&(o.start=r),i&&(o.end=i),n.publicId&&(o.id=n.publicId),n.groupId&&(o.groupId=n.groupId),n.url&&(o.url=n.url),e.display&&"auto"!==e.display&&(o.display=e.display),t.collapseColor&&e.backgroundColor&&e.backgroundColor===e.borderColor?o.color=e.backgroundColor:(e.backgroundColor&&(o.backgroundColor=e.backgroundColor),e.borderColor&&(o.borderColor=e.borderColor)),e.textColor&&(o.textColor=e.textColor),e.classNames.length&&(o.classNames=e.classNames),Object.keys(n.extendedProps).length&&(t.collapseExtendedProps?u(o,n.extendedProps):o.extendedProps=n.extendedProps),o},t.prototype.toJSON=function(){return this.toPlainObject()},t}();function Tr(t){var n,e,r=t._def,i=t._instance;return{defs:(n={},n[r.defId]=r,n),instances:i?(e={},e[i.instanceId]=i,e):{}}}function Mr(t,n,e){var r=t.defs,i=t.instances,o=[],a=e?e.instanceId:"";for(var u in i){var s=i[u];s.instanceId!==a&&o.push(new Cr(n,r[s.defId],s))}return o}var Rr={},Br=function(){function t(){}return t.prototype.getMarkerYear=function(t){return t.getUTCFullYear()},t.prototype.getMarkerMonth=function(t){return t.getUTCMonth()},t.prototype.getMarkerDay=function(t){return t.getUTCDate()},t.prototype.arrayToMarker=function(t){return Nn(t)},t.prototype.markerToArray=function(t){return Dn(t)},t}();Rr.gregory=Br;var zr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/,Ir=function(){function t(t){var n=this.timeZone=t.timeZone,e="local"!==n&&"UTC"!==n;t.namedTimeZoneImpl&&e&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!e||this.namedTimeZoneImpl),this.calendarSystem=new Rr[t.calendarSystem],this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,"ISO"===t.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof t.firstDay&&(this.weekDow=t.firstDay),"function"==typeof t.weekNumberCalculation&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=null!=t.weekText?t.weekText:t.locale.options.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}return t.prototype.createMarker=function(t){var n=this.createMarkerMeta(t);return null===n?null:n.marker},t.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Nn(xn(new Date))},t.prototype.createMarkerMeta=function(t){if("string"==typeof t)return this.parse(t);var n=null;return"number"==typeof t?n=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(n=this.timestampToMarker(t))):Array.isArray(t)&&(n=Nn(t)),null!==n&&Sn(n)?{marker:n,isTimeUnspecified:!1,forcedTzo:null}:null},t.prototype.parse=function(t){var n=function(t){var n=zr.exec(t);if(n){var e=new Date(Date.UTC(Number(n[1]),n[3]?Number(n[3])-1:0,Number(n[5]||1),Number(n[7]||0),Number(n[8]||0),Number(n[10]||0),n[12]?1e3*Number("0."+n[12]):0));if(Sn(e)){var r=null;return n[13]&&(r=("-"===n[15]?-1:1)*(60*Number(n[16]||0)+Number(n[18]||0))),{marker:e,isTimeUnspecified:!n[6],timeZoneOffset:r}}}return null}(t);if(null===n)return null;var e=n.marker,r=null;return null!==n.timeZoneOffset&&(this.canComputeOffset?e=this.timestampToMarker(e.valueOf()-60*n.timeZoneOffset*1e3):r=n.timeZoneOffset),{marker:e,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:r}},t.prototype.getYear=function(t){return this.calendarSystem.getMarkerYear(t)},t.prototype.getMonth=function(t){return this.calendarSystem.getMarkerMonth(t)},t.prototype.add=function(t,n){var e=this.calendarSystem.markerToArray(t);return e[0]+=n.years,e[1]+=n.months,e[2]+=n.days,e[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(e)},t.prototype.subtract=function(t,n){var e=this.calendarSystem.markerToArray(t);return e[0]-=n.years,e[1]-=n.months,e[2]-=n.days,e[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(e)},t.prototype.addYears=function(t,n){var e=this.calendarSystem.markerToArray(t);return e[0]+=n,this.calendarSystem.arrayToMarker(e)},t.prototype.addMonths=function(t,n){var e=this.calendarSystem.markerToArray(t);return e[1]+=n,this.calendarSystem.arrayToMarker(e)},t.prototype.diffWholeYears=function(t,n){var e=this.calendarSystem;return Cn(t)===Cn(n)&&e.getMarkerDay(t)===e.getMarkerDay(n)&&e.getMarkerMonth(t)===e.getMarkerMonth(n)?e.getMarkerYear(n)-e.getMarkerYear(t):null},t.prototype.diffWholeMonths=function(t,n){var e=this.calendarSystem;return Cn(t)===Cn(n)&&e.getMarkerDay(t)===e.getMarkerDay(n)?e.getMarkerMonth(n)-e.getMarkerMonth(t)+12*(e.getMarkerYear(n)-e.getMarkerYear(t)):null},t.prototype.greatestWholeUnit=function(t,n){var e=this.diffWholeYears(t,n);return null!==e?{unit:"year",value:e}:null!==(e=this.diffWholeMonths(t,n))?{unit:"month",value:e}:null!==(e=function(t,n){var e=An(t,n);return null!==e&&e%7==0?e/7:null}(t,n))?{unit:"week",value:e}:null!==(e=An(t,n))?{unit:"day",value:e}:hn(e=function(t,n){return(n.valueOf()-t.valueOf())/36e5}(t,n))?{unit:"hour",value:e}:hn(e=function(t,n){return(n.valueOf()-t.valueOf())/6e4}(t,n))?{unit:"minute",value:e}:hn(e=function(t,n){return(n.valueOf()-t.valueOf())/1e3}(t,n))?{unit:"second",value:e}:{unit:"millisecond",value:n.valueOf()-t.valueOf()}},t.prototype.countDurationsBetween=function(t,n,e){var r;return e.years&&null!==(r=this.diffWholeYears(t,n))?r/(Yn(e)/365):e.months&&null!==(r=this.diffWholeMonths(t,n))?r/(Yn(e)/30):e.days&&null!==(r=An(t,n))?r/Yn(e):(n.valueOf()-t.valueOf())/Zn(e)},t.prototype.startOf=function(t,n){return"year"===n?this.startOfYear(t):"month"===n?this.startOfMonth(t):"week"===n?this.startOfWeek(t):"day"===n?wn(t):"hour"===n?function(t){return Nn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}(t):"minute"===n?function(t){return Nn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}(t):"second"===n?function(t){return Nn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}(t):null},t.prototype.startOfYear=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])},t.prototype.startOfMonth=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])},t.prototype.startOfWeek=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])},t.prototype.computeWeekNumber=function(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):function(t,n,e){var r=t.getUTCFullYear(),i=kn(t,r,n,e);if(i<1)return kn(t,r-1,n,e);var o=kn(t,r+1,n,e);return o>=1?Math.min(i,o):i}(t,this.weekDow,this.weekDoy)},t.prototype.format=function(t,n,e){return void 0===e&&(e={}),n.format({marker:t,timeZoneOffset:null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)},this)},t.prototype.formatRange=function(t,n,e,r){return void 0===r&&(r={}),r.isEndExclusive&&(n=bn(n,-1)),e.formatRange({marker:t,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(t)},{marker:n,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(n)},this,r.defaultSeparator)},t.prototype.formatIso=function(t,n){void 0===n&&(n={});var e=null;return n.omitTimeZoneOffset||(e=null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(t)),Xn(t,e,n.omitTime)},t.prototype.timestampToMarker=function(t){return"local"===this.timeZone?Nn(xn(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Nn(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)},t.prototype.offsetForMarker=function(t){return"local"===this.timeZone?-En(Dn(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Dn(t)):null},t.prototype.toDate=function(t,n){return"local"===this.timeZone?En(Dn(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Dn(t))*60):new Date(t.valueOf()-(n||0))},t}(),Pr=[],Qr={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",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"};function Or(t){for(var n=t.length>0?t[0].code:"en",e=Pr.concat(t),r={en:Qr},i=0,o=e;i<o.length;i++){var a=o[i];r[a.code]=a}return{map:r,defaultCode:n}}function Vr(t,n){return"object"!=typeof t||Array.isArray(t)?function(t,n){var e=[].concat(t||[]),r=function(t,n){for(var e=0;e<t.length;e+=1)for(var r=t[e].toLocaleLowerCase().split("-"),i=r.length;i>0;i-=1){var o=r.slice(0,i).join("-");if(n[o])return n[o]}return null}(e,n)||Qr;return Hr(t,e,r)}(t,n):Hr(t.code,[t.code],t)}function Hr(t,n,e){var r=Rn([Qr,e],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:t,codes:n,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}var jr,Ur={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Fr(t,n){return t.left>=n.left&&t.left<n.right&&t.top>=n.top&&t.top<n.bottom}function Gr(t,n){var e={left:Math.max(t.left,n.left),right:Math.min(t.right,n.right),top:Math.max(t.top,n.top),bottom:Math.min(t.bottom,n.bottom)};return e.left<e.right&&e.top<e.bottom&&e}function Lr(){return null==jr&&(jr=function(){if("undefined"==typeof document)return!0;var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);var n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}()),jr}var Wr={defs:{},instances:{}},Yr=function(){function t(){this.getKeysForEventDefs=ne(this._getKeysForEventDefs),this.splitDateSelection=ne(this._splitDateSpan),this.splitEventStore=ne(this._splitEventStore),this.splitIndividualUi=ne(this._splitIndividualUi),this.splitEventDrag=ne(this._splitInteraction),this.splitEventResize=ne(this._splitInteraction),this.eventUiBuilders={}}return t.prototype.splitProps=function(t){var n=this,e=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,r),a=this.splitEventStore(t.eventStore,r),u=this.splitEventDrag(t.eventDrag),s=this.splitEventResize(t.eventResize),c={};for(var l in this.eventUiBuilders=zn(e,(function(t,e){return n.eventUiBuilders[e]||ne(Zr)})),e){var f=e[l],d=a[l]||Wr;c[l]={businessHours:f.businessHours||t.businessHours,dateSelection:i[l]||null,eventStore:d,eventUiBases:(0,this.eventUiBuilders[l])(t.eventUiBases[""],f.ui,o[l]),eventSelection:d.instances[t.eventSelection]?t.eventSelection:"",eventDrag:u[l]||null,eventResize:s[l]||null}}return c},t.prototype._splitDateSpan=function(t){var n={};if(t)for(var e=0,r=this.getKeysForDateSpan(t);e<r.length;e++)n[r[e]]=t;return n},t.prototype._getKeysForEventDefs=function(t){var n=this;return zn(t.defs,(function(t){return n.getKeysForEventDef(t)}))},t.prototype._splitEventStore=function(t,n){var e=t.defs,r=t.instances,i={};for(var o in e)for(var a=0,u=n[o];a<u.length;a++)i[d=u[a]]||(i[d]={defs:{},instances:{}}),i[d].defs[o]=e[o];for(var s in r)for(var c=r[s],l=0,f=n[c.defId];l<f.length;l++){var d;i[d=f[l]]&&(i[d].instances[s]=c)}return i},t.prototype._splitIndividualUi=function(t,n){var e={};for(var r in t)if(r)for(var i=0,o=n[r];i<o.length;i++){var a=o[i];e[a]||(e[a]={}),e[a][r]=t[r]}return e},t.prototype._splitInteraction=function(t){var n={};if(t){var e=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),r=this._getKeysForEventDefs(t.mutatedEvents),i=this._splitEventStore(t.mutatedEvents,r),o=function(r){n[r]||(n[r]={affectedEvents:e[r]||Wr,mutatedEvents:i[r]||Wr,isEvent:t.isEvent})};for(var a in e)o(a);for(var a in i)o(a)}return n},t}();function Zr(t,n,e){var r=[];t&&r.push(t),n&&r.push(n);var i={"":Pe(r)};return e&&u(i,e),i}function qr(t,n,e,r){return{dow:t.getUTCDay(),isDisabled:Boolean(r&&!Ke(r.activeRange,t)),isOther:Boolean(r&&!Ke(r.currentRange,t)),isToday:Boolean(n&&Ke(n,t)),isPast:Boolean(e?t<e:!!n&&t<n.start),isFuture:Boolean(e?t>e:!!n&&t>=n.end)}}function Jr(t,n){var e=["fc-day","fc-day-"+pn[t.dow]];return t.isDisabled?e.push("fc-day-disabled"):(t.isToday&&(e.push("fc-day-today"),e.push(n.getClass("today"))),t.isPast&&e.push("fc-day-past"),t.isFuture&&e.push("fc-day-future"),t.isOther&&e.push("fc-day-other")),e}function Xr(t,n){return void 0===n&&(n="day"),JSON.stringify({date:$n(t),type:n})}var $r,Kr=null;function ti(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function ni(t,n,e){void 0===n&&(n=!1);var r=e?t.getBoundingClientRect():ei(t),i=function(t,n){void 0===n&&(n=!1);var e=window.getComputedStyle(t),r=parseInt(e.borderLeftWidth,10)||0,i=parseInt(e.borderRightWidth,10)||0,o=parseInt(e.borderTopWidth,10)||0,a=parseInt(e.borderBottomWidth,10)||0,u=ti(t),s=u.y-r-i,c={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:u.x-o-a,scrollbarLeft:0,scrollbarRight:0};return null===Kr&&(Kr=function(){var t=document.createElement("div");Xt(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);var n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Yt(t),n}()),Kr&&"rtl"===e.direction?c.scrollbarLeft=s:c.scrollbarRight=s,n&&(c.paddingLeft=parseInt(e.paddingLeft,10)||0,c.paddingRight=parseInt(e.paddingRight,10)||0,c.paddingTop=parseInt(e.paddingTop,10)||0,c.paddingBottom=parseInt(e.paddingBottom,10)||0),c}(t,n),o={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return n&&(o.left+=i.paddingLeft,o.right-=i.paddingRight,o.top+=i.paddingTop,o.bottom-=i.paddingBottom),o}function ei(t){var n=t.getBoundingClientRect();return{left:n.left+window.pageXOffset,top:n.top+window.pageYOffset,right:n.right+window.pageXOffset,bottom:n.bottom+window.pageYOffset}}function ri(t){for(var n=[];t instanceof HTMLElement;){var e=window.getComputedStyle(t);if("fixed"===e.position)break;/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&n.push(t),t=t.parentNode}return n}var ii=function(){function t(){this.handlers={},this.thisContext=null}return t.prototype.setThisContext=function(t){this.thisContext=t},t.prototype.setOptions=function(t){this.options=t},t.prototype.on=function(t,n){!function(t,n,e){(t[n]||(t[n]=[])).push(e)}(this.handlers,t,n)},t.prototype.off=function(t,n){!function(t,n,e){e?t[n]&&(t[n]=t[n].filter((function(t){return t!==e}))):delete t[n]}(this.handlers,t,n)},t.prototype.trigger=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];for(var r=this.handlers[t]||[],i=this.options&&this.options[t],o=[].concat(i||[],r),a=0,u=o;a<u.length;a++){var s=u[a];s.apply(this.thisContext,n)}},t.prototype.hasHandlers=function(t){return this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t]},t}(),oi=function(){function t(t,n,e,r){this.els=n;var i=this.originClientRect=t.getBoundingClientRect();e&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}return t.prototype.buildElHorizontals=function(t){for(var n=[],e=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();n.push(o.left-t),e.push(o.right-t)}this.lefts=n,this.rights=e},t.prototype.buildElVerticals=function(t){for(var n=[],e=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();n.push(o.top-t),e.push(o.bottom-t)}this.tops=n,this.bottoms=e},t.prototype.leftToIndex=function(t){var n,e=this.lefts,r=this.rights,i=e.length;for(n=0;n<i;n+=1)if(t>=e[n]&&t<r[n])return n},t.prototype.topToIndex=function(t){var n,e=this.tops,r=this.bottoms,i=e.length;for(n=0;n<i;n+=1)if(t>=e[n]&&t<r[n])return n},t.prototype.getWidth=function(t){return this.rights[t]-this.lefts[t]},t.prototype.getHeight=function(t){return this.bottoms[t]-this.tops[t]},t}(),ai=function(){function t(){}return t.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},t.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},t.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},t.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},t.prototype.canScrollUp=function(){return this.getScrollTop()>0},t.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},t.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},t.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},t}(),ui=function(t){function n(n){var e=t.call(this)||this;return e.el=n,e}return a(n,t),n.prototype.getScrollTop=function(){return this.el.scrollTop},n.prototype.getScrollLeft=function(){return this.el.scrollLeft},n.prototype.setScrollTop=function(t){this.el.scrollTop=t},n.prototype.setScrollLeft=function(t){this.el.scrollLeft=t},n.prototype.getScrollWidth=function(){return this.el.scrollWidth},n.prototype.getScrollHeight=function(){return this.el.scrollHeight},n.prototype.getClientHeight=function(){return this.el.clientHeight},n.prototype.getClientWidth=function(){return this.el.clientWidth},n}(ai),si=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.getScrollTop=function(){return window.pageYOffset},n.prototype.getScrollLeft=function(){return window.pageXOffset},n.prototype.setScrollTop=function(t){window.scroll(window.pageXOffset,t)},n.prototype.setScrollLeft=function(t){window.scroll(t,window.pageYOffset)},n.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},n.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},n.prototype.getClientHeight=function(){return document.documentElement.clientHeight},n.prototype.getClientWidth=function(){return document.documentElement.clientWidth},n}(ai),ci=function(){function t(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}return t.prototype.setIconOverride=function(t){var n,e;if("object"==typeof t&&t){for(e in n=u({},this.iconClasses),t)n[e]=this.applyIconOverridePrefix(t[e]);this.iconClasses=n}else!1===t&&(this.iconClasses={})},t.prototype.applyIconOverridePrefix=function(t){var n=this.iconOverridePrefix;return n&&0!==t.indexOf(n)&&(t=n+t),t},t.prototype.getClass=function(t){return this.classes[t]||""},t.prototype.getIconClass=function(t,n){var e;return(e=n&&this.rtlIconClasses&&this.rtlIconClasses[t]||this.iconClasses[t])?this.baseIconClass+" "+e:""},t.prototype.getCustomButtonIconClass=function(t){var n;return this.iconOverrideCustomButtonOption&&(n=t[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(n):""},t}();ci.prototype.classes={},ci.prototype.iconClasses={},ci.prototype.baseIconClass="",ci.prototype.iconOverridePrefix="";var li=function(){function t(t,n,e,r){var i=this;this.execFunc=t,this.emitter=n,this.scrollTime=e,this.scrollTimeReset=r,this.handleScrollRequest=function(t){i.queuedRequest=u({},i.queuedRequest||{},t),i.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return t.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},t.prototype.update=function(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},t.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},t.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},t}(),fi=Ut({});function di(t,n,e,r,i,o,a,u,s,c,l,f,d){return{dateEnv:i,options:e,pluginHooks:a,emitter:c,dispatch:u,getCurrentData:s,calendarApi:l,viewSpec:t,viewApi:n,dateProfileGenerator:r,theme:o,isRtl:"rtl"===e.direction,addResizeHandler:function(t){c.on("_resize",t)},removeResizeHandler:function(t){c.off("_resize",t)},createScrollResponder:function(t){return new li(t,c,Gn(e.scrollTime),e.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:d}}var hi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.shouldComponentUpdate=function(t,n){return this.debug&&console.log(On(t,this.props),On(n,this.state)),!Vn(this.props,t,this.propEquality)||!Vn(this.state,n,this.stateEquality)},n.addPropsEquality=pi,n.addStateEquality=gi,n.contextType=fi,n}(Qt);hi.prototype.propEquality={},hi.prototype.stateEquality={};var vi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.contextType=fi,n}(hi);function pi(t){var n=Object.create(this.prototype.propEquality);u(n,t),this.prototype.propEquality=n}function gi(t){var n=Object.create(this.prototype.stateEquality);u(n,t),this.prototype.stateEquality=n}function mi(t,n){"function"==typeof t?t(n):t&&(t.current=n)}var bi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.uid=un(),n}return a(n,t),n.prototype.prepareHits=function(){},n.prototype.queryHit=function(){return null},n.prototype.isValidSegDownEl=function(t){return!this.props.eventDrag&&!this.props.eventResize&&!Zt(t,".fc-event-mirror")},n.prototype.isValidDateDownEl=function(t){return!(Zt(t,".fc-event:not(.fc-bg-event)")||Zt(t,".fc-more-link")||Zt(t,"a[data-navlink]")||Zt(t,".fc-popover"))},n}(vi);function yi(t){return{id:un(),deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,contentTypeHandlers:t.contentTypeHandlers||{},listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}var Ai=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n}(ci);function wi(t,n,e,r){if(n[t])return n[t];var i=function(t,n,e,r){var i=e[t],o=r[t],a=function(t){return i&&null!==i[t]?i[t]:o&&null!==o[t]?o[t]:null},s=a("component"),c=a("superType"),l=null;if(c){if(c===t)throw new Error("Can't have a custom view type that references itself");l=wi(c,n,e,r)}return!s&&l&&(s=l.component),s?{type:t,component:s,defaults:u(u({},l?l.defaults:{}),i?i.rawOptions:{}),overrides:u(u({},l?l.overrides:{}),o?o.rawOptions:{})}:null}(t,n,e,r);return i&&(n[t]=i),i}Ai.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ai.prototype.baseIconClass="fc-icon",Ai.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"},Ai.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ai.prototype.iconOverrideOption="buttonIcons",Ai.prototype.iconOverrideCustomButtonOption="icon",Ai.prototype.iconOverridePrefix="fc-icon-";var ki=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.rootElRef=Ht(),n.handleRootEl=function(t){mi(n.rootElRef,t),n.props.elRef&&mi(n.props.elRef,t)},n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props,e=n.hookProps;return Ot(Di,{hookProps:e,didMount:n.didMount,willUnmount:n.willUnmount,elRef:this.handleRootEl},(function(r){return Ot(xi,{hookProps:e,content:n.content,defaultContent:n.defaultContent,backupElRef:t.rootElRef},(function(t,i){return n.children(r,Si(n.classNames,e),t,i)}))}))},n}(vi),_i=Ut(0);function xi(t){return Ot(_i.Consumer,null,(function(n){return Ot(Ei,u({renderId:n},t))}))}var Ei=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.innerElRef=Ht(),n}return a(n,t),n.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},n.prototype.componentDidMount=function(){this.updateCustomContent()},n.prototype.componentDidUpdate=function(){this.updateCustomContent()},n.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},n.prototype.renderInnerContent=function(){var t=this.customContentInfo,n=this.getInnerContent(),e=this.getContentMeta(n);return t&&t.contentKey===e.contentKey?t&&(t.contentVal=n[e.contentKey]):(t&&(t.destroy&&t.destroy(),t=this.customContentInfo=null),e.contentKey&&(t=this.customContentInfo=u({contentKey:e.contentKey,contentVal:n[e.contentKey]},e.buildLifecycleFuncs()))),t?[]:n},n.prototype.getInnerContent=function(){var t=this.props,n=Ci(t.content,t.hookProps);return void 0===n&&(n=Ci(t.defaultContent,t.hookProps)),null==n?null:n},n.prototype.getContentMeta=function(t){var n=this.context.pluginHooks.contentTypeHandlers,e="",r=null;if(t)for(var i in n)if(void 0!==t[i]){e=i,r=n[i];break}return{contentKey:e,buildLifecycleFuncs:r}},n.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},n}(vi),Di=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleRootEl=function(t){n.rootEl=t,n.props.elRef&&mi(n.props.elRef,t)},n}return a(n,t),n.prototype.render=function(){return this.props.children(this.handleRootEl)},n.prototype.componentDidMount=function(){var t=this.props.didMount;t&&t(u(u({},this.props.hookProps),{el:this.rootEl}))},n.prototype.componentWillUnmount=function(){var t=this.props.willUnmount;t&&t(u(u({},this.props.hookProps),{el:this.rootEl}))},n}(vi);function Ni(){var t,n,e=[];return function(r,i){return n&&Qn(n,i)&&r===t||(t=r,n=i,e=Si(r,i)),e}}function Si(t,n){return"function"==typeof t&&(t=t(n)),Re(t)}function Ci(t,n){return"function"==typeof t?t(n,Ot):t}var Ti=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.normalizeClassNames=Ni(),n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r={view:n.viewApi},i=this.normalizeClassNames(e.viewClassNames,r);return Ot(Di,{hookProps:r,didMount:e.viewDidMount,willUnmount:e.viewWillUnmount,elRef:t.elRef},(function(n){return t.children(n,["fc-"+t.viewSpec.type+"-view","fc-view"].concat(i))}))},n}(vi);function Mi(t){return zn(t,Ri)}function Ri(t){var n,e="function"==typeof t?{component:t}:t,r=e.component;return e.content&&(n=e,r=function(t){return Ot(fi.Consumer,null,(function(e){return Ot(Ti,{viewSpec:e.viewSpec},(function(r,i){var o=u(u({},t),{nextDayThreshold:e.options.nextDayThreshold});return Ot(ki,{hookProps:o,classNames:n.classNames,content:n.content,didMount:n.didMount,willUnmount:n.willUnmount,elRef:r},(function(t,n,e,r){return Ot("div",{className:i.concat(n).join(" "),ref:t},r)}))}))}))}),{superType:e.type,component:r,rawOptions:e}}function Bi(t,n,e,r){var i=Mi(t),o=Mi(n.views);return zn(function(t,n){var e,r={};for(e in t)wi(e,r,t,n);for(e in n)wi(e,r,t,n);return r}(i,o),(function(t){return function(t,n,e,r,i){var o=t.overrides.duration||t.defaults.duration||r.duration||e.duration,a=null,s="",c="",l={};if(o&&(a=function(t){var n=JSON.stringify(t),e=zi[n];return void 0===e&&(e=Gn(t),zi[n]=e),e}(o))){var f=Jn(a);s=f.unit,1===f.value&&(c=s,l=n[s]?n[s].rawOptions:{})}var d=function(n){var e=n.buttonText||{},r=t.defaults.buttonTextKey;return null!=r&&null!=e[r]?e[r]:null!=e[t.type]?e[t.type]:null!=e[c]?e[c]:null};return{type:t.type,component:t.component,duration:a,durationUnit:s,singleUnit:c,optionDefaults:t.defaults,optionOverrides:u(u({},l),t.overrides),buttonTextOverride:d(r)||d(e)||t.overrides.buttonText,buttonTextDefault:d(i)||t.defaults.buttonText||d(be)||t.type}}(t,o,n,e,r)}))}var zi={},Ii=function(){function t(t){this.props=t,this.nowDate=Nr(t.nowInput,t.dateEnv),this.initHiddenDays()}return t.prototype.buildPrev=function(t,n,e){var r=this.props.dateEnv,i=r.subtract(r.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(i,-1,e)},t.prototype.buildNext=function(t,n,e){var r=this.props.dateEnv,i=r.add(r.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(i,1,e)},t.prototype.build=function(t,n,e){void 0===e&&(e=!0);var r,i,o,a,u,s,c,l,f=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),e&&(c=t,t=null!=(l=r).start&&c<l.start?l.start:null!=l.end&&c>=l.end?new Date(l.end.valueOf()-1):c),i=this.buildCurrentRangeInfo(t,n),o=/^(year|month|week|day)$/.test(i.unit),a=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),u=a=this.trimHiddenDays(a),f.showNonCurrentDates||(u=Je(u,i.range)),u=Je(u=this.adjustActiveRange(u),r),s=Xe(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:u,renderRange:a,slotMinTime:f.slotMinTime,slotMaxTime:f.slotMaxTime,isValid:s,dateIncrement:this.buildDateIncrement(i.duration)}},t.prototype.buildValidRange=function(){var t=this.props.validRangeInput,n="function"==typeof t?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(n)||{start:null,end:null}},t.prototype.buildCurrentRangeInfo=function(t,n){var e,r=this.props,i=null,o=null,a=null;return r.duration?a=this.buildRangeFromDuration(t,n,i=r.duration,o=r.durationUnit):(e=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,n,e)):(a=this.buildCustomVisibleRange(t))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(o=Jn(i=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:a}},t.prototype.getFallbackDuration=function(){return Gn({day:1})},t.prototype.adjustActiveRange=function(t){var n=this.props,e=n.dateEnv,r=n.slotMinTime,i=n.slotMaxTime,o=t.start,a=t.end;return n.usesMinMaxTime&&(Yn(r)<0&&(o=wn(o),o=e.add(o,r)),Yn(i)>1&&(a=mn(a=wn(a),-1),a=e.add(a,i))),{start:o,end:a}},t.prototype.buildRangeFromDuration=function(t,n,e,r){var i,o,a,u=this.props,s=u.dateEnv,c=u.dateAlignment;if(!c){var l=this.props.dateIncrement;c=l&&Zn(l)<Zn(e)?Jn(l).unit:r}function f(){i=s.startOf(t,c),o=s.add(i,e),a={start:i,end:o}}return Yn(e)<=1&&this.isHiddenDay(i)&&(i=wn(i=this.skipHiddenDays(i,n))),f(),this.trimHiddenDays(a)||(t=this.skipHiddenDays(t,n),f()),a},t.prototype.buildRangeFromDayCount=function(t,n,e){var r,i=this.props,o=i.dateAlignment,a=0,u=t;o&&(u=i.dateEnv.startOf(u,o)),u=wn(u),r=u=this.skipHiddenDays(u,n);do{r=mn(r,1),this.isHiddenDay(r)||(a+=1)}while(a<e);return{start:u,end:r}},t.prototype.buildCustomVisibleRange=function(t){var n=this.props,e=n.visibleRangeInput,r="function"==typeof e?e.call(n.calendarApi,n.dateEnv.toDate(t)):e,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null},t.prototype.buildRenderRange=function(t){return t},t.prototype.buildDateIncrement=function(t){var n;return this.props.dateIncrement||((n=this.props.dateAlignment)?Gn(1,n):t||Gn({days:1}))},t.prototype.refineRange=function(t){if(t){var n=(r=this.props.dateEnv,i=null,o=null,(e=t).start&&(i=r.createMarker(e.start)),e.end&&(o=r.createMarker(e.end)),i||o?i&&o&&o<i?null:{start:i,end:o}:null);return n&&(n=We(n)),n}var e,r,i,o;return null},t.prototype.initHiddenDays=function(){var t,n=this.props.hiddenDays||[],e=[],r=0;for(!1===this.props.weekends&&n.push(0,6),t=0;t<7;t+=1)(e[t]=-1!==n.indexOf(t))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=e},t.prototype.trimHiddenDays=function(t){var n=t.start,e=t.end;return n&&(n=this.skipHiddenDays(n)),e&&(e=this.skipHiddenDays(e,-1,!0)),null==n||null==e||n<e?{start:n,end:e}:null},t.prototype.isHiddenDay=function(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]},t.prototype.skipHiddenDays=function(t,n,e){for(void 0===n&&(n=1),void 0===e&&(e=!1);this.isHiddenDayHash[(t.getUTCDay()+(e?n:0)+7)%7];)t=mn(t,n);return t},t}();function Pi(t){for(var n in t)if(t[n].isFetching)return!0;return!1}function Qi(t,n,e,r){for(var i={},o=0,a=n;o<a.length;o++){var s=a[o];i[s.sourceId]=s}return e&&(i=Oi(i,e,r)),u(u({},t),i)}function Oi(t,n,e){return Vi(t,Bn(t,(function(t){return function(t,n,e){return Ui(t,e)?!e.options.lazyFetching||!t.fetchRange||t.isFetching||n.start<t.fetchRange.start||n.end>t.fetchRange.end:!t.latestFetchId}(t,n,e)})),n,!1,e)}function Vi(t,n,e,r,i){var o={};for(var a in t){var u=t[a];o[a]=n[a]?Hi(u,e,r,i):u}return o}function Hi(t,n,e,r){var i=r.options,o=r.calendarApi,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],s=un();return a.fetch({eventSource:t,range:n,isRefetch:e,context:r},(function(e){var a=e.rawEvents;i.eventSourceSuccess&&(a=i.eventSourceSuccess.call(o,a,e.xhr)||a),t.success&&(a=t.success.call(o,a,e.xhr)||a),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:n,rawEvents:a})}),(function(e){console.warn(e.message,e),i.eventSourceFailure&&i.eventSourceFailure.call(o,e),t.failure&&t.failure(e),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:n,error:e})})),u(u({},t),{isFetching:!0,latestFetchId:s})}function ji(t,n){return Bn(t,(function(t){return Ui(t,n)}))}function Ui(t,n){return!n.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Fi(t,n){var e;if(n){e=[];for(var r=0,i=t;r<i.length;r++){var o=i[r],a=n(o);a?e.push(a):null==a&&e.push(o)}}else e=t;return e}function Gi(t,n){return Me(t,(function(t){return t.sourceId!==n}))}function Li(t,n){switch(n.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return n.selection;default:return t}}function Wi(t,n){switch(n.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return n.eventInstanceId;default:return t}}function Yi(t,n){var e;switch(n.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(e=n.state).affectedEvents,mutatedEvents:e.mutatedEvents,isEvent:e.isEvent};default:return t}}function Zi(t,n){var e;switch(n.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(e=n.state).affectedEvents,mutatedEvents:e.mutatedEvents,isEvent:e.isEvent};default:return t}}function qi(t,n,e,r,i){var o=[];return{headerToolbar:t.headerToolbar?Ji(t.headerToolbar,t,n,e,r,i,o):null,footerToolbar:t.footerToolbar?Ji(t.footerToolbar,t,n,e,r,i,o):null,viewsWithButtons:o}}function Ji(t,n,e,r,i,o,a){return zn(t,(function(t){return function(t,n,e,r,i,o,a){var u="rtl"===n.direction,s=n.customButtons||{},c=e.buttonText||{},l=n.buttonText||{};return(t?t.split(" "):[]).map((function(t){return t.split(",").map((function(t){return"title"===t?{buttonName:t}:((n=s[t])?(f=function(t){n.click&&n.click.call(t.target,t,t.target)},(d=r.getCustomButtonIconClass(n))||(d=r.getIconClass(t,u))||(h=n.text)):(e=i[t])?(a.push(t),f=function(){o.changeView(t)},(h=e.buttonTextOverride)||(d=r.getIconClass(t,u))||(h=e.buttonTextDefault)):o[t]&&(f=function(){o[t]()},(h=c[t])||(d=r.getIconClass(t,u))||(h=l[t])),{buttonName:t,buttonClick:f,buttonIcon:d,buttonText:h});var n,e,f,d,h}))}))}(t,n,e,r,i,o,a)}))}function Xi(t){var n=[];for(var e in t)n.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n.join("&")}function $i(t,n){for(var e=Pn(n.getCurrentData().eventSources),r=[],i=0,o=t;i<o.length;i++){for(var a=o[i],u=!1,s=0;s<e.length;s+=1)if(e[s]._raw===a){e.splice(s,1),u=!0;break}u||r.push(a)}for(var c=0,l=e;c<l.length;c++)n.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:l[c].sourceId});for(var f=0,d=r;f<d.length;f++)n.calendarApi.addEventSource(d[f])}var Ki=[yi({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(t){return Array.isArray(t.events)?t.events:null},fetch:function(t,n){n({rawEvents:t.eventSource.meta})}}]}),yi({eventSourceDefs:[{parseMeta:function(t){return"function"==typeof t.events?t.events:null},fetch:function(t,n,e){!function(t,n,e){var r=!1,i=function(){r||(r=!0,n.apply(this,arguments))},o=function(){r||(r=!0,e&&e.apply(this,arguments))},a=t(i,o);a&&"function"==typeof a.then&&a.then(i,o)}(t.eventSource.meta.bind(null,vr(t.range,t.context.dateEnv)),(function(t){n({rawEvents:t})}),e)}}]}),yi({eventSourceRefiners:{method:String,extraParams:De,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(t){return!t.url||"json"!==t.format&&t.format?null:{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}},fetch:function(t,n,e){var r=t.eventSource.meta,i=function(t,n,e){var r,i,o,a,s=e.dateEnv,c=e.options,l={};return null==(r=t.startParam)&&(r=c.startParam),null==(i=t.endParam)&&(i=c.endParam),null==(o=t.timeZoneParam)&&(o=c.timeZoneParam),a="function"==typeof t.extraParams?t.extraParams():t.extraParams||{},u(l,a),l[r]=s.formatIso(n.start),l[i]=s.formatIso(n.end),"local"!==s.timeZone&&(l[o]=s.timeZone),l}(r,t.range,t.context);!function(t,n,e,r,i){var o=null;"GET"===(t=t.toUpperCase())?n=function(t,n){return t+(-1===t.indexOf("?")?"?":"&")+Xi(n)}(n,e):o=Xi(e);var a=new XMLHttpRequest;a.open(t,n,!0),"GET"!==t&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var t=!1,n=void 0;try{n=JSON.parse(a.responseText),t=!0}catch(t){}t?r(n,a):i("Failure parsing JSON",a)}else i("Request failed",a)},a.onerror=function(){i("Request failed",a)},a.send(o)}(r.method,r.url,i,(function(t,e){n({rawEvents:t,xhr:e})}),(function(t,n){e({message:t,xhr:n})}))}}]}),yi({recurringTypes:[{parse:function(t,n){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){var e={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?n.createMarker(t.startRecur):null,endRecur:t.endRecur?n.createMarker(t.endRecur):null},r=void 0;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r={years:(i=t.endTime).years-(o=t.startTime).years,months:i.months-o.months,days:i.days-o.days,milliseconds:i.milliseconds-o.milliseconds}),{allDayGuess:Boolean(!t.startTime&&!t.endTime),duration:r,typeData:e}}var i,o;return null},expand:function(t,n,e){var r=Je(n,{start:t.startRecur,end:t.endRecur});return r?function(t,n,e,r){for(var i=t?In(t):null,o=wn(e.start),a=e.end,u=[];o<a;){var s=void 0;i&&!i[o.getUTCDay()]||(s=n?r.add(o,n):o,u.push(s)),o=mn(o,1)}return u}(t.daysOfWeek,t.startTime,r,e):[]}}],eventRefiners:{daysOfWeek:De,startTime:Gn,endTime:Gn,duration:Gn,startRecur:De,endRecur:De}}),yi({optionChangeHandlers:{events:function(t,n){$i([t],n)},eventSources:$i}}),yi({isLoadingFuncs:[function(t){return Pi(t.eventSources)}],contentTypeHandlers:{html:function(){return{render:to}},domNodes:function(){return{render:no}}},propSetHandlers:{dateProfile:function(t,n){n.emitter.trigger("datesSet",u(u({},vr(t.activeRange,n.dateEnv)),{view:n.viewApi}))},eventStore:function(t,n){var e=n.emitter;e.hasHandlers("eventsSet")&&e.trigger("eventsSet",Mr(t,n))}}})];function to(t,n){t.innerHTML=n}function no(t,n){var e=Array.prototype.slice.call(t.childNodes),r=Array.prototype.slice.call(n);if(!te(e,r)){for(var i=0,o=r;i<o.length;i++)t.appendChild(o[i]);e.forEach(Yt)}}var eo=function(){function t(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return t.prototype.request=function(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==t?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))},t.prototype.pause=function(t){void 0===t&&(t="");var n=this.pauseDepths;n[t]=(n[t]||0)+1,this.clearTimeout()},t.prototype.resume=function(t,n){void 0===t&&(t="");var e=this.pauseDepths;t in e&&(n?delete e[t]:(e[t]-=1,e[t]<=0&&delete e[t]),this.tryDrain())},t.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},t.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},t.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},t.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},t.prototype.drained=function(){this.drainedOption&&this.drainedOption()},t}(),ro=function(){function t(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new eo(this.drain.bind(this))}return t.prototype.request=function(t,n){this.queue.push(t),this.delayedRunner.request(n)},t.prototype.pause=function(t){this.delayedRunner.pause(t)},t.prototype.resume=function(t,n){this.delayedRunner.resume(t,n)},t.prototype.drain=function(){for(var t=this.queue;t.length;){for(var n=[],e=void 0;e=t.shift();)this.runTask(e),n.push(e);this.drained(n)}},t.prototype.runTask=function(t){this.runTaskOption&&this.runTaskOption(t)},t.prototype.drained=function(t){this.drainedOption&&this.drainedOption(t)},t}();function io(t,n,e){var r;return r=/^(year|month)$/.test(t.currentRangeUnit)?t.currentRange:t.activeRange,e.formatRange(r.start,r.end,ge(n.titleFormat||function(t){var n=t.currentRangeUnit;if("year"===n)return{year:"numeric"};if("month"===n)return{year:"numeric",month:"long"};var e=An(t.currentRange.start,t.currentRange.end);return null!==e&&e>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:n.titleRangeSeparator})}var oo=function(){function t(t){var n,e,r,i=this;this.computeOptionsData=ne(this._computeOptionsData),this.computeCurrentViewData=ne(this._computeCurrentViewData),this.organizeRawLocales=ne(Or),this.buildLocale=ne(Vr),this.buildPluginHooks=(e=[],r=[],function(t,i){return n&&te(t,e)&&te(i,r)||(n=function(t,n){var e={},r={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,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(t){for(var n=0,o=t;n<o.length;n++){var a=o[n];e[a.id]||(e[a.id]=!0,i(a.deps),r={reducers:(s=r).reducers.concat((c=a).reducers),isLoadingFuncs:s.isLoadingFuncs.concat(c.isLoadingFuncs),contextInit:s.contextInit.concat(c.contextInit),eventRefiners:u(u({},s.eventRefiners),c.eventRefiners),eventDefMemberAdders:s.eventDefMemberAdders.concat(c.eventDefMemberAdders),eventSourceRefiners:u(u({},s.eventSourceRefiners),c.eventSourceRefiners),isDraggableTransformers:s.isDraggableTransformers.concat(c.isDraggableTransformers),eventDragMutationMassagers:s.eventDragMutationMassagers.concat(c.eventDragMutationMassagers),eventDefMutationAppliers:s.eventDefMutationAppliers.concat(c.eventDefMutationAppliers),dateSelectionTransformers:s.dateSelectionTransformers.concat(c.dateSelectionTransformers),datePointTransforms:s.datePointTransforms.concat(c.datePointTransforms),dateSpanTransforms:s.dateSpanTransforms.concat(c.dateSpanTransforms),views:u(u({},s.views),c.views),viewPropsTransformers:s.viewPropsTransformers.concat(c.viewPropsTransformers),isPropsValid:c.isPropsValid||s.isPropsValid,externalDefTransforms:s.externalDefTransforms.concat(c.externalDefTransforms),viewContainerAppends:s.viewContainerAppends.concat(c.viewContainerAppends),eventDropTransformers:s.eventDropTransformers.concat(c.eventDropTransformers),calendarInteractions:s.calendarInteractions.concat(c.calendarInteractions),componentInteractions:s.componentInteractions.concat(c.componentInteractions),themeClasses:u(u({},s.themeClasses),c.themeClasses),eventSourceDefs:s.eventSourceDefs.concat(c.eventSourceDefs),cmdFormatter:c.cmdFormatter||s.cmdFormatter,recurringTypes:s.recurringTypes.concat(c.recurringTypes),namedTimeZonedImpl:c.namedTimeZonedImpl||s.namedTimeZonedImpl,initialView:s.initialView||c.initialView,elementDraggingImpl:s.elementDraggingImpl||c.elementDraggingImpl,optionChangeHandlers:u(u({},s.optionChangeHandlers),c.optionChangeHandlers),scrollGridImpl:c.scrollGridImpl||s.scrollGridImpl,contentTypeHandlers:u(u({},s.contentTypeHandlers),c.contentTypeHandlers),listenerRefiners:u(u({},s.listenerRefiners),c.listenerRefiners),optionRefiners:u(u({},s.optionRefiners),c.optionRefiners),propSetHandlers:u(u({},s.propSetHandlers),c.propSetHandlers)})}var s,c}return t&&i(t),i(n),r}(t,i)),e=t,r=i,n}),this.buildDateEnv=ne(ao),this.buildTheme=ne(uo),this.parseToolbars=ne(qi),this.buildViewSpecs=ne(Bi),this.buildDateProfileGenerator=ee(so),this.buildViewApi=ne(co),this.buildViewUiProps=ee(ho),this.buildEventUiBySource=ne(lo,Qn),this.buildEventUiBases=ne(fo),this.parseContextBusinessHours=ee(po),this.buildTitle=ne(io),this.emitter=new ii,this.actionRunner=new ro(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return i.data},this.dispatch=function(t){i.actionRunner.request(t)},this.props=t,this.actionRunner.pause();var o={},a=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),s=a.calendarOptions.initialView||a.pluginHooks.initialView,c=this.computeCurrentViewData(s,a,t.optionOverrides,o);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(c.options);var l,f,d,h=(f=a.dateEnv,null!=(d=(l=a.calendarOptions).initialDate)?f.createMarker(d):Nr(l.now,f)),v=c.dateProfileGenerator.build(h);Ke(v.activeRange,h)||(h=v.currentRange.start);for(var p={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},g=0,m=a.pluginHooks.contextInit;g<m.length;g++)(0,m[g])(p);for(var b=function(t,n,e){var r=n?n.activeRange:null;return Qi({},function(t,n){var e=Dr(n),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(var o=0,a=r;o<a.length;o++){var u=Er(a[o],n,e);u&&i.push(u)}return i}(t,e),r,e)}(a.calendarOptions,v,p),y={dynamicOptionOverrides:o,currentViewType:s,currentDate:h,dateProfile:v,businessHours:this.parseContextBusinessHours(p),eventSources:b,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(p).selectionConfig},A=u(u({},p),y),w=0,k=a.pluginHooks.reducers;w<k.length;w++)u(y,(0,k[w])(null,null,A));vo(y,p)&&this.emitter.trigger("loading",!0),this.state=y,this.updateData(),this.actionRunner.resume()}return t.prototype.resetOptions=function(t,n){var e=this.props;e.optionOverrides=n?u(u({},e.optionOverrides),t):t,this.actionRunner.request({type:"NOTHING"})},t.prototype._handleAction=function(t){var n=this,e=n.props,r=n.state,i=n.emitter,o=function(t,n){var e;switch(n.type){case"SET_OPTION":return u(u({},t),((e={})[n.optionName]=n.rawOptionValue,e));default:return t}}(r.dynamicOptionOverrides,t),a=this.computeOptionsData(e.optionOverrides,o,e.calendarApi),s=function(t,n){switch(n.type){case"CHANGE_VIEW_TYPE":t=n.viewType}return t}(r.currentViewType,t),c=this.computeCurrentViewData(s,a,e.optionOverrides,o);e.calendarApi.currentDataManager=this,i.setThisContext(e.calendarApi),i.setOptions(c.options);var l={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},f=r.currentDate,d=r.dateProfile;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(d=c.dateProfileGenerator.build(f)),d=function(t,n,e,r){var i;switch(n.type){case"CHANGE_VIEW_TYPE":return r.build(n.dateMarker||e);case"CHANGE_DATE":return r.build(n.dateMarker);case"PREV":if((i=r.buildPrev(t,e)).isValid)return i;break;case"NEXT":if((i=r.buildNext(t,e)).isValid)return i}return t}(d,t,f=function(t,n){switch(n.type){case"CHANGE_DATE":return n.dateMarker;default:return t}}(f,t),c.dateProfileGenerator),"PREV"!==t.type&&"NEXT"!==t.type&&Ke(d.currentRange,f)||(f=d.currentRange.start);for(var h=function(t,n,e,r){var i,o=e?e.activeRange:null;switch(n.type){case"ADD_EVENT_SOURCES":return Qi(t,n.sources,o,r);case"REMOVE_EVENT_SOURCE":return i=n.sourceId,Bn(t,(function(t){return t.sourceId!==i}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return e?Oi(t,o,r):t;case"FETCH_EVENT_SOURCES":return Vi(t,n.sourceIds?In(n.sourceIds):ji(t,r),o,n.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(t,n,e,r){var i,o=t[n];return o&&e===o.latestFetchId?u(u({},t),((i={})[n]=u(u({},o),{isFetching:!1,fetchRange:r}),i)):t}(t,n.sourceId,n.fetchId,n.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}(r.eventSources,t,d,l),v=function(t,n,e,r,i){switch(n.type){case"RECEIVE_EVENTS":return function(t,n,e,r,i,o){if(n&&e===n.latestFetchId){var a=Ne(function(t,n,e){var r=e.options.eventDataTransform,i=n?n.eventDataTransform:null;return i&&(t=Fi(t,i)),r&&(t=Fi(t,r)),t}(i,n,o),n,o);return r&&(a=Hn(a,r,o)),Te(Gi(t,n.sourceId),a)}return t}(t,e[n.sourceId],n.fetchId,n.fetchRange,n.rawEvents,i);case"ADD_EVENTS":return function(t,n,e,r){return e&&(n=Hn(n,e,r)),Te(t,n)}(t,n.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return n.eventStore;case"MERGE_EVENTS":return Te(t,n.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Hn(t,r.activeRange,i):t;case"REMOVE_EVENTS":return function(t,n){var e=t.defs,r=t.instances,i={},o={};for(var a in e)n.defs[a]||(i[a]=e[a]);for(var u in r)!n.instances[u]&&i[r[u].defId]&&(o[u]=r[u]);return{defs:i,instances:o}}(t,n.eventStore);case"REMOVE_EVENT_SOURCE":return Gi(t,n.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Me(t,(function(t){return!t.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return t}}(r.eventStore,t,h,d,l),p=Pi(h)&&!c.options.progressiveEventRendering&&r.renderableEventStore||v,g=this.buildViewUiProps(l),m=g.eventUiSingleBase,b=g.selectionConfig,y=this.buildEventUiBySource(h),A={dynamicOptionOverrides:o,currentViewType:s,currentDate:f,dateProfile:d,eventSources:h,eventStore:v,renderableEventStore:p,selectionConfig:b,eventUiBases:this.buildEventUiBases(p.defs,m,y),businessHours:this.parseContextBusinessHours(l),dateSelection:Li(r.dateSelection,t),eventSelection:Wi(r.eventSelection,t),eventDrag:Yi(r.eventDrag,t),eventResize:Zi(r.eventResize,t)},w=u(u({},l),A),k=0,_=a.pluginHooks.reducers;k<_.length;k++)u(A,(0,_[k])(r,t,w));var x=vo(r,l),E=vo(A,l);!x&&E?i.trigger("loading",!0):x&&!E&&i.trigger("loading",!1),this.state=A,e.onAction&&e.onAction(t)},t.prototype.updateData=function(){var t,n,e,r,i,o,a,s,c,l=this.props,f=this.state,d=this.data,h=this.computeOptionsData(l.optionOverrides,f.dynamicOptionOverrides,l.calendarApi),v=this.computeCurrentViewData(f.currentViewType,h,l.optionOverrides,f.dynamicOptionOverrides),p=this.data=u(u(u({viewTitle:this.buildTitle(f.dateProfile,v.options,h.dateEnv),calendarApi:l.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},h),v),f),g=h.pluginHooks.optionChangeHandlers,m=d&&d.calendarOptions,b=h.calendarOptions;if(m&&m!==b)for(var y in m.timeZone!==b.timeZone&&(f.eventSources=p.eventSources=(c=(a=f.dateProfile)?a.activeRange:null,Vi(o=p.eventSources,ji(o,s=p),c,!0,s)),f.eventStore=p.eventStore=(n=d.dateEnv,e=p.dateEnv,r=(t=p.eventStore).defs,i=zn(t.instances,(function(t){var i=r[t.defId];return i.allDay||i.recurringDef?t:u(u({},t),{range:{start:e.createMarker(n.toDate(t.range.start,t.forcedStartTzo)),end:e.createMarker(n.toDate(t.range.end,t.forcedEndTzo))},forcedStartTzo:e.canComputeOffset?null:t.forcedStartTzo,forcedEndTzo:e.canComputeOffset?null:t.forcedEndTzo})})),{defs:r,instances:i})),g)m[y]!==b[y]&&g[y](b[y],p);l.onData&&l.onData(p)},t.prototype._computeOptionsData=function(t,n,e){var r=this.processRawCalendarOptions(t,n),i=r.refinedOptions,o=r.pluginHooks,a=r.localeDefaults,u=r.availableLocaleData;go(r.extra);var s=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,u,i.defaultRangeSeparator),c=this.buildViewSpecs(o.views,t,n,a),l=this.buildTheme(i,o);return{calendarOptions:i,pluginHooks:o,dateEnv:s,viewSpecs:c,theme:l,toolbarConfig:this.parseToolbars(i,t,l,c,e),localeDefaults:a,availableRawLocales:u.map}},t.prototype.processRawCalendarOptions=function(t,n){var e=xe([be,t,n]),r=e.locale,i=this.organizeRawLocales(e.locales),o=this.buildLocale(r||i.defaultCode,i.map).options,a=this.buildPluginHooks(t.plugins||[],Ki),s=this.currentCalendarOptionsRefiners=u(u(u(u(u({},me),ye),Ae),a.listenerRefiners),a.optionRefiners),c={},l=xe([be,o,t,n]),f={},d=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,v=!1;for(var p in l)"plugins"!==p&&(l[p]===d[p]||we[p]&&p in d&&we[p](d[p],l[p])?f[p]=h[p]:s[p]?(f[p]=s[p](l[p]),v=!0):c[p]=d[p]);return v&&(this.currentCalendarOptionsInput=l,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:i,localeDefaults:o,extra:c}},t.prototype._computeCurrentViewData=function(t,n,e,r){var i=n.viewSpecs[t];if(!i)throw new Error('viewType "'+t+"\" is not available. Please make sure you've loaded all neccessary plugins");var o=this.processRawViewOptions(i,n.pluginHooks,n.localeDefaults,e,r),a=o.refinedOptions;return go(o.extra),{viewSpec:i,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,monthMode:a.monthMode,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(t,this.getCurrentData,n.dateEnv)}},t.prototype.processRawViewOptions=function(t,n,e,r,i){var o=xe([be,t.optionDefaults,e,r,t.optionOverrides,i]),a=u(u(u(u(u(u({},me),ye),Ae),_e),n.listenerRefiners),n.optionRefiners),s={},c=this.currentViewOptionsInput,l=this.currentViewOptionsRefined,f=!1,d={};for(var h in o)o[h]===c[h]?s[h]=l[h]:(o[h]===this.currentCalendarOptionsInput[h]?h in this.currentCalendarOptionsRefined&&(s[h]=this.currentCalendarOptionsRefined[h]):a[h]?s[h]=a[h](o[h]):d[h]=o[h],f=!0);return f&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}},t}();function ao(t,n,e,r,i,o,a,u){var s=Vr(n||a.defaultCode,a.map);return new Ir({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:s,weekNumberCalculation:e,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:u})}function uo(t,n){return new(n.themeClasses[t.themeSystem]||Ai)(t)}function so(t){return new(t.dateProfileGeneratorClass||Ii)(t)}function co(t,n,e){return new _r(t,n,e)}function lo(t){return zn(t,(function(t){return t.ui}))}function fo(t,n,e){var r={"":n};for(var i in t){var o=t[i];o.sourceId&&e[o.sourceId]&&(r[i]=e[o.sourceId])}return r}function ho(t){var n=t.options;return{eventUiSingleBase:Ie({display:n.eventDisplay,editable:n.editable,startEditable:n.eventStartEditable,durationEditable:n.eventDurationEditable,constraint:n.eventConstraint,overlap:"boolean"==typeof n.eventOverlap?n.eventOverlap:void 0,allow:n.eventAllow,backgroundColor:n.eventBackgroundColor,borderColor:n.eventBorderColor,textColor:n.eventTextColor,color:n.eventColor},t),selectionConfig:Ie({constraint:n.selectConstraint,overlap:"boolean"==typeof n.selectOverlap?n.selectOverlap:void 0,allow:n.selectAllow},t)}}function vo(t,n){for(var e=0,r=n.pluginHooks.isLoadingFuncs;e<r.length;e++)if((0,r[e])(t))return!0;return!1}function po(t){return n=t,Ne(function(t){return(!0===t?[{}]:Array.isArray(t)?t.filter((function(t){return t.daysOfWeek})):"object"==typeof t&&t?[t]:[]).map((function(t){return u(u({},Ur),t)}))}(t.options.businessHours),null,n);var n}function go(t,n){for(var e in t)console.warn("Unknown option '"+e+"'"+(n?" for view '"+n+"'":""))}!function(t){function n(n){var e=t.call(this,n)||this;return e.handleData=function(t){e.dataManager?e.setState(t):e.state=t},e.dataManager=new oo({optionOverrides:n.optionOverrides,calendarApi:n.calendarApi,onData:e.handleData}),e}a(n,t),n.prototype.render=function(){return this.props.children(this.state)},n.prototype.componentDidUpdate=function(t){var n=this.props.optionOverrides;n!==t.optionOverrides&&this.dataManager.resetOptions(n)}}(Qt);var mo=function(){function t(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return t.prototype.addSegs=function(t){for(var n=[],e=0,r=t;e<r.length;e++)this.insertEntry(r[e],n);return n},t.prototype.insertEntry=function(t,n){var e=this.findInsertion(t);return this.isInsertionValid(e,t)?(this.insertEntryAt(t,e),1):this.handleInvalidInsertion(e,t,n)},t.prototype.isInsertionValid=function(t,n){return(-1===this.maxCoord||t.levelCoord+n.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||t.stackCnt<this.maxStackCnt)},t.prototype.handleInvalidInsertion=function(t,n,e){return this.allowReslicing&&t.touchingEntry?this.splitEntry(n,t.touchingEntry,e):(e.push(n),0)},t.prototype.splitEntry=function(t,n,e){var r=0,i=[],o=t.span,a=n.span;return o.start<a.start&&(r+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:o.start,end:a.start}},i)),o.end>a.end&&(r+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:a.end,end:o.end}},i)),r?(e.push.apply(e,s([{index:t.index,thickness:t.thickness,span:Ao(a,o)}],i)),r):(e.push(t),0)},t.prototype.insertEntryAt=function(t,n){var e=this.entriesByLevel;-1===n.lateral?(wo(this.levelCoords,n.level,n.levelCoord),wo(e,n.level,[t])):wo(e[n.level],n.lateral,t),this.stackCnts[yo(t)]=n.stackCnt},t.prototype.findInsertion=function(t){for(var n=this,e=n.levelCoords,r=n.entriesByLevel,i=n.strictOrder,o=n.stackCnts,a=e.length,u=0,s=-1,c=-1,l=null,f=0,d=0;d<a;d+=1){var h=e[d];if(!i&&h>=u+t.thickness)break;for(var v=r[d],p=void 0,g=ko(v,t.span.start,bo),m=g[0]+g[1];(p=v[m])&&p.span.start<t.span.end;){var b=h+p.thickness;b>u&&(u=b,l=p,s=d,c=m),b===u&&(f=Math.max(f,o[yo(p)]+1)),m+=1}}var y=0;if(l)for(y=s+1;y<a&&e[y]<u;)y+=1;var A=-1;return y<a&&e[y]===u&&(A=ko(r[y],t.span.end,bo)[0]),{touchingLevel:s,touchingLateral:c,touchingEntry:l,stackCnt:f,levelCoord:u,level:y,lateral:A}},t.prototype.toRects=function(){for(var t=this.entriesByLevel,n=this.levelCoords,e=t.length,r=[],i=0;i<e;i+=1)for(var o=n[i],a=0,s=t[i];a<s.length;a++)r.push(u(u({},s[a]),{levelCoord:o}));return r},t}();function bo(t){return t.span.end}function yo(t){return t.index+":"+t.span.start}function Ao(t,n){var e=Math.max(t.start,n.start),r=Math.min(t.end,n.end);return e<r?{start:e,end:r}:null}function wo(t,n,e){t.splice(n,0,e)}function ko(t,n,e){var r=0,i=t.length;if(!i||n<e(t[r]))return[0,0];if(n>e(t[i-1]))return[i,0];for(;r<i;){var o=Math.floor(r+(i-r)/2),a=e(t[o]);if(n<a)i=o;else{if(!(n>a))return[o,1];r=o+1}}return[r,0]}var _o=function(){function t(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}return t.prototype.destroy=function(){},t}();function xo(t,n){return{component:t,el:n.el,useEventCenter:null==n.useEventCenter||n.useEventCenter,isHitComboAllowed:n.isHitComboAllowed||null}}function Eo(t){var n;return(n={})[t.component.uid]=t,n}var Do={},No=function(){function t(){this.emitter=new ii}return t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(){},t.prototype.setMirrorNeedsRevert=function(){},t.prototype.setAutoScrollEnabled=function(){},t}(),So={},Co=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this,n=this.props.widgetGroups.map((function(n){return t.renderWidgetGroup(n)}));return Ot.apply(void 0,s(["div",{className:"fc-toolbar-chunk"}],n))},n.prototype.renderWidgetGroup=function(t){for(var n=this.props,e=this.context.theme,r=[],i=!0,o=0,a=t;o<a.length;o++){var c=a[o],l=c.buttonName,f=c.buttonClick,d=c.buttonText,h=c.buttonIcon;if("title"===l)i=!1,r.push(Ot("h2",{className:"fc-toolbar-title"},n.title));else{var v=h?{"aria-label":l}:{},p=["fc-"+l+"-button",e.getClass("button")];l===n.activeButton&&p.push(e.getClass("buttonActive")),r.push(Ot("button",u({disabled:!n.isTodayEnabled&&"today"===l||!n.isPrevEnabled&&"prev"===l||!n.isNextEnabled&&"next"===l,className:p.join(" "),onClick:f,type:"button"},v),d||(h?Ot("span",{className:h}):"")))}}if(r.length>1){var g=i&&e.getClass("buttonGroup")||"";return Ot.apply(void 0,s(["div",{className:g}],r))}return r[0]},n}(vi),To=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t,n,e=this.props,r=e.model,i=!1,o=r.center;return r.left?(i=!0,t=r.left):t=r.start,r.right?(i=!0,n=r.right):n=r.end,Ot("div",{className:[e.extraClassName||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",t||[]),this.renderSection("center",o||[]),this.renderSection("end",n||[]))},n.prototype.renderSection=function(t,n){var e=this.props;return Ot(Co,{key:t,widgetGroups:n,title:e.title,activeButton:e.activeButton,isTodayEnabled:e.isTodayEnabled,isPrevEnabled:e.isPrevEnabled,isNextEnabled:e.isNextEnabled})},n}(vi),Mo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={availableWidth:null},n.handleEl=function(t){n.el=t,mi(n.props.elRef,t),n.updateAvailableWidth()},n.handleResize=function(){n.updateAvailableWidth()},n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.state,e=t.aspectRatio,r="",i="";return e?null!==n.availableWidth?r=n.availableWidth/e:i=1/e*100+"%":r=t.height||"",Ot("div",{ref:this.handleEl,onClick:t.onClick,className:["fc-view-harness",e||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"].join(" "),style:{height:r,paddingBottom:i}},t.children)},n.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},n.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},n.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},n}(vi),Ro=function(t){function n(n){var e=t.call(this,n)||this;return e.handleSegClick=function(t,n){var r=e.component,i=r.context,o=er(n);if(o&&r.isValidSegDownEl(t.target)){var a=Zt(t.target,".fc-event-forced-url"),u=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:n,event:new Cr(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:i.viewApi}),u&&!t.defaultPrevented&&(window.location.href=u)}},e.destroy=rn(n.el,"click",".fc-event",e.handleSegClick),e}return a(n,t),n}(_o),Bo=function(t){function n(n){var e,r,i,o=t.call(this,n)||this;return o.handleEventElRemove=function(t){t===o.currentSegEl&&o.handleSegLeave(null,o.currentSegEl)},o.handleSegEnter=function(t,n){er(n)&&(o.currentSegEl=n,o.triggerEvent("eventMouseEnter",t,n))},o.handleSegLeave=function(t,n){o.currentSegEl&&(o.currentSegEl=null,o.triggerEvent("eventMouseLeave",t,n))},o.removeHoverListeners=(e=o.handleSegEnter,r=o.handleSegLeave,rn(n.el,"mouseover",".fc-event",(function(t,n){if(n!==i){i=n,e(t,n);var o=function(t){i=null,r(t,n),n.removeEventListener("mouseleave",o)};n.addEventListener("mouseleave",o)}}))),o}return a(n,t),n.prototype.destroy=function(){this.removeHoverListeners()},n.prototype.triggerEvent=function(t,n,e){var r=this.component,i=r.context,o=er(e);n&&!r.isValidSegDownEl(n.target)||i.emitter.trigger(t,{el:e,event:new Cr(i,o.eventRange.def,o.eventRange.instance),jsEvent:n,view:i.viewApi})},n}(_o),zo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buildViewContext=ne(di),n.buildViewPropTransformers=ne(Po),n.buildToolbarProps=ne(Io),n.handleNavLinkClick=en("a[data-navlink]",n._handleNavLinkClick.bind(n)),n.headerRef=Ht(),n.footerRef=Ht(),n.interactionsStore={},n.registerInteractiveComponent=function(t,e){var r=xo(t,e),i=[Ro,Bo].concat(n.props.pluginHooks.componentInteractions).map((function(t){return new t(r)}));n.interactionsStore[t.uid]=i,Do[t.uid]=r},n.unregisterInteractiveComponent=function(t){for(var e=0,r=n.interactionsStore[t.uid];e<r.length;e++)r[e].destroy();delete n.interactionsStore[t.uid],delete Do[t.uid]},n.resizeRunner=new eo((function(){n.props.emitter.trigger("_resize",!0),n.props.emitter.trigger("windowResize",{view:n.props.viewApi})})),n.handleWindowResize=function(t){var e=n.props.options;e.handleWindowResize&&t.target===window&&n.resizeRunner.request(e.windowResizeDelay)},n}return a(n,t),n.prototype.render=function(){var t,n=this.props,e=n.toolbarConfig,r=n.options,i=this.buildToolbarProps(n.viewSpec,n.dateProfile,n.dateProfileGenerator,n.currentDate,Nr(n.options.now,n.dateEnv),n.viewTitle),o=!1,a="";n.isHeightAuto||n.forPrint?a="":null!=r.height?o=!0:null!=r.contentHeight?a=r.contentHeight:t=Math.max(r.aspectRatio,.5);var s=this.buildViewContext(n.viewSpec,n.viewApi,n.options,n.dateProfileGenerator,n.dateEnv,n.theme,n.pluginHooks,n.dispatch,n.getCurrentData,n.emitter,n.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent);return Ot(fi.Provider,{value:s},e.headerToolbar&&Ot(To,u({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:e.headerToolbar},i)),Ot(Mo,{liquid:o,height:a,aspectRatio:t,onClick:this.handleNavLinkClick},this.renderView(n),this.buildAppendContent()),e.footerToolbar&&Ot(To,u({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:e.footerToolbar},i)))},n.prototype.componentDidMount=function(){var t=this.props;this.calendarInteractions=t.pluginHooks.calendarInteractions.map((function(n){return new n(t)})),window.addEventListener("resize",this.handleWindowResize);var n=t.pluginHooks.propSetHandlers;for(var e in n)n[e](t[e],t)},n.prototype.componentDidUpdate=function(t){var n=this.props,e=n.pluginHooks.propSetHandlers;for(var r in e)n[r]!==t[r]&&e[r](n[r],n)},n.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var t=0,n=this.calendarInteractions;t<n.length;t++)n[t].destroy();this.props.emitter.trigger("_unmount")},n.prototype._handleNavLinkClick=function(t,n){var e=this.props,r=e.dateEnv,i=e.options,o=e.calendarApi,a=n.getAttribute("data-navlink");a=a?JSON.parse(a):{};var u=r.createMarker(a.date),s=a.type,c="day"===s?i.navLinkDayClick:"week"===s?i.navLinkWeekClick:null;"function"==typeof c?c.call(o,r.toDate(u),t):("string"==typeof c&&(s=c),o.zoomTo(u,s))},n.prototype.buildAppendContent=function(){var t=this.props,n=t.pluginHooks.viewContainerAppends.map((function(n){return n(t)}));return Ot.apply(void 0,s([jt,{}],n))},n.prototype.renderView=function(t){for(var n=t.viewSpec,e={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},r=0,i=this.buildViewPropTransformers(t.pluginHooks.viewPropsTransformers);r<i.length;r++)u(e,i[r].transform(e,t));return Ot(n.component,u({},e))},n}(hi);function Io(t,n,e,r,i,o){var a=e.build(i,void 0,!1),u=e.buildPrev(n,r,!1),s=e.buildNext(n,r,!1);return{title:o,activeButton:t.type,isTodayEnabled:a.isValid&&!Ke(n.currentRange,i),isPrevEnabled:u.isValid,isNextEnabled:s.isValid}}function Po(t){return t.map((function(t){return new t}))}var Qo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={forPrint:!1},n.handleBeforePrint=function(){n.setState({forPrint:!0})},n.handleAfterPrint=function(){n.setState({forPrint:!1})},n}return a(n,t),n.prototype.render=function(){var t=this.props,n=t.options,e=this.state.forPrint,r=e||"auto"===n.height||"auto"===n.contentHeight,i=r||null==n.height?"":n.height,o=["fc",e?"fc-media-print":"fc-media-screen","fc-direction-"+n.direction,t.theme.getClass("root")];return Lr()||o.push("fc-liquid-hack"),t.children(o,i,r,e)},n.prototype.componentDidMount=function(){var t=this.props.emitter;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)},n.prototype.componentWillUnmount=function(){var t=this.props.emitter;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)},n}(vi),Oo="fc-col-header-cell";function Vo(t){return t.text}var Ho=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.context,n=t.dateEnv,e=t.options,r=t.theme,i=t.viewApi,o=this.props,a=o.date,s=qr(a,o.todayRange,null,o.dateProfile),c=[Oo].concat(Jr(s,r)),l=n.format(a,o.dayHeaderFormat),f=e.navLinks&&!s.isDisabled&&o.colCnt>1?{"data-navlink":Xr(a),tabIndex:0}:{},d=u(u(u({date:n.toDate(a),view:i},o.extraHookProps),{text:l}),s);return Ot(ki,{hookProps:d,classNames:e.dayHeaderClassNames,content:e.dayHeaderContent,defaultContent:Vo,didMount:e.dayHeaderDidMount,willUnmount:e.dayHeaderWillUnmount},(function(t,n,e,r){return Ot("th",u({ref:t,className:c.concat(n).join(" "),"data-date":s.isDisabled?void 0:$n(a),colSpan:o.colSpan},o.extraDataAttrs),Ot("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&Ot("a",u({ref:e,className:["fc-col-header-cell-cushion",o.isSticky?"fc-sticky":""].join(" ")},f),r)))}))},n}(vi),jo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.dateEnv,r=n.theme,i=n.viewApi,o=n.options,a=mn(new Date(2592e5),t.dow),s={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[Oo].concat(Jr(s,r),t.extraClassNames||[]),l=e.format(a,t.dayHeaderFormat),f=u(u(u(u({date:a},s),{view:i}),t.extraHookProps),{text:l});return Ot(ki,{hookProps:f,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:Vo,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(function(n,e,r,i){return Ot("th",u({ref:n,className:c.concat(e).join(" "),colSpan:t.colSpan},t.extraDataAttrs),Ot("div",{className:"fc-scrollgrid-sync-inner"},Ot("a",{className:["fc-col-header-cell-cushion",t.isSticky?"fc-sticky":""].join(" "),ref:r},i)))}))},n}(vi),Uo=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.initialNowDate=Nr(e.options.now,e.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return a(n,t),n.prototype.render=function(){var t=this.state;return this.props.children(t.nowDate,t.todayRange)},n.prototype.componentDidMount=function(){this.setTimeout()},n.prototype.componentDidUpdate=function(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},n.prototype.componentWillUnmount=function(){this.clearTimeout()},n.prototype.computeTiming=function(){var t=this.props,n=this.context,e=bn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=n.dateEnv.startOf(e,t.unit),i=n.dateEnv.add(r,Gn(1,t.unit)),o=i.valueOf()-e.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:Fo(r)},nextState:{nowDate:i,todayRange:Fo(i)},waitMs:o}},n.prototype.setTimeout=function(){var t=this,n=this.computeTiming(),e=n.nextState;this.timeoutId=setTimeout((function(){t.setState(e,(function(){t.setTimeout()}))}),n.waitMs)},n.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},n.contextType=fi,n}(Qt);function Fo(t){var n=wn(t);return{start:n,end:mn(n,1)}}var Go=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.createDayHeaderFormatter=ne(Lo),n}return a(n,t),n.prototype.render=function(){var t=this.props,n=t.dates,e=t.dateProfile,r=t.datesRepDistinctDays,i=t.renderIntro,o=this.createDayHeaderFormatter(this.context.options.dayHeaderFormat,r,n.length);return Ot(Uo,{unit:"day"},(function(t,a){return Ot("tr",null,i&&i("day"),n.map((function(t){return r?Ot(Ho,{key:t.toISOString(),date:t,dateProfile:e,todayRange:a,colCnt:n.length,dayHeaderFormat:o}):Ot(jo,{key:t.getUTCDay(),dow:t.getUTCDay(),dayHeaderFormat:o})})))}))},n}(vi);function Lo(t,n,e){return t||function(t,n){return ge(!t||n>10?{weekday:"short"}:n>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(n,e)}var Wo=function(){function t(t,n){for(var e=t.start,r=t.end,i=[],o=[],a=-1;e<r;)n.isHiddenDay(e)?i.push(a+.5):(i.push(a+=1),o.push(e)),e=mn(e,1);this.dates=o,this.indices=i,this.cnt=o.length}return t.prototype.sliceRange=function(t){var n=this.getDateDayIndex(t.start),e=this.getDateDayIndex(mn(t.end,-1)),r=Math.max(0,n),i=Math.min(this.cnt-1,e);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:n===r,isEnd:e===i}:null},t.prototype.getDateDayIndex=function(t){var n=this.indices,e=Math.floor(yn(this.dates[0],t));return e<0?n[0]-1:e>=n.length?n[n.length-1]+1:n[e]},t}(),Yo=function(){function t(t,n){var e,r,i,o=t.dates;if(n){for(r=o[0].getUTCDay(),e=1;e<o.length&&o[e].getUTCDay()!==r;e+=1);i=Math.ceil(o.length/e)}else i=1,e=o.length;this.rowCnt=i,this.colCnt=e,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return t.prototype.buildCells=function(){for(var t=[],n=0;n<this.rowCnt;n+=1){for(var e=[],r=0;r<this.colCnt;r+=1)e.push(this.buildCell(n,r));t.push(e)}return t},t.prototype.buildCell=function(t,n){var e=this.daySeries.dates[t*this.colCnt+n];return{key:e.toISOString(),date:e}},t.prototype.buildHeaderDates=function(){for(var t=[],n=0;n<this.colCnt;n+=1)t.push(this.cells[0][n].date);return t},t.prototype.sliceRange=function(t){var n=this.colCnt,e=this.daySeries.sliceRange(t),r=[];if(e)for(var i=e.firstIndex,o=e.lastIndex,a=i;a<=o;){var u=Math.floor(a/n),s=Math.min((u+1)*n,o+1);r.push({row:u,firstCol:a%n,lastCol:(s-1)%n,isStart:e.isStart&&a===i,isEnd:e.isEnd&&s-1===o}),a=s}return r},t}(),Zo=function(){function t(){this.sliceBusinessHours=ne(this._sliceBusinessHours),this.sliceDateSelection=ne(this._sliceDateSpan),this.sliceEventStore=ne(this._sliceEventStore),this.sliceEventDrag=ne(this._sliceInteraction),this.sliceEventResize=ne(this._sliceInteraction),this.forceDayIfListItem=!1}return t.prototype.sliceProps=function(t,n,e,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=t.eventUiBases,u=this.sliceEventStore.apply(this,s([t.eventStore,a,n,e],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,s([t.dateSelection,a,r],i)),businessHourSegs:this.sliceBusinessHours.apply(this,s([t.businessHours,n,e,r],i)),fgEventSegs:u.fg,bgEventSegs:u.bg,eventDrag:this.sliceEventDrag.apply(this,s([t.eventDrag,a,n,e],i)),eventResize:this.sliceEventResize.apply(this,s([t.eventResize,a,n,e],i)),eventSelection:t.eventSelection}},t.prototype.sliceNowDate=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return this._sliceDateSpan.apply(this,s([{range:{start:t,end:bn(t,1)},allDay:!1},{},n],e))},t.prototype._sliceBusinessHours=function(t,n,e,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];return t?this._sliceEventStore.apply(this,s([Hn(t,qo(n,Boolean(e)),r),{},n,e],i)).bg:[]},t.prototype._sliceEventStore=function(t,n,e,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];if(t){var a=tr(t,n,qo(e,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}},t.prototype._sliceInteraction=function(t,n,e,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];if(!t)return null;var a=tr(t.mutatedEvents,n,qo(e,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}},t.prototype._sliceDateSpan=function(t,n,e){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!t)return[];for(var o=gr(t,n,e),a=this.sliceRange.apply(this,s([t.range],r)),u=0,c=a;u<c.length;u++){var l=c[u];l.eventRange=o}return a},t.prototype.sliceEventRanges=function(t,n){for(var e=[],r=0,i=t;r<i.length;r++)e.push.apply(e,this.sliceEventRange(i[r],n));return e},t.prototype.sliceEventRange=function(t,n){var e=t.range;this.forceDayIfListItem&&"list-item"===t.ui.display&&(e={start:e.start,end:mn(e.start,1)});for(var r=this.sliceRange.apply(this,s([e],n)),i=0,o=r;i<o.length;i++){var a=o[i];a.eventRange=t,a.isStart=t.isStart&&a.isStart,a.isEnd=t.isEnd&&a.isEnd}return r},t}();function qo(t,n){var e=t.activeRange;return n?e:{start:bn(e.start,t.slotMinTime.milliseconds),end:bn(e.end,t.slotMaxTime.milliseconds-864e5)}}function Jo(t,n,e){var r=t.mutatedEvents.instances;for(var i in r)if(!$e(n.validRange,r[i].range))return!1;return Xo({eventDrag:t},e)}function Xo(t,n){var e=n.getCurrentData(),r=u({businessHours:e.businessHours,dateSelection:"",eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(n.pluginHooks.isPropsValid||$o)(r,n)}function $o(t,n,e,r){return void 0===e&&(e={}),!(t.eventDrag&&!function(t,n,e,r){var i=n.getCurrentData(),o=t.eventDrag,a=o.mutatedEvents,s=a.defs,c=a.instances,l=rr(s,o.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(l=zn(l,r));var f,d,h=(d=o.affectedEvents.instances,{defs:(f=t.eventStore).defs,instances:Bn(f.instances,(function(t){return!d[t.instanceId]}))}),v=h.defs,p=h.instances,g=rr(v,t.eventUiBases);for(var m in c){var b=c[m],y=b.range,A=l[b.defId],w=s[b.defId];if(!Ko(A.constraints,y,h,t.businessHours,n))return!1;var k=n.options.eventOverlap,_="function"==typeof k?k:null;for(var x in p){var E=p[x];if(Xe(y,E.range)){if(!1===g[E.defId].overlap&&o.isEvent)return!1;if(!1===A.overlap)return!1;if(_&&!_(new Cr(n,v[E.defId],E),new Cr(n,w,b)))return!1}}for(var D=i.eventStore,N=0,S=A.allows;N<S.length;N++){var C,T=S[N],M=u(u({},e),{range:b.range,allDay:w.allDay}),R=D.defs[w.defId];if(C=R?new Cr(n,R,D.instances[m]):new Cr(n,w),!T(br(M,n),C))return!1}}return!0}(t,n,e,r)||t.dateSelection&&!function(t,n,e,r){var i=t.eventStore,o=i.defs,a=i.instances,s=t.dateSelection,c=s.range,l=n.getCurrentData().selectionConfig;if(r&&(l=r(l)),!Ko(l.constraints,c,i,t.businessHours,n))return!1;var f=n.options.selectOverlap,d="function"==typeof f?f:null;for(var h in a){var v=a[h];if(Xe(c,v.range)){if(!1===l.overlap)return!1;if(d&&!d(new Cr(n,o[v.defId],v),null))return!1}}for(var p=0,g=l.allows;p<g.length;p++)if(!(0,g[p])(br(u(u({},e),s),n),null))return!1;return!0}(t,n,e,r))}function Ko(t,n,e,r,i){for(var o=0,a=t;o<a.length;o++)if(!ea(ta(a[o],n,e,r,i),n))return!1;return!0}function ta(t,n,e,r,i){return"businessHours"===t?na(Hn(r,n,i)):"string"==typeof t?na(Me(e,(function(n){return n.groupId===t}))):"object"==typeof t&&t?na(Hn(t,n,i)):[]}function na(t){var n=t.instances,e=[];for(var r in n)e.push(n[r].range);return e}function ea(t,n){for(var e=0,r=t;e<r.length;e++)if($e(r[e],n))return!0;return!1}var ra=/^(visible|hidden)$/,ia=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleEl=function(t){n.el=t,mi(n.props.elRef,t)},n}return a(n,t),n.prototype.render=function(){var t=this.props,n=t.liquid,e=t.liquidIsAbsolute,r=n&&e,i=["fc-scroller"];return n&&i.push(e?"fc-scroller-liquid-absolute":"fc-scroller-liquid"),Ot("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:r&&-(t.overcomeLeft||0)||"",right:r&&-(t.overcomeRight||0)||"",bottom:r&&-(t.overcomeBottom||0)||"",marginLeft:!r&&-(t.overcomeLeft||0)||"",marginRight:!r&&-(t.overcomeRight||0)||"",marginBottom:!r&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)},n.prototype.needsXScrolling=function(){if(ra.test(this.props.overflowX))return!1;for(var t=this.el,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),e=t.children,r=0;r<e.length;r+=1)if(e[r].getBoundingClientRect().width>n)return!0;return!1},n.prototype.needsYScrolling=function(){if(ra.test(this.props.overflowY))return!1;for(var t=this.el,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),e=t.children,r=0;r<e.length;r+=1)if(e[r].getBoundingClientRect().height>n)return!0;return!1},n.prototype.getXScrollbarWidth=function(){return ra.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},n.prototype.getYScrollbarWidth=function(){return ra.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},n}(vi),oa=function(){function t(t){var n=this;this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(t,e){var r=n.depths,i=n.currentMap,o=!1,a=!1;null!==t?(o=e in i,i[e]=t,r[e]=(r[e]||0)+1,a=!0):(r[e]-=1,r[e]||(delete i[e],delete n.callbackMap[e],o=!0)),n.masterCallback&&(o&&n.masterCallback(null,String(e)),a&&n.masterCallback(t,String(e)))}}return t.prototype.createRef=function(t){var n=this,e=this.callbackMap[t];return e||(e=this.callbackMap[t]=function(e){n.handleValue(e,String(t))}),e},t.prototype.collect=function(t,n,e){return function(t,n,e,r){void 0===n&&(n=0),void 0===r&&(r=1);var i=[];null==e&&(e=Object.keys(t).length);for(var o=n;o<e;o+=r){var a=t[o];void 0!==a&&i.push(a)}return i}(this.currentMap,t,n,e)},t.prototype.getAll=function(){return Pn(this.currentMap)},t}();function aa(t,n){return t.liquid&&n.liquid}function ua(t,n){return te(t,n,Qn)}function sa(t,n){for(var e=[],r=0,i=t;r<i.length;r++)for(var o=i[r],a=o.span||1,u=0;u<a;u+=1)e.push(Ot("col",{style:{width:"shrink"===o.width?ca(n):o.width||"",minWidth:o.minWidth||""}}));return Ot.apply(void 0,s(["colgroup",{}],e))}function ca(t){return null==t?4:t}function la(t,n){var e=["fc-scrollgrid-section","fc-scrollgrid-section-"+t.type,t.className];return n&&t.liquid&&null==t.maxHeight&&e.push("fc-scrollgrid-section-liquid"),t.isSticky&&e.push("fc-scrollgrid-section-sticky"),e}function fa(t){return Ot("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function da(t){var n=t.stickyHeaderDates;return null!=n&&"auto"!==n||(n="auto"===t.height||"auto"===t.viewHeight),n}function ha(t){var n=t.stickyFooterScrollbar;return null!=n&&"auto"!==n||(n="auto"===t.height||"auto"===t.viewHeight),n}var va=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.processCols=ne((function(t){return t}),ua),n.renderMicroColGroup=ne(sa),n.scrollerRefs=new oa,n.scrollerElRefs=new oa(n._handleScrollerEl.bind(n)),n.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},n.handleSizing=function(){n.setState(u({shrinkWidth:n.computeShrinkWidth()},n.computeScrollerDims()))},n}return a(n,t),n.prototype.render=function(){var t=this,n=t.props,e=t.state,r=t.context,i=n.sections||[],o=this.processCols(n.cols),a=this.renderMicroColGroup(o,e.shrinkWidth),u=function(t,n){var e=["fc-scrollgrid",n.theme.getClass("table")];return t&&e.push("fc-scrollgrid-liquid"),e}(n.liquid,r);n.collapsibleWidth&&u.push("fc-scrollgrid-collapsible");for(var c,l=i.length,f=0,d=[],h=[],v=[];f<l&&"header"===(c=i[f]).type;)d.push(this.renderSection(c,a)),f+=1;for(;f<l&&"body"===(c=i[f]).type;)h.push(this.renderSection(c,a)),f+=1;for(;f<l&&"footer"===(c=i[f]).type;)v.push(this.renderSection(c,a)),f+=1;var p=!Lr();return Ot("table",{className:u.join(" "),style:{height:n.height}},Boolean(!p&&d.length)&&Ot.apply(void 0,s(["thead",{}],d)),Boolean(!p&&h.length)&&Ot.apply(void 0,s(["tbody",{}],h)),Boolean(!p&&v.length)&&Ot.apply(void 0,s(["tfoot",{}],v)),p&&Ot.apply(void 0,s(s(s(["tbody",{}],d),h),v)))},n.prototype.renderSection=function(t,n){return"outerContent"in t?Ot(jt,{key:t.key},t.outerContent):Ot("tr",{key:t.key,className:la(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk))},n.prototype.renderChunkTd=function(t,n,e){if("outerContent"in e)return e.outerContent;var r=this.props,i=this.state,o=i.forceYScrollbars,a=i.scrollerClientWidths,u=i.scrollerClientHeights,s=function(t,n){return null!=n.maxHeight||aa(t,n)}(r,t),c=aa(r,t),l=r.liquid?o?"scroll":s?"auto":"hidden":"visible",f=t.key,d=function(t,n,e){var r=e.expandRows;return"function"==typeof n.content?n.content(e):Ot("table",{className:[n.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:r?e.clientHeight:""}},e.tableColGroupNode,Ot("tbody",{},"function"==typeof n.rowContent?n.rowContent(e):n.rowContent))}(t,e,{tableColGroupNode:n,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===a[f]?null:a[f],clientHeight:void 0!==u[f]?u[f]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}});return Ot("td",{ref:e.elRef},Ot("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},Ot(ia,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:l,overflowX:r.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:c,liquidIsAbsolute:!0},d)))},n.prototype._handleScrollerEl=function(t,n){var e=function(t,n){for(var e=0,r=t;e<r.length;e++){var i=r[e];if(i.key===n)return i}return null}(this.props.sections,n);e&&mi(e.chunk.scrollerElRef,t)},n.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},n.prototype.componentDidUpdate=function(){this.handleSizing()},n.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},n.prototype.computeShrinkWidth=function(){return function(t){for(var n=0,e=t;n<e.length;n++)if("shrink"===e[n].width)return!0;return!1}(this.props.cols)?function(t){for(var n=0,e=0,r=function(t){for(var n=t instanceof HTMLElement?[t]:t,e=[],r=0;r<n.length;r+=1)for(var i=n[r].querySelectorAll(".fc-scrollgrid-shrink"),o=0;o<i.length;o+=1)e.push(i[o]);return e}(t);e<r.length;e++)n=Math.max(n,vn(r[e]));return Math.ceil(n)}(this.scrollerElRefs.getAll()):0},n.prototype.computeScrollerDims=function(){var t=($r||($r=function(){var t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);var n=ti(t);return document.body.removeChild(t),n}()),$r),n=this.scrollerRefs,e=this.scrollerElRefs,r=!1,i={},o={};for(var a in n.currentMap){var u=n.currentMap[a];if(u&&u.needsYScrolling()){r=!0;break}}for(var s=0,c=this.props.sections;s<c.length;s++){var l=e.currentMap[a=c[s].key];if(l){var f=l.parentNode;i[a]=Math.floor(f.getBoundingClientRect().width-(r?t.y:0)),o[a]=Math.floor(f.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:o}},n}(vi);va.addStateEquality({scrollerClientWidths:Qn,scrollerClientHeights:Qn});var pa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.elRef=Ht(),n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=t.seg,i=r.eventRange,o=i.ui,a={event:new Cr(n,i.def,i.instance),view:n.viewApi,timeText:t.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!t.disableDragging&&ur(r,n),isStartResizable:!t.disableResizing&&sr(r,n),isEndResizable:!t.disableResizing&&cr(r),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)},u=function(t){var n=["fc-event"];return t.isMirror&&n.push("fc-event-mirror"),t.isDraggable&&n.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&n.push("fc-event-resizable"),t.isDragging&&n.push("fc-event-dragging"),t.isResizing&&n.push("fc-event-resizing"),t.isSelected&&n.push("fc-event-selected"),t.isStart&&n.push("fc-event-start"),t.isEnd&&n.push("fc-event-end"),t.isPast&&n.push("fc-event-past"),t.isToday&&n.push("fc-event-today"),t.isFuture&&n.push("fc-event-future"),n}(a).concat(o.classNames);return Ot(ki,{hookProps:a,classNames:e.eventClassNames,content:e.eventContent,defaultContent:t.defaultContent,didMount:e.eventDidMount,willUnmount:e.eventWillUnmount,elRef:this.elRef},(function(n,e,r,i){return t.children(n,u.concat(e),r,i,a)}))},n.prototype.componentDidMount=function(){nr(this.elRef.current,this.props.seg)},n.prototype.componentDidUpdate=function(t){var n=this.props.seg;n!==t.seg&&nr(this.elRef.current,n)},n}(vi),ga=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=t.seg,r=lr(e,n.options.eventTimeFormat||t.defaultTimeFormat,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return Ot(pa,{seg:e,timeText:r,disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||ma,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(n,r,i,o,a){return Ot("a",u({className:t.extraClassNames.concat(r).join(" "),style:{borderColor:a.borderColor,backgroundColor:a.backgroundColor},ref:n},function(t){var n=t.eventRange.def.url;return n?{href:n}:{}}(e)),Ot("div",{className:"fc-event-main",ref:i,style:{color:a.textColor}},o),a.isStartResizable&&Ot("div",{className:"fc-event-resizer fc-event-resizer-start"}),a.isEndResizable&&Ot("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},n}(vi);function ma(t){return Ot("div",{className:"fc-event-main-frame"},t.timeText&&Ot("div",{className:"fc-event-time"},t.timeText),Ot("div",{className:"fc-event-title-container"},Ot("div",{className:"fc-event-title fc-sticky"},t.event.title||Ot(jt,null," "))))}var ba=function(t){return Ot(fi.Consumer,null,(function(n){var e=n.options,r={isAxis:t.isAxis,date:n.dateEnv.toDate(t.date),view:n.viewApi};return Ot(ki,{hookProps:r,classNames:e.nowIndicatorClassNames,content:e.nowIndicatorContent,didMount:e.nowIndicatorDidMount,willUnmount:e.nowIndicatorWillUnmount},t.children)}))},ya=ge({day:"numeric"}),Aa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=wa({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv});return Ot(xi,{hookProps:r,content:e.dayCellContent,defaultContent:t.defaultContent},t.children)},n}(vi);function wa(t){var n=t.date,e=t.dateEnv,r=qr(n,t.todayRange,null,t.dateProfile);return u(u(u({date:e.toDate(n),view:t.viewApi},r),{dayNumberText:t.showDayNumber?e.format(n,ya):""}),t.extraProps)}var ka=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.refineHookProps=ee(wa),n.normalizeClassNames=Ni(),n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=this.refineHookProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv}),i=Jr(r,n.theme).concat(r.isDisabled?[]:this.normalizeClassNames(e.dayCellClassNames,r)),o=r.isDisabled?{}:{"data-date":$n(t.date)};return Ot(Di,{hookProps:r,didMount:e.dayCellDidMount,willUnmount:e.dayCellWillUnmount,elRef:t.elRef},(function(n){return t.children(n,i,o,r.isDisabled)}))},n}(vi);function _a(t){return Ot("div",{className:"fc-"+t})}var xa=function(t){return Ot(pa,{defaultContent:Ea,seg:t.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(t,n,e,r,i){return Ot("div",{ref:t,className:["fc-bg-event"].concat(n).join(" "),style:{backgroundColor:i.backgroundColor}},r)}))};function Ea(t){return t.event.title&&Ot("div",{className:"fc-event-title"},t.event.title)}var Da=function(t){return Ot(fi.Consumer,null,(function(n){var e=n.dateEnv,r=n.options,i=t.date,o=r.weekNumberFormat||t.defaultFormat,a=e.computeWeekNumber(i),u=e.format(i,o);return Ot(ki,{hookProps:{num:a,text:u,date:i},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:Na,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)}))};function Na(t){return t.text}var Sa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleRootEl=function(t){n.rootEl=t,n.props.elRef&&mi(n.props.elRef,t)},n.handleDocumentMousedown=function(t){var e=Kt(t);n.rootEl.contains(e)||n.handleCloseClick()},n.handleCloseClick=function(){var t=n.props.onClose;t&&t()},n}return a(n,t),n.prototype.render=function(){var t=this.context.theme,n=this.props,e=["fc-popover",t.getClass("popover")].concat(n.extraClassNames||[]);return Ft(Ot("div",u({className:e.join(" ")},n.extraAttrs,{ref:this.handleRootEl}),Ot("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},Ot("span",{className:"fc-popover-title"},n.title),Ot("span",{className:"fc-popover-close "+t.getIconClass("close"),onClick:this.handleCloseClick})),Ot("div",{className:"fc-popover-body "+t.getClass("popoverContent")},n.children)),n.parentEl)},n.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMousedown),this.updateSize()},n.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMousedown)},n.prototype.updateSize=function(){var t=this.context.isRtl,n=this.props,e=n.alignmentEl,r=n.alignGridTop,i=this.rootEl,o=function(t){for(var n=ri(t),e=t.getBoundingClientRect(),r=0,i=n;r<i.length;r++){var o=Gr(e,i[r].getBoundingClientRect());if(!o)return null;e=o}return e}(e);if(o){var a=i.getBoundingClientRect(),u=r?Zt(e,".fc-scrollgrid").getBoundingClientRect().top:o.top,s=t?o.right-a.width:o.left;u=Math.max(u,10),s=Math.min(s,document.documentElement.clientWidth-10-a.width),s=Math.max(s,10);var c=i.offsetParent.getBoundingClientRect();Xt(i,{top:u-c.top,left:s-c.left})}},n}(vi),Ca=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleRootEl=function(t){n.rootEl=t,t?n.context.registerInteractiveComponent(n,{el:t,useEventCenter:!1}):n.context.unregisterInteractiveComponent(n)},n}return a(n,t),n.prototype.render=function(){var t=this.context,n=this.props,e=n.startDate,r=n.todayRange,i=n.dateProfile,o=t.dateEnv.format(e,t.options.dayPopoverFormat);return Ot(ka,{date:e,dateProfile:i,todayRange:r,elRef:this.handleRootEl},(function(t,a,u){return Ot(Sa,{elRef:t,title:o,extraClassNames:["fc-more-popover"].concat(a),extraAttrs:u,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Ot(Aa,{date:e,dateProfile:i,todayRange:r},(function(t,n){return n&&Ot("div",{className:"fc-more-popover-misc",ref:t},n)})),n.children)}))},n.prototype.queryHit=function(t,n,e,r){var i=this.rootEl,o=this.props;return t>=0&&t<e&&n>=0&&n<r?{dateProfile:o.dateProfile,dateSpan:u({allDay:!0,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:e,bottom:r},layer:1}:null},n}(bi),Ta=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.linkElRef=Ht(),n.state={isPopoverOpen:!1},n.handleClick=function(t){var e=n.props,r=n.context,i=r.options.moreLinkClick,o=Ra(e).start;function a(t){var n=t.eventRange,e=n.range;return{event:new Cr(r,n.def,n.instance),start:r.dateEnv.toDate(e.start),end:r.dateEnv.toDate(e.end),isStart:t.isStart,isEnd:t.isEnd}}"function"==typeof i&&(i=i({date:o,allDay:Boolean(e.allDayDate),allSegs:e.allSegs.map(a),hiddenSegs:e.hiddenSegs.map(a),jsEvent:t,view:r.viewApi})),i&&"popover"!==i?"string"==typeof i&&r.calendarApi.zoomTo(o,i):n.setState({isPopoverOpen:!0})},n.handlePopoverClose=function(){n.setState({isPopoverOpen:!1})},n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props;return Ot(fi.Consumer,null,(function(e){var r=e.viewApi,i=e.options,o=e.calendarApi,a=i.moreLinkText,u=n.moreCnt,s=Ra(n),c={num:u,shortText:"+"+u,text:"function"==typeof a?a.call(o,u):"+"+u+" "+a,view:r};return Ot(jt,null,Boolean(n.moreCnt)&&Ot(ki,{elRef:t.linkElRef,hookProps:c,classNames:i.moreLinkClassNames,content:i.moreLinkContent,defaultContent:n.defaultContent||Ma,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},(function(e,r,i,o){return n.children(e,["fc-more-link"].concat(r),i,o,t.handleClick)})),t.state.isPopoverOpen&&Ot(Ca,{startDate:s.start,endDate:s.end,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:n.extraDateSpan,parentEl:t.parentEl,alignmentEl:n.alignmentElRef.current,alignGridTop:n.alignGridTop,onClose:t.handlePopoverClose},n.popoverContent()))}))},n.prototype.componentDidMount=function(){this.updateParentEl()},n.prototype.componentDidUpdate=function(){this.updateParentEl()},n.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=Zt(this.linkElRef.current,".fc-view-harness"))},n}(vi);function Ma(t){return t.text}function Ra(t){if(t.allDayDate)return{start:t.allDayDate,end:mn(t.allDayDate,1)};var n,e=t.hiddenSegs;return{start:Ba(e),end:(n=e,n.reduce(Ia).eventRange.range.end)}}function Ba(t){return t.reduce(za).eventRange.range.start}function za(t,n){return t.eventRange.range.start<n.eventRange.range.start?t:n}function Ia(t,n){return t.eventRange.range.end>n.eventRange.range.end?t:n}
|
|
1
|
+
import{r as t,c as n,f as e,g as r,h as i,a as o}from"./p-b30f34d8.js";import{_ as a,a as u,b as s}from"./p-5a4a5fdc.js";import{d as c,g as l,e as f}from"./p-361d9431.js";import{k as d,c as h}from"./p-d5a3a4ed.js";import{c as v}from"./p-6f5d8830.js";import{c as p}from"./p-ad2e21d2.js";import{F as g,a as m,b}from"./p-bfaf8a82.js";import{g as y,s as A}from"./p-ee7b190c.js";import"./p-0fd98ab4.js";import"./p-565785ce.js";var w,k,_,x,E,D,N,S={},C=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function M(t,n){for(var e in n)t[e]=n[e];return t}function R(t){var n=t.parentNode;n&&n.removeChild(t)}function B(t,n,e){var r,i,o,a={};for(o in n)"key"==o?r=n[o]:"ref"==o?i=n[o]:a[o]=n[o];if(arguments.length>2&&(a.children=arguments.length>3?w.call(arguments,2):e),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===a[o]&&(a[o]=t.defaultProps[o]);return z(t,a,r,i,null)}function z(t,n,e,r,i){var o={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++_:i};return null!=k.vnode&&k.vnode(o),o}function I(t){return t.children}function P(t,n){this.props=t,this.context=n}function Q(t,n){if(null==n)return t.__?Q(t.__,t.__.__k.indexOf(t)+1):null;for(var e;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof t.type?Q(t):null}function O(t){var n,e;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e){t.__e=t.__c.base=e.__e;break}return O(t)}}function V(t){(!t.__d&&(t.__d=!0)&&x.push(t)&&!H.__r++||D!==k.debounceRendering)&&((D=k.debounceRendering)||E)(H)}function H(){for(var t;H.__r=x.length;)t=x.sort((function(t,n){return t.__v.__b-n.__v.__b})),x=[],t.some((function(t){var n,e,r,i,o,a;t.__d&&(o=(i=(n=t).__v).__e,(a=n.__P)&&(e=[],(r=M({},i)).__v=i.__v+1,q(a,i,r,n.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,e,null==o?Q(i):o,i.__h),J(e,i),i.__e!=o&&O(i)))}))}function j(t,n,e,r,i,o,a,u,s,c){var l,f,d,h,v,p,g,m=r&&r.__k||C,b=m.length;for(e.__k=[],l=0;l<n.length;l++)if(null!=(h=e.__k[l]=null==(h=n[l])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?z(null,h,null,null,h):Array.isArray(h)?z(I,{children:h},null,null,null):h.__b>0?z(h.type,h.props,h.key,null,h.__v):h)){if(h.__=e,h.__b=e.__b+1,null===(d=m[l])||d&&h.key==d.key&&h.type===d.type)m[l]=void 0;else for(f=0;f<b;f++){if((d=m[f])&&h.key==d.key&&h.type===d.type){m[f]=void 0;break}d=null}q(t,h,d=d||S,i,o,a,u,s,c),v=h.__e,(f=h.ref)&&d.ref!=f&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(f,h.__c||v,h)),null!=v?(null==p&&(p=v),"function"==typeof h.type&&null!=h.__k&&h.__k===d.__k?h.__d=s=U(h,s,t):s=G(t,h,d,m,v,s),c||"option"!==e.type?"function"==typeof e.type&&(e.__d=s):t.value=""):s&&d.__e==s&&s.parentNode!=t&&(s=Q(d))}for(e.__e=p,l=b;l--;)null!=m[l]&&("function"==typeof e.type&&null!=m[l].__e&&m[l].__e==e.__d&&(e.__d=Q(r,l+1)),K(m[l],m[l]));if(g)for(l=0;l<g.length;l++)$(g[l],g[++l],g[++l])}function U(t,n,e){var r,i;for(r=0;r<t.__k.length;r++)(i=t.__k[r])&&(i.__=t,n="function"==typeof i.type?U(i,n,e):G(e,i,i,t.__k,i.__e,n));return n}function F(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){F(t,n)})):n.push(t)),n}function G(t,n,e,r,i,o){var a,u,s;if(void 0!==n.__d)a=n.__d,n.__d=void 0;else if(null==e||i!=o||null==i.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(i),a=null;else{for(u=o,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==i)break t;t.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function L(t,n,e){"-"===n[0]?t.setProperty(n,e):t[n]=null==e?"":"number"!=typeof e||T.test(n)?e:e+"px"}function W(t,n,e,r,i){var o;t:if("style"===n)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(n in r)e&&n in e||L(t.style,n,"");if(e)for(n in e)r&&e[n]===r[n]||L(t.style,n,e[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+o]=e,e?r||t.addEventListener(n,o?Z:Y,o):t.removeEventListener(n,o?Z:Y,o);else if("dangerouslySetInnerHTML"!==n){if(i)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==e?"":e;break t}catch(t){}"function"==typeof e||(null!=e&&(!1!==e||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,e):t.removeAttribute(n))}}function Y(t){this.l[t.type+!1](k.event?k.event(t):t)}function Z(t){this.l[t.type+!0](k.event?k.event(t):t)}function q(t,n,e,r,i,o,a,u,s){var c,l,f,d,h,v,p,g,m,b,y,A=n.type;if(void 0!==n.constructor)return null;null!=e.__h&&(s=e.__h,u=n.__e=e.__e,n.__h=null,o=[u]),(c=k.__b)&&c(n);try{t:if("function"==typeof A){if(g=n.props,m=(c=A.contextType)&&r[c.__c],b=c?m?m.props.value:c.__:r,e.__c?p=(l=n.__c=e.__c).__=l.__E:("prototype"in A&&A.prototype.render?n.__c=l=new A(g,b):(n.__c=l=new P(g,b),l.constructor=A,l.render=tt),m&&m.sub(l),l.props=g,l.state||(l.state={}),l.context=b,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=A.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=M({},l.__s)),M(l.__s,A.getDerivedStateFromProps(g,l.__s))),d=l.props,h=l.state,f)null==A.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==A.getDerivedStateFromProps&&g!==d&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,b),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,b)||n.__v===e.__v){l.props=g,l.state=l.__s,n.__v!==e.__v&&(l.__d=!1),l.__v=n,n.__e=e.__e,n.__k=e.__k,n.__k.forEach((function(t){t&&(t.__=n)})),l.__h.length&&a.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,b),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(d,h,v)}))}l.context=b,l.props=g,l.state=l.__s,(c=k.__r)&&c(n),l.__d=!1,l.__v=n,l.__P=t,c=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=M(M({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(v=l.getSnapshotBeforeUpdate(d,h)),y=null!=c&&c.type===I&&null==c.key?c.props.children:c,j(t,Array.isArray(y)?y:[y],n,e,r,i,o,a,u,s),l.base=n.__e,n.__h=null,l.__h.length&&a.push(l),p&&(l.__E=l.__=null),l.__e=!1}else null==o&&n.__v===e.__v?(n.__k=e.__k,n.__e=e.__e):n.__e=X(e.__e,n,e,r,i,o,a,s);(c=k.diffed)&&c(n)}catch(t){n.__v=null,(s||null!=o)&&(n.__e=u,n.__h=!!s,o[o.indexOf(u)]=null),k.__e(t,n,e)}}function J(t,n){k.__c&&k.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){k.__e(t,n.__v)}}))}function X(t,n,e,r,i,o,a,u){var s,c,l,f=e.props,d=n.props,h=n.type,v=0;if("svg"===h&&(i=!0),null!=o)for(;v<o.length;v++)if((s=o[v])&&(s===t||(h?s.localName==h:3==s.nodeType))){t=s,o[v]=null;break}if(null==t){if(null===h)return document.createTextNode(d);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,u=!1}if(null===h)f===d||u&&t.data===d||(t.data=d);else{if(o=o&&w.call(t.childNodes),c=(f=e.props||S).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!u){if(null!=o)for(f={},v=0;v<t.attributes.length;v++)f[t.attributes[v].name]=t.attributes[v].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===t.innerHTML)||(t.innerHTML=l&&l.__html||""))}if(function(t,n,e,r,i){var o;for(o in e)"children"===o||"key"===o||o in n||W(t,o,null,e[o],r);for(o in n)i&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||e[o]===n[o]||W(t,o,n[o],e[o],r)}(t,d,f,i,u),l)n.__k=[];else if(v=n.props.children,j(t,Array.isArray(v)?v:[v],n,e,r,i&&"foreignObject"!==h,o,a,o?o[0]:e.__k&&Q(e,0),u),null!=o)for(v=o.length;v--;)null!=o[v]&&R(o[v]);u||("value"in d&&void 0!==(v=d.value)&&(v!==t.value||"progress"===h&&!v)&&W(t,"value",v,f.value,!1),"checked"in d&&void 0!==(v=d.checked)&&v!==t.checked&&W(t,"checked",v,f.checked,!1))}return t}function $(t,n,e){try{"function"==typeof t?t(n):t.current=n}catch(t){k.__e(t,e)}}function K(t,n,e){var r,i;if(k.unmount&&k.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||$(r,null,n)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){k.__e(t,n)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&K(r[i],n,"function"!=typeof t.type);e||null==t.__e||R(t.__e),t.__e=t.__d=void 0}function tt(t,n,e){return this.constructor(t,e)}function nt(t,n,e){var r,i,o;k.__&&k.__(t,n),i=(r="function"==typeof e)?null:e&&e.__k||n.__k,o=[],q(n,t=(!r&&e||n).__k=B(I,null,[t]),i||S,S,void 0!==n.ownerSVGElement,!r&&e?[e]:i?null:n.firstChild?w.call(n.childNodes):null,o,!r&&e?e:i?i.__e:n.firstChild,r),J(o,t)}w=C.slice,k={__e:function(t,n){for(var e,r,i;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),i=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),i=e.__d),i)return e.__E=e}catch(n){t=n}throw t}},_=0,P.prototype.setState=function(t,n){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=M({},this.state),"function"==typeof t&&(t=t(M({},e),this.props)),t&&M(e,t),null!=t&&this.__v&&(n&&this.__h.push(n),V(this))},P.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),V(this))},P.prototype.render=I,x=[],E="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,H.__r=0,N=0;var et,rt,it=[],ot=k.__b,at=k.__r,ut=k.diffed,st=k.__c,ct=k.unmount;function lt(){it.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(dt),t.__H.__h.forEach(ht),t.__H.__h=[]}catch(n){t.__H.__h=[],k.__e(n,t.__v)}})),it=[]}k.__b=function(t){et=null,ot&&ot(t)},k.__r=function(t){at&&at(t);var n=(et=t.__c).__H;n&&(n.__h.forEach(dt),n.__h.forEach(ht),n.__h=[])},k.diffed=function(t){ut&&ut(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==it.push(n)&&rt===k.requestAnimationFrame||((rt=k.requestAnimationFrame)||function(t){var n,e=function(){clearTimeout(r),ft&&cancelAnimationFrame(n),setTimeout(t)},r=setTimeout(e,100);ft&&(n=requestAnimationFrame(e))})(lt)),et=void 0},k.__c=function(t,n){n.some((function(t){try{t.__h.forEach(dt),t.__h=t.__h.filter((function(t){return!t.__||ht(t)}))}catch(e){n.some((function(t){t.__h&&(t.__h=[])})),n=[],k.__e(e,t.__v)}})),st&&st(t,n)},k.unmount=function(t){ct&&ct(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(dt)}catch(t){k.__e(t,n.__v)}};var ft="function"==typeof requestAnimationFrame;function dt(t){var n=et;"function"==typeof t.__c&&t.__c(),et=n}function ht(t){var n=et;t.__c=t.__(),et=n}function vt(t,n){for(var e in t)if("__source"!==e&&!(e in n))return!0;for(var r in n)if("__source"!==r&&t[r]!==n[r])return!0;return!1}function pt(t){this.props=t}(pt.prototype=new P).isPureReactComponent=!0,pt.prototype.shouldComponentUpdate=function(t,n){return vt(this.props,t)||vt(this.state,n)};var gt=k.__b;k.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),gt&>(t)};var mt=k.__e;k.__e=function(t,n,e){if(t.then)for(var r,i=n;i=i.__;)if((r=i.__c)&&r.__c)return null==n.__e&&(n.__e=e.__e,n.__k=e.__k),r.__c(t,n);mt(t,n,e)};var bt=k.unmount;function yt(){this.__u=0,this.t=null,this.__b=null}function At(t){var n=t.__.__c;return n&&n.__e&&n.__e(t)}function wt(){this.u=null,this.o=null}k.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&!0===t.__h&&(t.type=null),bt&&bt(t)},(yt.prototype=new P).__c=function(t,n){var e=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var i=At(r.__v),o=!1,a=function(){o||(o=!0,e.__R=null,i?i(u):u())};e.__R=a;var u=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(n,e,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return t(n,e,r)})),n.__c&&n.__c.__P===e&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(t,t.__c.__P,t.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},s=!0===n.__h;r.__u++||s||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},yt.prototype.componentWillUnmount=function(){this.t=[]},yt.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(n,e,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),n.__c.__H=null),null!=(n=function(t,n){for(var e in n)t[e]=n[e];return t}({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=e),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return t(n,e,r)}))),n}(this.__b,e,r.__O=r.__P)}this.__b=null}var i=n.__e&&B(I,null,t.fallback);return i&&(i.__h=null),[B(I,null,n.__e?null:t.children),i]};var kt=function(t,n,e){if(++e[1]===e[0]&&t.o.delete(n),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(e=t.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;t.u=e=e[2]}};function _t(t){return this.getChildContext=function(){return t.context},t.children}function xt(t){var n=this,e=t.i;n.componentWillUnmount=function(){nt(null,n.l),n.l=null,n.i=null},n.i&&n.i!==e&&n.componentWillUnmount(),t.__v?(n.l||(n.i=e,n.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(t){this.childNodes.push(t),n.i.appendChild(t)},insertBefore:function(t){this.childNodes.push(t),n.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),n.i.removeChild(t)}}),nt(B(_t,{context:n.context},t.__v),n.l)):n.l&&n.componentWillUnmount()}(wt.prototype=new P).__e=function(t){var n=this,e=At(n.__v),r=n.o.get(t);return r[0]++,function(i){var o=function(){n.props.revealOrder?(r.push(i),kt(n,t,r)):i()};e?e(o):o()}},wt.prototype.render=function(t){this.u=null,this.o=new Map;var n=F(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&n.reverse();for(var e=n.length;e--;)this.o.set(n[e],this.u=[1,0,this.u]);return t.children},wt.prototype.componentDidUpdate=wt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(n,e){kt(t,e,n)}))};var Et="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Dt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Nt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};P.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(P.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}));var St=k.event;function Ct(){}function Tt(){return this.cancelBubble}function Mt(){return this.defaultPrevented}k.event=function(t){return St&&(t=St(t)),t.persist=Ct,t.isPropagationStopped=Tt,t.isDefaultPrevented=Mt,t.nativeEvent=t};var Rt={configurable:!0,get:function(){return this.class}},Bt=k.vnode;k.vnode=function(t){var n=t.type,e=t.props,r=e;if("string"==typeof n){for(var i in r={},e){var o=e[i];"value"===i&&"defaultValue"in e&&null==o||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===o?o="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Nt(e.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():Dt.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[i]=o)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=F(e.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=F(e.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r}n&&e.class!=e.className&&(Rt.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",Rt)),t.$$typeof=Et,Bt&&Bt(t)};var zt=k.__r;k.__r=function(t){zt&&zt(t)};var It="undefined"!=typeof globalThis?globalThis:window;It.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):It.FullCalendarVDom={Component:P,createElement:B,render:nt,createRef:function(){return{current:null}},Fragment:I,createContext:function(t){var n=function(t,n){var e={__c:n="__cC"+N++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var e,r;return this.getChildContext||(e=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&e.some(V)},this.sub=function(t){e.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){e.splice(e.indexOf(t),1),n&&n.call(t)}}),t.children}};return e.Provider.__=e.Consumer.contextType=e}(t),e=n.Provider;return n.Provider=function(){var t=this,n=!this.getChildContext,r=e.apply(this,arguments);if(n){var i=[];this.shouldComponentUpdate=function(n){t.props.value!==n.value&&i.forEach((function(t){t.context=n.value,t.forceUpdate()}))},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}}return r},n},createPortal:function(t,n){return B(xt,{__v:t,i:n})},flushToDom:function(){var t=k.debounceRendering,n=[];for(k.debounceRendering=function(t){n.push(t)},nt(B(Pt,{}),document.createElement("div"));n.length;)n.shift()();k.debounceRendering=t},unmountComponentAtNode:function(t){nt(null,t)}};var Pt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){return B("div",{})},n.prototype.componentDidMount=function(){this.setState({})},n}(P);if("undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var Qt=FullCalendarVDom.Component,Ot=FullCalendarVDom.createElement,Vt=FullCalendarVDom.render,Ht=FullCalendarVDom.createRef,jt=FullCalendarVDom.Fragment,Ut=FullCalendarVDom.createContext,Ft=FullCalendarVDom.createPortal,Gt=FullCalendarVDom.flushToDom,Lt=FullCalendarVDom.unmountComponentAtNode,Wt=function(){function t(t,n){this.context=t,this.internalEventSource=n}return t.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},t.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(t.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),t}();function Yt(t){t.parentNode&&t.parentNode.removeChild(t)}function Zt(t,n){if(t.closest)return t.closest(n);if(!document.documentElement.contains(t))return null;do{if(qt(t,n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}function qt(t,n){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,n)}var Jt=/(top|left|right|bottom|width|height)$/i;function Xt(t,n){for(var e in n)$t(t,e,n[e])}function $t(t,n,e){t.style[n]=null==e?"":"number"==typeof e&&Jt.test(n)?e+"px":e}function Kt(t){var n,e;return null!==(e=null===(n=t.composedPath)||void 0===n?void 0:n.call(t)[0])&&void 0!==e?e:t.target}function tn(t){return t.getRootNode?t.getRootNode():document}function nn(t){t.preventDefault()}function en(t,n){return function(e){var r=Zt(e.target,t);r&&n.call(r,e,r)}}function rn(t,n,e,r){var i=en(e,r);return t.addEventListener(n,i),function(){t.removeEventListener(n,i)}}var on=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],an=0;function un(){return String(an+=1)}function sn(){document.body.classList.add("fc-not-allowed")}function cn(){document.body.classList.remove("fc-not-allowed")}function ln(t,n,e){return e.func?e.func(t,n):function(t,n){return t||n?null==n?-1:null==t?1:"string"==typeof t||"string"==typeof n?String(t).localeCompare(String(n)):t-n:0}(t[e.field],n[e.field])*(e.order||1)}function fn(t,n){var e=String(t);return"000".substr(0,n-e.length)+e}function dn(t,n){return t-n}function hn(t){return t%1==0}function vn(t){var n=t.querySelector(".fc-scrollgrid-shrink-frame"),e=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!n)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!e)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-n.getBoundingClientRect().width+e.getBoundingClientRect().width}var pn=["sun","mon","tue","wed","thu","fri","sat"];function gn(t,n){var e=Dn(t);return e[2]+=7*n,Nn(e)}function mn(t,n){var e=Dn(t);return e[2]+=n,Nn(e)}function bn(t,n){var e=Dn(t);return e[6]+=n,Nn(e)}function yn(t,n){return(n.valueOf()-t.valueOf())/864e5}function An(t,n){return Cn(t)===Cn(n)?Math.round(yn(t,n)):null}function wn(t){return Nn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function kn(t,n,e,r){var i=Nn([n,0,1+_n(n,e,r)]),o=wn(t),a=Math.round(yn(i,o));return Math.floor(a/7)+1}function _n(t,n,e){var r=7+n-e;return-(7+Nn([t,0,r]).getUTCDay()-n)%7+r-1}function xn(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function En(t){return new Date(t[0],t[1]||0,null==t[2]?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Dn(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Nn(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC.apply(Date,t))}function Sn(t){return!isNaN(t.valueOf())}function Cn(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}function Tn(t,n,e,r){return{instanceId:un(),defId:t,range:n,forcedStartTzo:null==e?null:e,forcedEndTzo:null==r?null:r}}var Mn=Object.prototype.hasOwnProperty;function Rn(t,n){var e={};if(n)for(var r in n){for(var i=[],o=t.length-1;o>=0;o-=1){var a=t[o][r];if("object"==typeof a&&a)i.unshift(a);else if(void 0!==a){e[r]=a;break}}i.length&&(e[r]=Rn(i))}for(o=t.length-1;o>=0;o-=1){var u=t[o];for(var s in u)s in e||(e[s]=u[s])}return e}function Bn(t,n){var e={};for(var r in t)n(t[r],r)&&(e[r]=t[r]);return e}function zn(t,n){var e={};for(var r in t)e[r]=n(t[r],r);return e}function In(t){for(var n={},e=0,r=t;e<r.length;e++)n[r[e]]=!0;return n}function Pn(t){var n=[];for(var e in t)n.push(t[e]);return n}function Qn(t,n){if(t===n)return!0;for(var e in t)if(Mn.call(t,e)&&!(e in n))return!1;for(var e in n)if(Mn.call(n,e)&&t[e]!==n[e])return!1;return!0}function On(t,n){var e=[];for(var r in t)Mn.call(t,r)&&(r in n||e.push(r));for(var r in n)Mn.call(n,r)&&t[r]!==n[r]&&e.push(r);return e}function Vn(t,n,e){if(void 0===e&&(e={}),t===n)return!0;for(var r in n)if(!(r in t&&(i=t[r],o=n[r],a=e[r],i===o||!0===a||a&&a(i,o))))return!1;var i,o,a;for(var r in t)if(!(r in n))return!1;return!0}function Hn(t,n,e){var r=e.dateEnv,i=e.pluginHooks,o=e.options,a=t.defs,u=t.instances;for(var s in u=Bn(u,(function(t){return!a[t.defId].recurringDef})),a){var c=a[s];if(c.recurringDef){var l=c.recurringDef.duration;l||(l=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var f=0,d=jn(c,l,n,r,i.recurringTypes);f<d.length;f++){var h=d[f],v=Tn(s,{start:h,end:r.add(h,l)});u[v.instanceId]=v}}}return{defs:a,instances:u}}function jn(t,n,e,r,i){var o=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(e.start,n),end:e.end},r);return t.allDay&&(o=o.map(wn)),o}var Un=["years","months","days","milliseconds"],Fn=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Gn(t,n){var e;return"string"==typeof t?function(t){var n=Fn.exec(t);if(n){var e=n[1]?-1:1;return{years:0,months:0,days:e*(n[2]?parseInt(n[2],10):0),milliseconds:e*(60*(n[3]?parseInt(n[3],10):0)*60*1e3+60*(n[4]?parseInt(n[4],10):0)*1e3+1e3*(n[5]?parseInt(n[5],10):0)+(n[6]?parseInt(n[6],10):0))}}return null}(t):"object"==typeof t&&t?Ln(t):"number"==typeof t?Ln(((e={})[n||"milliseconds"]=t,e)):null}function Ln(t){var n={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:60*(t.hours||t.hour||0)*60*1e3+60*(t.minutes||t.minute||0)*1e3+1e3*(t.seconds||t.second||0)+(t.milliseconds||t.millisecond||t.ms||0)},e=t.weeks||t.week;return e&&(n.days+=7*e,n.specifiedWeeks=!0),n}function Wn(t,n){return{years:t.years+n.years,months:t.months+n.months,days:t.days+n.days,milliseconds:t.milliseconds+n.milliseconds}}function Yn(t){return Zn(t)/864e5}function Zn(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function qn(t,n){for(var e=null,r=0;r<Un.length;r+=1){var i=Un[r];if(n[i]){var o=t[i]/n[i];if(!hn(o)||null!==e&&e!==o)return null;e=o}else if(t[i])return null}return e}function Jn(t){var n=t.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return t.days?t.specifiedWeeks&&t.days%7==0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Xn(t,n,e){void 0===e&&(e=!1);var r=t.toISOString();return r=r.replace(".000",""),e&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==n?r=r.replace("Z",""):0!==n&&(r=r.replace("Z",Kn(n,!0)))),r}function $n(t){return t.toISOString().replace(/T.*$/,"")}function Kn(t,n){void 0===n&&(n=!1);var e=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=Math.round(r%60);return n?e+fn(i,2)+":"+fn(o,2):"GMT"+e+i+(o?":"+fn(o,2):"")}function te(t,n,e){if(t===n)return!0;var r,i=t.length;if(i!==n.length)return!1;for(r=0;r<i;r+=1)if(!(e?e(t[r],n[r]):t[r]===n[r]))return!1;return!0}function ne(t,n,e){var r,i;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(r){if(!te(r,o)){e&&e(i);var u=t.apply(this,o);n&&n(u,i)||(i=u)}}else i=t.apply(this,o);return r=o,i}}function ee(t,n,e){var r,i,o=this;return function(a){if(r){if(!Qn(r,a)){e&&e(i);var u=t.call(o,a);n&&n(u,i)||(i=u)}}else i=t.call(o,a);return r=a,i}}var re={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},ie={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},oe=/\s*([ap])\.?m\.?/i,ae=/,/g,ue=/\s+/g,se=/\u200e/g,ce=/UTC|GMT/,le=function(){function t(t){var n={},e={},r=0;for(var i in t)i in re?(e[i]=t[i],r=Math.max(re[i],r)):(n[i]=t[i],i in ie&&(r=Math.max(ie[i],r)));this.standardDateProps=n,this.extendedSettings=e,this.severity=r,this.buildFormattingFunc=ne(fe)}return t.prototype.format=function(t,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(t)},t.prototype.formatRange=function(t,n,e,r){var i,o,a,u=this.standardDateProps,s=this.extendedSettings,c=(o=n.marker,(a=e.calendarSystem).getMarkerYear(i=t.marker)!==a.getMarkerYear(o)?5:a.getMarkerMonth(i)!==a.getMarkerMonth(o)?4:a.getMarkerDay(i)!==a.getMarkerDay(o)?2:Cn(i)!==Cn(o)?1:0);if(!c)return this.format(t,e);var l=c;!(l>1)||"numeric"!==u.year&&"2-digit"!==u.year||"numeric"!==u.month&&"2-digit"!==u.month||"numeric"!==u.day&&"2-digit"!==u.day||(l=1);var f=this.format(t,e),d=this.format(n,e);if(f===d)return f;var h=fe(function(t,n){var e={};for(var r in t)(!(r in ie)||ie[r]<=n)&&(e[r]=t[r]);return e}(u,l),s,e),v=h(t),p=h(n),g=function(t,n,e,r){for(var i=0;i<t.length;){var o=t.indexOf(n,i);if(-1===o)break;for(var a=t.substr(0,o),u=t.substr(i=o+n.length),s=0;s<e.length;){var c=e.indexOf(r,s);if(-1===c)break;var l=e.substr(0,c),f=e.substr(s=c+r.length);if(a===l&&u===f)return{before:a,after:u}}}return null}(f,v,d,p),m=s.separator||r||e.defaultSeparator||"";return g?g.before+v+m+p+g.after:f+m+d},t.prototype.getLargestUnit=function(){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"}},t}();function fe(t,n,e){var r=Object.keys(t).length;return 1===r&&"short"===t.timeZoneName?function(t){return Kn(t.timeZoneOffset)}:0===r&&n.week?function(t){return r=e.computeWeekNumber(t.marker),i=e.weekText,o=e.locale,u=[],"narrow"===(a=n.week)?u.push(i):"short"===a&&u.push(i," "),u.push(o.simpleNumberFormat.format(r)),"rtl"===o.options.direction&&u.reverse(),u.join("");var r,i,o,a,u}:function(t,n,e){t=u({},t),n=u({},n),function(t,n){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),"long"===t.timeZoneName&&(t.timeZoneName="short"),n.omitZeroMinute&&(t.second||t.millisecond)&&delete n.omitZeroMinute}(t,n),t.timeZone="UTC";var r,i=new Intl.DateTimeFormat(e.locale.codes,t);if(n.omitZeroMinute){var o=u({},t);delete o.minute,r=new Intl.DateTimeFormat(e.locale.codes,o)}return function(o){var a=o.marker;return function(t,n,e,r,i){return t=t.replace(se,""),"short"===e.timeZoneName&&(t=function(t,n){var e=!1;return t=t.replace(ce,(function(){return e=!0,n})),e||(t+=" "+n),t}(t,"UTC"===i.timeZone||null==n.timeZoneOffset?"UTC":Kn(n.timeZoneOffset))),r.omitCommas&&(t=t.replace(ae,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),!1===r.meridiem?t=t.replace(oe,"").trim():"narrow"===r.meridiem?t=t.replace(oe,(function(t,n){return n.toLocaleLowerCase()})):"short"===r.meridiem?t=t.replace(oe,(function(t,n){return n.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(t=t.replace(oe,(function(t){return t.toLocaleLowerCase()}))),(t=t.replace(ue," ")).trim()}((r&&!a.getUTCMinutes()?r:i).format(a),o,t,n,e)}}(t,n,e)}function de(t,n){var e=n.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:e,year:e[0],month:e[1],day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]}}function he(t,n,e,r){var i=de(t,e.calendarSystem);return{date:i,start:i,end:n?de(n,e.calendarSystem):null,timeZone:e.timeZone,localeCodes:e.locale.codes,defaultSeparator:r||e.defaultSeparator}}var ve=function(){function t(t){this.cmdStr=t}return t.prototype.format=function(t,n,e){return n.cmdFormatter(this.cmdStr,he(t,null,n,e))},t.prototype.formatRange=function(t,n,e,r){return e.cmdFormatter(this.cmdStr,he(t,n,e,r))},t}(),pe=function(){function t(t){this.func=t}return t.prototype.format=function(t,n,e){return this.func(he(t,null,n,e))},t.prototype.formatRange=function(t,n,e,r){return this.func(he(t,n,e,r))},t}();function ge(t){return"object"==typeof t&&t?new le(t):"string"==typeof t?new ve(t):"function"==typeof t?new pe(t):null}var me={navLinkDayClick:De,navLinkWeekClick:De,duration:Gn,bootstrapFontAwesome:De,buttonIcons:De,customButtons:De,defaultAllDayEventDuration:Gn,defaultTimedEventDuration:Gn,nextDayThreshold:Gn,scrollTime:Gn,scrollTimeReset:Boolean,slotMinTime:Gn,slotMaxTime:Gn,dayPopoverFormat:ge,slotDuration:Gn,snapDuration:Gn,headerToolbar:De,footerToolbar:De,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ge,dayHeaderClassNames:De,dayHeaderContent:De,dayHeaderDidMount:De,dayHeaderWillUnmount:De,dayCellClassNames:De,dayCellContent:De,dayCellDidMount:De,dayCellWillUnmount:De,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:De,weekNumbers:Boolean,weekNumberClassNames:De,weekNumberContent:De,weekNumberDidMount:De,weekNumberWillUnmount:De,editable:Boolean,viewClassNames:De,viewDidMount:De,viewWillUnmount:De,nowIndicator:Boolean,nowIndicatorClassNames:De,nowIndicatorContent:De,nowIndicatorDidMount:De,nowIndicatorWillUnmount:De,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:De,locale:De,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:De,eventOrder:function(t){var n,e,r=[],i=[];for("string"==typeof t?i=t.split(/\s*,\s*/):"function"==typeof t?i=[t]:Array.isArray(t)&&(i=t),n=0;n<i.length;n+=1)"string"==typeof(e=i[n])?r.push("-"===e.charAt(0)?{field:e.substring(1),order:-1}:{field:e,order:1}):"function"==typeof e&&r.push({func:e});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:De,contentHeight:De,direction:String,weekNumberFormat:ge,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:De,initialDate:De,now:De,eventDataTransform:De,stickyHeaderDates:De,stickyFooterScrollbar:De,viewHeight:De,defaultAllDay:Boolean,eventSourceFailure:De,eventSourceSuccess:De,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:De,eventConstraint:De,eventAllow:De,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:De,eventContent:De,eventDidMount:De,eventWillUnmount:De,selectConstraint:De,selectOverlap:De,selectAllow:De,droppable:Boolean,unselectCancel:String,slotLabelFormat:De,slotLaneClassNames:De,slotLaneContent:De,slotLaneDidMount:De,slotLaneWillUnmount:De,slotLabelClassNames:De,slotLabelContent:De,slotLabelDidMount:De,slotLabelWillUnmount:De,dayMaxEvents:De,dayMaxEventRows:De,dayMinWidth:Number,slotLabelInterval:Gn,allDayText:String,allDayClassNames:De,allDayContent:De,allDayDidMount:De,allDayWillUnmount:De,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ge,rerenderDelay:Number,moreLinkText:De,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:De,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Gn,hiddenDays:De,monthMode:Boolean,fixedWeekCount:Boolean,validRange:De,visibleRange:De,titleFormat:De,noEventsText:String,moreLinkClick:De,moreLinkClassNames:De,moreLinkContent:De,moreLinkDidMount:De,moreLinkWillUnmount:De},be={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},ye={datesSet:De,eventsSet:De,eventAdd:De,eventChange:De,eventRemove:De,windowResize:De,eventClick:De,eventMouseEnter:De,eventMouseLeave:De,select:De,unselect:De,loading:De,_unmount:De,_beforeprint:De,_afterprint:De,_noEventDrop:De,_noEventResize:De,_resize:De,_scrollRequest:De},Ae={buttonText:De,views:De,plugins:De,initialEvents:De,events:De,eventSources:De},we={headerToolbar:ke,footerToolbar:ke,buttonText:ke,buttonIcons:ke};function ke(t,n){return"object"==typeof t&&"object"==typeof n&&t&&n?Qn(t,n):t===n}var _e={type:String,component:De,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:De,usesMinMaxTime:Boolean,classNames:De,content:De,didMount:De,willUnmount:De};function xe(t){return Rn(t,we)}function Ee(t,n){var e={},r={};for(var i in n)i in t&&(e[i]=n[i](t[i]));for(var i in t)i in n||(r[i]=t[i]);return{refined:e,extra:r}}function De(t){return t}function Ne(t,n,e,r){for(var i={defs:{},instances:{}},o=Fe(e),a=0,u=t;a<u.length;a++){var s=je(u[a],n,e,r,o);s&&Se(s,i)}return i}function Se(t,n){return void 0===n&&(n={defs:{},instances:{}}),n.defs[t.def.defId]=t.def,t.instance&&(n.instances[t.instance.instanceId]=t.instance),n}function Ce(t,n){var e=t.instances[n];if(e){var r=t.defs[e.defId],i=Me(t,(function(t){return n=r,Boolean(n.groupId&&n.groupId===t.groupId);var n}));return i.defs[r.defId]=r,i.instances[e.instanceId]=e,i}return{defs:{},instances:{}}}function Te(t,n){return{defs:u(u({},t.defs),n.defs),instances:u(u({},t.instances),n.instances)}}function Me(t,n){var e=Bn(t.defs,n),r=Bn(t.instances,(function(t){return e[t.defId]}));return{defs:e,instances:r}}function Re(t){return Array.isArray(t)?t:"string"==typeof t?t.split(/\s+/):[]}var Be={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:De,overlap:De,allow:De,className:Re,classNames:Re,color:String,backgroundColor:String,borderColor:String,textColor:String},ze={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ie(t,n){var e=function(t,n){return Array.isArray(t)?Ne(t,null,n,!0):"object"==typeof t&&t?Ne([t],null,n,!0):null!=t?String(t):null}(t.constraint,n);return{display:t.display||null,startEditable:null!=t.startEditable?t.startEditable:t.editable,durationEditable:null!=t.durationEditable?t.durationEditable:t.editable,constraints:null!=e?[e]:[],overlap:null!=t.overlap?t.overlap:null,allows:null!=t.allow?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Pe(t){return t.reduce(Qe,ze)}function Qe(t,n){return{display:null!=n.display?n.display:t.display,startEditable:null!=n.startEditable?n.startEditable:t.startEditable,durationEditable:null!=n.durationEditable?n.durationEditable:t.durationEditable,constraints:t.constraints.concat(n.constraints),overlap:"boolean"==typeof n.overlap?n.overlap:t.overlap,allows:t.allows.concat(n.allows),backgroundColor:n.backgroundColor||t.backgroundColor,borderColor:n.borderColor||t.borderColor,textColor:n.textColor||t.textColor,classNames:t.classNames.concat(n.classNames)}}var Oe={id:String,groupId:String,title:String,url:String},Ve={start:De,end:De,date:De,allDay:Boolean},He=u(u(u({},Oe),Ve),{extendedProps:De});function je(t,n,e,r,i){void 0===i&&(i=Fe(e));var o=Ue(t,e,i),a=o.refined,u=o.extra,s=function(t,n){var e=null;return t&&(e=t.defaultAllDay),null==e&&(e=n.options.defaultAllDay),e}(n,e),c=function(t,n,e,r){for(var i=0;i<r.length;i+=1){var o=r[i].parse(t,e);if(o){var a=t.allDay;return null==a&&null==(a=n)&&null==(a=o.allDayGuess)&&(a=!1),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}(a,s,e.dateEnv,e.pluginHooks.recurringTypes);if(c)return(l=Ge(a,u,n?n.sourceId:"",c.allDay,Boolean(c.duration),e)).recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:l,instance:null};var l,f=function(t,n,e,r){var i,o,a=t.allDay,u=null,s=!1,c=null;if(i=e.dateEnv.createMarkerMeta(null!=t.start?t.start:t.date))u=i.marker;else if(!r)return null;return null!=t.end&&(o=e.dateEnv.createMarkerMeta(t.end)),null==a&&(a=null!=n?n:(!i||i.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),a&&u&&(u=wn(u)),o&&(c=o.marker,a&&(c=wn(c)),u&&c<=u&&(c=null)),c?s=!0:r||(s=e.options.forceEventDuration||!1,c=e.dateEnv.add(u,a?e.options.defaultAllDayEventDuration:e.options.defaultTimedEventDuration)),{allDay:a,hasEnd:s,range:{start:u,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(a,s,e,r);return f?{def:l=Ge(a,u,n?n.sourceId:"",f.allDay,f.hasEnd,e),instance:Tn(l.defId,f.range,f.forcedStartTzo,f.forcedEndTzo)}:null}function Ue(t,n,e){return void 0===e&&(e=Fe(n)),Ee(t,e)}function Fe(t){return u(u(u({},Be),He),t.pluginHooks.eventRefiners)}function Ge(t,n,e,r,i,o){for(var a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:un(),sourceId:e,allDay:r,hasEnd:i,ui:Ie(t,o),extendedProps:u(u({},t.extendedProps||{}),n)},s=0,c=o.pluginHooks.eventDefMemberAdders;s<c.length;s++)u(a,(0,c[s])(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Le(t){var n=Math.floor(yn(t.start,t.end))||1,e=wn(t.start);return{start:e,end:mn(e,n)}}function We(t,n){void 0===n&&(n=Gn(0));var e=null,r=null;if(t.end){r=wn(t.end);var i=t.end.valueOf()-r.valueOf();i&&i>=Zn(n)&&(r=mn(r,1))}return t.start&&(e=wn(t.start),r&&r<=e&&(r=mn(e,1))),{start:e,end:r}}function Ye(t,n,e,r){return"year"===r?Gn(e.diffWholeYears(t,n),"year"):"month"===r?Gn(e.diffWholeMonths(t,n),"month"):(o=n,a=wn(i=t),u=wn(o),{years:0,months:0,days:Math.round(yn(a,u)),milliseconds:o.valueOf()-u.valueOf()-(i.valueOf()-a.valueOf())});var i,o,a,u}function Ze(t,n){var e,r,i=[],o=n.start;for(t.sort(qe),e=0;e<t.length;e+=1)(r=t[e]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<n.end&&i.push({start:o,end:n.end}),i}function qe(t,n){return t.start.valueOf()-n.start.valueOf()}function Je(t,n){var e=t.start,r=t.end,i=null;return null!==n.start&&(e=null===e?n.start:new Date(Math.max(e.valueOf(),n.start.valueOf()))),null!=n.end&&(r=null===r?n.end:new Date(Math.min(r.valueOf(),n.end.valueOf()))),(null===e||null===r||e<r)&&(i={start:e,end:r}),i}function Xe(t,n){return(null===t.end||null===n.start||t.end>n.start)&&(null===t.start||null===n.end||t.start<n.end)}function $e(t,n){return(null===t.start||null!==n.start&&n.start>=t.start)&&(null===t.end||null!==n.end&&n.end<=t.end)}function Ke(t,n){return(null===t.start||n>=t.start)&&(null===t.end||n<t.end)}function tr(t,n,e,r){var i={},o={},a={},u=[],s=[],c=rr(t.defs,n);for(var l in t.defs)"inverse-background"===(h=c[(A=t.defs[l]).defId]).display&&(A.groupId?(i[A.groupId]=[],a[A.groupId]||(a[A.groupId]=A)):o[l]=[]);for(var f in t.instances){var d=t.instances[f],h=c[(A=t.defs[d.defId]).defId],v=d.range,p=!A.allDay&&r?We(v,r):v,g=Je(p,e);g&&("inverse-background"===h.display?A.groupId?i[A.groupId].push(g):o[d.defId].push(g):"none"!==h.display&&("background"===h.display?u:s).push({def:A,ui:h,instance:d,range:g,isStart:p.start&&p.start.valueOf()===g.start.valueOf(),isEnd:p.end&&p.end.valueOf()===g.end.valueOf()}))}for(var m in i)for(var b=0,y=Ze(i[m],e);b<y.length;b++){var A;u.push({def:A=a[m],ui:h=c[A.defId],instance:null,range:y[b],isStart:!1,isEnd:!1})}for(var l in o)for(var w=0,k=Ze(o[l],e);w<k.length;w++)u.push({def:t.defs[l],ui:c[l],instance:null,range:k[w],isStart:!1,isEnd:!1});return{bg:u,fg:s}}function nr(t,n){t.fcSeg=n}function er(t){return t.fcSeg||t.parentNode.fcSeg||null}function rr(t,n){return zn(t,(function(t){return ir(t,n)}))}function ir(t,n){var e=[];return n[""]&&e.push(n[""]),n[t.defId]&&e.push(n[t.defId]),e.push(t.ui),Pe(e)}function or(t,n){var e=t.map(ar);return e.sort((function(t,e){return function(t,n,e){var r,i;for(r=0;r<e.length;r+=1)if(i=ln(t,n,e[r]))return i;return 0}(t,e,n)})),e.map((function(t){return t._seg}))}function ar(t){var n=t.eventRange,e=n.def,r=n.instance?n.instance.range:n.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return u(u(u({},e.extendedProps),e),{id:e.publicId,start:i,end:o,duration:o-i,allDay:Number(e.allDay),_seg:t})}function ur(t,n){for(var e=t.eventRange,r=e.def,i=e.ui,o=i.startEditable,a=0,u=n.pluginHooks.isDraggableTransformers;a<u.length;a++)o=(0,u[a])(o,r,i,n);return o}function sr(t,n){return t.isStart&&t.eventRange.ui.durationEditable&&n.options.eventResizableFromStart}function cr(t){return t.isEnd&&t.eventRange.ui.durationEditable}function lr(t,n,e,r,i,o,a){var u=e.dateEnv,s=e.options,c=s.displayEventTime,l=s.displayEventEnd,f=t.eventRange.def,d=t.eventRange.instance;null==c&&(c=!1!==r),null==l&&(l=!1!==i);var h=d.range.start,v=d.range.end,p=o||t.start||t.eventRange.range.start,g=a||t.end||t.eventRange.range.end,m=wn(h).valueOf()===wn(p).valueOf(),b=wn(bn(v,-1)).valueOf()===wn(bn(g,-1)).valueOf();return c&&!f.allDay&&(m||b)?(p=m?h:p,g=b?v:g,l&&f.hasEnd?u.formatRange(p,g,n,{forcedStartTzo:o?null:d.forcedStartTzo,forcedEndTzo:a?null:d.forcedEndTzo}):u.format(p,n,{forcedTzo:o?null:d.forcedStartTzo})):""}function fr(t,n,e){var r=t.eventRange.range;return{isPast:r.end<(e||n.start),isFuture:r.start>=(e||n.end),isToday:n&&Ke(n,r.start)}}function dr(t){return t.instance?t.instance.instanceId:t.def.defId+":"+t.range.start.toISOString()}var hr={start:De,end:De,allDay:Boolean};function vr(t,n,e){return u(u({},pr(t,n,e)),{timeZone:n.timeZone})}function pr(t,n,e){return{start:n.toDate(t.start),end:n.toDate(t.end),startStr:n.formatIso(t.start,{omitTime:e}),endStr:n.formatIso(t.end,{omitTime:e})}}function gr(t,n,e){var r=Ue({editable:!1},e),i=Ge(r.refined,r.extra,"",t.allDay,!0,e);return{def:i,ui:ir(i,n),instance:Tn(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function mr(t,n,e){e.emitter.trigger("select",u(u({},br(t,e)),{jsEvent:n?n.origEvent:null,view:e.viewApi||e.calendarApi.view}))}function br(t,n){for(var e,r={},i=0,o=n.pluginHooks.dateSpanTransforms;i<o.length;i++)u(r,(0,o[i])(t,n));return u(r,u(u({},pr((e=t).range,n.dateEnv,e.allDay)),{allDay:e.allDay})),r}function yr(t,n,e){var r=e.dateEnv,i=e.options,o=n;return t?(o=wn(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function Ar(t,n,e,r){var i=rr(t.defs,n),o={defs:{},instances:{}};for(var a in t.defs)o.defs[a]=wr(t.defs[a],i[a],e,r);for(var u in t.instances){var s=t.instances[u];o.instances[u]=kr(s,o.defs[s.defId],i[s.defId],e,r)}return o}function wr(t,n,e,r){var i=e.standardProps||{};null==i.hasEnd&&n.durationEditable&&(e.startDelta||e.endDelta)&&(i.hasEnd=!0);var o=u(u(u({},t),i),{ui:u(u({},t.ui),i.ui)});e.extendedProps&&(o.extendedProps=u(u({},o.extendedProps),e.extendedProps));for(var a=0,s=r.pluginHooks.eventDefMutationAppliers;a<s.length;a++)(0,s[a])(o,e,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function kr(t,n,e,r,i){var o=i.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,c=u({},t);return a&&(c.range=Le(c.range)),r.datesDelta&&e.startEditable&&(c.range={start:o.add(c.range.start,r.datesDelta),end:o.add(c.range.end,r.datesDelta)}),r.startDelta&&e.durationEditable&&(c.range={start:o.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&e.durationEditable&&(c.range={start:c.range.start,end:o.add(c.range.end,r.endDelta)}),s&&(c.range={start:c.range.start,end:yr(n.allDay,c.range.start,i)}),n.allDay&&(c.range={start:wn(c.range.start),end:wn(c.range.end)}),c.range.end<c.range.start&&(c.range.end=yr(n.allDay,c.range.start,i)),c}var _r=function(){function t(t,n,e){this.type=t,this.getCurrentData=n,this.dateEnv=e}return Object.defineProperty(t.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),t.prototype.getOption=function(t){return this.getCurrentData().options[t]},t}(),xr={id:String,defaultAllDay:Boolean,url:String,format:String,events:De,eventDataTransform:De,success:De,failure:De};function Er(t,n,e){var r;if(void 0===e&&(e=Dr(n)),"string"==typeof t?r={url:t}:"function"==typeof t||Array.isArray(t)?r={events:t}:"object"==typeof t&&t&&(r=t),r){var i=Ee(r,e),o=i.refined,a=i.extra,u=function(t,n){for(var e=n.pluginHooks.eventSourceDefs,r=e.length-1;r>=0;r-=1){var i=e[r].parseMeta(t);if(i)return{sourceDefId:r,meta:i}}return null}(o,n);if(u)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:un(),sourceDefId:u.sourceDefId,meta:u.meta,ui:Ie(o,n),extendedProps:a}}return null}function Dr(t){return u(u(u({},Be),xr),t.pluginHooks.eventSourceRefiners)}function Nr(t,n){return"function"==typeof t&&(t=t()),null==t?n.createNowMarker():n.createMarker(t)}var Sr=function(){function t(){}return t.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},t.prototype.dispatch=function(t){return this.currentDataManager.dispatch(t)},Object.defineProperty(t.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),t.prototype.batchRendering=function(t){t()},t.prototype.updateSize=function(){this.trigger("_resize",!0)},t.prototype.setOption=function(t,n){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:n})},t.prototype.getOption=function(t){return this.currentDataManager.currentCalendarOptionsInput[t]},t.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},t.prototype.on=function(t,n){var e=this.currentDataManager;e.currentCalendarOptionsRefiners[t]?e.emitter.on(t,n):console.warn("Unknown listener name '"+t+"'")},t.prototype.off=function(t,n){this.currentDataManager.emitter.off(t,n)},t.prototype.trigger=function(t){for(var n,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];(n=this.currentDataManager.emitter).trigger.apply(n,s([t],e))},t.prototype.changeView=function(t,n){var e=this;this.batchRendering((function(){if(e.unselect(),n)if(n.start&&n.end)e.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),e.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{var r=e.getCurrentData().dateEnv;e.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:r.createMarker(n)})}else e.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})}))},t.prototype.zoomTo=function(t,n){var e;e=this.getCurrentData().viewSpecs[n=n||"day"]||this.getUnitViewSpec(n),this.unselect(),this.dispatch(e?{type:"CHANGE_VIEW_TYPE",viewType:e.type,dateMarker:t}:{type:"CHANGE_DATE",dateMarker:t})},t.prototype.getUnitViewSpec=function(t){var n,e,r=this.getCurrentData(),i=r.viewSpecs,o=[].concat(r.toolbarConfig.viewsWithButtons);for(var a in i)o.push(a);for(n=0;n<o.length;n+=1)if((e=i[o[n]])&&e.singleUnit===t)return e;return null},t.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},t.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},t.prototype.prevYear=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})},t.prototype.nextYear=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})},t.prototype.today=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Nr(t.calendarOptions.now,t.dateEnv)})},t.prototype.gotoDate=function(t){var n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(t)})},t.prototype.incrementDate=function(t){var n=this.getCurrentData(),e=Gn(t);e&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,e)}))},t.prototype.getDate=function(){var t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)},t.prototype.formatDate=function(t,n){var e=this.getCurrentData().dateEnv;return e.format(e.createMarker(t),ge(n))},t.prototype.formatRange=function(t,n,e){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(t),r.createMarker(n),ge(e),e)},t.prototype.formatIso=function(t,n){var e=this.getCurrentData().dateEnv;return e.formatIso(e.createMarker(t),{omitTime:n})},t.prototype.select=function(t,n){var e;e=null==n?null!=t.start?t:{start:t,end:null}:{start:t,end:n};var r=this.getCurrentData(),i=function(t,n,e){var r=function(t,n){var e=Ee(t,hr),r=e.refined,i=e.extra,o=r.start?n.createMarkerMeta(r.start):null,a=r.end?n.createMarkerMeta(r.end):null,s=r.allDay;return null==s&&(s=o&&o.isTimeUnspecified&&(!a||a.isTimeUnspecified)),u({range:{start:o?o.marker:null,end:a?a.marker:null},allDay:s},i)}(t,n),i=r.range;if(!i.start)return null;if(!i.end){if(null==e)return null;i.end=n.add(i.start,e)}return r}(e,r.dateEnv,Gn({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),mr(i,null,r))},t.prototype.unselect=function(t){var n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(t,n){n.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view})}(t,n))},t.prototype.addEvent=function(t,n){if(t instanceof Cr){var e=t._def,r=t._instance;return this.getCurrentData().eventStore.defs[e.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Se({def:e,instance:r})}),this.triggerEventAdd(t)),t}var i,o=this.getCurrentData();if(n instanceof Wt)i=n.internalEventSource;else if("boolean"==typeof n)n&&(i=Pn(o.eventSources)[0]);else if(null!=n){var a=this.getEventSourceById(n);if(!a)return console.warn('Could not find an event source with ID "'+n+'"'),null;i=a.internalEventSource}var u=je(t,i,o,!1);if(u){var s=new Cr(o,u.def,u.def.recurringDef?null:u.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Se(u)}),this.triggerEventAdd(s),s}return null},t.prototype.triggerEventAdd=function(t){var n=this;this.getCurrentData().emitter.trigger("eventAdd",{event:t,relatedEvents:[],revert:function(){n.dispatch({type:"REMOVE_EVENTS",eventStore:Tr(t)})}})},t.prototype.getEventById=function(t){var n=this.getCurrentData(),e=n.eventStore,r=e.defs,i=e.instances;for(var o in t=String(t),r){var a=r[o];if(a.publicId===t){if(a.recurringDef)return new Cr(n,a,null);for(var u in i){var s=i[u];if(s.defId===a.defId)return new Cr(n,a,s)}}}return null},t.prototype.getEvents=function(){var t=this.getCurrentData();return Mr(t.eventStore,t)},t.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},t.prototype.getEventSources=function(){var t=this.getCurrentData(),n=t.eventSources,e=[];for(var r in n)e.push(new Wt(t,n[r]));return e},t.prototype.getEventSourceById=function(t){var n=this.getCurrentData(),e=n.eventSources;for(var r in t=String(t),e)if(e[r].publicId===t)return new Wt(n,e[r]);return null},t.prototype.addEventSource=function(t){var n=this.getCurrentData();if(t instanceof Wt)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;var e=Er(t,n);return e?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e]}),new Wt(n,e)):null},t.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},t.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},t.prototype.scrollToTime=function(t){var n=Gn(t);n&&this.trigger("_scrollRequest",{time:n})},t}(),Cr=function(){function t(t,n,e){this._context=t,this._def=n,this._instance=e||null}return t.prototype.setProp=function(t,n){var e,r;if(t in Ve)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===t)n=Oe[t](n),this.mutate({standardProps:{publicId:n}});else if(t in Oe)n=Oe[t](n),this.mutate({standardProps:(e={},e[t]=n,e)});else if(t in Be){var i=Be[t](n);"color"===t?i={backgroundColor:n,borderColor:n}:"editable"===t?i={startEditable:n,durationEditable:n}:((r={})[t]=n,i=r),this.mutate({standardProps:{ui:i}})}else console.warn("Could not set prop '"+t+"'. Use setExtendedProp instead.")},t.prototype.setExtendedProp=function(t,n){var e;this.mutate({extendedProps:(e={},e[t]=n,e)})},t.prototype.setStart=function(t,n){void 0===n&&(n={});var e=this._context.dateEnv,r=e.createMarker(t);if(r&&this._instance){var i=Ye(this._instance.range.start,r,e,n.granularity);this.mutate(n.maintainDuration?{datesDelta:i}:{startDelta:i})}},t.prototype.setEnd=function(t,n){void 0===n&&(n={});var e,r=this._context.dateEnv;if((null==t||(e=r.createMarker(t)))&&this._instance)if(e){var i=Ye(this._instance.range.end,e,r,n.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},t.prototype.setDates=function(t,n,e){void 0===e&&(e={});var r,i,o,a=this._context.dateEnv,u={allDay:e.allDay},s=a.createMarker(t);if(s&&(null==n||(r=a.createMarker(n)))&&this._instance){var c=this._instance.range;!0===e.allDay&&(c=Le(c));var l=Ye(c.start,s,a,e.granularity);if(r){var f=Ye(c.end,r,a,e.granularity);this.mutate((i=l).years===(o=f).years&&i.months===o.months&&i.days===o.days&&i.milliseconds===o.milliseconds?{datesDelta:l,standardProps:u}:{startDelta:l,endDelta:f,standardProps:u})}else u.hasEnd=!1,this.mutate({datesDelta:l,standardProps:u})}},t.prototype.moveStart=function(t){var n=Gn(t);n&&this.mutate({startDelta:n})},t.prototype.moveEnd=function(t){var n=Gn(t);n&&this.mutate({endDelta:n})},t.prototype.moveDates=function(t){var n=Gn(t);n&&this.mutate({datesDelta:n})},t.prototype.setAllDay=function(t,n){void 0===n&&(n={});var e={allDay:t},r=n.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(e.hasEnd=r),this.mutate({standardProps:e})},t.prototype.formatRange=function(t){var n=this._context.dateEnv,e=this._instance,r=ge(t);return this._def.hasEnd?n.formatRange(e.range.start,e.range.end,r,{forcedStartTzo:e.forcedStartTzo,forcedEndTzo:e.forcedEndTzo}):n.format(e.range.start,r,{forcedTzo:e.forcedStartTzo})},t.prototype.mutate=function(n){var e=this._instance;if(e){var r=this._def,i=this._context,o=i.getCurrentData().eventStore,a=Ce(o,e.instanceId);a=Ar(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},n,i);var u=new t(i,r,e);this._def=a.defs[r.defId],this._instance=a.instances[e.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:a}),i.emitter.trigger("eventChange",{oldEvent:u,event:this,relatedEvents:Mr(a,i,e),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},t.prototype.remove=function(){var t=this._context,n=Tr(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:n}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:n})}})},Object.defineProperty(t.prototype,"source",{get:function(){var t=this._def.sourceId;return t?new Wt(this._context,this._context.getCurrentData().eventSources[t]):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startStr",{get:function(){var t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endStr",{get:function(){var t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),t.prototype.toPlainObject=function(t){void 0===t&&(t={});var n=this._def,e=n.ui,r=this.startStr,i=this.endStr,o={};return n.title&&(o.title=n.title),r&&(o.start=r),i&&(o.end=i),n.publicId&&(o.id=n.publicId),n.groupId&&(o.groupId=n.groupId),n.url&&(o.url=n.url),e.display&&"auto"!==e.display&&(o.display=e.display),t.collapseColor&&e.backgroundColor&&e.backgroundColor===e.borderColor?o.color=e.backgroundColor:(e.backgroundColor&&(o.backgroundColor=e.backgroundColor),e.borderColor&&(o.borderColor=e.borderColor)),e.textColor&&(o.textColor=e.textColor),e.classNames.length&&(o.classNames=e.classNames),Object.keys(n.extendedProps).length&&(t.collapseExtendedProps?u(o,n.extendedProps):o.extendedProps=n.extendedProps),o},t.prototype.toJSON=function(){return this.toPlainObject()},t}();function Tr(t){var n,e,r=t._def,i=t._instance;return{defs:(n={},n[r.defId]=r,n),instances:i?(e={},e[i.instanceId]=i,e):{}}}function Mr(t,n,e){var r=t.defs,i=t.instances,o=[],a=e?e.instanceId:"";for(var u in i){var s=i[u];s.instanceId!==a&&o.push(new Cr(n,r[s.defId],s))}return o}var Rr={},Br=function(){function t(){}return t.prototype.getMarkerYear=function(t){return t.getUTCFullYear()},t.prototype.getMarkerMonth=function(t){return t.getUTCMonth()},t.prototype.getMarkerDay=function(t){return t.getUTCDate()},t.prototype.arrayToMarker=function(t){return Nn(t)},t.prototype.markerToArray=function(t){return Dn(t)},t}();Rr.gregory=Br;var zr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/,Ir=function(){function t(t){var n=this.timeZone=t.timeZone,e="local"!==n&&"UTC"!==n;t.namedTimeZoneImpl&&e&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!e||this.namedTimeZoneImpl),this.calendarSystem=new Rr[t.calendarSystem],this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,"ISO"===t.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof t.firstDay&&(this.weekDow=t.firstDay),"function"==typeof t.weekNumberCalculation&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=null!=t.weekText?t.weekText:t.locale.options.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}return t.prototype.createMarker=function(t){var n=this.createMarkerMeta(t);return null===n?null:n.marker},t.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Nn(xn(new Date))},t.prototype.createMarkerMeta=function(t){if("string"==typeof t)return this.parse(t);var n=null;return"number"==typeof t?n=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(n=this.timestampToMarker(t))):Array.isArray(t)&&(n=Nn(t)),null!==n&&Sn(n)?{marker:n,isTimeUnspecified:!1,forcedTzo:null}:null},t.prototype.parse=function(t){var n=function(t){var n=zr.exec(t);if(n){var e=new Date(Date.UTC(Number(n[1]),n[3]?Number(n[3])-1:0,Number(n[5]||1),Number(n[7]||0),Number(n[8]||0),Number(n[10]||0),n[12]?1e3*Number("0."+n[12]):0));if(Sn(e)){var r=null;return n[13]&&(r=("-"===n[15]?-1:1)*(60*Number(n[16]||0)+Number(n[18]||0))),{marker:e,isTimeUnspecified:!n[6],timeZoneOffset:r}}}return null}(t);if(null===n)return null;var e=n.marker,r=null;return null!==n.timeZoneOffset&&(this.canComputeOffset?e=this.timestampToMarker(e.valueOf()-60*n.timeZoneOffset*1e3):r=n.timeZoneOffset),{marker:e,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:r}},t.prototype.getYear=function(t){return this.calendarSystem.getMarkerYear(t)},t.prototype.getMonth=function(t){return this.calendarSystem.getMarkerMonth(t)},t.prototype.add=function(t,n){var e=this.calendarSystem.markerToArray(t);return e[0]+=n.years,e[1]+=n.months,e[2]+=n.days,e[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(e)},t.prototype.subtract=function(t,n){var e=this.calendarSystem.markerToArray(t);return e[0]-=n.years,e[1]-=n.months,e[2]-=n.days,e[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(e)},t.prototype.addYears=function(t,n){var e=this.calendarSystem.markerToArray(t);return e[0]+=n,this.calendarSystem.arrayToMarker(e)},t.prototype.addMonths=function(t,n){var e=this.calendarSystem.markerToArray(t);return e[1]+=n,this.calendarSystem.arrayToMarker(e)},t.prototype.diffWholeYears=function(t,n){var e=this.calendarSystem;return Cn(t)===Cn(n)&&e.getMarkerDay(t)===e.getMarkerDay(n)&&e.getMarkerMonth(t)===e.getMarkerMonth(n)?e.getMarkerYear(n)-e.getMarkerYear(t):null},t.prototype.diffWholeMonths=function(t,n){var e=this.calendarSystem;return Cn(t)===Cn(n)&&e.getMarkerDay(t)===e.getMarkerDay(n)?e.getMarkerMonth(n)-e.getMarkerMonth(t)+12*(e.getMarkerYear(n)-e.getMarkerYear(t)):null},t.prototype.greatestWholeUnit=function(t,n){var e=this.diffWholeYears(t,n);return null!==e?{unit:"year",value:e}:null!==(e=this.diffWholeMonths(t,n))?{unit:"month",value:e}:null!==(e=function(t,n){var e=An(t,n);return null!==e&&e%7==0?e/7:null}(t,n))?{unit:"week",value:e}:null!==(e=An(t,n))?{unit:"day",value:e}:hn(e=function(t,n){return(n.valueOf()-t.valueOf())/36e5}(t,n))?{unit:"hour",value:e}:hn(e=function(t,n){return(n.valueOf()-t.valueOf())/6e4}(t,n))?{unit:"minute",value:e}:hn(e=function(t,n){return(n.valueOf()-t.valueOf())/1e3}(t,n))?{unit:"second",value:e}:{unit:"millisecond",value:n.valueOf()-t.valueOf()}},t.prototype.countDurationsBetween=function(t,n,e){var r;return e.years&&null!==(r=this.diffWholeYears(t,n))?r/(Yn(e)/365):e.months&&null!==(r=this.diffWholeMonths(t,n))?r/(Yn(e)/30):e.days&&null!==(r=An(t,n))?r/Yn(e):(n.valueOf()-t.valueOf())/Zn(e)},t.prototype.startOf=function(t,n){return"year"===n?this.startOfYear(t):"month"===n?this.startOfMonth(t):"week"===n?this.startOfWeek(t):"day"===n?wn(t):"hour"===n?function(t){return Nn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}(t):"minute"===n?function(t){return Nn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}(t):"second"===n?function(t){return Nn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}(t):null},t.prototype.startOfYear=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])},t.prototype.startOfMonth=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])},t.prototype.startOfWeek=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])},t.prototype.computeWeekNumber=function(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):function(t,n,e){var r=t.getUTCFullYear(),i=kn(t,r,n,e);if(i<1)return kn(t,r-1,n,e);var o=kn(t,r+1,n,e);return o>=1?Math.min(i,o):i}(t,this.weekDow,this.weekDoy)},t.prototype.format=function(t,n,e){return void 0===e&&(e={}),n.format({marker:t,timeZoneOffset:null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)},this)},t.prototype.formatRange=function(t,n,e,r){return void 0===r&&(r={}),r.isEndExclusive&&(n=bn(n,-1)),e.formatRange({marker:t,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(t)},{marker:n,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(n)},this,r.defaultSeparator)},t.prototype.formatIso=function(t,n){void 0===n&&(n={});var e=null;return n.omitTimeZoneOffset||(e=null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(t)),Xn(t,e,n.omitTime)},t.prototype.timestampToMarker=function(t){return"local"===this.timeZone?Nn(xn(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Nn(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)},t.prototype.offsetForMarker=function(t){return"local"===this.timeZone?-En(Dn(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Dn(t)):null},t.prototype.toDate=function(t,n){return"local"===this.timeZone?En(Dn(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Dn(t))*60):new Date(t.valueOf()-(n||0))},t}(),Pr=[],Qr={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",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"};function Or(t){for(var n=t.length>0?t[0].code:"en",e=Pr.concat(t),r={en:Qr},i=0,o=e;i<o.length;i++){var a=o[i];r[a.code]=a}return{map:r,defaultCode:n}}function Vr(t,n){return"object"!=typeof t||Array.isArray(t)?function(t,n){var e=[].concat(t||[]),r=function(t,n){for(var e=0;e<t.length;e+=1)for(var r=t[e].toLocaleLowerCase().split("-"),i=r.length;i>0;i-=1){var o=r.slice(0,i).join("-");if(n[o])return n[o]}return null}(e,n)||Qr;return Hr(t,e,r)}(t,n):Hr(t.code,[t.code],t)}function Hr(t,n,e){var r=Rn([Qr,e],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:t,codes:n,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}var jr,Ur={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Fr(t,n){return t.left>=n.left&&t.left<n.right&&t.top>=n.top&&t.top<n.bottom}function Gr(t,n){var e={left:Math.max(t.left,n.left),right:Math.min(t.right,n.right),top:Math.max(t.top,n.top),bottom:Math.min(t.bottom,n.bottom)};return e.left<e.right&&e.top<e.bottom&&e}function Lr(){return null==jr&&(jr=function(){if("undefined"==typeof document)return!0;var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);var n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}()),jr}var Wr={defs:{},instances:{}},Yr=function(){function t(){this.getKeysForEventDefs=ne(this._getKeysForEventDefs),this.splitDateSelection=ne(this._splitDateSpan),this.splitEventStore=ne(this._splitEventStore),this.splitIndividualUi=ne(this._splitIndividualUi),this.splitEventDrag=ne(this._splitInteraction),this.splitEventResize=ne(this._splitInteraction),this.eventUiBuilders={}}return t.prototype.splitProps=function(t){var n=this,e=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,r),a=this.splitEventStore(t.eventStore,r),u=this.splitEventDrag(t.eventDrag),s=this.splitEventResize(t.eventResize),c={};for(var l in this.eventUiBuilders=zn(e,(function(t,e){return n.eventUiBuilders[e]||ne(Zr)})),e){var f=e[l],d=a[l]||Wr;c[l]={businessHours:f.businessHours||t.businessHours,dateSelection:i[l]||null,eventStore:d,eventUiBases:(0,this.eventUiBuilders[l])(t.eventUiBases[""],f.ui,o[l]),eventSelection:d.instances[t.eventSelection]?t.eventSelection:"",eventDrag:u[l]||null,eventResize:s[l]||null}}return c},t.prototype._splitDateSpan=function(t){var n={};if(t)for(var e=0,r=this.getKeysForDateSpan(t);e<r.length;e++)n[r[e]]=t;return n},t.prototype._getKeysForEventDefs=function(t){var n=this;return zn(t.defs,(function(t){return n.getKeysForEventDef(t)}))},t.prototype._splitEventStore=function(t,n){var e=t.defs,r=t.instances,i={};for(var o in e)for(var a=0,u=n[o];a<u.length;a++)i[d=u[a]]||(i[d]={defs:{},instances:{}}),i[d].defs[o]=e[o];for(var s in r)for(var c=r[s],l=0,f=n[c.defId];l<f.length;l++){var d;i[d=f[l]]&&(i[d].instances[s]=c)}return i},t.prototype._splitIndividualUi=function(t,n){var e={};for(var r in t)if(r)for(var i=0,o=n[r];i<o.length;i++){var a=o[i];e[a]||(e[a]={}),e[a][r]=t[r]}return e},t.prototype._splitInteraction=function(t){var n={};if(t){var e=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),r=this._getKeysForEventDefs(t.mutatedEvents),i=this._splitEventStore(t.mutatedEvents,r),o=function(r){n[r]||(n[r]={affectedEvents:e[r]||Wr,mutatedEvents:i[r]||Wr,isEvent:t.isEvent})};for(var a in e)o(a);for(var a in i)o(a)}return n},t}();function Zr(t,n,e){var r=[];t&&r.push(t),n&&r.push(n);var i={"":Pe(r)};return e&&u(i,e),i}function qr(t,n,e,r){return{dow:t.getUTCDay(),isDisabled:Boolean(r&&!Ke(r.activeRange,t)),isOther:Boolean(r&&!Ke(r.currentRange,t)),isToday:Boolean(n&&Ke(n,t)),isPast:Boolean(e?t<e:!!n&&t<n.start),isFuture:Boolean(e?t>e:!!n&&t>=n.end)}}function Jr(t,n){var e=["fc-day","fc-day-"+pn[t.dow]];return t.isDisabled?e.push("fc-day-disabled"):(t.isToday&&(e.push("fc-day-today"),e.push(n.getClass("today"))),t.isPast&&e.push("fc-day-past"),t.isFuture&&e.push("fc-day-future"),t.isOther&&e.push("fc-day-other")),e}function Xr(t,n){return void 0===n&&(n="day"),JSON.stringify({date:$n(t),type:n})}var $r,Kr=null;function ti(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function ni(t,n,e){void 0===n&&(n=!1);var r=e?t.getBoundingClientRect():ei(t),i=function(t,n){void 0===n&&(n=!1);var e=window.getComputedStyle(t),r=parseInt(e.borderLeftWidth,10)||0,i=parseInt(e.borderRightWidth,10)||0,o=parseInt(e.borderTopWidth,10)||0,a=parseInt(e.borderBottomWidth,10)||0,u=ti(t),s=u.y-r-i,c={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:u.x-o-a,scrollbarLeft:0,scrollbarRight:0};return null===Kr&&(Kr=function(){var t=document.createElement("div");Xt(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);var n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Yt(t),n}()),Kr&&"rtl"===e.direction?c.scrollbarLeft=s:c.scrollbarRight=s,n&&(c.paddingLeft=parseInt(e.paddingLeft,10)||0,c.paddingRight=parseInt(e.paddingRight,10)||0,c.paddingTop=parseInt(e.paddingTop,10)||0,c.paddingBottom=parseInt(e.paddingBottom,10)||0),c}(t,n),o={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return n&&(o.left+=i.paddingLeft,o.right-=i.paddingRight,o.top+=i.paddingTop,o.bottom-=i.paddingBottom),o}function ei(t){var n=t.getBoundingClientRect();return{left:n.left+window.pageXOffset,top:n.top+window.pageYOffset,right:n.right+window.pageXOffset,bottom:n.bottom+window.pageYOffset}}function ri(t){for(var n=[];t instanceof HTMLElement;){var e=window.getComputedStyle(t);if("fixed"===e.position)break;/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&n.push(t),t=t.parentNode}return n}var ii=function(){function t(){this.handlers={},this.thisContext=null}return t.prototype.setThisContext=function(t){this.thisContext=t},t.prototype.setOptions=function(t){this.options=t},t.prototype.on=function(t,n){!function(t,n,e){(t[n]||(t[n]=[])).push(e)}(this.handlers,t,n)},t.prototype.off=function(t,n){!function(t,n,e){e?t[n]&&(t[n]=t[n].filter((function(t){return t!==e}))):delete t[n]}(this.handlers,t,n)},t.prototype.trigger=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];for(var r=this.handlers[t]||[],i=this.options&&this.options[t],o=[].concat(i||[],r),a=0,u=o;a<u.length;a++){var s=u[a];s.apply(this.thisContext,n)}},t.prototype.hasHandlers=function(t){return this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t]},t}(),oi=function(){function t(t,n,e,r){this.els=n;var i=this.originClientRect=t.getBoundingClientRect();e&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}return t.prototype.buildElHorizontals=function(t){for(var n=[],e=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();n.push(o.left-t),e.push(o.right-t)}this.lefts=n,this.rights=e},t.prototype.buildElVerticals=function(t){for(var n=[],e=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();n.push(o.top-t),e.push(o.bottom-t)}this.tops=n,this.bottoms=e},t.prototype.leftToIndex=function(t){var n,e=this.lefts,r=this.rights,i=e.length;for(n=0;n<i;n+=1)if(t>=e[n]&&t<r[n])return n},t.prototype.topToIndex=function(t){var n,e=this.tops,r=this.bottoms,i=e.length;for(n=0;n<i;n+=1)if(t>=e[n]&&t<r[n])return n},t.prototype.getWidth=function(t){return this.rights[t]-this.lefts[t]},t.prototype.getHeight=function(t){return this.bottoms[t]-this.tops[t]},t}(),ai=function(){function t(){}return t.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},t.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},t.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},t.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},t.prototype.canScrollUp=function(){return this.getScrollTop()>0},t.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},t.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},t.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},t}(),ui=function(t){function n(n){var e=t.call(this)||this;return e.el=n,e}return a(n,t),n.prototype.getScrollTop=function(){return this.el.scrollTop},n.prototype.getScrollLeft=function(){return this.el.scrollLeft},n.prototype.setScrollTop=function(t){this.el.scrollTop=t},n.prototype.setScrollLeft=function(t){this.el.scrollLeft=t},n.prototype.getScrollWidth=function(){return this.el.scrollWidth},n.prototype.getScrollHeight=function(){return this.el.scrollHeight},n.prototype.getClientHeight=function(){return this.el.clientHeight},n.prototype.getClientWidth=function(){return this.el.clientWidth},n}(ai),si=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.getScrollTop=function(){return window.pageYOffset},n.prototype.getScrollLeft=function(){return window.pageXOffset},n.prototype.setScrollTop=function(t){window.scroll(window.pageXOffset,t)},n.prototype.setScrollLeft=function(t){window.scroll(t,window.pageYOffset)},n.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},n.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},n.prototype.getClientHeight=function(){return document.documentElement.clientHeight},n.prototype.getClientWidth=function(){return document.documentElement.clientWidth},n}(ai),ci=function(){function t(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}return t.prototype.setIconOverride=function(t){var n,e;if("object"==typeof t&&t){for(e in n=u({},this.iconClasses),t)n[e]=this.applyIconOverridePrefix(t[e]);this.iconClasses=n}else!1===t&&(this.iconClasses={})},t.prototype.applyIconOverridePrefix=function(t){var n=this.iconOverridePrefix;return n&&0!==t.indexOf(n)&&(t=n+t),t},t.prototype.getClass=function(t){return this.classes[t]||""},t.prototype.getIconClass=function(t,n){var e;return(e=n&&this.rtlIconClasses&&this.rtlIconClasses[t]||this.iconClasses[t])?this.baseIconClass+" "+e:""},t.prototype.getCustomButtonIconClass=function(t){var n;return this.iconOverrideCustomButtonOption&&(n=t[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(n):""},t}();ci.prototype.classes={},ci.prototype.iconClasses={},ci.prototype.baseIconClass="",ci.prototype.iconOverridePrefix="";var li=function(){function t(t,n,e,r){var i=this;this.execFunc=t,this.emitter=n,this.scrollTime=e,this.scrollTimeReset=r,this.handleScrollRequest=function(t){i.queuedRequest=u({},i.queuedRequest||{},t),i.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return t.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},t.prototype.update=function(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},t.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},t.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},t}(),fi=Ut({});function di(t,n,e,r,i,o,a,u,s,c,l,f,d){return{dateEnv:i,options:e,pluginHooks:a,emitter:c,dispatch:u,getCurrentData:s,calendarApi:l,viewSpec:t,viewApi:n,dateProfileGenerator:r,theme:o,isRtl:"rtl"===e.direction,addResizeHandler:function(t){c.on("_resize",t)},removeResizeHandler:function(t){c.off("_resize",t)},createScrollResponder:function(t){return new li(t,c,Gn(e.scrollTime),e.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:d}}var hi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.shouldComponentUpdate=function(t,n){return this.debug&&console.log(On(t,this.props),On(n,this.state)),!Vn(this.props,t,this.propEquality)||!Vn(this.state,n,this.stateEquality)},n.addPropsEquality=pi,n.addStateEquality=gi,n.contextType=fi,n}(Qt);hi.prototype.propEquality={},hi.prototype.stateEquality={};var vi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.contextType=fi,n}(hi);function pi(t){var n=Object.create(this.prototype.propEquality);u(n,t),this.prototype.propEquality=n}function gi(t){var n=Object.create(this.prototype.stateEquality);u(n,t),this.prototype.stateEquality=n}function mi(t,n){"function"==typeof t?t(n):t&&(t.current=n)}var bi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.uid=un(),n}return a(n,t),n.prototype.prepareHits=function(){},n.prototype.queryHit=function(){return null},n.prototype.isValidSegDownEl=function(t){return!this.props.eventDrag&&!this.props.eventResize&&!Zt(t,".fc-event-mirror")},n.prototype.isValidDateDownEl=function(t){return!(Zt(t,".fc-event:not(.fc-bg-event)")||Zt(t,".fc-more-link")||Zt(t,"a[data-navlink]")||Zt(t,".fc-popover"))},n}(vi);function yi(t){return{id:un(),deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,contentTypeHandlers:t.contentTypeHandlers||{},listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}var Ai=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n}(ci);function wi(t,n,e,r){if(n[t])return n[t];var i=function(t,n,e,r){var i=e[t],o=r[t],a=function(t){return i&&null!==i[t]?i[t]:o&&null!==o[t]?o[t]:null},s=a("component"),c=a("superType"),l=null;if(c){if(c===t)throw new Error("Can't have a custom view type that references itself");l=wi(c,n,e,r)}return!s&&l&&(s=l.component),s?{type:t,component:s,defaults:u(u({},l?l.defaults:{}),i?i.rawOptions:{}),overrides:u(u({},l?l.overrides:{}),o?o.rawOptions:{})}:null}(t,n,e,r);return i&&(n[t]=i),i}Ai.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ai.prototype.baseIconClass="fc-icon",Ai.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"},Ai.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ai.prototype.iconOverrideOption="buttonIcons",Ai.prototype.iconOverrideCustomButtonOption="icon",Ai.prototype.iconOverridePrefix="fc-icon-";var ki=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.rootElRef=Ht(),n.handleRootEl=function(t){mi(n.rootElRef,t),n.props.elRef&&mi(n.props.elRef,t)},n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props,e=n.hookProps;return Ot(Di,{hookProps:e,didMount:n.didMount,willUnmount:n.willUnmount,elRef:this.handleRootEl},(function(r){return Ot(xi,{hookProps:e,content:n.content,defaultContent:n.defaultContent,backupElRef:t.rootElRef},(function(t,i){return n.children(r,Si(n.classNames,e),t,i)}))}))},n}(vi),_i=Ut(0);function xi(t){return Ot(_i.Consumer,null,(function(n){return Ot(Ei,u({renderId:n},t))}))}var Ei=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.innerElRef=Ht(),n}return a(n,t),n.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},n.prototype.componentDidMount=function(){this.updateCustomContent()},n.prototype.componentDidUpdate=function(){this.updateCustomContent()},n.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},n.prototype.renderInnerContent=function(){var t=this.customContentInfo,n=this.getInnerContent(),e=this.getContentMeta(n);return t&&t.contentKey===e.contentKey?t&&(t.contentVal=n[e.contentKey]):(t&&(t.destroy&&t.destroy(),t=this.customContentInfo=null),e.contentKey&&(t=this.customContentInfo=u({contentKey:e.contentKey,contentVal:n[e.contentKey]},e.buildLifecycleFuncs()))),t?[]:n},n.prototype.getInnerContent=function(){var t=this.props,n=Ci(t.content,t.hookProps);return void 0===n&&(n=Ci(t.defaultContent,t.hookProps)),null==n?null:n},n.prototype.getContentMeta=function(t){var n=this.context.pluginHooks.contentTypeHandlers,e="",r=null;if(t)for(var i in n)if(void 0!==t[i]){e=i,r=n[i];break}return{contentKey:e,buildLifecycleFuncs:r}},n.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},n}(vi),Di=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleRootEl=function(t){n.rootEl=t,n.props.elRef&&mi(n.props.elRef,t)},n}return a(n,t),n.prototype.render=function(){return this.props.children(this.handleRootEl)},n.prototype.componentDidMount=function(){var t=this.props.didMount;t&&t(u(u({},this.props.hookProps),{el:this.rootEl}))},n.prototype.componentWillUnmount=function(){var t=this.props.willUnmount;t&&t(u(u({},this.props.hookProps),{el:this.rootEl}))},n}(vi);function Ni(){var t,n,e=[];return function(r,i){return n&&Qn(n,i)&&r===t||(t=r,n=i,e=Si(r,i)),e}}function Si(t,n){return"function"==typeof t&&(t=t(n)),Re(t)}function Ci(t,n){return"function"==typeof t?t(n,Ot):t}var Ti=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.normalizeClassNames=Ni(),n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r={view:n.viewApi},i=this.normalizeClassNames(e.viewClassNames,r);return Ot(Di,{hookProps:r,didMount:e.viewDidMount,willUnmount:e.viewWillUnmount,elRef:t.elRef},(function(n){return t.children(n,["fc-"+t.viewSpec.type+"-view","fc-view"].concat(i))}))},n}(vi);function Mi(t){return zn(t,Ri)}function Ri(t){var n,e="function"==typeof t?{component:t}:t,r=e.component;return e.content&&(n=e,r=function(t){return Ot(fi.Consumer,null,(function(e){return Ot(Ti,{viewSpec:e.viewSpec},(function(r,i){var o=u(u({},t),{nextDayThreshold:e.options.nextDayThreshold});return Ot(ki,{hookProps:o,classNames:n.classNames,content:n.content,didMount:n.didMount,willUnmount:n.willUnmount,elRef:r},(function(t,n,e,r){return Ot("div",{className:i.concat(n).join(" "),ref:t},r)}))}))}))}),{superType:e.type,component:r,rawOptions:e}}function Bi(t,n,e,r){var i=Mi(t),o=Mi(n.views);return zn(function(t,n){var e,r={};for(e in t)wi(e,r,t,n);for(e in n)wi(e,r,t,n);return r}(i,o),(function(t){return function(t,n,e,r,i){var o=t.overrides.duration||t.defaults.duration||r.duration||e.duration,a=null,s="",c="",l={};if(o&&(a=function(t){var n=JSON.stringify(t),e=zi[n];return void 0===e&&(e=Gn(t),zi[n]=e),e}(o))){var f=Jn(a);s=f.unit,1===f.value&&(c=s,l=n[s]?n[s].rawOptions:{})}var d=function(n){var e=n.buttonText||{},r=t.defaults.buttonTextKey;return null!=r&&null!=e[r]?e[r]:null!=e[t.type]?e[t.type]:null!=e[c]?e[c]:null};return{type:t.type,component:t.component,duration:a,durationUnit:s,singleUnit:c,optionDefaults:t.defaults,optionOverrides:u(u({},l),t.overrides),buttonTextOverride:d(r)||d(e)||t.overrides.buttonText,buttonTextDefault:d(i)||t.defaults.buttonText||d(be)||t.type}}(t,o,n,e,r)}))}var zi={},Ii=function(){function t(t){this.props=t,this.nowDate=Nr(t.nowInput,t.dateEnv),this.initHiddenDays()}return t.prototype.buildPrev=function(t,n,e){var r=this.props.dateEnv,i=r.subtract(r.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(i,-1,e)},t.prototype.buildNext=function(t,n,e){var r=this.props.dateEnv,i=r.add(r.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(i,1,e)},t.prototype.build=function(t,n,e){void 0===e&&(e=!0);var r,i,o,a,u,s,c,l,f=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),e&&(c=t,t=null!=(l=r).start&&c<l.start?l.start:null!=l.end&&c>=l.end?new Date(l.end.valueOf()-1):c),i=this.buildCurrentRangeInfo(t,n),o=/^(year|month|week|day)$/.test(i.unit),a=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),u=a=this.trimHiddenDays(a),f.showNonCurrentDates||(u=Je(u,i.range)),u=Je(u=this.adjustActiveRange(u),r),s=Xe(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:u,renderRange:a,slotMinTime:f.slotMinTime,slotMaxTime:f.slotMaxTime,isValid:s,dateIncrement:this.buildDateIncrement(i.duration)}},t.prototype.buildValidRange=function(){var t=this.props.validRangeInput,n="function"==typeof t?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(n)||{start:null,end:null}},t.prototype.buildCurrentRangeInfo=function(t,n){var e,r=this.props,i=null,o=null,a=null;return r.duration?a=this.buildRangeFromDuration(t,n,i=r.duration,o=r.durationUnit):(e=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,n,e)):(a=this.buildCustomVisibleRange(t))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(o=Jn(i=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:a}},t.prototype.getFallbackDuration=function(){return Gn({day:1})},t.prototype.adjustActiveRange=function(t){var n=this.props,e=n.dateEnv,r=n.slotMinTime,i=n.slotMaxTime,o=t.start,a=t.end;return n.usesMinMaxTime&&(Yn(r)<0&&(o=wn(o),o=e.add(o,r)),Yn(i)>1&&(a=mn(a=wn(a),-1),a=e.add(a,i))),{start:o,end:a}},t.prototype.buildRangeFromDuration=function(t,n,e,r){var i,o,a,u=this.props,s=u.dateEnv,c=u.dateAlignment;if(!c){var l=this.props.dateIncrement;c=l&&Zn(l)<Zn(e)?Jn(l).unit:r}function f(){i=s.startOf(t,c),o=s.add(i,e),a={start:i,end:o}}return Yn(e)<=1&&this.isHiddenDay(i)&&(i=wn(i=this.skipHiddenDays(i,n))),f(),this.trimHiddenDays(a)||(t=this.skipHiddenDays(t,n),f()),a},t.prototype.buildRangeFromDayCount=function(t,n,e){var r,i=this.props,o=i.dateAlignment,a=0,u=t;o&&(u=i.dateEnv.startOf(u,o)),u=wn(u),r=u=this.skipHiddenDays(u,n);do{r=mn(r,1),this.isHiddenDay(r)||(a+=1)}while(a<e);return{start:u,end:r}},t.prototype.buildCustomVisibleRange=function(t){var n=this.props,e=n.visibleRangeInput,r="function"==typeof e?e.call(n.calendarApi,n.dateEnv.toDate(t)):e,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null},t.prototype.buildRenderRange=function(t){return t},t.prototype.buildDateIncrement=function(t){var n;return this.props.dateIncrement||((n=this.props.dateAlignment)?Gn(1,n):t||Gn({days:1}))},t.prototype.refineRange=function(t){if(t){var n=(r=this.props.dateEnv,i=null,o=null,(e=t).start&&(i=r.createMarker(e.start)),e.end&&(o=r.createMarker(e.end)),i||o?i&&o&&o<i?null:{start:i,end:o}:null);return n&&(n=We(n)),n}var e,r,i,o;return null},t.prototype.initHiddenDays=function(){var t,n=this.props.hiddenDays||[],e=[],r=0;for(!1===this.props.weekends&&n.push(0,6),t=0;t<7;t+=1)(e[t]=-1!==n.indexOf(t))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=e},t.prototype.trimHiddenDays=function(t){var n=t.start,e=t.end;return n&&(n=this.skipHiddenDays(n)),e&&(e=this.skipHiddenDays(e,-1,!0)),null==n||null==e||n<e?{start:n,end:e}:null},t.prototype.isHiddenDay=function(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]},t.prototype.skipHiddenDays=function(t,n,e){for(void 0===n&&(n=1),void 0===e&&(e=!1);this.isHiddenDayHash[(t.getUTCDay()+(e?n:0)+7)%7];)t=mn(t,n);return t},t}();function Pi(t){for(var n in t)if(t[n].isFetching)return!0;return!1}function Qi(t,n,e,r){for(var i={},o=0,a=n;o<a.length;o++){var s=a[o];i[s.sourceId]=s}return e&&(i=Oi(i,e,r)),u(u({},t),i)}function Oi(t,n,e){return Vi(t,Bn(t,(function(t){return function(t,n,e){return Ui(t,e)?!e.options.lazyFetching||!t.fetchRange||t.isFetching||n.start<t.fetchRange.start||n.end>t.fetchRange.end:!t.latestFetchId}(t,n,e)})),n,!1,e)}function Vi(t,n,e,r,i){var o={};for(var a in t){var u=t[a];o[a]=n[a]?Hi(u,e,r,i):u}return o}function Hi(t,n,e,r){var i=r.options,o=r.calendarApi,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],s=un();return a.fetch({eventSource:t,range:n,isRefetch:e,context:r},(function(e){var a=e.rawEvents;i.eventSourceSuccess&&(a=i.eventSourceSuccess.call(o,a,e.xhr)||a),t.success&&(a=t.success.call(o,a,e.xhr)||a),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:n,rawEvents:a})}),(function(e){console.warn(e.message,e),i.eventSourceFailure&&i.eventSourceFailure.call(o,e),t.failure&&t.failure(e),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:n,error:e})})),u(u({},t),{isFetching:!0,latestFetchId:s})}function ji(t,n){return Bn(t,(function(t){return Ui(t,n)}))}function Ui(t,n){return!n.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Fi(t,n){var e;if(n){e=[];for(var r=0,i=t;r<i.length;r++){var o=i[r],a=n(o);a?e.push(a):null==a&&e.push(o)}}else e=t;return e}function Gi(t,n){return Me(t,(function(t){return t.sourceId!==n}))}function Li(t,n){switch(n.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return n.selection;default:return t}}function Wi(t,n){switch(n.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return n.eventInstanceId;default:return t}}function Yi(t,n){var e;switch(n.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(e=n.state).affectedEvents,mutatedEvents:e.mutatedEvents,isEvent:e.isEvent};default:return t}}function Zi(t,n){var e;switch(n.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(e=n.state).affectedEvents,mutatedEvents:e.mutatedEvents,isEvent:e.isEvent};default:return t}}function qi(t,n,e,r,i){var o=[];return{headerToolbar:t.headerToolbar?Ji(t.headerToolbar,t,n,e,r,i,o):null,footerToolbar:t.footerToolbar?Ji(t.footerToolbar,t,n,e,r,i,o):null,viewsWithButtons:o}}function Ji(t,n,e,r,i,o,a){return zn(t,(function(t){return function(t,n,e,r,i,o,a){var u="rtl"===n.direction,s=n.customButtons||{},c=e.buttonText||{},l=n.buttonText||{};return(t?t.split(" "):[]).map((function(t){return t.split(",").map((function(t){return"title"===t?{buttonName:t}:((n=s[t])?(f=function(t){n.click&&n.click.call(t.target,t,t.target)},(d=r.getCustomButtonIconClass(n))||(d=r.getIconClass(t,u))||(h=n.text)):(e=i[t])?(a.push(t),f=function(){o.changeView(t)},(h=e.buttonTextOverride)||(d=r.getIconClass(t,u))||(h=e.buttonTextDefault)):o[t]&&(f=function(){o[t]()},(h=c[t])||(d=r.getIconClass(t,u))||(h=l[t])),{buttonName:t,buttonClick:f,buttonIcon:d,buttonText:h});var n,e,f,d,h}))}))}(t,n,e,r,i,o,a)}))}function Xi(t){var n=[];for(var e in t)n.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n.join("&")}function $i(t,n){for(var e=Pn(n.getCurrentData().eventSources),r=[],i=0,o=t;i<o.length;i++){for(var a=o[i],u=!1,s=0;s<e.length;s+=1)if(e[s]._raw===a){e.splice(s,1),u=!0;break}u||r.push(a)}for(var c=0,l=e;c<l.length;c++)n.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:l[c].sourceId});for(var f=0,d=r;f<d.length;f++)n.calendarApi.addEventSource(d[f])}var Ki=[yi({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(t){return Array.isArray(t.events)?t.events:null},fetch:function(t,n){n({rawEvents:t.eventSource.meta})}}]}),yi({eventSourceDefs:[{parseMeta:function(t){return"function"==typeof t.events?t.events:null},fetch:function(t,n,e){!function(t,n,e){var r=!1,i=function(){r||(r=!0,n.apply(this,arguments))},o=function(){r||(r=!0,e&&e.apply(this,arguments))},a=t(i,o);a&&"function"==typeof a.then&&a.then(i,o)}(t.eventSource.meta.bind(null,vr(t.range,t.context.dateEnv)),(function(t){n({rawEvents:t})}),e)}}]}),yi({eventSourceRefiners:{method:String,extraParams:De,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(t){return!t.url||"json"!==t.format&&t.format?null:{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}},fetch:function(t,n,e){var r=t.eventSource.meta,i=function(t,n,e){var r,i,o,a,s=e.dateEnv,c=e.options,l={};return null==(r=t.startParam)&&(r=c.startParam),null==(i=t.endParam)&&(i=c.endParam),null==(o=t.timeZoneParam)&&(o=c.timeZoneParam),a="function"==typeof t.extraParams?t.extraParams():t.extraParams||{},u(l,a),l[r]=s.formatIso(n.start),l[i]=s.formatIso(n.end),"local"!==s.timeZone&&(l[o]=s.timeZone),l}(r,t.range,t.context);!function(t,n,e,r,i){var o=null;"GET"===(t=t.toUpperCase())?n=function(t,n){return t+(-1===t.indexOf("?")?"?":"&")+Xi(n)}(n,e):o=Xi(e);var a=new XMLHttpRequest;a.open(t,n,!0),"GET"!==t&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var t=!1,n=void 0;try{n=JSON.parse(a.responseText),t=!0}catch(t){}t?r(n,a):i("Failure parsing JSON",a)}else i("Request failed",a)},a.onerror=function(){i("Request failed",a)},a.send(o)}(r.method,r.url,i,(function(t,e){n({rawEvents:t,xhr:e})}),(function(t,n){e({message:t,xhr:n})}))}}]}),yi({recurringTypes:[{parse:function(t,n){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){var e={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?n.createMarker(t.startRecur):null,endRecur:t.endRecur?n.createMarker(t.endRecur):null},r=void 0;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r={years:(i=t.endTime).years-(o=t.startTime).years,months:i.months-o.months,days:i.days-o.days,milliseconds:i.milliseconds-o.milliseconds}),{allDayGuess:Boolean(!t.startTime&&!t.endTime),duration:r,typeData:e}}var i,o;return null},expand:function(t,n,e){var r=Je(n,{start:t.startRecur,end:t.endRecur});return r?function(t,n,e,r){for(var i=t?In(t):null,o=wn(e.start),a=e.end,u=[];o<a;){var s=void 0;i&&!i[o.getUTCDay()]||(s=n?r.add(o,n):o,u.push(s)),o=mn(o,1)}return u}(t.daysOfWeek,t.startTime,r,e):[]}}],eventRefiners:{daysOfWeek:De,startTime:Gn,endTime:Gn,duration:Gn,startRecur:De,endRecur:De}}),yi({optionChangeHandlers:{events:function(t,n){$i([t],n)},eventSources:$i}}),yi({isLoadingFuncs:[function(t){return Pi(t.eventSources)}],contentTypeHandlers:{html:function(){return{render:to}},domNodes:function(){return{render:no}}},propSetHandlers:{dateProfile:function(t,n){n.emitter.trigger("datesSet",u(u({},vr(t.activeRange,n.dateEnv)),{view:n.viewApi}))},eventStore:function(t,n){var e=n.emitter;e.hasHandlers("eventsSet")&&e.trigger("eventsSet",Mr(t,n))}}})];function to(t,n){t.innerHTML=n}function no(t,n){var e=Array.prototype.slice.call(t.childNodes),r=Array.prototype.slice.call(n);if(!te(e,r)){for(var i=0,o=r;i<o.length;i++)t.appendChild(o[i]);e.forEach(Yt)}}var eo=function(){function t(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return t.prototype.request=function(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==t?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))},t.prototype.pause=function(t){void 0===t&&(t="");var n=this.pauseDepths;n[t]=(n[t]||0)+1,this.clearTimeout()},t.prototype.resume=function(t,n){void 0===t&&(t="");var e=this.pauseDepths;t in e&&(n?delete e[t]:(e[t]-=1,e[t]<=0&&delete e[t]),this.tryDrain())},t.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},t.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},t.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},t.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},t.prototype.drained=function(){this.drainedOption&&this.drainedOption()},t}(),ro=function(){function t(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new eo(this.drain.bind(this))}return t.prototype.request=function(t,n){this.queue.push(t),this.delayedRunner.request(n)},t.prototype.pause=function(t){this.delayedRunner.pause(t)},t.prototype.resume=function(t,n){this.delayedRunner.resume(t,n)},t.prototype.drain=function(){for(var t=this.queue;t.length;){for(var n=[],e=void 0;e=t.shift();)this.runTask(e),n.push(e);this.drained(n)}},t.prototype.runTask=function(t){this.runTaskOption&&this.runTaskOption(t)},t.prototype.drained=function(t){this.drainedOption&&this.drainedOption(t)},t}();function io(t,n,e){var r;return r=/^(year|month)$/.test(t.currentRangeUnit)?t.currentRange:t.activeRange,e.formatRange(r.start,r.end,ge(n.titleFormat||function(t){var n=t.currentRangeUnit;if("year"===n)return{year:"numeric"};if("month"===n)return{year:"numeric",month:"long"};var e=An(t.currentRange.start,t.currentRange.end);return null!==e&&e>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:n.titleRangeSeparator})}var oo=function(){function t(t){var n,e,r,i=this;this.computeOptionsData=ne(this._computeOptionsData),this.computeCurrentViewData=ne(this._computeCurrentViewData),this.organizeRawLocales=ne(Or),this.buildLocale=ne(Vr),this.buildPluginHooks=(e=[],r=[],function(t,i){return n&&te(t,e)&&te(i,r)||(n=function(t,n){var e={},r={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,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(t){for(var n=0,o=t;n<o.length;n++){var a=o[n];e[a.id]||(e[a.id]=!0,i(a.deps),r={reducers:(s=r).reducers.concat((c=a).reducers),isLoadingFuncs:s.isLoadingFuncs.concat(c.isLoadingFuncs),contextInit:s.contextInit.concat(c.contextInit),eventRefiners:u(u({},s.eventRefiners),c.eventRefiners),eventDefMemberAdders:s.eventDefMemberAdders.concat(c.eventDefMemberAdders),eventSourceRefiners:u(u({},s.eventSourceRefiners),c.eventSourceRefiners),isDraggableTransformers:s.isDraggableTransformers.concat(c.isDraggableTransformers),eventDragMutationMassagers:s.eventDragMutationMassagers.concat(c.eventDragMutationMassagers),eventDefMutationAppliers:s.eventDefMutationAppliers.concat(c.eventDefMutationAppliers),dateSelectionTransformers:s.dateSelectionTransformers.concat(c.dateSelectionTransformers),datePointTransforms:s.datePointTransforms.concat(c.datePointTransforms),dateSpanTransforms:s.dateSpanTransforms.concat(c.dateSpanTransforms),views:u(u({},s.views),c.views),viewPropsTransformers:s.viewPropsTransformers.concat(c.viewPropsTransformers),isPropsValid:c.isPropsValid||s.isPropsValid,externalDefTransforms:s.externalDefTransforms.concat(c.externalDefTransforms),viewContainerAppends:s.viewContainerAppends.concat(c.viewContainerAppends),eventDropTransformers:s.eventDropTransformers.concat(c.eventDropTransformers),calendarInteractions:s.calendarInteractions.concat(c.calendarInteractions),componentInteractions:s.componentInteractions.concat(c.componentInteractions),themeClasses:u(u({},s.themeClasses),c.themeClasses),eventSourceDefs:s.eventSourceDefs.concat(c.eventSourceDefs),cmdFormatter:c.cmdFormatter||s.cmdFormatter,recurringTypes:s.recurringTypes.concat(c.recurringTypes),namedTimeZonedImpl:c.namedTimeZonedImpl||s.namedTimeZonedImpl,initialView:s.initialView||c.initialView,elementDraggingImpl:s.elementDraggingImpl||c.elementDraggingImpl,optionChangeHandlers:u(u({},s.optionChangeHandlers),c.optionChangeHandlers),scrollGridImpl:c.scrollGridImpl||s.scrollGridImpl,contentTypeHandlers:u(u({},s.contentTypeHandlers),c.contentTypeHandlers),listenerRefiners:u(u({},s.listenerRefiners),c.listenerRefiners),optionRefiners:u(u({},s.optionRefiners),c.optionRefiners),propSetHandlers:u(u({},s.propSetHandlers),c.propSetHandlers)})}var s,c}return t&&i(t),i(n),r}(t,i)),e=t,r=i,n}),this.buildDateEnv=ne(ao),this.buildTheme=ne(uo),this.parseToolbars=ne(qi),this.buildViewSpecs=ne(Bi),this.buildDateProfileGenerator=ee(so),this.buildViewApi=ne(co),this.buildViewUiProps=ee(ho),this.buildEventUiBySource=ne(lo,Qn),this.buildEventUiBases=ne(fo),this.parseContextBusinessHours=ee(po),this.buildTitle=ne(io),this.emitter=new ii,this.actionRunner=new ro(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return i.data},this.dispatch=function(t){i.actionRunner.request(t)},this.props=t,this.actionRunner.pause();var o={},a=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),s=a.calendarOptions.initialView||a.pluginHooks.initialView,c=this.computeCurrentViewData(s,a,t.optionOverrides,o);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(c.options);var l,f,d,h=(f=a.dateEnv,null!=(d=(l=a.calendarOptions).initialDate)?f.createMarker(d):Nr(l.now,f)),v=c.dateProfileGenerator.build(h);Ke(v.activeRange,h)||(h=v.currentRange.start);for(var p={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},g=0,m=a.pluginHooks.contextInit;g<m.length;g++)(0,m[g])(p);for(var b=function(t,n,e){var r=n?n.activeRange:null;return Qi({},function(t,n){var e=Dr(n),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(var o=0,a=r;o<a.length;o++){var u=Er(a[o],n,e);u&&i.push(u)}return i}(t,e),r,e)}(a.calendarOptions,v,p),y={dynamicOptionOverrides:o,currentViewType:s,currentDate:h,dateProfile:v,businessHours:this.parseContextBusinessHours(p),eventSources:b,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(p).selectionConfig},A=u(u({},p),y),w=0,k=a.pluginHooks.reducers;w<k.length;w++)u(y,(0,k[w])(null,null,A));vo(y,p)&&this.emitter.trigger("loading",!0),this.state=y,this.updateData(),this.actionRunner.resume()}return t.prototype.resetOptions=function(t,n){var e=this.props;e.optionOverrides=n?u(u({},e.optionOverrides),t):t,this.actionRunner.request({type:"NOTHING"})},t.prototype._handleAction=function(t){var n=this,e=n.props,r=n.state,i=n.emitter,o=function(t,n){var e;switch(n.type){case"SET_OPTION":return u(u({},t),((e={})[n.optionName]=n.rawOptionValue,e));default:return t}}(r.dynamicOptionOverrides,t),a=this.computeOptionsData(e.optionOverrides,o,e.calendarApi),s=function(t,n){switch(n.type){case"CHANGE_VIEW_TYPE":t=n.viewType}return t}(r.currentViewType,t),c=this.computeCurrentViewData(s,a,e.optionOverrides,o);e.calendarApi.currentDataManager=this,i.setThisContext(e.calendarApi),i.setOptions(c.options);var l={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},f=r.currentDate,d=r.dateProfile;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(d=c.dateProfileGenerator.build(f)),d=function(t,n,e,r){var i;switch(n.type){case"CHANGE_VIEW_TYPE":return r.build(n.dateMarker||e);case"CHANGE_DATE":return r.build(n.dateMarker);case"PREV":if((i=r.buildPrev(t,e)).isValid)return i;break;case"NEXT":if((i=r.buildNext(t,e)).isValid)return i}return t}(d,t,f=function(t,n){switch(n.type){case"CHANGE_DATE":return n.dateMarker;default:return t}}(f,t),c.dateProfileGenerator),"PREV"!==t.type&&"NEXT"!==t.type&&Ke(d.currentRange,f)||(f=d.currentRange.start);for(var h=function(t,n,e,r){var i,o=e?e.activeRange:null;switch(n.type){case"ADD_EVENT_SOURCES":return Qi(t,n.sources,o,r);case"REMOVE_EVENT_SOURCE":return i=n.sourceId,Bn(t,(function(t){return t.sourceId!==i}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return e?Oi(t,o,r):t;case"FETCH_EVENT_SOURCES":return Vi(t,n.sourceIds?In(n.sourceIds):ji(t,r),o,n.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(t,n,e,r){var i,o=t[n];return o&&e===o.latestFetchId?u(u({},t),((i={})[n]=u(u({},o),{isFetching:!1,fetchRange:r}),i)):t}(t,n.sourceId,n.fetchId,n.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}(r.eventSources,t,d,l),v=function(t,n,e,r,i){switch(n.type){case"RECEIVE_EVENTS":return function(t,n,e,r,i,o){if(n&&e===n.latestFetchId){var a=Ne(function(t,n,e){var r=e.options.eventDataTransform,i=n?n.eventDataTransform:null;return i&&(t=Fi(t,i)),r&&(t=Fi(t,r)),t}(i,n,o),n,o);return r&&(a=Hn(a,r,o)),Te(Gi(t,n.sourceId),a)}return t}(t,e[n.sourceId],n.fetchId,n.fetchRange,n.rawEvents,i);case"ADD_EVENTS":return function(t,n,e,r){return e&&(n=Hn(n,e,r)),Te(t,n)}(t,n.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return n.eventStore;case"MERGE_EVENTS":return Te(t,n.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Hn(t,r.activeRange,i):t;case"REMOVE_EVENTS":return function(t,n){var e=t.defs,r=t.instances,i={},o={};for(var a in e)n.defs[a]||(i[a]=e[a]);for(var u in r)!n.instances[u]&&i[r[u].defId]&&(o[u]=r[u]);return{defs:i,instances:o}}(t,n.eventStore);case"REMOVE_EVENT_SOURCE":return Gi(t,n.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Me(t,(function(t){return!t.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return t}}(r.eventStore,t,h,d,l),p=Pi(h)&&!c.options.progressiveEventRendering&&r.renderableEventStore||v,g=this.buildViewUiProps(l),m=g.eventUiSingleBase,b=g.selectionConfig,y=this.buildEventUiBySource(h),A={dynamicOptionOverrides:o,currentViewType:s,currentDate:f,dateProfile:d,eventSources:h,eventStore:v,renderableEventStore:p,selectionConfig:b,eventUiBases:this.buildEventUiBases(p.defs,m,y),businessHours:this.parseContextBusinessHours(l),dateSelection:Li(r.dateSelection,t),eventSelection:Wi(r.eventSelection,t),eventDrag:Yi(r.eventDrag,t),eventResize:Zi(r.eventResize,t)},w=u(u({},l),A),k=0,_=a.pluginHooks.reducers;k<_.length;k++)u(A,(0,_[k])(r,t,w));var x=vo(r,l),E=vo(A,l);!x&&E?i.trigger("loading",!0):x&&!E&&i.trigger("loading",!1),this.state=A,e.onAction&&e.onAction(t)},t.prototype.updateData=function(){var t,n,e,r,i,o,a,s,c,l=this.props,f=this.state,d=this.data,h=this.computeOptionsData(l.optionOverrides,f.dynamicOptionOverrides,l.calendarApi),v=this.computeCurrentViewData(f.currentViewType,h,l.optionOverrides,f.dynamicOptionOverrides),p=this.data=u(u(u({viewTitle:this.buildTitle(f.dateProfile,v.options,h.dateEnv),calendarApi:l.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},h),v),f),g=h.pluginHooks.optionChangeHandlers,m=d&&d.calendarOptions,b=h.calendarOptions;if(m&&m!==b)for(var y in m.timeZone!==b.timeZone&&(f.eventSources=p.eventSources=(c=(a=f.dateProfile)?a.activeRange:null,Vi(o=p.eventSources,ji(o,s=p),c,!0,s)),f.eventStore=p.eventStore=(n=d.dateEnv,e=p.dateEnv,r=(t=p.eventStore).defs,i=zn(t.instances,(function(t){var i=r[t.defId];return i.allDay||i.recurringDef?t:u(u({},t),{range:{start:e.createMarker(n.toDate(t.range.start,t.forcedStartTzo)),end:e.createMarker(n.toDate(t.range.end,t.forcedEndTzo))},forcedStartTzo:e.canComputeOffset?null:t.forcedStartTzo,forcedEndTzo:e.canComputeOffset?null:t.forcedEndTzo})})),{defs:r,instances:i})),g)m[y]!==b[y]&&g[y](b[y],p);l.onData&&l.onData(p)},t.prototype._computeOptionsData=function(t,n,e){var r=this.processRawCalendarOptions(t,n),i=r.refinedOptions,o=r.pluginHooks,a=r.localeDefaults,u=r.availableLocaleData;go(r.extra);var s=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,u,i.defaultRangeSeparator),c=this.buildViewSpecs(o.views,t,n,a),l=this.buildTheme(i,o);return{calendarOptions:i,pluginHooks:o,dateEnv:s,viewSpecs:c,theme:l,toolbarConfig:this.parseToolbars(i,t,l,c,e),localeDefaults:a,availableRawLocales:u.map}},t.prototype.processRawCalendarOptions=function(t,n){var e=xe([be,t,n]),r=e.locale,i=this.organizeRawLocales(e.locales),o=this.buildLocale(r||i.defaultCode,i.map).options,a=this.buildPluginHooks(t.plugins||[],Ki),s=this.currentCalendarOptionsRefiners=u(u(u(u(u({},me),ye),Ae),a.listenerRefiners),a.optionRefiners),c={},l=xe([be,o,t,n]),f={},d=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,v=!1;for(var p in l)"plugins"!==p&&(l[p]===d[p]||we[p]&&p in d&&we[p](d[p],l[p])?f[p]=h[p]:s[p]?(f[p]=s[p](l[p]),v=!0):c[p]=d[p]);return v&&(this.currentCalendarOptionsInput=l,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:i,localeDefaults:o,extra:c}},t.prototype._computeCurrentViewData=function(t,n,e,r){var i=n.viewSpecs[t];if(!i)throw new Error('viewType "'+t+"\" is not available. Please make sure you've loaded all neccessary plugins");var o=this.processRawViewOptions(i,n.pluginHooks,n.localeDefaults,e,r),a=o.refinedOptions;return go(o.extra),{viewSpec:i,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,monthMode:a.monthMode,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(t,this.getCurrentData,n.dateEnv)}},t.prototype.processRawViewOptions=function(t,n,e,r,i){var o=xe([be,t.optionDefaults,e,r,t.optionOverrides,i]),a=u(u(u(u(u(u({},me),ye),Ae),_e),n.listenerRefiners),n.optionRefiners),s={},c=this.currentViewOptionsInput,l=this.currentViewOptionsRefined,f=!1,d={};for(var h in o)o[h]===c[h]?s[h]=l[h]:(o[h]===this.currentCalendarOptionsInput[h]?h in this.currentCalendarOptionsRefined&&(s[h]=this.currentCalendarOptionsRefined[h]):a[h]?s[h]=a[h](o[h]):d[h]=o[h],f=!0);return f&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}},t}();function ao(t,n,e,r,i,o,a,u){var s=Vr(n||a.defaultCode,a.map);return new Ir({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:s,weekNumberCalculation:e,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:u})}function uo(t,n){return new(n.themeClasses[t.themeSystem]||Ai)(t)}function so(t){return new(t.dateProfileGeneratorClass||Ii)(t)}function co(t,n,e){return new _r(t,n,e)}function lo(t){return zn(t,(function(t){return t.ui}))}function fo(t,n,e){var r={"":n};for(var i in t){var o=t[i];o.sourceId&&e[o.sourceId]&&(r[i]=e[o.sourceId])}return r}function ho(t){var n=t.options;return{eventUiSingleBase:Ie({display:n.eventDisplay,editable:n.editable,startEditable:n.eventStartEditable,durationEditable:n.eventDurationEditable,constraint:n.eventConstraint,overlap:"boolean"==typeof n.eventOverlap?n.eventOverlap:void 0,allow:n.eventAllow,backgroundColor:n.eventBackgroundColor,borderColor:n.eventBorderColor,textColor:n.eventTextColor,color:n.eventColor},t),selectionConfig:Ie({constraint:n.selectConstraint,overlap:"boolean"==typeof n.selectOverlap?n.selectOverlap:void 0,allow:n.selectAllow},t)}}function vo(t,n){for(var e=0,r=n.pluginHooks.isLoadingFuncs;e<r.length;e++)if((0,r[e])(t))return!0;return!1}function po(t){return n=t,Ne(function(t){return(!0===t?[{}]:Array.isArray(t)?t.filter((function(t){return t.daysOfWeek})):"object"==typeof t&&t?[t]:[]).map((function(t){return u(u({},Ur),t)}))}(t.options.businessHours),null,n);var n}function go(t,n){for(var e in t)console.warn("Unknown option '"+e+"'"+(n?" for view '"+n+"'":""))}!function(t){function n(n){var e=t.call(this,n)||this;return e.handleData=function(t){e.dataManager?e.setState(t):e.state=t},e.dataManager=new oo({optionOverrides:n.optionOverrides,calendarApi:n.calendarApi,onData:e.handleData}),e}a(n,t),n.prototype.render=function(){return this.props.children(this.state)},n.prototype.componentDidUpdate=function(t){var n=this.props.optionOverrides;n!==t.optionOverrides&&this.dataManager.resetOptions(n)}}(Qt);var mo=function(){function t(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return t.prototype.addSegs=function(t){for(var n=[],e=0,r=t;e<r.length;e++)this.insertEntry(r[e],n);return n},t.prototype.insertEntry=function(t,n){var e=this.findInsertion(t);return this.isInsertionValid(e,t)?(this.insertEntryAt(t,e),1):this.handleInvalidInsertion(e,t,n)},t.prototype.isInsertionValid=function(t,n){return(-1===this.maxCoord||t.levelCoord+n.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||t.stackCnt<this.maxStackCnt)},t.prototype.handleInvalidInsertion=function(t,n,e){return this.allowReslicing&&t.touchingEntry?this.splitEntry(n,t.touchingEntry,e):(e.push(n),0)},t.prototype.splitEntry=function(t,n,e){var r=0,i=[],o=t.span,a=n.span;return o.start<a.start&&(r+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:o.start,end:a.start}},i)),o.end>a.end&&(r+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:a.end,end:o.end}},i)),r?(e.push.apply(e,s([{index:t.index,thickness:t.thickness,span:Ao(a,o)}],i)),r):(e.push(t),0)},t.prototype.insertEntryAt=function(t,n){var e=this.entriesByLevel;-1===n.lateral?(wo(this.levelCoords,n.level,n.levelCoord),wo(e,n.level,[t])):wo(e[n.level],n.lateral,t),this.stackCnts[yo(t)]=n.stackCnt},t.prototype.findInsertion=function(t){for(var n=this,e=n.levelCoords,r=n.entriesByLevel,i=n.strictOrder,o=n.stackCnts,a=e.length,u=0,s=-1,c=-1,l=null,f=0,d=0;d<a;d+=1){var h=e[d];if(!i&&h>=u+t.thickness)break;for(var v=r[d],p=void 0,g=ko(v,t.span.start,bo),m=g[0]+g[1];(p=v[m])&&p.span.start<t.span.end;){var b=h+p.thickness;b>u&&(u=b,l=p,s=d,c=m),b===u&&(f=Math.max(f,o[yo(p)]+1)),m+=1}}var y=0;if(l)for(y=s+1;y<a&&e[y]<u;)y+=1;var A=-1;return y<a&&e[y]===u&&(A=ko(r[y],t.span.end,bo)[0]),{touchingLevel:s,touchingLateral:c,touchingEntry:l,stackCnt:f,levelCoord:u,level:y,lateral:A}},t.prototype.toRects=function(){for(var t=this.entriesByLevel,n=this.levelCoords,e=t.length,r=[],i=0;i<e;i+=1)for(var o=n[i],a=0,s=t[i];a<s.length;a++)r.push(u(u({},s[a]),{levelCoord:o}));return r},t}();function bo(t){return t.span.end}function yo(t){return t.index+":"+t.span.start}function Ao(t,n){var e=Math.max(t.start,n.start),r=Math.min(t.end,n.end);return e<r?{start:e,end:r}:null}function wo(t,n,e){t.splice(n,0,e)}function ko(t,n,e){var r=0,i=t.length;if(!i||n<e(t[r]))return[0,0];if(n>e(t[i-1]))return[i,0];for(;r<i;){var o=Math.floor(r+(i-r)/2),a=e(t[o]);if(n<a)i=o;else{if(!(n>a))return[o,1];r=o+1}}return[r,0]}var _o=function(){function t(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}return t.prototype.destroy=function(){},t}();function xo(t,n){return{component:t,el:n.el,useEventCenter:null==n.useEventCenter||n.useEventCenter,isHitComboAllowed:n.isHitComboAllowed||null}}function Eo(t){var n;return(n={})[t.component.uid]=t,n}var Do={},No=function(){function t(){this.emitter=new ii}return t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(){},t.prototype.setMirrorNeedsRevert=function(){},t.prototype.setAutoScrollEnabled=function(){},t}(),So={},Co=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this,n=this.props.widgetGroups.map((function(n){return t.renderWidgetGroup(n)}));return Ot.apply(void 0,s(["div",{className:"fc-toolbar-chunk"}],n))},n.prototype.renderWidgetGroup=function(t){for(var n=this.props,e=this.context.theme,r=[],i=!0,o=0,a=t;o<a.length;o++){var c=a[o],l=c.buttonName,f=c.buttonClick,d=c.buttonText,h=c.buttonIcon;if("title"===l)i=!1,r.push(Ot("h2",{className:"fc-toolbar-title"},n.title));else{var v=h?{"aria-label":l}:{},p=["fc-"+l+"-button",e.getClass("button")];l===n.activeButton&&p.push(e.getClass("buttonActive")),r.push(Ot("button",u({disabled:!n.isTodayEnabled&&"today"===l||!n.isPrevEnabled&&"prev"===l||!n.isNextEnabled&&"next"===l,className:p.join(" "),onClick:f,type:"button"},v),d||(h?Ot("span",{className:h}):"")))}}if(r.length>1){var g=i&&e.getClass("buttonGroup")||"";return Ot.apply(void 0,s(["div",{className:g}],r))}return r[0]},n}(vi),To=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t,n,e=this.props,r=e.model,i=!1,o=r.center;return r.left?(i=!0,t=r.left):t=r.start,r.right?(i=!0,n=r.right):n=r.end,Ot("div",{className:[e.extraClassName||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",t||[]),this.renderSection("center",o||[]),this.renderSection("end",n||[]))},n.prototype.renderSection=function(t,n){var e=this.props;return Ot(Co,{key:t,widgetGroups:n,title:e.title,activeButton:e.activeButton,isTodayEnabled:e.isTodayEnabled,isPrevEnabled:e.isPrevEnabled,isNextEnabled:e.isNextEnabled})},n}(vi),Mo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={availableWidth:null},n.handleEl=function(t){n.el=t,mi(n.props.elRef,t),n.updateAvailableWidth()},n.handleResize=function(){n.updateAvailableWidth()},n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.state,e=t.aspectRatio,r="",i="";return e?null!==n.availableWidth?r=n.availableWidth/e:i=1/e*100+"%":r=t.height||"",Ot("div",{ref:this.handleEl,onClick:t.onClick,className:["fc-view-harness",e||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"].join(" "),style:{height:r,paddingBottom:i}},t.children)},n.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},n.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},n.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},n}(vi),Ro=function(t){function n(n){var e=t.call(this,n)||this;return e.handleSegClick=function(t,n){var r=e.component,i=r.context,o=er(n);if(o&&r.isValidSegDownEl(t.target)){var a=Zt(t.target,".fc-event-forced-url"),u=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:n,event:new Cr(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:i.viewApi}),u&&!t.defaultPrevented&&(window.location.href=u)}},e.destroy=rn(n.el,"click",".fc-event",e.handleSegClick),e}return a(n,t),n}(_o),Bo=function(t){function n(n){var e,r,i,o=t.call(this,n)||this;return o.handleEventElRemove=function(t){t===o.currentSegEl&&o.handleSegLeave(null,o.currentSegEl)},o.handleSegEnter=function(t,n){er(n)&&(o.currentSegEl=n,o.triggerEvent("eventMouseEnter",t,n))},o.handleSegLeave=function(t,n){o.currentSegEl&&(o.currentSegEl=null,o.triggerEvent("eventMouseLeave",t,n))},o.removeHoverListeners=(e=o.handleSegEnter,r=o.handleSegLeave,rn(n.el,"mouseover",".fc-event",(function(t,n){if(n!==i){i=n,e(t,n);var o=function(t){i=null,r(t,n),n.removeEventListener("mouseleave",o)};n.addEventListener("mouseleave",o)}}))),o}return a(n,t),n.prototype.destroy=function(){this.removeHoverListeners()},n.prototype.triggerEvent=function(t,n,e){var r=this.component,i=r.context,o=er(e);n&&!r.isValidSegDownEl(n.target)||i.emitter.trigger(t,{el:e,event:new Cr(i,o.eventRange.def,o.eventRange.instance),jsEvent:n,view:i.viewApi})},n}(_o),zo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buildViewContext=ne(di),n.buildViewPropTransformers=ne(Po),n.buildToolbarProps=ne(Io),n.handleNavLinkClick=en("a[data-navlink]",n._handleNavLinkClick.bind(n)),n.headerRef=Ht(),n.footerRef=Ht(),n.interactionsStore={},n.registerInteractiveComponent=function(t,e){var r=xo(t,e),i=[Ro,Bo].concat(n.props.pluginHooks.componentInteractions).map((function(t){return new t(r)}));n.interactionsStore[t.uid]=i,Do[t.uid]=r},n.unregisterInteractiveComponent=function(t){for(var e=0,r=n.interactionsStore[t.uid];e<r.length;e++)r[e].destroy();delete n.interactionsStore[t.uid],delete Do[t.uid]},n.resizeRunner=new eo((function(){n.props.emitter.trigger("_resize",!0),n.props.emitter.trigger("windowResize",{view:n.props.viewApi})})),n.handleWindowResize=function(t){var e=n.props.options;e.handleWindowResize&&t.target===window&&n.resizeRunner.request(e.windowResizeDelay)},n}return a(n,t),n.prototype.render=function(){var t,n=this.props,e=n.toolbarConfig,r=n.options,i=this.buildToolbarProps(n.viewSpec,n.dateProfile,n.dateProfileGenerator,n.currentDate,Nr(n.options.now,n.dateEnv),n.viewTitle),o=!1,a="";n.isHeightAuto||n.forPrint?a="":null!=r.height?o=!0:null!=r.contentHeight?a=r.contentHeight:t=Math.max(r.aspectRatio,.5);var s=this.buildViewContext(n.viewSpec,n.viewApi,n.options,n.dateProfileGenerator,n.dateEnv,n.theme,n.pluginHooks,n.dispatch,n.getCurrentData,n.emitter,n.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent);return Ot(fi.Provider,{value:s},e.headerToolbar&&Ot(To,u({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:e.headerToolbar},i)),Ot(Mo,{liquid:o,height:a,aspectRatio:t,onClick:this.handleNavLinkClick},this.renderView(n),this.buildAppendContent()),e.footerToolbar&&Ot(To,u({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:e.footerToolbar},i)))},n.prototype.componentDidMount=function(){var t=this.props;this.calendarInteractions=t.pluginHooks.calendarInteractions.map((function(n){return new n(t)})),window.addEventListener("resize",this.handleWindowResize);var n=t.pluginHooks.propSetHandlers;for(var e in n)n[e](t[e],t)},n.prototype.componentDidUpdate=function(t){var n=this.props,e=n.pluginHooks.propSetHandlers;for(var r in e)n[r]!==t[r]&&e[r](n[r],n)},n.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var t=0,n=this.calendarInteractions;t<n.length;t++)n[t].destroy();this.props.emitter.trigger("_unmount")},n.prototype._handleNavLinkClick=function(t,n){var e=this.props,r=e.dateEnv,i=e.options,o=e.calendarApi,a=n.getAttribute("data-navlink");a=a?JSON.parse(a):{};var u=r.createMarker(a.date),s=a.type,c="day"===s?i.navLinkDayClick:"week"===s?i.navLinkWeekClick:null;"function"==typeof c?c.call(o,r.toDate(u),t):("string"==typeof c&&(s=c),o.zoomTo(u,s))},n.prototype.buildAppendContent=function(){var t=this.props,n=t.pluginHooks.viewContainerAppends.map((function(n){return n(t)}));return Ot.apply(void 0,s([jt,{}],n))},n.prototype.renderView=function(t){for(var n=t.viewSpec,e={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},r=0,i=this.buildViewPropTransformers(t.pluginHooks.viewPropsTransformers);r<i.length;r++)u(e,i[r].transform(e,t));return Ot(n.component,u({},e))},n}(hi);function Io(t,n,e,r,i,o){var a=e.build(i,void 0,!1),u=e.buildPrev(n,r,!1),s=e.buildNext(n,r,!1);return{title:o,activeButton:t.type,isTodayEnabled:a.isValid&&!Ke(n.currentRange,i),isPrevEnabled:u.isValid,isNextEnabled:s.isValid}}function Po(t){return t.map((function(t){return new t}))}var Qo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={forPrint:!1},n.handleBeforePrint=function(){n.setState({forPrint:!0})},n.handleAfterPrint=function(){n.setState({forPrint:!1})},n}return a(n,t),n.prototype.render=function(){var t=this.props,n=t.options,e=this.state.forPrint,r=e||"auto"===n.height||"auto"===n.contentHeight,i=r||null==n.height?"":n.height,o=["fc",e?"fc-media-print":"fc-media-screen","fc-direction-"+n.direction,t.theme.getClass("root")];return Lr()||o.push("fc-liquid-hack"),t.children(o,i,r,e)},n.prototype.componentDidMount=function(){var t=this.props.emitter;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)},n.prototype.componentWillUnmount=function(){var t=this.props.emitter;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)},n}(vi),Oo="fc-col-header-cell";function Vo(t){return t.text}var Ho=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.context,n=t.dateEnv,e=t.options,r=t.theme,i=t.viewApi,o=this.props,a=o.date,s=qr(a,o.todayRange,null,o.dateProfile),c=[Oo].concat(Jr(s,r)),l=n.format(a,o.dayHeaderFormat),f=e.navLinks&&!s.isDisabled&&o.colCnt>1?{"data-navlink":Xr(a),tabIndex:0}:{},d=u(u(u({date:n.toDate(a),view:i},o.extraHookProps),{text:l}),s);return Ot(ki,{hookProps:d,classNames:e.dayHeaderClassNames,content:e.dayHeaderContent,defaultContent:Vo,didMount:e.dayHeaderDidMount,willUnmount:e.dayHeaderWillUnmount},(function(t,n,e,r){return Ot("th",u({ref:t,className:c.concat(n).join(" "),"data-date":s.isDisabled?void 0:$n(a),colSpan:o.colSpan},o.extraDataAttrs),Ot("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&Ot("a",u({ref:e,className:["fc-col-header-cell-cushion",o.isSticky?"fc-sticky":""].join(" ")},f),r)))}))},n}(vi),jo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.dateEnv,r=n.theme,i=n.viewApi,o=n.options,a=mn(new Date(2592e5),t.dow),s={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[Oo].concat(Jr(s,r),t.extraClassNames||[]),l=e.format(a,t.dayHeaderFormat),f=u(u(u(u({date:a},s),{view:i}),t.extraHookProps),{text:l});return Ot(ki,{hookProps:f,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:Vo,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(function(n,e,r,i){return Ot("th",u({ref:n,className:c.concat(e).join(" "),colSpan:t.colSpan},t.extraDataAttrs),Ot("div",{className:"fc-scrollgrid-sync-inner"},Ot("a",{className:["fc-col-header-cell-cushion",t.isSticky?"fc-sticky":""].join(" "),ref:r},i)))}))},n}(vi),Uo=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.initialNowDate=Nr(e.options.now,e.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return a(n,t),n.prototype.render=function(){var t=this.state;return this.props.children(t.nowDate,t.todayRange)},n.prototype.componentDidMount=function(){this.setTimeout()},n.prototype.componentDidUpdate=function(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},n.prototype.componentWillUnmount=function(){this.clearTimeout()},n.prototype.computeTiming=function(){var t=this.props,n=this.context,e=bn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=n.dateEnv.startOf(e,t.unit),i=n.dateEnv.add(r,Gn(1,t.unit)),o=i.valueOf()-e.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:Fo(r)},nextState:{nowDate:i,todayRange:Fo(i)},waitMs:o}},n.prototype.setTimeout=function(){var t=this,n=this.computeTiming(),e=n.nextState;this.timeoutId=setTimeout((function(){t.setState(e,(function(){t.setTimeout()}))}),n.waitMs)},n.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},n.contextType=fi,n}(Qt);function Fo(t){var n=wn(t);return{start:n,end:mn(n,1)}}var Go=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.createDayHeaderFormatter=ne(Lo),n}return a(n,t),n.prototype.render=function(){var t=this.props,n=t.dates,e=t.dateProfile,r=t.datesRepDistinctDays,i=t.renderIntro,o=this.createDayHeaderFormatter(this.context.options.dayHeaderFormat,r,n.length);return Ot(Uo,{unit:"day"},(function(t,a){return Ot("tr",null,i&&i("day"),n.map((function(t){return r?Ot(Ho,{key:t.toISOString(),date:t,dateProfile:e,todayRange:a,colCnt:n.length,dayHeaderFormat:o}):Ot(jo,{key:t.getUTCDay(),dow:t.getUTCDay(),dayHeaderFormat:o})})))}))},n}(vi);function Lo(t,n,e){return t||function(t,n){return ge(!t||n>10?{weekday:"short"}:n>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(n,e)}var Wo=function(){function t(t,n){for(var e=t.start,r=t.end,i=[],o=[],a=-1;e<r;)n.isHiddenDay(e)?i.push(a+.5):(i.push(a+=1),o.push(e)),e=mn(e,1);this.dates=o,this.indices=i,this.cnt=o.length}return t.prototype.sliceRange=function(t){var n=this.getDateDayIndex(t.start),e=this.getDateDayIndex(mn(t.end,-1)),r=Math.max(0,n),i=Math.min(this.cnt-1,e);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:n===r,isEnd:e===i}:null},t.prototype.getDateDayIndex=function(t){var n=this.indices,e=Math.floor(yn(this.dates[0],t));return e<0?n[0]-1:e>=n.length?n[n.length-1]+1:n[e]},t}(),Yo=function(){function t(t,n){var e,r,i,o=t.dates;if(n){for(r=o[0].getUTCDay(),e=1;e<o.length&&o[e].getUTCDay()!==r;e+=1);i=Math.ceil(o.length/e)}else i=1,e=o.length;this.rowCnt=i,this.colCnt=e,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return t.prototype.buildCells=function(){for(var t=[],n=0;n<this.rowCnt;n+=1){for(var e=[],r=0;r<this.colCnt;r+=1)e.push(this.buildCell(n,r));t.push(e)}return t},t.prototype.buildCell=function(t,n){var e=this.daySeries.dates[t*this.colCnt+n];return{key:e.toISOString(),date:e}},t.prototype.buildHeaderDates=function(){for(var t=[],n=0;n<this.colCnt;n+=1)t.push(this.cells[0][n].date);return t},t.prototype.sliceRange=function(t){var n=this.colCnt,e=this.daySeries.sliceRange(t),r=[];if(e)for(var i=e.firstIndex,o=e.lastIndex,a=i;a<=o;){var u=Math.floor(a/n),s=Math.min((u+1)*n,o+1);r.push({row:u,firstCol:a%n,lastCol:(s-1)%n,isStart:e.isStart&&a===i,isEnd:e.isEnd&&s-1===o}),a=s}return r},t}(),Zo=function(){function t(){this.sliceBusinessHours=ne(this._sliceBusinessHours),this.sliceDateSelection=ne(this._sliceDateSpan),this.sliceEventStore=ne(this._sliceEventStore),this.sliceEventDrag=ne(this._sliceInteraction),this.sliceEventResize=ne(this._sliceInteraction),this.forceDayIfListItem=!1}return t.prototype.sliceProps=function(t,n,e,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=t.eventUiBases,u=this.sliceEventStore.apply(this,s([t.eventStore,a,n,e],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,s([t.dateSelection,a,r],i)),businessHourSegs:this.sliceBusinessHours.apply(this,s([t.businessHours,n,e,r],i)),fgEventSegs:u.fg,bgEventSegs:u.bg,eventDrag:this.sliceEventDrag.apply(this,s([t.eventDrag,a,n,e],i)),eventResize:this.sliceEventResize.apply(this,s([t.eventResize,a,n,e],i)),eventSelection:t.eventSelection}},t.prototype.sliceNowDate=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return this._sliceDateSpan.apply(this,s([{range:{start:t,end:bn(t,1)},allDay:!1},{},n],e))},t.prototype._sliceBusinessHours=function(t,n,e,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];return t?this._sliceEventStore.apply(this,s([Hn(t,qo(n,Boolean(e)),r),{},n,e],i)).bg:[]},t.prototype._sliceEventStore=function(t,n,e,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];if(t){var a=tr(t,n,qo(e,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}},t.prototype._sliceInteraction=function(t,n,e,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];if(!t)return null;var a=tr(t.mutatedEvents,n,qo(e,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}},t.prototype._sliceDateSpan=function(t,n,e){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!t)return[];for(var o=gr(t,n,e),a=this.sliceRange.apply(this,s([t.range],r)),u=0,c=a;u<c.length;u++){var l=c[u];l.eventRange=o}return a},t.prototype.sliceEventRanges=function(t,n){for(var e=[],r=0,i=t;r<i.length;r++)e.push.apply(e,this.sliceEventRange(i[r],n));return e},t.prototype.sliceEventRange=function(t,n){var e=t.range;this.forceDayIfListItem&&"list-item"===t.ui.display&&(e={start:e.start,end:mn(e.start,1)});for(var r=this.sliceRange.apply(this,s([e],n)),i=0,o=r;i<o.length;i++){var a=o[i];a.eventRange=t,a.isStart=t.isStart&&a.isStart,a.isEnd=t.isEnd&&a.isEnd}return r},t}();function qo(t,n){var e=t.activeRange;return n?e:{start:bn(e.start,t.slotMinTime.milliseconds),end:bn(e.end,t.slotMaxTime.milliseconds-864e5)}}function Jo(t,n,e){var r=t.mutatedEvents.instances;for(var i in r)if(!$e(n.validRange,r[i].range))return!1;return Xo({eventDrag:t},e)}function Xo(t,n){var e=n.getCurrentData(),r=u({businessHours:e.businessHours,dateSelection:"",eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(n.pluginHooks.isPropsValid||$o)(r,n)}function $o(t,n,e,r){return void 0===e&&(e={}),!(t.eventDrag&&!function(t,n,e,r){var i=n.getCurrentData(),o=t.eventDrag,a=o.mutatedEvents,s=a.defs,c=a.instances,l=rr(s,o.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(l=zn(l,r));var f,d,h=(d=o.affectedEvents.instances,{defs:(f=t.eventStore).defs,instances:Bn(f.instances,(function(t){return!d[t.instanceId]}))}),v=h.defs,p=h.instances,g=rr(v,t.eventUiBases);for(var m in c){var b=c[m],y=b.range,A=l[b.defId],w=s[b.defId];if(!Ko(A.constraints,y,h,t.businessHours,n))return!1;var k=n.options.eventOverlap,_="function"==typeof k?k:null;for(var x in p){var E=p[x];if(Xe(y,E.range)){if(!1===g[E.defId].overlap&&o.isEvent)return!1;if(!1===A.overlap)return!1;if(_&&!_(new Cr(n,v[E.defId],E),new Cr(n,w,b)))return!1}}for(var D=i.eventStore,N=0,S=A.allows;N<S.length;N++){var C,T=S[N],M=u(u({},e),{range:b.range,allDay:w.allDay}),R=D.defs[w.defId];if(C=R?new Cr(n,R,D.instances[m]):new Cr(n,w),!T(br(M,n),C))return!1}}return!0}(t,n,e,r)||t.dateSelection&&!function(t,n,e,r){var i=t.eventStore,o=i.defs,a=i.instances,s=t.dateSelection,c=s.range,l=n.getCurrentData().selectionConfig;if(r&&(l=r(l)),!Ko(l.constraints,c,i,t.businessHours,n))return!1;var f=n.options.selectOverlap,d="function"==typeof f?f:null;for(var h in a){var v=a[h];if(Xe(c,v.range)){if(!1===l.overlap)return!1;if(d&&!d(new Cr(n,o[v.defId],v),null))return!1}}for(var p=0,g=l.allows;p<g.length;p++)if(!(0,g[p])(br(u(u({},e),s),n),null))return!1;return!0}(t,n,e,r))}function Ko(t,n,e,r,i){for(var o=0,a=t;o<a.length;o++)if(!ea(ta(a[o],n,e,r,i),n))return!1;return!0}function ta(t,n,e,r,i){return"businessHours"===t?na(Hn(r,n,i)):"string"==typeof t?na(Me(e,(function(n){return n.groupId===t}))):"object"==typeof t&&t?na(Hn(t,n,i)):[]}function na(t){var n=t.instances,e=[];for(var r in n)e.push(n[r].range);return e}function ea(t,n){for(var e=0,r=t;e<r.length;e++)if($e(r[e],n))return!0;return!1}var ra=/^(visible|hidden)$/,ia=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleEl=function(t){n.el=t,mi(n.props.elRef,t)},n}return a(n,t),n.prototype.render=function(){var t=this.props,n=t.liquid,e=t.liquidIsAbsolute,r=n&&e,i=["fc-scroller"];return n&&i.push(e?"fc-scroller-liquid-absolute":"fc-scroller-liquid"),Ot("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:r&&-(t.overcomeLeft||0)||"",right:r&&-(t.overcomeRight||0)||"",bottom:r&&-(t.overcomeBottom||0)||"",marginLeft:!r&&-(t.overcomeLeft||0)||"",marginRight:!r&&-(t.overcomeRight||0)||"",marginBottom:!r&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)},n.prototype.needsXScrolling=function(){if(ra.test(this.props.overflowX))return!1;for(var t=this.el,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),e=t.children,r=0;r<e.length;r+=1)if(e[r].getBoundingClientRect().width>n)return!0;return!1},n.prototype.needsYScrolling=function(){if(ra.test(this.props.overflowY))return!1;for(var t=this.el,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),e=t.children,r=0;r<e.length;r+=1)if(e[r].getBoundingClientRect().height>n)return!0;return!1},n.prototype.getXScrollbarWidth=function(){return ra.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},n.prototype.getYScrollbarWidth=function(){return ra.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},n}(vi),oa=function(){function t(t){var n=this;this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(t,e){var r=n.depths,i=n.currentMap,o=!1,a=!1;null!==t?(o=e in i,i[e]=t,r[e]=(r[e]||0)+1,a=!0):(r[e]-=1,r[e]||(delete i[e],delete n.callbackMap[e],o=!0)),n.masterCallback&&(o&&n.masterCallback(null,String(e)),a&&n.masterCallback(t,String(e)))}}return t.prototype.createRef=function(t){var n=this,e=this.callbackMap[t];return e||(e=this.callbackMap[t]=function(e){n.handleValue(e,String(t))}),e},t.prototype.collect=function(t,n,e){return function(t,n,e,r){void 0===n&&(n=0),void 0===r&&(r=1);var i=[];null==e&&(e=Object.keys(t).length);for(var o=n;o<e;o+=r){var a=t[o];void 0!==a&&i.push(a)}return i}(this.currentMap,t,n,e)},t.prototype.getAll=function(){return Pn(this.currentMap)},t}();function aa(t,n){return t.liquid&&n.liquid}function ua(t,n){return te(t,n,Qn)}function sa(t,n){for(var e=[],r=0,i=t;r<i.length;r++)for(var o=i[r],a=o.span||1,u=0;u<a;u+=1)e.push(Ot("col",{style:{width:"shrink"===o.width?ca(n):o.width||"",minWidth:o.minWidth||""}}));return Ot.apply(void 0,s(["colgroup",{}],e))}function ca(t){return null==t?4:t}function la(t,n){var e=["fc-scrollgrid-section","fc-scrollgrid-section-"+t.type,t.className];return n&&t.liquid&&null==t.maxHeight&&e.push("fc-scrollgrid-section-liquid"),t.isSticky&&e.push("fc-scrollgrid-section-sticky"),e}function fa(t){return Ot("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function da(t){var n=t.stickyHeaderDates;return null!=n&&"auto"!==n||(n="auto"===t.height||"auto"===t.viewHeight),n}function ha(t){var n=t.stickyFooterScrollbar;return null!=n&&"auto"!==n||(n="auto"===t.height||"auto"===t.viewHeight),n}var va=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.processCols=ne((function(t){return t}),ua),n.renderMicroColGroup=ne(sa),n.scrollerRefs=new oa,n.scrollerElRefs=new oa(n._handleScrollerEl.bind(n)),n.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},n.handleSizing=function(){n.setState(u({shrinkWidth:n.computeShrinkWidth()},n.computeScrollerDims()))},n}return a(n,t),n.prototype.render=function(){var t=this,n=t.props,e=t.state,r=t.context,i=n.sections||[],o=this.processCols(n.cols),a=this.renderMicroColGroup(o,e.shrinkWidth),u=function(t,n){var e=["fc-scrollgrid",n.theme.getClass("table")];return t&&e.push("fc-scrollgrid-liquid"),e}(n.liquid,r);n.collapsibleWidth&&u.push("fc-scrollgrid-collapsible");for(var c,l=i.length,f=0,d=[],h=[],v=[];f<l&&"header"===(c=i[f]).type;)d.push(this.renderSection(c,a)),f+=1;for(;f<l&&"body"===(c=i[f]).type;)h.push(this.renderSection(c,a)),f+=1;for(;f<l&&"footer"===(c=i[f]).type;)v.push(this.renderSection(c,a)),f+=1;var p=!Lr();return Ot("table",{className:u.join(" "),style:{height:n.height}},Boolean(!p&&d.length)&&Ot.apply(void 0,s(["thead",{}],d)),Boolean(!p&&h.length)&&Ot.apply(void 0,s(["tbody",{}],h)),Boolean(!p&&v.length)&&Ot.apply(void 0,s(["tfoot",{}],v)),p&&Ot.apply(void 0,s(s(s(["tbody",{}],d),h),v)))},n.prototype.renderSection=function(t,n){return"outerContent"in t?Ot(jt,{key:t.key},t.outerContent):Ot("tr",{key:t.key,className:la(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk))},n.prototype.renderChunkTd=function(t,n,e){if("outerContent"in e)return e.outerContent;var r=this.props,i=this.state,o=i.forceYScrollbars,a=i.scrollerClientWidths,u=i.scrollerClientHeights,s=function(t,n){return null!=n.maxHeight||aa(t,n)}(r,t),c=aa(r,t),l=r.liquid?o?"scroll":s?"auto":"hidden":"visible",f=t.key,d=function(t,n,e){var r=e.expandRows;return"function"==typeof n.content?n.content(e):Ot("table",{className:[n.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:r?e.clientHeight:""}},e.tableColGroupNode,Ot("tbody",{},"function"==typeof n.rowContent?n.rowContent(e):n.rowContent))}(t,e,{tableColGroupNode:n,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===a[f]?null:a[f],clientHeight:void 0!==u[f]?u[f]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}});return Ot("td",{ref:e.elRef},Ot("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},Ot(ia,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:l,overflowX:r.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:c,liquidIsAbsolute:!0},d)))},n.prototype._handleScrollerEl=function(t,n){var e=function(t,n){for(var e=0,r=t;e<r.length;e++){var i=r[e];if(i.key===n)return i}return null}(this.props.sections,n);e&&mi(e.chunk.scrollerElRef,t)},n.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},n.prototype.componentDidUpdate=function(){this.handleSizing()},n.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},n.prototype.computeShrinkWidth=function(){return function(t){for(var n=0,e=t;n<e.length;n++)if("shrink"===e[n].width)return!0;return!1}(this.props.cols)?function(t){for(var n=0,e=0,r=function(t){for(var n=t instanceof HTMLElement?[t]:t,e=[],r=0;r<n.length;r+=1)for(var i=n[r].querySelectorAll(".fc-scrollgrid-shrink"),o=0;o<i.length;o+=1)e.push(i[o]);return e}(t);e<r.length;e++)n=Math.max(n,vn(r[e]));return Math.ceil(n)}(this.scrollerElRefs.getAll()):0},n.prototype.computeScrollerDims=function(){var t=($r||($r=function(){var t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);var n=ti(t);return document.body.removeChild(t),n}()),$r),n=this.scrollerRefs,e=this.scrollerElRefs,r=!1,i={},o={};for(var a in n.currentMap){var u=n.currentMap[a];if(u&&u.needsYScrolling()){r=!0;break}}for(var s=0,c=this.props.sections;s<c.length;s++){var l=e.currentMap[a=c[s].key];if(l){var f=l.parentNode;i[a]=Math.floor(f.getBoundingClientRect().width-(r?t.y:0)),o[a]=Math.floor(f.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:o}},n}(vi);va.addStateEquality({scrollerClientWidths:Qn,scrollerClientHeights:Qn});var pa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.elRef=Ht(),n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=t.seg,i=r.eventRange,o=i.ui,a={event:new Cr(n,i.def,i.instance),view:n.viewApi,timeText:t.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!t.disableDragging&&ur(r,n),isStartResizable:!t.disableResizing&&sr(r,n),isEndResizable:!t.disableResizing&&cr(r),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)},u=function(t){var n=["fc-event"];return t.isMirror&&n.push("fc-event-mirror"),t.isDraggable&&n.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&n.push("fc-event-resizable"),t.isDragging&&n.push("fc-event-dragging"),t.isResizing&&n.push("fc-event-resizing"),t.isSelected&&n.push("fc-event-selected"),t.isStart&&n.push("fc-event-start"),t.isEnd&&n.push("fc-event-end"),t.isPast&&n.push("fc-event-past"),t.isToday&&n.push("fc-event-today"),t.isFuture&&n.push("fc-event-future"),n}(a).concat(o.classNames);return Ot(ki,{hookProps:a,classNames:e.eventClassNames,content:e.eventContent,defaultContent:t.defaultContent,didMount:e.eventDidMount,willUnmount:e.eventWillUnmount,elRef:this.elRef},(function(n,e,r,i){return t.children(n,u.concat(e),r,i,a)}))},n.prototype.componentDidMount=function(){nr(this.elRef.current,this.props.seg)},n.prototype.componentDidUpdate=function(t){var n=this.props.seg;n!==t.seg&&nr(this.elRef.current,n)},n}(vi),ga=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=t.seg,r=lr(e,n.options.eventTimeFormat||t.defaultTimeFormat,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return Ot(pa,{seg:e,timeText:r,disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||ma,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(n,r,i,o,a){return Ot("a",u({className:t.extraClassNames.concat(r).join(" "),style:{borderColor:a.borderColor,backgroundColor:a.backgroundColor},ref:n},function(t){var n=t.eventRange.def.url;return n?{href:n}:{}}(e)),Ot("div",{className:"fc-event-main",ref:i,style:{color:a.textColor}},o),a.isStartResizable&&Ot("div",{className:"fc-event-resizer fc-event-resizer-start"}),a.isEndResizable&&Ot("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},n}(vi);function ma(t){return Ot("div",{className:"fc-event-main-frame"},t.timeText&&Ot("div",{className:"fc-event-time"},t.timeText),Ot("div",{className:"fc-event-title-container"},Ot("div",{className:"fc-event-title fc-sticky"},t.event.title||Ot(jt,null," "))))}var ba=function(t){return Ot(fi.Consumer,null,(function(n){var e=n.options,r={isAxis:t.isAxis,date:n.dateEnv.toDate(t.date),view:n.viewApi};return Ot(ki,{hookProps:r,classNames:e.nowIndicatorClassNames,content:e.nowIndicatorContent,didMount:e.nowIndicatorDidMount,willUnmount:e.nowIndicatorWillUnmount},t.children)}))},ya=ge({day:"numeric"}),Aa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=wa({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv});return Ot(xi,{hookProps:r,content:e.dayCellContent,defaultContent:t.defaultContent},t.children)},n}(vi);function wa(t){var n=t.date,e=t.dateEnv,r=qr(n,t.todayRange,null,t.dateProfile);return u(u(u({date:e.toDate(n),view:t.viewApi},r),{dayNumberText:t.showDayNumber?e.format(n,ya):""}),t.extraProps)}var ka=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.refineHookProps=ee(wa),n.normalizeClassNames=Ni(),n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=this.refineHookProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv}),i=Jr(r,n.theme).concat(r.isDisabled?[]:this.normalizeClassNames(e.dayCellClassNames,r)),o=r.isDisabled?{}:{"data-date":$n(t.date)};return Ot(Di,{hookProps:r,didMount:e.dayCellDidMount,willUnmount:e.dayCellWillUnmount,elRef:t.elRef},(function(n){return t.children(n,i,o,r.isDisabled)}))},n}(vi);function _a(t){return Ot("div",{className:"fc-"+t})}var xa=function(t){return Ot(pa,{defaultContent:Ea,seg:t.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(t,n,e,r,i){return Ot("div",{ref:t,className:["fc-bg-event"].concat(n).join(" "),style:{backgroundColor:i.backgroundColor}},r)}))};function Ea(t){return t.event.title&&Ot("div",{className:"fc-event-title"},t.event.title)}var Da=function(t){return Ot(fi.Consumer,null,(function(n){var e=n.dateEnv,r=n.options,i=t.date,o=r.weekNumberFormat||t.defaultFormat,a=e.computeWeekNumber(i),u=e.format(i,o);return Ot(ki,{hookProps:{num:a,text:u,date:i},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:Na,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)}))};function Na(t){return t.text}var Sa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleRootEl=function(t){n.rootEl=t,n.props.elRef&&mi(n.props.elRef,t)},n.handleDocumentMousedown=function(t){var e=Kt(t);n.rootEl.contains(e)||n.handleCloseClick()},n.handleCloseClick=function(){var t=n.props.onClose;t&&t()},n}return a(n,t),n.prototype.render=function(){var t=this.context.theme,n=this.props,e=["fc-popover",t.getClass("popover")].concat(n.extraClassNames||[]);return Ft(Ot("div",u({className:e.join(" ")},n.extraAttrs,{ref:this.handleRootEl}),Ot("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},Ot("span",{className:"fc-popover-title"},n.title),Ot("span",{className:"fc-popover-close "+t.getIconClass("close"),onClick:this.handleCloseClick})),Ot("div",{className:"fc-popover-body "+t.getClass("popoverContent")},n.children)),n.parentEl)},n.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMousedown),this.updateSize()},n.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMousedown)},n.prototype.updateSize=function(){var t=this.context.isRtl,n=this.props,e=n.alignmentEl,r=n.alignGridTop,i=this.rootEl,o=function(t){for(var n=ri(t),e=t.getBoundingClientRect(),r=0,i=n;r<i.length;r++){var o=Gr(e,i[r].getBoundingClientRect());if(!o)return null;e=o}return e}(e);if(o){var a=i.getBoundingClientRect(),u=r?Zt(e,".fc-scrollgrid").getBoundingClientRect().top:o.top,s=t?o.right-a.width:o.left;u=Math.max(u,10),s=Math.min(s,document.documentElement.clientWidth-10-a.width),s=Math.max(s,10);var c=i.offsetParent.getBoundingClientRect();Xt(i,{top:u-c.top,left:s-c.left})}},n}(vi),Ca=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleRootEl=function(t){n.rootEl=t,t?n.context.registerInteractiveComponent(n,{el:t,useEventCenter:!1}):n.context.unregisterInteractiveComponent(n)},n}return a(n,t),n.prototype.render=function(){var t=this.context,n=this.props,e=n.startDate,r=n.todayRange,i=n.dateProfile,o=t.dateEnv.format(e,t.options.dayPopoverFormat);return Ot(ka,{date:e,dateProfile:i,todayRange:r,elRef:this.handleRootEl},(function(t,a,u){return Ot(Sa,{elRef:t,title:o,extraClassNames:["fc-more-popover"].concat(a),extraAttrs:u,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Ot(Aa,{date:e,dateProfile:i,todayRange:r},(function(t,n){return n&&Ot("div",{className:"fc-more-popover-misc",ref:t},n)})),n.children)}))},n.prototype.queryHit=function(t,n,e,r){var i=this.rootEl,o=this.props;return t>=0&&t<e&&n>=0&&n<r?{dateProfile:o.dateProfile,dateSpan:u({allDay:!0,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:e,bottom:r},layer:1}:null},n}(bi),Ta=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.linkElRef=Ht(),n.state={isPopoverOpen:!1},n.handleClick=function(t){var e=n.props,r=n.context,i=r.options.moreLinkClick,o=Ra(e).start;function a(t){var n=t.eventRange,e=n.range;return{event:new Cr(r,n.def,n.instance),start:r.dateEnv.toDate(e.start),end:r.dateEnv.toDate(e.end),isStart:t.isStart,isEnd:t.isEnd}}"function"==typeof i&&(i=i({date:o,allDay:Boolean(e.allDayDate),allSegs:e.allSegs.map(a),hiddenSegs:e.hiddenSegs.map(a),jsEvent:t,view:r.viewApi})),i&&"popover"!==i?"string"==typeof i&&r.calendarApi.zoomTo(o,i):n.setState({isPopoverOpen:!0})},n.handlePopoverClose=function(){n.setState({isPopoverOpen:!1})},n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props;return Ot(fi.Consumer,null,(function(e){var r=e.viewApi,i=e.options,o=e.calendarApi,a=i.moreLinkText,u=n.moreCnt,s=Ra(n),c={num:u,shortText:"+"+u,text:"function"==typeof a?a.call(o,u):"+"+u+" "+a,view:r};return Ot(jt,null,Boolean(n.moreCnt)&&Ot(ki,{elRef:t.linkElRef,hookProps:c,classNames:i.moreLinkClassNames,content:i.moreLinkContent,defaultContent:n.defaultContent||Ma,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},(function(e,r,i,o){return n.children(e,["fc-more-link"].concat(r),i,o,t.handleClick)})),t.state.isPopoverOpen&&Ot(Ca,{startDate:s.start,endDate:s.end,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:n.extraDateSpan,parentEl:t.parentEl,alignmentEl:n.alignmentElRef.current,alignGridTop:n.alignGridTop,onClose:t.handlePopoverClose},n.popoverContent()))}))},n.prototype.componentDidMount=function(){this.updateParentEl()},n.prototype.componentDidUpdate=function(){this.updateParentEl()},n.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=Zt(this.linkElRef.current,".fc-view-harness"))},n}(vi);function Ma(t){return t.text}function Ra(t){if(t.allDayDate)return{start:t.allDayDate,end:mn(t.allDayDate,1)};var n,e=t.hiddenSegs;return{start:Ba(e),end:(n=e,n.reduce(Ia).eventRange.range.end)}}function Ba(t){return t.reduce(za).eventRange.range.start}function za(t,n){return t.eventRange.range.start<n.eventRange.range.start?t:n}function Ia(t,n){return t.eventRange.range.end>n.eventRange.range.end?t:n}
|
|
2
2
|
/*!
|
|
3
3
|
FullCalendar v5.9.0
|
|
4
4
|
Docs & License: https://fullcalendar.io/
|
|
@@ -24,4 +24,4 @@ Docs & License: https://fullcalendar.io/
|
|
|
24
24
|
FullCalendar v5.9.0
|
|
25
25
|
Docs & License: https://fullcalendar.io/
|
|
26
26
|
(c) 2021 Adam Shaw
|
|
27
|
-
*/function Fu(t){var n=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Ot(fi.Consumer,null,(function(e){if(!t.isLabeled)return Ot("td",{className:n.join(" "),"data-time":t.isoTimeStr});var r=e.dateEnv,i=e.options,o=e.viewApi,a=null==i.slotLabelFormat?Uu:Array.isArray(i.slotLabelFormat)?ge(i.slotLabelFormat[0]):ge(i.slotLabelFormat),u={level:0,time:t.time,date:r.toDate(t.date),view:o,text:r.format(t.date,a)};return Ot(ki,{hookProps:u,classNames:i.slotLabelClassNames,content:i.slotLabelContent,defaultContent:Gu,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(function(e,r,i,o){return Ot("td",{ref:e,className:n.concat(r).join(" "),"data-time":t.isoTimeStr},Ot("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Ot("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:i},o)))}))}))}function Gu(t){return t.text}var Lu=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){return this.props.slatMetas.map((function(t){return Ot("tr",{key:t.key},Ot(Fu,u({},t)))}))},n}(vi),Wu=ge({week:"short"}),Yu=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.allDaySplitter=new ju,n.headerElRef=Ht(),n.rootElRef=Ht(),n.scrollerElRef=Ht(),n.state={slatCoords:null},n.handleScrollTopRequest=function(t){var e=n.scrollerElRef.current;e&&(e.scrollTop=t)},n.renderHeadAxis=function(t,e){void 0===e&&(e="");var r=n.context.options,i=n.props.dateProfile.renderRange,o=yn(i.start,i.end),a=r.navLinks&&1===o?{"data-navlink":Xr(i.start,"week"),tabIndex:0}:{};return r.weekNumbers&&"day"===t?Ot(Da,{date:i.start,defaultFormat:Wu},(function(t,n,r,i){return Ot("th",{ref:t,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},Ot("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:e}},Ot("a",u({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},a),i)))})):Ot("th",{className:"fc-timegrid-axis"},Ot("div",{className:"fc-timegrid-axis-frame",style:{height:e}}))},n.renderTableRowAxis=function(t){var e=n.context,r=e.options;return Ot(ki,{hookProps:{text:r.allDayText,view:e.viewApi},classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:Zu,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(n,e,r,i){return Ot("td",{ref:n,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(e).join(" ")},Ot("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==t?" fc-timegrid-axis-frame-liquid":""),style:{height:t}},Ot("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},i)))}))},n.handleSlatCoords=function(t){n.setState({slatCoords:t})},n}return a(n,t),n.prototype.renderSimpleLayout=function(t,n,e){var r=this.context,i=this.props,o=[],a=da(r.options);return t&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),n&&(o.push({type:"body",key:"all-day",chunk:{content:n}}),o.push({type:"body",key:"all-day-divider",outerContent:Ot("tr",{className:"fc-scrollgrid-section"},Ot("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:e}}),Ot(Ti,{viewSpec:r.viewSpec,elRef:this.rootElRef},(function(t,n){return Ot("div",{className:["fc-timegrid"].concat(n).join(" "),ref:t},Ot(va,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:o}))}))},n.prototype.renderHScrollLayout=function(t,n,e,r,i,o,a){var u=this,s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");var c=this.context,l=this.props,f=!l.forPrint&&da(c.options),d=!l.forPrint&&ha(c.options),h=[];t&&h.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(t){return Ot("tr",null,u.renderHeadAxis("day",t.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),n&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(t){return Ot("tr",null,u.renderTableRowAxis(t.rowSyncHeights[0]))}},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:Ot("tr",{className:"fc-scrollgrid-section"},Ot("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));var v=c.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:function(t){return Ot("div",{className:"fc-timegrid-axis-chunk"},Ot("table",{style:{height:t.expandRows?t.clientHeight:""}},t.tableColGroupNode,Ot("tbody",null,Ot(Lu,{slatMetas:o}))),Ot("div",{className:"fc-timegrid-now-indicator-container"},Ot(Uo,{unit:v?"minute":"day"},(function(t){var n=v&&a&&a.safeComputeTop(t);return"number"==typeof n?Ot(ba,{isAxis:!0,date:t},(function(t,e,r,i){return Ot("div",{ref:t,className:["fc-timegrid-now-indicator-arrow"].concat(e).join(" "),style:{top:n}},i)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:e}]}),d&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:fa},{key:"cols",content:fa}]}),Ot(Ti,{viewSpec:c.viewSpec,elRef:this.rootElRef},(function(t,n){return Ot("div",{className:["fc-timegrid"].concat(n).join(" "),ref:t},Ot(s,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:h}))}))},n.prototype.getAllDayMaxEventProps=function(){var t=this.context.options,n=t.dayMaxEvents,e=t.dayMaxEventRows;return!0!==n&&!0!==e||(n=void 0,e=5),{dayMaxEvents:n,dayMaxEventRows:e}},n}(bi);function Zu(t){return t.text}var qu=function(){function t(t,n,e){this.positions=t,this.dateProfile=n,this.slotDuration=e}return t.prototype.safeComputeTop=function(t){var n=this.dateProfile;if(Ke(n.currentRange,t)){var e=wn(t),r=t.valueOf()-e.valueOf();if(r>=Zn(n.slotMinTime)&&r<Zn(n.slotMaxTime))return this.computeTimeTop(Gn(r))}return null},t.prototype.computeDateTop=function(t,n){return n||(n=wn(t)),this.computeTimeTop(Gn(t.valueOf()-n.valueOf()))},t.prototype.computeTimeTop=function(t){var n,e,r=this.positions,i=r.els.length,o=(t.milliseconds-Zn(this.dateProfile.slotMinTime))/Zn(this.slotDuration);return o=Math.max(0,o),o=Math.min(i,o),n=Math.floor(o),e=o-(n=Math.min(n,i-1)),r.tops[n]+r.getHeight(n)*e},t}(),Ju=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=t.slatElRefs;return Ot("tbody",null,t.slatMetas.map((function(i){var o={time:i.time,date:n.dateEnv.toDate(i.date),view:n.viewApi},a=["fc-timegrid-slot","fc-timegrid-slot-lane",i.isLabeled?"":"fc-timegrid-slot-minor"];return Ot("tr",{key:i.key,ref:r.createRef(i.key)},t.axis&&Ot(Fu,u({},i)),Ot(ki,{hookProps:o,classNames:e.slotLaneClassNames,content:e.slotLaneContent,didMount:e.slotLaneDidMount,willUnmount:e.slotLaneWillUnmount},(function(t,n,e,r){return Ot("td",{ref:t,className:a.concat(n).join(" "),"data-time":i.isoTimeStr},r)})))})))},n}(vi),Xu=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.rootElRef=Ht(),n.slatElRefs=new oa,n}return a(n,t),n.prototype.render=function(){var t=this.props;return Ot("div",{className:"fc-timegrid-slots",ref:this.rootElRef},Ot("table",{className:this.context.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,Ot(Ju,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))},n.prototype.componentDidMount=function(){this.updateSizing()},n.prototype.componentDidUpdate=function(){this.updateSizing()},n.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},n.prototype.updateSizing=function(){var t,n=this.context,e=this.props;e.onCoords&&null!==e.clientWidth&&this.rootElRef.current.offsetHeight&&e.onCoords(new qu(new oi(this.rootElRef.current,(t=this.slatElRefs.currentMap,e.slatMetas.map((function(n){return t[n.key]}))),!1,!0),this.props.dateProfile,n.options.slotDuration))},n}(vi);function $u(t,n){var e,r=[];for(e=0;e<n;e+=1)r.push([]);if(t)for(e=0;e<t.length;e+=1)r[t[e].col].push(t[e]);return r}function Ku(t,n){var e=[];if(t){for(a=0;a<n;a+=1)e[a]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(var r=0,i=t.segs;r<i.length;r++){var o=i[r];e[o.col].segs.push(o)}}else for(var a=0;a<n;a+=1)e[a]=null;return e}var ts=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.rootElRef=Ht(),n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props;return Ot(Ta,{allDayDate:null,moreCnt:n.hiddenSegs.length,allSegs:n.hiddenSegs,hiddenSegs:n.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:ns,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,todayRange:n.todayRange,popoverContent:function(){return fs(n.hiddenSegs,n)}},(function(e,r,i,o,a){return Ot("a",{ref:function(n){mi(e,n),mi(t.rootElRef,n)},className:["fc-timegrid-more-link"].concat(r).join(" "),style:{top:n.top,bottom:n.bottom},onClick:a},Ot("div",{ref:i,className:"fc-timegrid-more-link-inner fc-sticky"},o))}))},n}(vi);function ns(t){return t.shortText}function es(t,n){if(!t)return[[],0];for(var e=t.level,r=t.lateralEnd,i=t.lateralStart,o=[];i<r;)o.push(n(e,i)),i+=1;return o.sort(rs),[o.map(is),o[0][1]]}function rs(t,n){return n[1]-t[1]}function is(t){return t[0]}function os(t,n){var e={};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return o in e?e[o]:e[o]=n.apply(void 0,r)}}function as(t,n,e,r){void 0===e&&(e=null),void 0===r&&(r=0);var i=[];if(e)for(var o=0;o<t.length;o+=1){var a=t[o],u=e.computeDateTop(a.start,n),s=Math.max(u+(r||0),e.computeDateTop(a.end,n));i.push({start:Math.round(u),end:Math.round(s)})}return i}var us=ge({hour:"numeric",minute:"2-digit",meridiem:!1}),ss=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&t.push("fc-timegrid-event-short"),Ot(ga,u({},this.props,{defaultTimeFormat:us,extraClassNames:t}))},n}(vi),cs=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props;return Ot(Aa,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(t,n){return n&&Ot("div",{className:"fc-timegrid-col-misc",ref:t},n)}))},n}(vi),ls=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.sortEventSegs=ne(or),n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props,e=this.context,r=e.options.selectMirror,i=n.eventDrag&&n.eventDrag.segs||n.eventResize&&n.eventResize.segs||r&&n.dateSelectionSegs||[],o=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{},a=this.sortEventSegs(n.fgEventSegs,e.options.eventOrder);return Ot(ka,{elRef:n.elRef,date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},(function(e,s,c){return Ot("td",u({ref:e,className:["fc-timegrid-col"].concat(s,n.extraClassNames||[]).join(" ")},c,n.extraDataAttrs),Ot("div",{className:"fc-timegrid-col-frame"},Ot("div",{className:"fc-timegrid-col-bg"},t.renderFillSegs(n.businessHourSegs,"non-business"),t.renderFillSegs(n.bgEventSegs,"bg-event"),t.renderFillSegs(n.dateSelectionSegs,"highlight")),Ot("div",{className:"fc-timegrid-col-events"},t.renderFgSegs(a,o,!1,!1,!1)),Ot("div",{className:"fc-timegrid-col-events"},t.renderFgSegs(i,{},Boolean(n.eventDrag),Boolean(n.eventResize),Boolean(r))),Ot("div",{className:"fc-timegrid-now-indicator-container"},t.renderNowIndicator(n.nowIndicatorSegs)),Ot(cs,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps})))}))},n.prototype.renderFgSegs=function(t,n,e,r,i){var o=this.props;return o.forPrint?fs(t,o):this.renderPositionedFgSegs(t,n,e,r,i)},n.prototype.renderPositionedFgSegs=function(t,n,e,r,i){var o=this,a=this.context.options,s=a.eventMaxStack,c=a.eventShortHeight,l=a.eventOrderStrict,f=this.props,d=f.eventSelection,h=f.todayRange,v=f.nowDate,p=e||r||i,g=function(t,n,e,r){for(var i=[],o=[],a=0;a<t.length;a+=1){var s=n[a];s?i.push({index:a,thickness:1,span:s}):o.push(t[a])}for(var c=function(t,n,e){var r=new mo;null!=n&&(r.strictOrder=n),null!=e&&(r.maxStackCnt=e);var i,o,a=function(t){for(var n,e,r=[],i=0,o=t;i<o.length;i++){for(var a=o[i],u=[],s={span:a.span,entries:[a]},c=0,l=r;c<l.length;c++){var f=l[c];Ao(f.span,s.span)?s={entries:f.entries.concat(s.entries),span:(n=f.span,e=s.span,{start:Math.min(n.start,e.start),end:Math.max(n.end,e.end)})}:u.push(f)}u.push(s),r=u}return r}(r.addSegs(t)),s=function(t){var n=t.entriesByLevel,e=os((function(t,n){return t+":"+n}),(function(r,i){var o=es(function(t,n,e){for(var r=t.levelCoords,i=t.entriesByLevel,o=i[n][e],a=r[n]+o.thickness,u=r.length,s=n;s<u&&r[s]<a;s+=1);for(;s<u;s+=1){for(var c=i[s],l=void 0,f=ko(c,o.span.start,bo),d=f[0]+f[1],h=d;(l=c[h])&&l.span.start<o.span.end;)h+=1;if(d<h)return{level:s,lateralStart:d,lateralEnd:h}}return null}(t,r,i),e),a=n[r][i];return[u(u({},a),{nextLevelNodes:o[0]}),a.thickness+o[1]]}));return es(n.length?{level:0,lateralStart:0,lateralEnd:n[0].length}:null,e)[0]}(r);return i=s,o=os((function(t){return yo(t)}),(function(t,n,e){var r,i=t.nextLevelNodes,a=t.thickness,s=a+e,c=a/s,l=[];if(i.length)for(var f=0,d=i;f<d.length;f++){var h=d[f];if(void 0===r)r=(v=o(h,n,s))[0],l.push(v[1]);else{var v=o(h,r,0);l.push(v[1])}}else r=1;var p=(r-n)*c;return[r-p,u(u({},t),{thickness:p,nextLevelNodes:l})]})),{segRects:function(t){var n=[],e=os((function(t){return yo(t)}),(function(t,e,i){var o=u(u({},t),{levelCoord:e,stackDepth:i,stackForward:0});return n.push(o),o.stackForward=r(t.nextLevelNodes,e+t.thickness,i+1)+1}));function r(t,n,r){for(var i=0,o=0,a=t;o<a.length;o++)i=Math.max(e(a[o],n,r),i);return i}return r(t,0,0),n}(s=i.map((function(t){return o(t,0,0)[1]}))),hiddenGroups:a}}(i,e,r),l=c.hiddenGroups,f=[],d=0,h=c.segRects;d<h.length;d++){var v=h[d];f.push({seg:t[v.index],rect:v})}for(var p=0,g=o;p<g.length;p++)f.push({seg:g[p],rect:null});return{segPlacements:f,hiddenGroups:l}}(t,as(t,f.date,f.slatCoords,a.eventMinHeight),l,s),m=g.segPlacements;return Ot(jt,null,this.renderHiddenGroups(g.hiddenGroups,t),m.map((function(t){var a=t.seg,s=t.rect,l=a.eventRange.instance.instanceId,f=p||Boolean(!n[l]&&s),g=ds(s&&s.span),m=!p&&s?o.computeSegHStyle(s):{left:0,right:0},b=Boolean(s)&&s.stackForward>0,y=Boolean(s)&&s.span.end-s.span.start<c;return Ot("div",{className:"fc-timegrid-event-harness"+(b?" fc-timegrid-event-harness-inset":""),key:l,style:u(u({visibility:f?"":"hidden"},g),m)},Ot(ss,u({seg:a,isDragging:e,isResizing:r,isDateSelecting:i,isSelected:l===d,isShort:y},fr(a,h,v))))})))},n.prototype.renderHiddenGroups=function(t,n){var e=this.props,r=e.extraDateSpan,i=e.dateProfile,o=e.todayRange,a=e.nowDate,u=e.eventSelection,s=e.eventDrag,c=e.eventResize;return Ot(jt,null,t.map((function(t){var e,l=ds(t.span),f=(e=n,t.entries.map((function(t){return e[t.index]})));return Ot(ts,{key:Xn(Ba(f)),hiddenSegs:f,top:l.top,bottom:l.bottom,extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:u,eventDrag:s,eventResize:c})})))},n.prototype.renderFillSegs=function(t,n){var e=this.props,r=as(t,e.date,e.slatCoords,this.context.options.eventMinHeight).map((function(r,i){var o=t[i];return Ot("div",{key:dr(o.eventRange),className:"fc-timegrid-bg-harness",style:ds(r)},"bg-event"===n?Ot(xa,u({seg:o},fr(o,e.todayRange,e.nowDate))):_a(n))}));return Ot(jt,null,r)},n.prototype.renderNowIndicator=function(t){var n=this.props,e=n.slatCoords,r=n.date;return e?t.map((function(t,n){return Ot(ba,{isAxis:!1,date:r,key:n},(function(n,i,o,a){return Ot("div",{ref:n,className:["fc-timegrid-now-indicator-line"].concat(i).join(" "),style:{top:e.computeDateTop(t.start,r)}},a)}))})):null},n.prototype.computeSegHStyle=function(t){var n,e,r=this.context,i=r.isRtl,o=r.options.slotEventOverlap,a=t.levelCoord,u=t.levelCoord+t.thickness;o&&(u=Math.min(1,a+2*(u-a))),i?(n=1-u,e=a):(n=a,e=1-u);var s={zIndex:t.stackDepth+1,left:100*n+"%",right:100*e+"%"};return o&&!t.stackForward&&(s[i?"marginLeft":"marginRight"]=20),s},n}(vi);function fs(t,n){var e=n.todayRange,r=n.nowDate,i=n.eventSelection,o=n.eventDrag,a=n.eventResize,s=(o?o.affectedInstances:null)||(a?a.affectedInstances:null)||{};return Ot(jt,null,t.map((function(t){var n=t.eventRange.instance.instanceId;return Ot("div",{key:n,style:{visibility:s[n]?"hidden":""}},Ot(ss,u({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===i,isShort:!1},fr(t,e,r))))})))}function ds(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}var hs=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.splitFgEventSegs=ne($u),n.splitBgEventSegs=ne($u),n.splitBusinessHourSegs=ne($u),n.splitNowIndicatorSegs=ne($u),n.splitDateSelectionSegs=ne($u),n.splitEventDrag=ne(Ku),n.splitEventResize=ne(Ku),n.rootElRef=Ht(),n.cellElRefs=new oa,n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props,e=this.context.options.nowIndicator&&n.slatCoords&&n.slatCoords.safeComputeTop(n.nowDate),r=n.cells.length,i=this.splitFgEventSegs(n.fgEventSegs,r),o=this.splitBgEventSegs(n.bgEventSegs,r),a=this.splitBusinessHourSegs(n.businessHourSegs,r),u=this.splitNowIndicatorSegs(n.nowIndicatorSegs,r),s=this.splitDateSelectionSegs(n.dateSelectionSegs,r),c=this.splitEventDrag(n.eventDrag,r),l=this.splitEventResize(n.eventResize,r);return Ot("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Ot("table",{style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,Ot("tbody",null,Ot("tr",null,n.axis&&Ot("td",{className:"fc-timegrid-col fc-timegrid-axis"},Ot("div",{className:"fc-timegrid-col-frame"},Ot("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof e&&Ot(ba,{isAxis:!0,date:n.nowDate},(function(t,n,r,i){return Ot("div",{ref:t,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:e}},i)}))))),n.cells.map((function(e,r){return Ot(ls,{key:e.key,elRef:t.cellElRefs.createRef(e.key),dateProfile:n.dateProfile,date:e.date,nowDate:n.nowDate,todayRange:n.todayRange,extraHookProps:e.extraHookProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,fgEventSegs:i[r],bgEventSegs:o[r],businessHourSegs:a[r],nowIndicatorSegs:u[r],dateSelectionSegs:s[r],eventDrag:c[r],eventResize:l[r],slatCoords:n.slatCoords,eventSelection:n.eventSelection,forPrint:n.forPrint})}))))))},n.prototype.componentDidMount=function(){this.updateCoords()},n.prototype.componentDidUpdate=function(){this.updateCoords()},n.prototype.updateCoords=function(){var t,n=this.props;n.onColCoords&&null!==n.clientWidth&&n.onColCoords(new oi(this.rootElRef.current,(t=this.cellElRefs.currentMap,n.cells.map((function(n){return t[n.key]}))),!0,!1))},n}(vi),vs=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.processSlotOptions=ne(ps),n.state={slatCoords:null},n.handleRootEl=function(t){t?n.context.registerInteractiveComponent(n,{el:t,isHitComboAllowed:n.props.isHitComboAllowed}):n.context.unregisterInteractiveComponent(n)},n.handleScrollRequest=function(t){var e=n.props.onScrollTopRequest,r=n.state.slatCoords;if(e&&r){if(t.time){var i=r.computeTimeTop(t.time);(i=Math.ceil(i))&&(i+=1),e(i)}return!0}return!1},n.handleColCoords=function(t){n.colCoords=t},n.handleSlatCoords=function(t){n.setState({slatCoords:t}),n.props.onSlatCoords&&n.props.onSlatCoords(t)},n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.state;return Ot("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Ot(Xu,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Ot(hs,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))},n.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},n.prototype.componentDidUpdate=function(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)},n.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},n.prototype.queryHit=function(t,n){var e=this.context,r=e.dateEnv,i=this.colCoords,o=this.props.dateProfile,a=this.state.slatCoords,s=this.processSlotOptions(this.props.slotDuration,e.options.snapDuration),c=s.snapDuration,l=s.snapsPerSlot,f=i.leftToIndex(t),d=a.positions.topToIndex(n);if(null!=f&&null!=d){var h=this.props.cells[f],v=a.positions.tops[d],p=a.positions.getHeight(d),g=Math.floor((n-v)/p*l),m=this.props.cells[f].date,b=Wn(o.slotMinTime,function(t,n){return{years:t.years*n,months:t.months*n,days:t.days*n,milliseconds:t.milliseconds*n}}(c,d*l+g)),y=r.add(m,b),A=r.add(y,c);return{dateProfile:o,dateSpan:u({range:{start:y,end:A},allDay:!1},h.extraDateSpan),dayEl:i.els[f],rect:{left:i.lefts[f],right:i.rights[f],top:v,bottom:v+p},layer:0}}return null},n}(bi);function ps(t,n){var e=n||t,r=qn(t,e);return null===r&&(e=t,r=1),{snapDuration:e,snapsPerSlot:r}}var gs=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.sliceRange=function(t,n){for(var e=[],r=0;r<n.length;r+=1){var i=Je(t,n[r]);i&&e.push({start:i.start,end:i.end,isStart:i.start.valueOf()===t.start.valueOf(),isEnd:i.end.valueOf()===t.end.valueOf(),col:r})}return e},n}(Zo),ms=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buildDayRanges=ne(bs),n.slicer=new gs,n.timeColsRef=Ht(),n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props,e=this.context,r=n.dateProfile,i=n.dayTableModel,o=e.options.nowIndicator,a=this.buildDayRanges(i,r,e.dateEnv);return Ot(Uo,{unit:o?"minute":"day"},(function(s,c){return Ot(vs,u({ref:t.timeColsRef},t.slicer.sliceProps(n,r,null,e,a),{forPrint:n.forPrint,axis:n.axis,dateProfile:r,slatMetas:n.slatMetas,slotDuration:n.slotDuration,cells:i.cells[0],tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,expandRows:n.expandRows,nowDate:s,nowIndicatorSegs:o&&t.slicer.sliceNowDate(s,e,a),todayRange:c,onScrollTopRequest:n.onScrollTopRequest,onSlatCoords:n.onSlatCoords}))}))},n}(bi);function bs(t,n,e){for(var r=[],i=0,o=t.headerDates;i<o.length;i++){var a=o[i];r.push({start:e.add(a,n.slotMinTime),end:e.add(a,n.slotMaxTime)})}return r}var ys=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function As(t,n,e,r,i){for(var o,a=new Date(0),u=t,s=Gn(0),c=e||function(t){var n,e,r;for(n=ys.length-1;n>=0;n-=1)if(null!==(r=qn(e=Gn(ys[n]),t))&&r>1)return e;return t}(r),l=[];Zn(u)<Zn(n);){var f=i.add(a,u),d=null!==qn(s,c);l.push({date:f,time:u,key:f.toISOString(),isoTimeStr:(o=f,fn(o.getUTCHours(),2)+":"+fn(o.getUTCMinutes(),2)+":"+fn(o.getUTCSeconds(),2)),isLabeled:d}),u=Wn(u,r),s=Wn(s,r)}return l}var ws=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buildTimeColsModel=ne(ks),n.buildSlatMetas=ne(As),n}return a(n,t),n.prototype.render=function(){var t=this,n=this.context,e=n.options,r=n.dateEnv,i=this.props,o=i.dateProfile,a=this.buildTimeColsModel(o,n.dateProfileGenerator),s=this.allDaySplitter.splitProps(i),c=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,e.slotLabelInterval,e.slotDuration,r),l=e.dayMinWidth,f=!l,d=l,h=e.dayHeaders&&Ot(Go,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:f?this.renderHeadAxis:null}),v=!1!==e.allDaySlot&&function(n){return Ot(iu,u({},s.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:n.tableMinWidth,colGroupNode:n.tableColGroupNode,renderRowIntro:f?t.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:t.headerElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:i.forPrint},t.getAllDayMaxEventProps()))},p=function(n){return Ot(ms,u({},s.timed,{dayTableModel:a,dateProfile:o,axis:f,slotDuration:e.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,onSlatCoords:t.handleSlatCoords,expandRows:n.expandRows,onScrollTopRequest:t.handleScrollTopRequest}))};return d?this.renderHScrollLayout(h,v,p,a.colCnt,l,c,this.state.slatCoords):this.renderSimpleLayout(h,v,p)},n}(Yu);function ks(t,n){var e=new Wo(t.renderRange,n);return new Yo(e,!1)}var _s=yi({initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:ws,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const xs=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"en-gb",week:{dow:1,doy:4}}}))),Es=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"}}))),Ds=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={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.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"}}))),Ns=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:function(t){return"+altri "+t},noEventsText:"Non ci sono eventi da visualizzare"}}))),Ss=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",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"}}))),Cs=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:function(t){return"+ ещё "+t},noEventsText:"Нет событий для отображения"}}))),Ts=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:function(t){return"另外 "+t+" 个"},noEventsText:"没有事件显示"}})));var Ms,Rs;!function(t){t.customStyle="Custom style of the component.",t.data=" Actual data of the calendar.",t.dateCol="Column containing events' dates.",t.descrCol="Column containing events' descriptions.",t.endCol="Column containing events' ending time.",t.hideNavigation="When disabled, the navigation toolbar won't be displayed.",t.iconCol="Column containing events' icons. There can be multiple icons, divided by ';'.",t.imageCol="Column containing events' images. There can be multiple images, divided by ';'.",t.initialDate="Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD).",t.startCol="Column containing events' starting time.",t.styleCol="Column containing events' CSS styles.",t.viewType="Type of the view."}(Ms||(Ms={})),function(t){t.DAY="timeGridDay",t.LIST="listMonth",t.MONTH="dayGridMonth",t.WEEK="timeGridWeek"}(Rs||(Rs={}));let Bs=class{constructor(e){t(this,e),this.kupCalendarEventClicked=n(this,"kup-calendar-eventclick",6),this.kupCalendarDateClicked=n(this,"kup-calendar-dateclick",6),this.kupCalendarEventDropped=n(this,"kup-calendar-eventdrop",6),this.kupCalendarViewChanged=n(this,"kup-calendar-viewchange",6),this.customStyle="",this.data=null,this.dateCol=null,this.descrCol=null,this.endCol=null,this.hideNavigation=!1,this.iconCol=null,this.imageCol=null,this.initialDate=null,this.startCol=null,this.styleCol=null,this.viewType=Rs.MONTH,this.calendarContainer=null,this.kupManager=d(),this.navTitle=null,this.resizeTimeout=null}async getProps(t){return y(this,Ms,t)}async refresh(){e(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.refresh()}),300)}async setProps(t){A(this,Ms,t)}changeView(t){this.viewType=t,this.calendar.changeView(t),this.emitNavEvent()}getColumns(){return this.data&&this.data.rows?this.data.columns:[]}getLocale(){switch(this.kupManager.dates.locale){case f.CHINESE:return Ts;case f.FRENCH:return Ds;case f.ITALIAN:return Ns;case f.POLISH:return Ss;case f.RUSSIAN:return Cs;case f.SPANISH:return Es;default:return xs}}getRows(){return this.data&&this.data.rows?this.data.rows:[]}setChipProps(){const t={data:[],onClick:[],type:b.CHOICE,wrapperClass:"navigation__choice"};for(const n in Rs){const e=Rs[n],r={value:n,label:this.kupManager.language.translate(h[n]),checked:this.viewType===e};t.data.push(r),t.onClick.push((()=>this.changeView(e)))}return t}getEvents(){const t=this.startCol&&this.endCol&&v(this.getColumns(),this.startCol)&&v(this.getColumns(),this.endCol);return this.getRows().map((n=>{const e=n.cells[this.dateCol];let r=this.kupManager.dates.toDayjs(e.value),i=this.kupManager.dates.toDayjs(e.value);if(t){const t=n.cells[this.startCol],e=n.cells[this.endCol];if(t&&e){const n=this.kupManager.dates.toDayjs(t.value,"HH:mm:ss"),o=this.kupManager.dates.toDayjs(e.value,"HH:mm:ss");r=r.hour(n.hour()),r=r.minute(n.minute()),r=r.second(n.second()),i=i.hour(o.hour()),i=i.minute(o.minute()),i=i.second(o.second())}}return{allDay:!t,end:i.toISOString(),extendedProps:{row:n},start:r.toISOString(),title:n.cells[this.descrCol].value}}))}onPrev(){this.calendar.prev(),this.updateCalendar(),this.emitNavEvent()}onNext(){this.calendar.next(),this.updateCalendar(),this.emitNavEvent()}onToday(){this.calendar.today(),this.updateCalendar()}emitNavEvent(){const t=this.kupManager.dates.subtract(this.calendar.view.currentEnd,1,"day").toDate();this.kupCalendarViewChanged.emit({comp:this,id:this.rootElement.id,from:this.calendar.view.currentStart,to:t})}updateCalendar(){this.calendar&&(this.calendar.setOption("locale",this.getLocale()),this.navTitle.innerText=this.calendar.currentData.viewTitle,this.calendar.updateSize())}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.calendar=new Pa(this.calendarContainer,{dateClick:({date:t})=>{this.kupCalendarDateClicked.emit({comp:this,id:this.rootElement.id,date:t})},editable:!0,eventClick:({event:t})=>{this.kupCalendarEventClicked.emit({comp:this,id:this.rootElement.id,row:t.extendedProps.row})},eventDidMount:t=>{if(this.styleCol){const n=t.event.extendedProps.row.cells[this.styleCol],e=t.el.children[0];n&&n.style&&Object.keys(n.style).forEach((t=>{e.style[t]=n.style[t]}))}if(this.iconCol){const n=t.event.extendedProps.row.cells[this.iconCol];if(n&&n.value){const e=document.createElement("div");e.classList.add("icon-wrapper"),n.value.split(";").forEach((t=>{const n=document.createElement("span");n.className="custom-icon";const i=r(`./assets/svg/${t}.svg`);n.style.mask=`url('${i}') no-repeat center`,n.style.webkitMask=`url('${i}') no-repeat center`,e.appendChild(n)})),t.el.appendChild(e)}}if(this.imageCol){const n=t.event.extendedProps.row.cells[this.imageCol];if(n&&n.value){const e=document.createElement("div");e.classList.add("image-wrapper"),n.value.split(";").forEach((t=>{const n=document.createElement("img");n.src=t,e.appendChild(n)})),t.el.appendChild(e)}}},eventDrop:({event:t,oldEvent:n})=>{this.kupCalendarEventDropped.emit({comp:this,id:this.rootElement.id,fromDate:{start:n.start,end:n.end},toDate:{start:t.start,end:t.end}})},events:this.getEvents(),headerToolbar:!1,initialDate:this.initialDate,initialView:this.viewType,locale:this.getLocale(),locales:[Es,Ds,Ns,Ss,Cs,Ts],plugins:[au,Tu,Hu,_s]}),this.calendar.render(),this.updateCalendar(),this.kupManager.resize.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.updateCalendar(),this.kupManager.debug.logRender(this,!0)}render(){return i("div",{id:p},i("div",{class:"navigation"},this.hideNavigation?null:i("div",{class:"navigation__left"},i(g,{icon:"chevron_left",onClick:()=>this.onPrev(),title:this.kupManager.language.translate(h.PREVIOUS),wrapperClass:"navigation__prev"}),i(g,{icon:"calendar",onClick:()=>this.onToday(),title:this.kupManager.language.translate(h.TODAY),wrapperClass:"navigation__today"}),i(g,{icon:"chevron_right",onClick:()=>this.onNext(),title:this.kupManager.language.translate(h.NEXT),wrapperClass:"navigation__next"})),i("div",{class:"navigation__title "+(this.hideNavigation?"navigation__title--centered":""),ref:t=>{this.navTitle=t}}),this.hideNavigation?null:i("div",{class:"navigation__right"},i(m,Object.assign({},this.setChipProps())))),i("div",{class:"calendar",ref:t=>this.calendarContainer=t}))}disconnectedCallback(){this.calendar&&this.calendar.destroy(),this.kupManager.language.unregister(this),this.kupManager.resize.unobserve(this.rootElement),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}};Bs.style='.fc-icon,.fc-unselectable{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc .fc-button:not(:disabled),.fc a[data-navlink],.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-unselectable{user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.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{vertical-align:top;padding:0}.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 .fc-button,.fc-icon{font-weight:400;text-align:center;display:inline-block}.fc-theme-standard td,.fc-theme-standard th{border:1px solid #ddd;border:1px solid var(--fc-border-color,#ddd)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;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\');font-weight:400;font-style:normal}.fc-icon{width:1em;height:1em;user-select:none;font-family:fcicons!important;speak:none;font-style:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fc .fc-scroller-harness-liquid,.fc .fc-scroller-liquid,.fc .fc-scrollgrid-liquid{height:100%}.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{overflow:visible;text-transform:none;margin:0;font-family:inherit}.fc .fc-button::-moz-focus-inner{padding:0;border-style:none}.fc .fc-button{-webkit-appearance:button;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.4em .65em;font-size:1em;line-height:1.5;border-radius:.25em}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{outline:0;box-shadow:0 0 0 .2rem rgba(44,62,80,.25)}.fc .fc-button-primary:focus,.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:disabled{opacity:.65}.fc .fc-button-primary{color:#fff;color:var(--fc-button-text-color,#fff);background-color:#2C3E50;background-color:var(--fc-button-bg-color,#2C3E50);border-color:#2C3E50;border-color:var(--fc-button-border-color,#2C3E50)}.fc .fc-button-primary:hover{color:#fff;color:var(--fc-button-text-color,#fff);background-color:#1e2b37;background-color:var(--fc-button-hover-bg-color,#1e2b37);border-color:#1a252f;border-color:var(--fc-button-hover-border-color,#1a252f)}.fc .fc-button-primary:disabled{color:#fff;color:var(--fc-button-text-color,#fff);background-color:#2C3E50;background-color:var(--fc-button-bg-color,#2C3E50);border-color:#2C3E50;border-color:var(--fc-button-border-color,#2C3E50)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{color:#fff;color:var(--fc-button-text-color,#fff);background-color:#1a252f;background-color:var(--fc-button-active-bg-color,#1a252f);border-color:#151e27;border-color:var(--fc-button-active-border-color,#151e27)}.fc .fc-button .fc-icon{vertical-align:middle;font-size:1.5em}.fc .fc-button-group{position:relative;display:inline-flex;vertical-align:middle}.fc .fc-button-group>.fc-button{position:relative;flex:1 1 auto}.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){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-top-left-radius:0;border-bottom-left-radius:0}.fc .fc-toolbar{display:flex;justify-content:space-between;align-items:center}.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-absolute{position:absolute;top:0;right:0;left:0;bottom:0}.fc .fc-scroller-harness{position:relative;overflow:hidden;direction:ltr}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid #ddd;border:1px solid var(--fc-border-color,#ddd)}.fc .fc-scrollgrid,.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{width:100%;table-layout:fixed}.fc .fc-scrollgrid table{border-top-style:hidden;border-left-style:hidden;border-right-style:hidden}.fc .fc-scrollgrid{border-collapse:separate;border-right-width:0}.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-top-width:0;border-left-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,#fff);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-bg-event,.fc .fc-highlight,.fc .fc-non-business,.fc .fc-view-harness-active>.fc-view{position:absolute;top:0;left:0;right:0;bottom:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-non-business{background:rgba(215,215,215,.3);background:var(--fc-non-business-color,rgba(215,215,215,.3))}.fc .fc-bg-event{background:var(--fc-bg-event-color,#8fdf82);opacity:.3;opacity:var(--fc-bg-event-opacity,.3)}.fc .fc-bg-event .fc-event-title{margin:.5em;font-size:.85em;font-size:var(--fc-small-font-size,.85em);font-style:italic}.fc .fc-highlight{background:rgba(188,232,241,.3);background:var(--fc-highlight-color,rgba(188,232,241,.3))}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:rgba(208,208,208,.3);background:var(--fc-neutral-bg-color,rgba(208,208,208,.3))}a.fc-event,a.fc-event:hover{text-decoration:none}.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,.fc-h-event{display:block}.fc-event-selected .fc-event-resizer{border-radius:4px;border-radius:calc(var(--fc-event-resizer-dot-total-width,8px)/ 2);border-width:1px;border-width:var(--fc-event-resizer-dot-border-width,1px);width:8px;width:var(--fc-event-resizer-dot-total-width,8px);height:8px;height:var(--fc-event-resizer-dot-total-width,8px);border-style:solid;border-color:inherit;background:var(--fc-page-bg-color,#fff)}.fc-event-selected .fc-event-resizer:before{content:\'\';position:absolute;top:-20px;left:-20px;right:-20px;bottom:-20px}.fc-event-selected:after,.fc-event-selected:before{content:"";position:absolute}.fc-event-selected{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before{z-index:3;top:0;left:0;right:0;bottom:0}.fc-event-selected:after{background:rgba(0,0,0,.25);background:var(--fc-event-selected-overlay-color,rgba(0,0,0,.25));z-index:1;top:-1px;left:-1px;right:-1px;bottom:-1px}.fc-h-event{border:1px solid #3788d8;border:1px solid var(--fc-event-border-color,#3788d8);background-color:#3788d8;background-color:var(--fc-event-bg-color,#3788d8)}.fc-h-event .fc-event-main{color:#fff;color:var(--fc-event-text-color,#fff)}.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;vertical-align:top;left:0;right:0;max-width:100%;overflow:hidden}.fc-h-event.fc-event-selected:before{top:-10px;bottom:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-top-right-radius:0;border-bottom-right-radius:0;border-right-width:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{top:0;bottom:0;width:8px;width:var(--fc-event-resizer-thickness,8px)}.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:-4px;left:calc(var(--fc-event-resizer-thickness,8px)/ -2)}.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:-4px;right:calc(var(--fc-event-resizer-thickness,8px)/ -2)}.fc-h-event.fc-event-selected .fc-event-resizer{top:50%;margin-top:-4px;margin-top:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.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:-4px;left:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.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:-4px;right:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.fc .fc-popover{position:absolute;z-index:9999;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc .fc-popover-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;opacity:.65;font-size:1.1em}.fc-theme-standard .fc-popover{border:1px solid #ddd;border:1px solid var(--fc-border-color,#ddd);background:var(--fc-page-bg-color,#fff)}.fc-theme-standard .fc-popover-header{background:rgba(208,208,208,.3);background:var(--fc-neutral-bg-color,rgba(208,208,208,.3))}: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{content:"";clear:both;display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:rgba(255,220,40,.15);background-color:var(--fc-today-bg-color,rgba(255,220,40,.15))}.fc .fc-daygrid-day-frame{position:relative;min-height:100%}.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{position:relative;z-index:4;padding:4px}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{position:absolute;left:0;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{position:relative;min-height:2em}.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{position:absolute;top:0;left:0;right:0}.fc .fc-daygrid-bg-harness{position:absolute;top:0;bottom: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{z-index:6;margin-top:1px}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;padding:2px 3px 0}.fc .fc-daygrid-day-bottom:before{content:"";clear:both;display:table}.fc .fc-daygrid-more-link{position:relative;z-index:4;cursor:pointer}.fc .fc-daygrid-week-number{position:absolute;z-index:5;top:0;padding:2px;min-width:1.5em;text-align:center;background-color:rgba(208,208,208,.3);background-color:var(--fc-neutral-bg-color,rgba(208,208,208,.3));color:grey;color:var(--fc-neutral-text-color,grey)}.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-week-number{left:0;border-radius:0 0 3px}.fc-direction-rtl .fc-daygrid-week-number{right:0;border-radius:0 0 0 3px}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{position:relative;white-space:nowrap;border-radius:3px;font-size:.85em;font-size:var(--fc-small-font-size,.85em)}.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{display:flex;align-items:center;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;min-width:0;overflow:hidden;font-weight:700}.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{top:-10px;bottom:-10px}.fc-daygrid-event-dot{margin:0 4px;box-sizing:content-box;width:0;height:0;border:4px solid #3788d8;border:calc(var(--fc-daygrid-event-dot-width,8px)/ 2) solid var(--fc-event-border-color,#3788d8);border-radius:4px;border-radius:calc(var(--fc-daygrid-event-dot-width,8px)/ 2)}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}:root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid #ddd;border:1px solid var(--fc-border-color,#ddd)}.fc .fc-list-empty{background-color:rgba(208,208,208,.3);background-color:var(--fc-neutral-bg-color,rgba(208,208,208,.3));height:100%;display:flex;justify-content:center;align-items:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{width:100%;border-style:hidden}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{position:sticky;top:0;background:var(--fc-page-bg-color,#fff)}.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{content:"";clear:both;display:table}.fc-theme-standard .fc-list-day-cushion{background-color:rgba(208,208,208,.3);background-color:var(--fc-neutral-bg-color,rgba(208,208,208,.3))}.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:#f5f5f5;background-color:var(--fc-list-event-hover-bg-color,#f5f5f5)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{display:inline-block;box-sizing:content-box;width:0;height:0;border:5px solid #3788d8;border:calc(var(--fc-list-event-dot-width,10px)/ 2) solid var(--fc-event-border-color,#3788d8);border-radius:5px;border-radius:calc(var(--fc-list-event-dot-width,10px)/ 2)}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}.fc-v-event{display:block;border:1px solid #3788d8;border:1px solid var(--fc-event-border-color,#3788d8);background-color:#3788d8;background-color:var(--fc-event-bg-color,#3788d8)}.fc-v-event .fc-event-main{color:#fff;color:var(--fc-event-text-color,#fff);height:100%}.fc-v-event .fc-event-main-frame{height:100%;display:flex;flex-direction:column}.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{top:0;bottom:0;max-height:100%;overflow:hidden}.fc-v-event:not(.fc-event-start){border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.fc-v-event:not(.fc-event-end){border-bottom-width:0;border-bottom-left-radius:0;border-bottom-right-radius: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:8px;height:var(--fc-event-resizer-thickness,8px);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:-4px;top:calc(var(--fc-event-resizer-thickness,8px)/ -2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:-4px;bottom:calc(var(--fc-event-resizer-thickness,8px)/ -2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:-4px;margin-left:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:-4px;top:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:-4px;bottom:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-body,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-slot{height:1.5em;border-bottom:0}.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{overflow:hidden;display:flex;align-items:center;justify-content:flex-end}.fc .fc-timegrid-axis-cushion{max-width:60px;flex-shrink:0}.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{height:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fc .fc-timegrid-col.fc-day-today{background-color:rgba(255,220,40,.15);background-color:var(--fc-today-bg-color,rgba(255,220,40,.15))}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{height:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fc-media-screen .fc-timegrid-cols{position:absolute;top:0;left:0;right:0;bottom: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{position:absolute;top:0;left:0;right: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,.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-bg-harness{position:absolute;left:0;right:0}.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{position:absolute;top:0;bottom:0;left:0;right: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 #fff;box-shadow:0 0 0 1px var(--fc-page-bg-color,#fff)}.fc-timegrid-event,.fc-timegrid-more-link{font-size:.85em;font-size:var(--fc-small-font-size,.85em);border-radius:3px}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{white-space:nowrap;font-size:.85em;font-size:var(--fc-small-font-size,.85em);margin-bottom:1px}.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:.85em;font-size:var(--fc-small-font-size,.85em)}.fc-timegrid-more-link{position:absolute;z-index:9999;color:inherit;color:var(--fc-more-link-text-color,inherit);background:var(--fc-more-link-bg-color,#d0d0d0);cursor:pointer;margin-bottom:1px}.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-line{position:absolute;z-index:4;left:0;right:0;border-style:solid;border-color:red;border-color:var(--fc-now-indicator-color,red);border-width:1px 0 0}.fc .fc-timegrid-now-indicator-arrow{position:absolute;z-index:4;margin-top:-5px;border-style:solid;border-color:red;border-color:var(--fc-now-indicator-color,red)}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{left:0;border-width:5px 0 5px 6px;border-top-color:transparent;border-bottom-color:transparent}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{right:0;border-width:5px 6px 5px 0;border-top-color:transparent;border-bottom-color:transparent}.f-image--wrapper{display:block;margin:auto;position:relative;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper.kup-fit img{max-width:max-content;object-fit:contain}.f-image--wrapper img{display:block;margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .f-image__css{overflow:hidden;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .f-image__icon{margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .css-step.bottom-aligned{bottom:0;position:absolute}.f-button--wrapper{--kup_button_border_radius:var(--kup-button-border-radius, 4px);--kup_button_disabled_color:var(\n --kup-button-disabled-color,\n var(--kup-disabled-color)\n );--kup_button_font_family:var(\n --kup-button-font-family,\n var(--kup-font-family)\n );--kup_button_font_size:var(--kup-button-font-size, var(--kup-font-size));--kup_button_font_weight:var(--kup-button-font-weight, 400);--kup_button_height:var(--kup-button-height, 3em);--kup_button_padding:var(--kup-button-padding, 0 1.25em);--kup_button_primary_color:var(\n --kup-button-primary-color,\n var(--kup-primary-color)\n );--kup_button_primary_color_h:var(\n --kup-button-primary-color-h,\n var(--kup-primary-color-h)\n );--kup_button_primary_color_s:var(\n --kup-button-primary-color-s,\n var(--kup-primary-color-s)\n );--kup_button_primary_color_l:var(\n --kup-button-primary-color-l,\n var(--kup-primary-color-l)\n );--kup_button_primary_color_rgb:var(\n --kup-button-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_button_text_on_primary_color:var(\n --kup-button-text-on-primary-color,\n var(--kup-text-on-primary-color)\n );--kup-spinner-color:var(--kup_button_primary_color);font-family:var(--kup_button_font_family);font-size:var(--kup_button_font_size)}.f-button--wrapper .button{-moz-osx-font-smoothing:grayscale;-webkit-appearance:none;-webkit-font-smoothing:antialiased;align-items:center;background-color:transparent;border:none;border-radius:var(--kup_button_border_radius);box-sizing:border-box;color:var(--kup_button_primary_color);cursor:pointer;display:inline-flex;font-size:0.775em;font-weight:var(--kup_button_font_weight);height:var(--kup_button_height);justify-content:center;letter-spacing:0.0892857143em;line-height:inherit;min-width:64px;outline:none;overflow:visible;padding:var(--kup_button_padding);position:relative;text-decoration:none;text-transform:uppercase;transition:background-color 80ms linear, box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);user-select:none;vertical-align:middle}.f-button--wrapper .button:hover{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button--wrapper .button:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.175)}.f-button--wrapper .button .button__icon{margin-left:-0.25em;margin-right:0.75em}.f-button--wrapper .button .button__label+.button__icon{margin-left:0.75em;margin-right:-0.25em}.f-button--wrapper .button.button--floating,.f-button--wrapper .button.button--raised{--kup-spinner-color:var(--kup_button_text_on_primary_color)}.f-button--wrapper .button.button--floating:not(.button--disabled),.f-button--wrapper .button.button--raised:not(.button--disabled){--kup-spinner-border-color:hsl(\n var(--kup_button_primary_color_h),\n calc(var(--kup_button_primary_color_s) * 0.75),\n calc(var(--kup_button_primary_color_l) * 0.85)\n );background-color:var(--kup_button_primary_color);color:var(--kup_button_text_on_primary_color)}.f-button--wrapper .button.button--floating:hover,.f-button--wrapper .button.button--raised:hover{background-color:hsl(var(--kup_button_primary_color_h), calc(var(--kup_button_primary_color_s) * 0.93), calc(var(--kup_button_primary_color_l) * 1.07))}.f-button--wrapper .button.button--floating:focus,.f-button--wrapper .button.button--raised:focus{background-color:hsl(var(--kup_button_primary_color_h), calc(var(--kup_button_primary_color_s) * 0.88), calc(var(--kup_button_primary_color_l) * 1.12))}.f-button--wrapper .button.button--floating.button--disabled,.f-button--wrapper .button.button--raised.button--disabled{background-color:var(--kup-disabled-background-color);box-shadow:none}.f-button--wrapper .button.button--floating{border-radius:24px;box-shadow:0 0.215em 0.35em -1px rgba(var(--kup-text-color-rgb), 0.2), 0 0.43em 0.71em 0 rgba(var(--kup-text-color-rgb), 0.14), 0 0.07em 1.285em 0 rgba(var(--kup-text-color-rgb), 0.12);font-weight:500;font-size:1em;height:3.4em;width:auto;padding:0 1.5em}.f-button--wrapper .button.button--floating.button--no-label{border-radius:50%;height:4em;padding:0;width:4em}.f-button--wrapper .button.button--floating:hover,.f-button--wrapper .button.button--floating:focus{box-shadow:0 0.35em 0.35em -3px rgba(var(--kup-text-color-rgb), 0.2), 0 0.57em 0.71em 0.07em rgba(var(--kup-text-color-rgb), 0.14), 0 0.21em 1em 0.14em rgba(var(--kup-text-color-rgb), 0.12)}.f-button--wrapper .button.button--floating:active{box-shadow:0 0.5em 0.57em -4px rgba(var(--kup-text-color-rgb), 0.2), 0 0.85em 1.21em 0.14em rgba(var(--kup-text-color-rgb), 0.14), 0 0.35em 1.57em 0.28em rgba(var(--kup-text-color-rgb), 0.12)}.f-button--wrapper .button.button--raised{box-shadow:0px 0.1em 0.1em 0 rgba(var(--kup-text-color-rgb), 0.125), 0px 0.2em 1em 0.1em rgba(var(--kup-text-color-rgb), 0.1), 0px 0.25em 1.5em 0.2em rgba(var(--kup-text-color-rgb), 0.075)}.f-button--wrapper .button.button--raised:hover{box-shadow:0 0.25em 0.25em 0 rgba(var(--kup-text-color-rgb), 0.125), 0 0.75em 1em 0.1em rgba(var(--kup-text-color-rgb), 0.1), 0 0.25em 1.5em 0.2em rgba(var(--kup-text-color-rgb), 0.075)}.f-button--wrapper .button.button--outlined{border-width:1px;border-style:solid}.f-button--wrapper .button.button--outlined:not(.button--disabled){border-color:var(--kup_button_primary_color);background-color:transparent;color:var(--kup_button_primary_color)}.f-button--wrapper .button.button--outlined:hover{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button--wrapper .button.button--outlined:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.175)}.f-button--wrapper .button.button--outlined.button--disabled{opacity:0.75;border-color:var(--kup_button_disabled_color)}.f-button--wrapper .button.button--no-label{min-width:unset;padding:0 0.5em}.f-button--wrapper .button.button--no-label .button__icon{margin:0}.f-button--wrapper .button.button--disabled{color:var(--kup_button_disabled_color);cursor:auto;opacity:0.75;pointer-events:none}.f-button--wrapper .button .button__spinner-container{width:100%;height:var(--kup_button_spinner_height);left:0;position:absolute}.f-button--wrapper .icon-button{background-color:transparent;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;font-size:var(--kup_button_font_size);text-decoration:none;cursor:pointer;user-select:none;padding:0.75em;border-radius:50%}.f-button--wrapper .icon-button:hover,.f-button--wrapper .icon-button:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button--wrapper .icon-button .icon-button__icon{display:flex;margin:auto}.f-button--wrapper .icon-button .icon-button__icon.icon-button__icon--on{display:none}.f-button--wrapper .icon-button.button--disabled{opacity:0.75;pointer-events:none}.f-button--wrapper .icon-button .icon-button__spinner-container{width:var(--kup_button_spinner_width);height:var(--kup_button_spinner_height)}.f-button--wrapper .button--with-spinner{opacity:0.8;pointer-events:none}.f-button--wrapper .content--hidden{visibility:hidden}.f-button--wrapper.kup-full-height{height:100%}.f-button--wrapper.kup-full-height .button{height:100%}.f-button--wrapper.kup-full-width{width:100%}.f-button--wrapper.kup-full-width .button{width:100%}.f-button--wrapper.kup-large button{font-size:1.25em}.f-button--wrapper.kup-shaped .button{border-radius:18px}.f-button--wrapper.kup-shaped .button.button--floating{border-radius:50% 0}.f-button--wrapper.kup-slim button{font-size:0.675em}.f-button--wrapper.kup-pulsating .icon-button--on:after{content:"";animation:pulsating 1250ms infinite;position:absolute;height:2px;width:2px;top:calc(50% - 1px);left:calc(50% - 1px);border-radius:50%}.f-button--wrapper.kup-danger{--kup-button-primary-color:var(--kup-danger-color);--kup-button-primary-color-h:var(--kup-danger-color-h);--kup-button-primary-color-s:var(--kup-danger-color-s);--kup-button-primary-color-l:var(--kup-danger-color-l);--kup-button-primary-color-rgb:var(--kup-danger-color-rgb);--kup-button-text-on-primary-color:white}.f-button--wrapper.kup-info{--kup-button-primary-color:var(--kup-info-color);--kup-button-primary-color-h:var(--kup-info-color-h);--kup-button-primary-color-s:var(--kup-info-color-s);--kup-button-primary-color-l:var(--kup-info-color-l);--kup-button-primary-color-rgb:var(--kup-info-color-rgb);--kup-button-text-on-primary-color:white}.f-button--wrapper.kup-secondary{--kup-button-primary-color:var(--kup-secondary-color);--kup-button-primary-color-h:var(--kup-secondary-color-h);--kup-button-primary-color-s:var(--kup-secondary-color-s);--kup-button-primary-color-l:var(--kup-secondary-color-l);--kup-button-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-button-text-on-primary-color:var(--kup-text-on-secondary-color)}.f-button--wrapper.kup-success{--kup-button-primary-color:var(--kup-success-color);--kup-button-primary-color-h:var(--kup-success-color-h);--kup-button-primary-color-s:var(--kup-success-color-s);--kup-button-primary-color-l:var(--kup-success-color-l);--kup-button-primary-color-rgb:var(--kup-success-color-rgb);--kup-button-text-on-primary-color:white}.f-button--wrapper.kup-warning{--kup-button-primary-color:var(--kup-warning-color);--kup-button-primary-color-h:var(--kup-warning-color-h);--kup-button-primary-color-s:var(--kup-warning-color-s);--kup-button-primary-color-l:var(--kup-warning-color-l);--kup-button-primary-color-rgb:var(--kup-warning-color-rgb);--kup-button-text-on-primary-color:white}@keyframes pulsating{0%{transform:scale(2);box-shadow:0 0 0 0 rgba(var(--kup_button_primary_color_rgb), 0.7)}70%{transform:scale(2.75);box-shadow:0 0 0 10px rgba(var(--kup_button_primary_color_rgb), 0)}100%{transform:scale(2);box-shadow:0 0 0 0 rgba(var(--kup_button_primary_color_rgb), 0)}}.f-chip--wrapper{--kup_chip_background_color:var(\n --kup-chip-background-color,\n var(--kup-background-color)\n );--kup_chip_border_radius:var(--kup-chip-border-radius, 16px);--kup_chip_font_family:var(--kup-chip-font-family, var(--kup-font-family));--kup_chip_font_size:var(--kup-chip-font-size, var(--kup-font-size));--kup_chip_font_weight:var(--kup-chip-font-weight, var(--kup-font-weight));--kup_chip_height:var(--kup-chip-height, 32px);--kup_chip_margin:var(--kup-chip-margin, 0 4px);--kup_chip_padding:var(--kup-chip-padding, 0 12px);--kup_chip_primary_color:var(\n --kup-chip-primary-color,\n var(--kup-primary-color)\n );--kup_chip_primary_color_rgb:var(\n --kup-chip-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_chip_text_color:var(--kup-chip-text-color, var(--kup-text-color));--kup_chip_text_color_rgb:var(\n --kup-chip-text-color-rgb,\n var(--kup-text-color-rgb)\n );font-family:var(--kup_chip_font_family);font-size:var(--kup_chip_font_size)}.f-chip--wrapper .chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.f-chip--wrapper .chip-set .chip{align-items:center;display:inline-flex;position:relative;background-color:var(--kup_chip_background_color);background-image:linear-gradient(to right, rgba(var(--kup_chip_text_color_rgb), 0.1) 0%, rgba(var(--kup_chip_text_color_rgb), 0.1) 0.1%, rgba(var(--kup_chip_text_color_rgb), 0.1));color:var(--kup_chip_text_color);border-radius:var(--kup_chip_border_radius);font-size:0.875em;font-weight:var(--kup_chip_font_weight);letter-spacing:0.0178571429em;text-decoration:inherit;text-transform:inherit;height:var(--kup_chip_height);box-sizing:border-box;padding:var(--kup_chip_padding);border-width:0;outline:none;cursor:pointer;will-change:transform, opacity;margin:var(--kup_chip_margin)}.f-chip--wrapper .chip-set .chip .chip__icon--leading{color:var(--kup_chip_text_color)}.f-chip--wrapper .chip-set .chip .chip__icon--leading:not(.chip__icon--leading-hidden){margin-left:-4px;margin-right:6px}.f-chip--wrapper .chip-set .chip .chip__icon--leading .chip__icon--trailing{position:relative}.f-chip--wrapper .chip-set .chip .chip__icon{border-radius:50%;outline:none;vertical-align:middle}.f-chip--wrapper .chip-set .chip .chip__icon .chip_icon--leading:not(.chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.f-chip--wrapper .chip-set .chip .chip__icon .f-image__icon{margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-chip--wrapper .chip-set .chip .chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.f-chip--wrapper .chip-set .chip .chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.f-chip--wrapper .chip-set .chip svg path{color:var(--kup_chip_text_color);stroke:var(--kup_chip_text_color)}.f-chip--wrapper .chip-set .chip .kup-icon{background:var(--kup_chip_text_color);display:block;width:18px;height:18px}.f-chip--wrapper .chip-set .chip .chip__primary-action{outline:none}.f-chip--wrapper .chip-set .chip .chip__primary-action .chip__text{white-space:nowrap}.f-chip--wrapper .chip-set.chip-set--choice .chip--selected{background-color:var(--kup_chip_background_color);background-image:linear-gradient(to right, rgba(var(--kup_chip_primary_color_rgb), 0.25) 0%, rgba(var(--kup_chip_primary_color_rgb), 0.25) 0.1%, rgba(var(--kup_chip_primary_color_rgb), 0.25));color:var(--kup_chip_primary_color)}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading{opacity:1;transition:opacity 75ms linear;transition-delay:-50ms}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading+.chip__checkmark{opacity:0;transition:opacity 75ms linear;transition-delay:80ms}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading+.chip__checkmark .chip__checkmark-svg{transition:width 0ms}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading.chip__icon--leading-hidden{display:none;width:0;opacity:0}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading.chip__icon--leading-hidden+.chip__checkmark{height:20px;width:20px;opacity:1}.f-chip--wrapper .chip-set.chip-set--filter .chip--selected .chip__icon--leading{opacity:0}.f-chip--wrapper .chip-set.chip-set--filter .chip--selected .chip__checkmark-path{stroke-dashoffset:0}.f-chip--wrapper .chip-set.chip-set--filter .chip--selected .chip__checkmark{margin-left:-4px;margin-right:4px}.f-chip--wrapper .chip-set.chip-set--filter .chip--selected .chip__checkmark .chip__checkmark-svg{height:20px;width:20px}.f-chip--wrapper .chip-set.chip-set--input .kup-clear-icon{margin-left:4px;margin-right:-4px}.f-chip--wrapper .chip-set.chip-set--input .kup-clear-icon:hover{opacity:0.75}.f-chip--wrapper :not(svg){transform-origin:0px 0px}.f-chip--wrapper.kup-danger{--kup-chip-primary-color:var(--kup-danger-color);--kup-chip-primary-color-rgb:var(--kup-danger-color-rgb)}.f-chip--wrapper.kup-info{--kup-chip-primary-color:var(--kup-info-color);--kup-chip-primary-color-rgb:var(--kup-info-color-rgb)}.f-chip--wrapper.kup-secondary{--kup-chip-primary-color:var(--kup-secondary-color);--kup-chip-primary-color-rgb:var(--kup-secondary-color-rgb)}.f-chip--wrapper.kup-success{--kup-chip-primary-color:var(--kup-success-color);--kup-chip-primary-color-rgb:var(--kup-success-color-rgb)}.f-chip--wrapper.kup-warning{--kup-chip-primary-color:var(--kup-warning-color);--kup-chip-primary-color-rgb:var(--kup-warning-color-rgb)}.f-chip--wrapper .kup-icon.kup-clear-icon{-webkit-mask:var(--kup-clear-icon);mask:var(--kup-clear-icon)}:host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-background-color)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-color)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-primary-color)\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-on-primary-color)\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-title-background-color)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-title-color)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 2px solid var(--kup-border-color)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n rgba(var(--kup-disabled-background-color-rgb), 0.5)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-disabled-color)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n rgba(var(--kup-primary-color-rgb), 0.125)\n );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;border-left:var(--kup_calendar_navigator_border);border-right:var(--kup_calendar_navigator_border);border-top:var(--kup_calendar_navigator_border);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;justify-content:space-between}.navigation__left{--kup-font-size:0.875em;display:flex}.navigation__right{display:flex}.navigation__title{font-size:1.25em;font-weight:400;letter-spacing:0.1892857em;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-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)}#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-radius:var(--kup_calendar_event_border_radius);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 td.fc-day-today{background-color:var(--kup_calendar_today_background_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)}@media (max-width: 599px){.navigation{flex-direction:column}}';export{Bs as kup_calendar}
|
|
27
|
+
*/function Fu(t){var n=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Ot(fi.Consumer,null,(function(e){if(!t.isLabeled)return Ot("td",{className:n.join(" "),"data-time":t.isoTimeStr});var r=e.dateEnv,i=e.options,o=e.viewApi,a=null==i.slotLabelFormat?Uu:Array.isArray(i.slotLabelFormat)?ge(i.slotLabelFormat[0]):ge(i.slotLabelFormat),u={level:0,time:t.time,date:r.toDate(t.date),view:o,text:r.format(t.date,a)};return Ot(ki,{hookProps:u,classNames:i.slotLabelClassNames,content:i.slotLabelContent,defaultContent:Gu,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(function(e,r,i,o){return Ot("td",{ref:e,className:n.concat(r).join(" "),"data-time":t.isoTimeStr},Ot("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Ot("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:i},o)))}))}))}function Gu(t){return t.text}var Lu=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){return this.props.slatMetas.map((function(t){return Ot("tr",{key:t.key},Ot(Fu,u({},t)))}))},n}(vi),Wu=ge({week:"short"}),Yu=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.allDaySplitter=new ju,n.headerElRef=Ht(),n.rootElRef=Ht(),n.scrollerElRef=Ht(),n.state={slatCoords:null},n.handleScrollTopRequest=function(t){var e=n.scrollerElRef.current;e&&(e.scrollTop=t)},n.renderHeadAxis=function(t,e){void 0===e&&(e="");var r=n.context.options,i=n.props.dateProfile.renderRange,o=yn(i.start,i.end),a=r.navLinks&&1===o?{"data-navlink":Xr(i.start,"week"),tabIndex:0}:{};return r.weekNumbers&&"day"===t?Ot(Da,{date:i.start,defaultFormat:Wu},(function(t,n,r,i){return Ot("th",{ref:t,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},Ot("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:e}},Ot("a",u({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},a),i)))})):Ot("th",{className:"fc-timegrid-axis"},Ot("div",{className:"fc-timegrid-axis-frame",style:{height:e}}))},n.renderTableRowAxis=function(t){var e=n.context,r=e.options;return Ot(ki,{hookProps:{text:r.allDayText,view:e.viewApi},classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:Zu,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(n,e,r,i){return Ot("td",{ref:n,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(e).join(" ")},Ot("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==t?" fc-timegrid-axis-frame-liquid":""),style:{height:t}},Ot("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},i)))}))},n.handleSlatCoords=function(t){n.setState({slatCoords:t})},n}return a(n,t),n.prototype.renderSimpleLayout=function(t,n,e){var r=this.context,i=this.props,o=[],a=da(r.options);return t&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),n&&(o.push({type:"body",key:"all-day",chunk:{content:n}}),o.push({type:"body",key:"all-day-divider",outerContent:Ot("tr",{className:"fc-scrollgrid-section"},Ot("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:e}}),Ot(Ti,{viewSpec:r.viewSpec,elRef:this.rootElRef},(function(t,n){return Ot("div",{className:["fc-timegrid"].concat(n).join(" "),ref:t},Ot(va,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:o}))}))},n.prototype.renderHScrollLayout=function(t,n,e,r,i,o,a){var u=this,s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");var c=this.context,l=this.props,f=!l.forPrint&&da(c.options),d=!l.forPrint&&ha(c.options),h=[];t&&h.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(t){return Ot("tr",null,u.renderHeadAxis("day",t.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),n&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(t){return Ot("tr",null,u.renderTableRowAxis(t.rowSyncHeights[0]))}},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:Ot("tr",{className:"fc-scrollgrid-section"},Ot("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));var v=c.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:function(t){return Ot("div",{className:"fc-timegrid-axis-chunk"},Ot("table",{style:{height:t.expandRows?t.clientHeight:""}},t.tableColGroupNode,Ot("tbody",null,Ot(Lu,{slatMetas:o}))),Ot("div",{className:"fc-timegrid-now-indicator-container"},Ot(Uo,{unit:v?"minute":"day"},(function(t){var n=v&&a&&a.safeComputeTop(t);return"number"==typeof n?Ot(ba,{isAxis:!0,date:t},(function(t,e,r,i){return Ot("div",{ref:t,className:["fc-timegrid-now-indicator-arrow"].concat(e).join(" "),style:{top:n}},i)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:e}]}),d&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:fa},{key:"cols",content:fa}]}),Ot(Ti,{viewSpec:c.viewSpec,elRef:this.rootElRef},(function(t,n){return Ot("div",{className:["fc-timegrid"].concat(n).join(" "),ref:t},Ot(s,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:h}))}))},n.prototype.getAllDayMaxEventProps=function(){var t=this.context.options,n=t.dayMaxEvents,e=t.dayMaxEventRows;return!0!==n&&!0!==e||(n=void 0,e=5),{dayMaxEvents:n,dayMaxEventRows:e}},n}(bi);function Zu(t){return t.text}var qu=function(){function t(t,n,e){this.positions=t,this.dateProfile=n,this.slotDuration=e}return t.prototype.safeComputeTop=function(t){var n=this.dateProfile;if(Ke(n.currentRange,t)){var e=wn(t),r=t.valueOf()-e.valueOf();if(r>=Zn(n.slotMinTime)&&r<Zn(n.slotMaxTime))return this.computeTimeTop(Gn(r))}return null},t.prototype.computeDateTop=function(t,n){return n||(n=wn(t)),this.computeTimeTop(Gn(t.valueOf()-n.valueOf()))},t.prototype.computeTimeTop=function(t){var n,e,r=this.positions,i=r.els.length,o=(t.milliseconds-Zn(this.dateProfile.slotMinTime))/Zn(this.slotDuration);return o=Math.max(0,o),o=Math.min(i,o),n=Math.floor(o),e=o-(n=Math.min(n,i-1)),r.tops[n]+r.getHeight(n)*e},t}(),Ju=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=t.slatElRefs;return Ot("tbody",null,t.slatMetas.map((function(i){var o={time:i.time,date:n.dateEnv.toDate(i.date),view:n.viewApi},a=["fc-timegrid-slot","fc-timegrid-slot-lane",i.isLabeled?"":"fc-timegrid-slot-minor"];return Ot("tr",{key:i.key,ref:r.createRef(i.key)},t.axis&&Ot(Fu,u({},i)),Ot(ki,{hookProps:o,classNames:e.slotLaneClassNames,content:e.slotLaneContent,didMount:e.slotLaneDidMount,willUnmount:e.slotLaneWillUnmount},(function(t,n,e,r){return Ot("td",{ref:t,className:a.concat(n).join(" "),"data-time":i.isoTimeStr},r)})))})))},n}(vi),Xu=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.rootElRef=Ht(),n.slatElRefs=new oa,n}return a(n,t),n.prototype.render=function(){var t=this.props;return Ot("div",{className:"fc-timegrid-slots",ref:this.rootElRef},Ot("table",{className:this.context.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,Ot(Ju,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))},n.prototype.componentDidMount=function(){this.updateSizing()},n.prototype.componentDidUpdate=function(){this.updateSizing()},n.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},n.prototype.updateSizing=function(){var t,n=this.context,e=this.props;e.onCoords&&null!==e.clientWidth&&this.rootElRef.current.offsetHeight&&e.onCoords(new qu(new oi(this.rootElRef.current,(t=this.slatElRefs.currentMap,e.slatMetas.map((function(n){return t[n.key]}))),!1,!0),this.props.dateProfile,n.options.slotDuration))},n}(vi);function $u(t,n){var e,r=[];for(e=0;e<n;e+=1)r.push([]);if(t)for(e=0;e<t.length;e+=1)r[t[e].col].push(t[e]);return r}function Ku(t,n){var e=[];if(t){for(a=0;a<n;a+=1)e[a]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(var r=0,i=t.segs;r<i.length;r++){var o=i[r];e[o.col].segs.push(o)}}else for(var a=0;a<n;a+=1)e[a]=null;return e}var ts=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.rootElRef=Ht(),n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props;return Ot(Ta,{allDayDate:null,moreCnt:n.hiddenSegs.length,allSegs:n.hiddenSegs,hiddenSegs:n.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:ns,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,todayRange:n.todayRange,popoverContent:function(){return fs(n.hiddenSegs,n)}},(function(e,r,i,o,a){return Ot("a",{ref:function(n){mi(e,n),mi(t.rootElRef,n)},className:["fc-timegrid-more-link"].concat(r).join(" "),style:{top:n.top,bottom:n.bottom},onClick:a},Ot("div",{ref:i,className:"fc-timegrid-more-link-inner fc-sticky"},o))}))},n}(vi);function ns(t){return t.shortText}function es(t,n){if(!t)return[[],0];for(var e=t.level,r=t.lateralEnd,i=t.lateralStart,o=[];i<r;)o.push(n(e,i)),i+=1;return o.sort(rs),[o.map(is),o[0][1]]}function rs(t,n){return n[1]-t[1]}function is(t){return t[0]}function os(t,n){var e={};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return o in e?e[o]:e[o]=n.apply(void 0,r)}}function as(t,n,e,r){void 0===e&&(e=null),void 0===r&&(r=0);var i=[];if(e)for(var o=0;o<t.length;o+=1){var a=t[o],u=e.computeDateTop(a.start,n),s=Math.max(u+(r||0),e.computeDateTop(a.end,n));i.push({start:Math.round(u),end:Math.round(s)})}return i}var us=ge({hour:"numeric",minute:"2-digit",meridiem:!1}),ss=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&t.push("fc-timegrid-event-short"),Ot(ga,u({},this.props,{defaultTimeFormat:us,extraClassNames:t}))},n}(vi),cs=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.render=function(){var t=this.props;return Ot(Aa,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(t,n){return n&&Ot("div",{className:"fc-timegrid-col-misc",ref:t},n)}))},n}(vi),ls=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.sortEventSegs=ne(or),n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props,e=this.context,r=e.options.selectMirror,i=n.eventDrag&&n.eventDrag.segs||n.eventResize&&n.eventResize.segs||r&&n.dateSelectionSegs||[],o=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{},a=this.sortEventSegs(n.fgEventSegs,e.options.eventOrder);return Ot(ka,{elRef:n.elRef,date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},(function(e,s,c){return Ot("td",u({ref:e,className:["fc-timegrid-col"].concat(s,n.extraClassNames||[]).join(" ")},c,n.extraDataAttrs),Ot("div",{className:"fc-timegrid-col-frame"},Ot("div",{className:"fc-timegrid-col-bg"},t.renderFillSegs(n.businessHourSegs,"non-business"),t.renderFillSegs(n.bgEventSegs,"bg-event"),t.renderFillSegs(n.dateSelectionSegs,"highlight")),Ot("div",{className:"fc-timegrid-col-events"},t.renderFgSegs(a,o,!1,!1,!1)),Ot("div",{className:"fc-timegrid-col-events"},t.renderFgSegs(i,{},Boolean(n.eventDrag),Boolean(n.eventResize),Boolean(r))),Ot("div",{className:"fc-timegrid-now-indicator-container"},t.renderNowIndicator(n.nowIndicatorSegs)),Ot(cs,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps})))}))},n.prototype.renderFgSegs=function(t,n,e,r,i){var o=this.props;return o.forPrint?fs(t,o):this.renderPositionedFgSegs(t,n,e,r,i)},n.prototype.renderPositionedFgSegs=function(t,n,e,r,i){var o=this,a=this.context.options,s=a.eventMaxStack,c=a.eventShortHeight,l=a.eventOrderStrict,f=this.props,d=f.eventSelection,h=f.todayRange,v=f.nowDate,p=e||r||i,g=function(t,n,e,r){for(var i=[],o=[],a=0;a<t.length;a+=1){var s=n[a];s?i.push({index:a,thickness:1,span:s}):o.push(t[a])}for(var c=function(t,n,e){var r=new mo;null!=n&&(r.strictOrder=n),null!=e&&(r.maxStackCnt=e);var i,o,a=function(t){for(var n,e,r=[],i=0,o=t;i<o.length;i++){for(var a=o[i],u=[],s={span:a.span,entries:[a]},c=0,l=r;c<l.length;c++){var f=l[c];Ao(f.span,s.span)?s={entries:f.entries.concat(s.entries),span:(n=f.span,e=s.span,{start:Math.min(n.start,e.start),end:Math.max(n.end,e.end)})}:u.push(f)}u.push(s),r=u}return r}(r.addSegs(t)),s=function(t){var n=t.entriesByLevel,e=os((function(t,n){return t+":"+n}),(function(r,i){var o=es(function(t,n,e){for(var r=t.levelCoords,i=t.entriesByLevel,o=i[n][e],a=r[n]+o.thickness,u=r.length,s=n;s<u&&r[s]<a;s+=1);for(;s<u;s+=1){for(var c=i[s],l=void 0,f=ko(c,o.span.start,bo),d=f[0]+f[1],h=d;(l=c[h])&&l.span.start<o.span.end;)h+=1;if(d<h)return{level:s,lateralStart:d,lateralEnd:h}}return null}(t,r,i),e),a=n[r][i];return[u(u({},a),{nextLevelNodes:o[0]}),a.thickness+o[1]]}));return es(n.length?{level:0,lateralStart:0,lateralEnd:n[0].length}:null,e)[0]}(r);return i=s,o=os((function(t){return yo(t)}),(function(t,n,e){var r,i=t.nextLevelNodes,a=t.thickness,s=a+e,c=a/s,l=[];if(i.length)for(var f=0,d=i;f<d.length;f++){var h=d[f];if(void 0===r)r=(v=o(h,n,s))[0],l.push(v[1]);else{var v=o(h,r,0);l.push(v[1])}}else r=1;var p=(r-n)*c;return[r-p,u(u({},t),{thickness:p,nextLevelNodes:l})]})),{segRects:function(t){var n=[],e=os((function(t){return yo(t)}),(function(t,e,i){var o=u(u({},t),{levelCoord:e,stackDepth:i,stackForward:0});return n.push(o),o.stackForward=r(t.nextLevelNodes,e+t.thickness,i+1)+1}));function r(t,n,r){for(var i=0,o=0,a=t;o<a.length;o++)i=Math.max(e(a[o],n,r),i);return i}return r(t,0,0),n}(s=i.map((function(t){return o(t,0,0)[1]}))),hiddenGroups:a}}(i,e,r),l=c.hiddenGroups,f=[],d=0,h=c.segRects;d<h.length;d++){var v=h[d];f.push({seg:t[v.index],rect:v})}for(var p=0,g=o;p<g.length;p++)f.push({seg:g[p],rect:null});return{segPlacements:f,hiddenGroups:l}}(t,as(t,f.date,f.slatCoords,a.eventMinHeight),l,s),m=g.segPlacements;return Ot(jt,null,this.renderHiddenGroups(g.hiddenGroups,t),m.map((function(t){var a=t.seg,s=t.rect,l=a.eventRange.instance.instanceId,f=p||Boolean(!n[l]&&s),g=ds(s&&s.span),m=!p&&s?o.computeSegHStyle(s):{left:0,right:0},b=Boolean(s)&&s.stackForward>0,y=Boolean(s)&&s.span.end-s.span.start<c;return Ot("div",{className:"fc-timegrid-event-harness"+(b?" fc-timegrid-event-harness-inset":""),key:l,style:u(u({visibility:f?"":"hidden"},g),m)},Ot(ss,u({seg:a,isDragging:e,isResizing:r,isDateSelecting:i,isSelected:l===d,isShort:y},fr(a,h,v))))})))},n.prototype.renderHiddenGroups=function(t,n){var e=this.props,r=e.extraDateSpan,i=e.dateProfile,o=e.todayRange,a=e.nowDate,u=e.eventSelection,s=e.eventDrag,c=e.eventResize;return Ot(jt,null,t.map((function(t){var e,l=ds(t.span),f=(e=n,t.entries.map((function(t){return e[t.index]})));return Ot(ts,{key:Xn(Ba(f)),hiddenSegs:f,top:l.top,bottom:l.bottom,extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:u,eventDrag:s,eventResize:c})})))},n.prototype.renderFillSegs=function(t,n){var e=this.props,r=as(t,e.date,e.slatCoords,this.context.options.eventMinHeight).map((function(r,i){var o=t[i];return Ot("div",{key:dr(o.eventRange),className:"fc-timegrid-bg-harness",style:ds(r)},"bg-event"===n?Ot(xa,u({seg:o},fr(o,e.todayRange,e.nowDate))):_a(n))}));return Ot(jt,null,r)},n.prototype.renderNowIndicator=function(t){var n=this.props,e=n.slatCoords,r=n.date;return e?t.map((function(t,n){return Ot(ba,{isAxis:!1,date:r,key:n},(function(n,i,o,a){return Ot("div",{ref:n,className:["fc-timegrid-now-indicator-line"].concat(i).join(" "),style:{top:e.computeDateTop(t.start,r)}},a)}))})):null},n.prototype.computeSegHStyle=function(t){var n,e,r=this.context,i=r.isRtl,o=r.options.slotEventOverlap,a=t.levelCoord,u=t.levelCoord+t.thickness;o&&(u=Math.min(1,a+2*(u-a))),i?(n=1-u,e=a):(n=a,e=1-u);var s={zIndex:t.stackDepth+1,left:100*n+"%",right:100*e+"%"};return o&&!t.stackForward&&(s[i?"marginLeft":"marginRight"]=20),s},n}(vi);function fs(t,n){var e=n.todayRange,r=n.nowDate,i=n.eventSelection,o=n.eventDrag,a=n.eventResize,s=(o?o.affectedInstances:null)||(a?a.affectedInstances:null)||{};return Ot(jt,null,t.map((function(t){var n=t.eventRange.instance.instanceId;return Ot("div",{key:n,style:{visibility:s[n]?"hidden":""}},Ot(ss,u({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===i,isShort:!1},fr(t,e,r))))})))}function ds(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}var hs=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.splitFgEventSegs=ne($u),n.splitBgEventSegs=ne($u),n.splitBusinessHourSegs=ne($u),n.splitNowIndicatorSegs=ne($u),n.splitDateSelectionSegs=ne($u),n.splitEventDrag=ne(Ku),n.splitEventResize=ne(Ku),n.rootElRef=Ht(),n.cellElRefs=new oa,n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props,e=this.context.options.nowIndicator&&n.slatCoords&&n.slatCoords.safeComputeTop(n.nowDate),r=n.cells.length,i=this.splitFgEventSegs(n.fgEventSegs,r),o=this.splitBgEventSegs(n.bgEventSegs,r),a=this.splitBusinessHourSegs(n.businessHourSegs,r),u=this.splitNowIndicatorSegs(n.nowIndicatorSegs,r),s=this.splitDateSelectionSegs(n.dateSelectionSegs,r),c=this.splitEventDrag(n.eventDrag,r),l=this.splitEventResize(n.eventResize,r);return Ot("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Ot("table",{style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,Ot("tbody",null,Ot("tr",null,n.axis&&Ot("td",{className:"fc-timegrid-col fc-timegrid-axis"},Ot("div",{className:"fc-timegrid-col-frame"},Ot("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof e&&Ot(ba,{isAxis:!0,date:n.nowDate},(function(t,n,r,i){return Ot("div",{ref:t,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:e}},i)}))))),n.cells.map((function(e,r){return Ot(ls,{key:e.key,elRef:t.cellElRefs.createRef(e.key),dateProfile:n.dateProfile,date:e.date,nowDate:n.nowDate,todayRange:n.todayRange,extraHookProps:e.extraHookProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,fgEventSegs:i[r],bgEventSegs:o[r],businessHourSegs:a[r],nowIndicatorSegs:u[r],dateSelectionSegs:s[r],eventDrag:c[r],eventResize:l[r],slatCoords:n.slatCoords,eventSelection:n.eventSelection,forPrint:n.forPrint})}))))))},n.prototype.componentDidMount=function(){this.updateCoords()},n.prototype.componentDidUpdate=function(){this.updateCoords()},n.prototype.updateCoords=function(){var t,n=this.props;n.onColCoords&&null!==n.clientWidth&&n.onColCoords(new oi(this.rootElRef.current,(t=this.cellElRefs.currentMap,n.cells.map((function(n){return t[n.key]}))),!0,!1))},n}(vi),vs=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.processSlotOptions=ne(ps),n.state={slatCoords:null},n.handleRootEl=function(t){t?n.context.registerInteractiveComponent(n,{el:t,isHitComboAllowed:n.props.isHitComboAllowed}):n.context.unregisterInteractiveComponent(n)},n.handleScrollRequest=function(t){var e=n.props.onScrollTopRequest,r=n.state.slatCoords;if(e&&r){if(t.time){var i=r.computeTimeTop(t.time);(i=Math.ceil(i))&&(i+=1),e(i)}return!0}return!1},n.handleColCoords=function(t){n.colCoords=t},n.handleSlatCoords=function(t){n.setState({slatCoords:t}),n.props.onSlatCoords&&n.props.onSlatCoords(t)},n}return a(n,t),n.prototype.render=function(){var t=this.props,n=this.state;return Ot("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Ot(Xu,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Ot(hs,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))},n.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},n.prototype.componentDidUpdate=function(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)},n.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},n.prototype.queryHit=function(t,n){var e=this.context,r=e.dateEnv,i=this.colCoords,o=this.props.dateProfile,a=this.state.slatCoords,s=this.processSlotOptions(this.props.slotDuration,e.options.snapDuration),c=s.snapDuration,l=s.snapsPerSlot,f=i.leftToIndex(t),d=a.positions.topToIndex(n);if(null!=f&&null!=d){var h=this.props.cells[f],v=a.positions.tops[d],p=a.positions.getHeight(d),g=Math.floor((n-v)/p*l),m=this.props.cells[f].date,b=Wn(o.slotMinTime,function(t,n){return{years:t.years*n,months:t.months*n,days:t.days*n,milliseconds:t.milliseconds*n}}(c,d*l+g)),y=r.add(m,b),A=r.add(y,c);return{dateProfile:o,dateSpan:u({range:{start:y,end:A},allDay:!1},h.extraDateSpan),dayEl:i.els[f],rect:{left:i.lefts[f],right:i.rights[f],top:v,bottom:v+p},layer:0}}return null},n}(bi);function ps(t,n){var e=n||t,r=qn(t,e);return null===r&&(e=t,r=1),{snapDuration:e,snapsPerSlot:r}}var gs=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.sliceRange=function(t,n){for(var e=[],r=0;r<n.length;r+=1){var i=Je(t,n[r]);i&&e.push({start:i.start,end:i.end,isStart:i.start.valueOf()===t.start.valueOf(),isEnd:i.end.valueOf()===t.end.valueOf(),col:r})}return e},n}(Zo),ms=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buildDayRanges=ne(bs),n.slicer=new gs,n.timeColsRef=Ht(),n}return a(n,t),n.prototype.render=function(){var t=this,n=this.props,e=this.context,r=n.dateProfile,i=n.dayTableModel,o=e.options.nowIndicator,a=this.buildDayRanges(i,r,e.dateEnv);return Ot(Uo,{unit:o?"minute":"day"},(function(s,c){return Ot(vs,u({ref:t.timeColsRef},t.slicer.sliceProps(n,r,null,e,a),{forPrint:n.forPrint,axis:n.axis,dateProfile:r,slatMetas:n.slatMetas,slotDuration:n.slotDuration,cells:i.cells[0],tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,expandRows:n.expandRows,nowDate:s,nowIndicatorSegs:o&&t.slicer.sliceNowDate(s,e,a),todayRange:c,onScrollTopRequest:n.onScrollTopRequest,onSlatCoords:n.onSlatCoords}))}))},n}(bi);function bs(t,n,e){for(var r=[],i=0,o=t.headerDates;i<o.length;i++){var a=o[i];r.push({start:e.add(a,n.slotMinTime),end:e.add(a,n.slotMaxTime)})}return r}var ys=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function As(t,n,e,r,i){for(var o,a=new Date(0),u=t,s=Gn(0),c=e||function(t){var n,e,r;for(n=ys.length-1;n>=0;n-=1)if(null!==(r=qn(e=Gn(ys[n]),t))&&r>1)return e;return t}(r),l=[];Zn(u)<Zn(n);){var f=i.add(a,u),d=null!==qn(s,c);l.push({date:f,time:u,key:f.toISOString(),isoTimeStr:(o=f,fn(o.getUTCHours(),2)+":"+fn(o.getUTCMinutes(),2)+":"+fn(o.getUTCSeconds(),2)),isLabeled:d}),u=Wn(u,r),s=Wn(s,r)}return l}var ws=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buildTimeColsModel=ne(ks),n.buildSlatMetas=ne(As),n}return a(n,t),n.prototype.render=function(){var t=this,n=this.context,e=n.options,r=n.dateEnv,i=this.props,o=i.dateProfile,a=this.buildTimeColsModel(o,n.dateProfileGenerator),s=this.allDaySplitter.splitProps(i),c=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,e.slotLabelInterval,e.slotDuration,r),l=e.dayMinWidth,f=!l,d=l,h=e.dayHeaders&&Ot(Go,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:f?this.renderHeadAxis:null}),v=!1!==e.allDaySlot&&function(n){return Ot(iu,u({},s.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:n.tableMinWidth,colGroupNode:n.tableColGroupNode,renderRowIntro:f?t.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:t.headerElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:i.forPrint},t.getAllDayMaxEventProps()))},p=function(n){return Ot(ms,u({},s.timed,{dayTableModel:a,dateProfile:o,axis:f,slotDuration:e.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,onSlatCoords:t.handleSlatCoords,expandRows:n.expandRows,onScrollTopRequest:t.handleScrollTopRequest}))};return d?this.renderHScrollLayout(h,v,p,a.colCnt,l,c,this.state.slatCoords):this.renderSimpleLayout(h,v,p)},n}(Yu);function ks(t,n){var e=new Wo(t.renderRange,n);return new Yo(e,!1)}var _s=yi({initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:ws,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const xs=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"en-gb",week:{dow:1,doy:4}}}))),Es=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"}}))),Ds=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={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.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"}}))),Ns=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:function(t){return"+altri "+t},noEventsText:"Non ci sono eventi da visualizzare"}}))),Ss=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",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"}}))),Cs=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:function(t){return"+ ещё "+t},noEventsText:"Нет событий для отображения"}}))),Ts=l(c((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:function(t){return"另外 "+t+" 个"},noEventsText:"没有事件显示"}})));var Ms,Rs;!function(t){t.customStyle="Custom style of the component.",t.data=" Actual data of the calendar.",t.dateCol="Column containing events' dates.",t.descrCol="Column containing events' descriptions.",t.endCol="Column containing events' ending time.",t.hideNavigation="When disabled, the navigation toolbar won't be displayed.",t.iconCol="Column containing events' icons. There can be multiple icons, divided by ';'.",t.imageCol="Column containing events' images. There can be multiple images, divided by ';'.",t.initialDate="Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD).",t.startCol="Column containing events' starting time.",t.styleCol="Column containing events' CSS styles.",t.viewType="Type of the view."}(Ms||(Ms={})),function(t){t.DAY="timeGridDay",t.LIST="listMonth",t.MONTH="dayGridMonth",t.WEEK="timeGridWeek"}(Rs||(Rs={}));let Bs=class{constructor(e){t(this,e),this.kupCalendarEventClicked=n(this,"kup-calendar-eventclick",6),this.kupCalendarDateClicked=n(this,"kup-calendar-dateclick",6),this.kupCalendarEventDropped=n(this,"kup-calendar-eventdrop",6),this.kupCalendarViewChanged=n(this,"kup-calendar-viewchange",6),this.customStyle="",this.data=null,this.dateCol=null,this.descrCol=null,this.endCol=null,this.hideNavigation=!1,this.iconCol=null,this.imageCol=null,this.initialDate=null,this.startCol=null,this.styleCol=null,this.viewType=Rs.MONTH,this.calendarContainer=null,this.kupManager=d(),this.navTitle=null,this.resizeTimeout=null}async getProps(t){return y(this,Ms,t)}async refresh(){e(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.refresh()}),300)}async setProps(t){A(this,Ms,t)}changeView(t){this.viewType=t,this.calendar.changeView(t),this.emitNavEvent()}getColumns(){return this.data&&this.data.rows?this.data.columns:[]}getLocale(){switch(this.kupManager.dates.locale){case f.CHINESE:return Ts;case f.FRENCH:return Ds;case f.ITALIAN:return Ns;case f.POLISH:return Ss;case f.RUSSIAN:return Cs;case f.SPANISH:return Es;default:return xs}}getRows(){return this.data&&this.data.rows?this.data.rows:[]}setChipProps(){const t={data:[],onClick:[],type:b.CHOICE,wrapperClass:"navigation__choice"};for(const n in Rs){const e=Rs[n],r={value:n,label:this.kupManager.language.translate(h[n]),checked:this.viewType===e};t.data.push(r),t.onClick.push((()=>this.changeView(e)))}return t}getEvents(){const t=this.startCol&&this.endCol&&v(this.getColumns(),this.startCol)&&v(this.getColumns(),this.endCol);return this.getRows().map((n=>{const e=n.cells[this.dateCol];let r=this.kupManager.dates.toDayjs(e.value),i=this.kupManager.dates.toDayjs(e.value);if(t){const t=n.cells[this.startCol],e=n.cells[this.endCol];if(t&&e){const n=this.kupManager.dates.toDayjs(t.value,"HH:mm:ss"),o=this.kupManager.dates.toDayjs(e.value,"HH:mm:ss");r=r.hour(n.hour()),r=r.minute(n.minute()),r=r.second(n.second()),i=i.hour(o.hour()),i=i.minute(o.minute()),i=i.second(o.second())}}return{allDay:!t,end:i.toISOString(),extendedProps:{row:n},start:r.toISOString(),title:n.cells[this.descrCol].value}}))}onPrev(){this.calendar.prev(),this.updateCalendar(),this.emitNavEvent()}onNext(){this.calendar.next(),this.updateCalendar(),this.emitNavEvent()}onToday(){this.calendar.today(),this.updateCalendar()}emitNavEvent(){const t=this.kupManager.dates.subtract(this.calendar.view.currentEnd,1,"day").toDate();this.kupCalendarViewChanged.emit({comp:this,id:this.rootElement.id,from:this.calendar.view.currentStart,to:t})}updateCalendar(){this.calendar&&(this.calendar.setOption("locale",this.getLocale()),this.navTitle.innerText=this.calendar.currentData.viewTitle,this.calendar.updateSize())}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.calendar=new Pa(this.calendarContainer,{dateClick:({date:t})=>{this.kupCalendarDateClicked.emit({comp:this,id:this.rootElement.id,date:t})},editable:!0,eventClick:({event:t})=>{this.kupCalendarEventClicked.emit({comp:this,id:this.rootElement.id,row:t.extendedProps.row})},eventDidMount:t=>{if(this.styleCol){const n=t.event.extendedProps.row.cells[this.styleCol],e=t.el.children[0];n&&n.style&&Object.keys(n.style).forEach((t=>{e.style[t]=n.style[t]}))}if(this.iconCol){const n=t.event.extendedProps.row.cells[this.iconCol];if(n&&n.value){const e=document.createElement("div");e.classList.add("icon-wrapper"),n.value.split(";").forEach((t=>{const n=document.createElement("span");n.className="custom-icon";const i=r(`./assets/svg/${t}.svg`);n.style.mask=`url('${i}') no-repeat center`,n.style.webkitMask=`url('${i}') no-repeat center`,e.appendChild(n)})),t.el.appendChild(e)}}if(this.imageCol){const n=t.event.extendedProps.row.cells[this.imageCol];if(n&&n.value){const e=document.createElement("div");e.classList.add("image-wrapper"),n.value.split(";").forEach((t=>{const n=document.createElement("img");n.src=t,e.appendChild(n)})),t.el.appendChild(e)}}},eventDrop:({event:t,oldEvent:n})=>{this.kupCalendarEventDropped.emit({comp:this,id:this.rootElement.id,fromDate:{start:n.start,end:n.end},toDate:{start:t.start,end:t.end}})},events:this.getEvents(),headerToolbar:!1,initialDate:this.initialDate,initialView:this.viewType,locale:this.getLocale(),locales:[Es,Ds,Ns,Ss,Cs,Ts],plugins:[au,Tu,Hu,_s]}),this.calendar.render(),this.updateCalendar(),this.kupManager.resize.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.updateCalendar(),this.kupManager.debug.logRender(this,!0)}render(){return i("div",{id:p},i("div",{class:"navigation"},this.hideNavigation?null:i("div",{class:"navigation__left"},i(g,{icon:"chevron_left",onClick:()=>this.onPrev(),title:this.kupManager.language.translate(h.PREVIOUS),wrapperClass:"navigation__prev"}),i(g,{icon:"calendar",onClick:()=>this.onToday(),title:this.kupManager.language.translate(h.TODAY),wrapperClass:"navigation__today"}),i(g,{icon:"chevron_right",onClick:()=>this.onNext(),title:this.kupManager.language.translate(h.NEXT),wrapperClass:"navigation__next"})),i("div",{class:"navigation__title "+(this.hideNavigation?"navigation__title--centered":""),ref:t=>{this.navTitle=t}}),this.hideNavigation?null:i("div",{class:"navigation__right"},i(m,Object.assign({},this.setChipProps())))),i("div",{class:"calendar",ref:t=>this.calendarContainer=t}))}disconnectedCallback(){this.calendar&&this.calendar.destroy(),this.kupManager.language.unregister(this),this.kupManager.resize.unobserve(this.rootElement),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}};Bs.style='.fc-icon,.fc-unselectable{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc .fc-button:not(:disabled),.fc a[data-navlink],.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-unselectable{user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.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{vertical-align:top;padding:0}.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 .fc-button,.fc-icon{font-weight:400;text-align:center;display:inline-block}.fc-theme-standard td,.fc-theme-standard th{border:1px solid #ddd;border:1px solid var(--fc-border-color,#ddd)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;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\');font-weight:400;font-style:normal}.fc-icon{width:1em;height:1em;user-select:none;font-family:fcicons!important;speak:none;font-style:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fc .fc-scroller-harness-liquid,.fc .fc-scroller-liquid,.fc .fc-scrollgrid-liquid{height:100%}.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{overflow:visible;text-transform:none;margin:0;font-family:inherit}.fc .fc-button::-moz-focus-inner{padding:0;border-style:none}.fc .fc-button{-webkit-appearance:button;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.4em .65em;font-size:1em;line-height:1.5;border-radius:.25em}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{outline:0;box-shadow:0 0 0 .2rem rgba(44,62,80,.25)}.fc .fc-button-primary:focus,.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:disabled{opacity:.65}.fc .fc-button-primary{color:#fff;color:var(--fc-button-text-color,#fff);background-color:#2C3E50;background-color:var(--fc-button-bg-color,#2C3E50);border-color:#2C3E50;border-color:var(--fc-button-border-color,#2C3E50)}.fc .fc-button-primary:hover{color:#fff;color:var(--fc-button-text-color,#fff);background-color:#1e2b37;background-color:var(--fc-button-hover-bg-color,#1e2b37);border-color:#1a252f;border-color:var(--fc-button-hover-border-color,#1a252f)}.fc .fc-button-primary:disabled{color:#fff;color:var(--fc-button-text-color,#fff);background-color:#2C3E50;background-color:var(--fc-button-bg-color,#2C3E50);border-color:#2C3E50;border-color:var(--fc-button-border-color,#2C3E50)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{color:#fff;color:var(--fc-button-text-color,#fff);background-color:#1a252f;background-color:var(--fc-button-active-bg-color,#1a252f);border-color:#151e27;border-color:var(--fc-button-active-border-color,#151e27)}.fc .fc-button .fc-icon{vertical-align:middle;font-size:1.5em}.fc .fc-button-group{position:relative;display:inline-flex;vertical-align:middle}.fc .fc-button-group>.fc-button{position:relative;flex:1 1 auto}.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){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-top-left-radius:0;border-bottom-left-radius:0}.fc .fc-toolbar{display:flex;justify-content:space-between;align-items:center}.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-absolute{position:absolute;top:0;right:0;left:0;bottom:0}.fc .fc-scroller-harness{position:relative;overflow:hidden;direction:ltr}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid #ddd;border:1px solid var(--fc-border-color,#ddd)}.fc .fc-scrollgrid,.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{width:100%;table-layout:fixed}.fc .fc-scrollgrid table{border-top-style:hidden;border-left-style:hidden;border-right-style:hidden}.fc .fc-scrollgrid{border-collapse:separate;border-right-width:0}.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-top-width:0;border-left-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,#fff);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-bg-event,.fc .fc-highlight,.fc .fc-non-business,.fc .fc-view-harness-active>.fc-view{position:absolute;top:0;left:0;right:0;bottom:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-non-business{background:rgba(215,215,215,.3);background:var(--fc-non-business-color,rgba(215,215,215,.3))}.fc .fc-bg-event{background:var(--fc-bg-event-color,#8fdf82);opacity:.3;opacity:var(--fc-bg-event-opacity,.3)}.fc .fc-bg-event .fc-event-title{margin:.5em;font-size:.85em;font-size:var(--fc-small-font-size,.85em);font-style:italic}.fc .fc-highlight{background:rgba(188,232,241,.3);background:var(--fc-highlight-color,rgba(188,232,241,.3))}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:rgba(208,208,208,.3);background:var(--fc-neutral-bg-color,rgba(208,208,208,.3))}a.fc-event,a.fc-event:hover{text-decoration:none}.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,.fc-h-event{display:block}.fc-event-selected .fc-event-resizer{border-radius:4px;border-radius:calc(var(--fc-event-resizer-dot-total-width,8px)/ 2);border-width:1px;border-width:var(--fc-event-resizer-dot-border-width,1px);width:8px;width:var(--fc-event-resizer-dot-total-width,8px);height:8px;height:var(--fc-event-resizer-dot-total-width,8px);border-style:solid;border-color:inherit;background:var(--fc-page-bg-color,#fff)}.fc-event-selected .fc-event-resizer:before{content:\'\';position:absolute;top:-20px;left:-20px;right:-20px;bottom:-20px}.fc-event-selected:after,.fc-event-selected:before{content:"";position:absolute}.fc-event-selected{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before{z-index:3;top:0;left:0;right:0;bottom:0}.fc-event-selected:after{background:rgba(0,0,0,.25);background:var(--fc-event-selected-overlay-color,rgba(0,0,0,.25));z-index:1;top:-1px;left:-1px;right:-1px;bottom:-1px}.fc-h-event{border:1px solid #3788d8;border:1px solid var(--fc-event-border-color,#3788d8);background-color:#3788d8;background-color:var(--fc-event-bg-color,#3788d8)}.fc-h-event .fc-event-main{color:#fff;color:var(--fc-event-text-color,#fff)}.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;vertical-align:top;left:0;right:0;max-width:100%;overflow:hidden}.fc-h-event.fc-event-selected:before{top:-10px;bottom:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-top-right-radius:0;border-bottom-right-radius:0;border-right-width:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{top:0;bottom:0;width:8px;width:var(--fc-event-resizer-thickness,8px)}.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:-4px;left:calc(var(--fc-event-resizer-thickness,8px)/ -2)}.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:-4px;right:calc(var(--fc-event-resizer-thickness,8px)/ -2)}.fc-h-event.fc-event-selected .fc-event-resizer{top:50%;margin-top:-4px;margin-top:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.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:-4px;left:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.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:-4px;right:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.fc .fc-popover{position:absolute;z-index:9999;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc .fc-popover-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;opacity:.65;font-size:1.1em}.fc-theme-standard .fc-popover{border:1px solid #ddd;border:1px solid var(--fc-border-color,#ddd);background:var(--fc-page-bg-color,#fff)}.fc-theme-standard .fc-popover-header{background:rgba(208,208,208,.3);background:var(--fc-neutral-bg-color,rgba(208,208,208,.3))}: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{content:"";clear:both;display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:rgba(255,220,40,.15);background-color:var(--fc-today-bg-color,rgba(255,220,40,.15))}.fc .fc-daygrid-day-frame{position:relative;min-height:100%}.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{position:relative;z-index:4;padding:4px}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{position:absolute;left:0;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{position:relative;min-height:2em}.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{position:absolute;top:0;left:0;right:0}.fc .fc-daygrid-bg-harness{position:absolute;top:0;bottom: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{z-index:6;margin-top:1px}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;padding:2px 3px 0}.fc .fc-daygrid-day-bottom:before{content:"";clear:both;display:table}.fc .fc-daygrid-more-link{position:relative;z-index:4;cursor:pointer}.fc .fc-daygrid-week-number{position:absolute;z-index:5;top:0;padding:2px;min-width:1.5em;text-align:center;background-color:rgba(208,208,208,.3);background-color:var(--fc-neutral-bg-color,rgba(208,208,208,.3));color:grey;color:var(--fc-neutral-text-color,grey)}.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-week-number{left:0;border-radius:0 0 3px}.fc-direction-rtl .fc-daygrid-week-number{right:0;border-radius:0 0 0 3px}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{position:relative;white-space:nowrap;border-radius:3px;font-size:.85em;font-size:var(--fc-small-font-size,.85em)}.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{display:flex;align-items:center;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;min-width:0;overflow:hidden;font-weight:700}.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{top:-10px;bottom:-10px}.fc-daygrid-event-dot{margin:0 4px;box-sizing:content-box;width:0;height:0;border:4px solid #3788d8;border:calc(var(--fc-daygrid-event-dot-width,8px)/ 2) solid var(--fc-event-border-color,#3788d8);border-radius:4px;border-radius:calc(var(--fc-daygrid-event-dot-width,8px)/ 2)}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}:root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid #ddd;border:1px solid var(--fc-border-color,#ddd)}.fc .fc-list-empty{background-color:rgba(208,208,208,.3);background-color:var(--fc-neutral-bg-color,rgba(208,208,208,.3));height:100%;display:flex;justify-content:center;align-items:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{width:100%;border-style:hidden}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{position:sticky;top:0;background:var(--fc-page-bg-color,#fff)}.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{content:"";clear:both;display:table}.fc-theme-standard .fc-list-day-cushion{background-color:rgba(208,208,208,.3);background-color:var(--fc-neutral-bg-color,rgba(208,208,208,.3))}.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:#f5f5f5;background-color:var(--fc-list-event-hover-bg-color,#f5f5f5)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{display:inline-block;box-sizing:content-box;width:0;height:0;border:5px solid #3788d8;border:calc(var(--fc-list-event-dot-width,10px)/ 2) solid var(--fc-event-border-color,#3788d8);border-radius:5px;border-radius:calc(var(--fc-list-event-dot-width,10px)/ 2)}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}.fc-v-event{display:block;border:1px solid #3788d8;border:1px solid var(--fc-event-border-color,#3788d8);background-color:#3788d8;background-color:var(--fc-event-bg-color,#3788d8)}.fc-v-event .fc-event-main{color:#fff;color:var(--fc-event-text-color,#fff);height:100%}.fc-v-event .fc-event-main-frame{height:100%;display:flex;flex-direction:column}.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{top:0;bottom:0;max-height:100%;overflow:hidden}.fc-v-event:not(.fc-event-start){border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.fc-v-event:not(.fc-event-end){border-bottom-width:0;border-bottom-left-radius:0;border-bottom-right-radius: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:8px;height:var(--fc-event-resizer-thickness,8px);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:-4px;top:calc(var(--fc-event-resizer-thickness,8px)/ -2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:-4px;bottom:calc(var(--fc-event-resizer-thickness,8px)/ -2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:-4px;margin-left:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:-4px;top:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:-4px;bottom:calc(var(--fc-event-resizer-dot-total-width,8px)/ -2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-body,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-slot{height:1.5em;border-bottom:0}.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{overflow:hidden;display:flex;align-items:center;justify-content:flex-end}.fc .fc-timegrid-axis-cushion{max-width:60px;flex-shrink:0}.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{height:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fc .fc-timegrid-col.fc-day-today{background-color:rgba(255,220,40,.15);background-color:var(--fc-today-bg-color,rgba(255,220,40,.15))}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{height:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fc-media-screen .fc-timegrid-cols{position:absolute;top:0;left:0;right:0;bottom: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{position:absolute;top:0;left:0;right: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,.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-bg-harness{position:absolute;left:0;right:0}.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{position:absolute;top:0;bottom:0;left:0;right: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 #fff;box-shadow:0 0 0 1px var(--fc-page-bg-color,#fff)}.fc-timegrid-event,.fc-timegrid-more-link{font-size:.85em;font-size:var(--fc-small-font-size,.85em);border-radius:3px}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{white-space:nowrap;font-size:.85em;font-size:var(--fc-small-font-size,.85em);margin-bottom:1px}.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:.85em;font-size:var(--fc-small-font-size,.85em)}.fc-timegrid-more-link{position:absolute;z-index:9999;color:inherit;color:var(--fc-more-link-text-color,inherit);background:var(--fc-more-link-bg-color,#d0d0d0);cursor:pointer;margin-bottom:1px}.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-line{position:absolute;z-index:4;left:0;right:0;border-style:solid;border-color:red;border-color:var(--fc-now-indicator-color,red);border-width:1px 0 0}.fc .fc-timegrid-now-indicator-arrow{position:absolute;z-index:4;margin-top:-5px;border-style:solid;border-color:red;border-color:var(--fc-now-indicator-color,red)}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{left:0;border-width:5px 0 5px 6px;border-top-color:transparent;border-bottom-color:transparent}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{right:0;border-width:5px 6px 5px 0;border-top-color:transparent;border-bottom-color:transparent}.f-image--wrapper{display:block;margin:auto;position:relative;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper.kup-fit img{max-width:max-content;object-fit:contain}.f-image--wrapper img{display:block;margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .f-image__css{overflow:hidden;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .f-image__icon{margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .css-step.bottom-aligned{bottom:0;position:absolute}.f-button--wrapper{--kup_button_border_radius:var(--kup-button-border-radius, 4px);--kup_button_disabled_color:var(\n --kup-button-disabled-color,\n var(--kup-disabled-color)\n );--kup_button_font_family:var(\n --kup-button-font-family,\n var(--kup-font-family)\n );--kup_button_font_size:var(--kup-button-font-size, var(--kup-font-size));--kup_button_font_weight:var(--kup-button-font-weight, 400);--kup_button_height:var(--kup-button-height, 3em);--kup_button_padding:var(--kup-button-padding, 0 1.25em);--kup_button_primary_color:var(\n --kup-button-primary-color,\n var(--kup-primary-color)\n );--kup_button_primary_color_h:var(\n --kup-button-primary-color-h,\n var(--kup-primary-color-h)\n );--kup_button_primary_color_s:var(\n --kup-button-primary-color-s,\n var(--kup-primary-color-s)\n );--kup_button_primary_color_l:var(\n --kup-button-primary-color-l,\n var(--kup-primary-color-l)\n );--kup_button_primary_color_rgb:var(\n --kup-button-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_button_text_on_primary_color:var(\n --kup-button-text-on-primary-color,\n var(--kup-text-on-primary-color)\n );--kup-spinner-color:var(--kup_button_primary_color);font-family:var(--kup_button_font_family);font-size:var(--kup_button_font_size)}.f-button--wrapper .button{-moz-osx-font-smoothing:grayscale;-webkit-appearance:none;-webkit-font-smoothing:antialiased;align-items:center;background-color:transparent;border:none;border-radius:var(--kup_button_border_radius);box-sizing:border-box;color:var(--kup_button_primary_color);cursor:pointer;display:inline-flex;font-size:0.775em;font-weight:var(--kup_button_font_weight);height:var(--kup_button_height);justify-content:center;letter-spacing:0.0892857143em;line-height:inherit;min-width:64px;outline:none;overflow:visible;padding:var(--kup_button_padding);position:relative;text-decoration:none;text-transform:uppercase;transition:background-color 80ms linear, box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);user-select:none;vertical-align:middle}.f-button--wrapper .button:hover{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button--wrapper .button:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.175)}.f-button--wrapper .button .button__icon{margin-left:-0.25em;margin-right:0.75em}.f-button--wrapper .button .button__label+.button__icon{margin-left:0.75em;margin-right:-0.25em}.f-button--wrapper .button.button--floating,.f-button--wrapper .button.button--raised{--kup-spinner-color:var(--kup_button_text_on_primary_color)}.f-button--wrapper .button.button--floating:not(.button--disabled),.f-button--wrapper .button.button--raised:not(.button--disabled){--kup-spinner-border-color:hsl(\n var(--kup_button_primary_color_h),\n calc(var(--kup_button_primary_color_s) * 0.75),\n calc(var(--kup_button_primary_color_l) * 0.85)\n );background-color:var(--kup_button_primary_color);color:var(--kup_button_text_on_primary_color)}.f-button--wrapper .button.button--floating:hover,.f-button--wrapper .button.button--raised:hover{background-color:hsl(var(--kup_button_primary_color_h), calc(var(--kup_button_primary_color_s) * 0.93), calc(var(--kup_button_primary_color_l) * 1.07))}.f-button--wrapper .button.button--floating:focus,.f-button--wrapper .button.button--raised:focus{background-color:hsl(var(--kup_button_primary_color_h), calc(var(--kup_button_primary_color_s) * 0.88), calc(var(--kup_button_primary_color_l) * 1.12))}.f-button--wrapper .button.button--floating.button--disabled,.f-button--wrapper .button.button--raised.button--disabled{background-color:var(--kup-disabled-background-color);box-shadow:none}.f-button--wrapper .button.button--floating{border-radius:24px;box-shadow:0 0.215em 0.35em -1px rgba(var(--kup-text-color-rgb), 0.2), 0 0.43em 0.71em 0 rgba(var(--kup-text-color-rgb), 0.14), 0 0.07em 1.285em 0 rgba(var(--kup-text-color-rgb), 0.12);font-weight:500;font-size:1em;height:3.4em;width:auto;padding:0 1.5em}.f-button--wrapper .button.button--floating.button--no-label{border-radius:50%;height:4em;padding:0;width:4em}.f-button--wrapper .button.button--floating:hover,.f-button--wrapper .button.button--floating:focus{box-shadow:0 5px 5px -3px rgba(var(--kup-text-color-rgb), 0.2), 0 8px 10px 1px rgba(var(--kup-text-color-rgb), 0.14), 0 3px 14px 2px rgba(var(--kup-text-color-rgb), 0.12)}.f-button--wrapper .button.button--floating:active{box-shadow:0 7px 8px -4px rgba(var(--kup-text-color-rgb), 0.2), 0 12px 17px 2px rgba(var(--kup-text-color-rgb), 0.14), 0 5px 22px 4px rgba(var(--kup-text-color-rgb), 0.12)}.f-button--wrapper .button.button--raised{box-shadow:0 3px 1px -2px rgba(var(--kup-text-color-rgb), 0.2), 0 2px 2px 0 rgba(var(--kup-text-color-rgb), 0.14), 0 1px 5px 0 rgba(var(--kup-text-color-rgb), 0.12)}.f-button--wrapper .button.button--raised:focus,.f-button--wrapper .button.button--raised:hover{box-shadow:0 2px 4px -1px rgba(var(--kup-text-color-rgb), 0.2), 0 4px 5px 0 rgba(var(--kup-text-color-rgb), 0.14), 0 1px 10px 0 rgba(var(--kup-text-color-rgb), 0.12)}.f-button--wrapper .button.button--raised:active{box-shadow:0 5px 5px -3px rgba(var(--kup-text-color-rgb), 0.2), 0 8px 10px 1px rgba(var(--kup-text-color-rgb), 0.14), 0 3px 14px 2px rgba(var(--kup-text-color-rgb), 0.12)}.f-button--wrapper .button.button--outlined{border-width:1px;border-style:solid}.f-button--wrapper .button.button--outlined:not(.button--disabled){border-color:var(--kup_button_primary_color);background-color:transparent;color:var(--kup_button_primary_color)}.f-button--wrapper .button.button--outlined:hover{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button--wrapper .button.button--outlined:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.175)}.f-button--wrapper .button.button--outlined.button--disabled{opacity:0.75;border-color:var(--kup_button_disabled_color)}.f-button--wrapper .button.button--no-label{min-width:unset;padding:0 0.5em}.f-button--wrapper .button.button--no-label .button__icon{margin:0}.f-button--wrapper .button.button--disabled{color:var(--kup_button_disabled_color);cursor:auto;opacity:0.75;pointer-events:none}.f-button--wrapper .button .button__spinner-container{width:100%;height:var(--kup_button_spinner_height);left:0;position:absolute}.f-button--wrapper .icon-button{background-color:transparent;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;font-size:var(--kup_button_font_size);text-decoration:none;cursor:pointer;user-select:none;padding:0.75em;border-radius:50%}.f-button--wrapper .icon-button:hover,.f-button--wrapper .icon-button:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button--wrapper .icon-button .icon-button__icon{display:flex;margin:auto}.f-button--wrapper .icon-button .icon-button__icon.icon-button__icon--on{display:none}.f-button--wrapper .icon-button.button--disabled{opacity:0.75;pointer-events:none}.f-button--wrapper .icon-button .icon-button__spinner-container{width:var(--kup_button_spinner_width);height:var(--kup_button_spinner_height)}.f-button--wrapper .button--with-spinner{opacity:0.8;pointer-events:none}.f-button--wrapper .content--hidden{visibility:hidden}.f-button--wrapper.kup-full-height{height:100%}.f-button--wrapper.kup-full-height .button{height:100%}.f-button--wrapper.kup-full-width{width:100%}.f-button--wrapper.kup-full-width .button{width:100%}.f-button--wrapper.kup-large button{font-size:1.25em}.f-button--wrapper.kup-shaped .button{border-radius:18px}.f-button--wrapper.kup-shaped .button.button--floating{border-radius:50% 0}.f-button--wrapper.kup-slim button{font-size:0.675em}.f-button--wrapper.kup-pulsating .icon-button--on:after{content:"";animation:pulsating 1250ms infinite;position:absolute;height:2px;width:2px;top:calc(50% - 1px);left:calc(50% - 1px);border-radius:50%}.f-button--wrapper.kup-danger{--kup-button-primary-color:var(--kup-danger-color);--kup-button-primary-color-h:var(--kup-danger-color-h);--kup-button-primary-color-s:var(--kup-danger-color-s);--kup-button-primary-color-l:var(--kup-danger-color-l);--kup-button-primary-color-rgb:var(--kup-danger-color-rgb);--kup-button-text-on-primary-color:white}.f-button--wrapper.kup-info{--kup-button-primary-color:var(--kup-info-color);--kup-button-primary-color-h:var(--kup-info-color-h);--kup-button-primary-color-s:var(--kup-info-color-s);--kup-button-primary-color-l:var(--kup-info-color-l);--kup-button-primary-color-rgb:var(--kup-info-color-rgb);--kup-button-text-on-primary-color:white}.f-button--wrapper.kup-secondary{--kup-button-primary-color:var(--kup-secondary-color);--kup-button-primary-color-h:var(--kup-secondary-color-h);--kup-button-primary-color-s:var(--kup-secondary-color-s);--kup-button-primary-color-l:var(--kup-secondary-color-l);--kup-button-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-button-text-on-primary-color:var(--kup-text-on-secondary-color)}.f-button--wrapper.kup-success{--kup-button-primary-color:var(--kup-success-color);--kup-button-primary-color-h:var(--kup-success-color-h);--kup-button-primary-color-s:var(--kup-success-color-s);--kup-button-primary-color-l:var(--kup-success-color-l);--kup-button-primary-color-rgb:var(--kup-success-color-rgb);--kup-button-text-on-primary-color:white}.f-button--wrapper.kup-warning{--kup-button-primary-color:var(--kup-warning-color);--kup-button-primary-color-h:var(--kup-warning-color-h);--kup-button-primary-color-s:var(--kup-warning-color-s);--kup-button-primary-color-l:var(--kup-warning-color-l);--kup-button-primary-color-rgb:var(--kup-warning-color-rgb);--kup-button-text-on-primary-color:white}@keyframes pulsating{0%{transform:scale(2);box-shadow:0 0 0 0 rgba(var(--kup_button_primary_color_rgb), 0.7)}70%{transform:scale(2.75);box-shadow:0 0 0 10px rgba(var(--kup_button_primary_color_rgb), 0)}100%{transform:scale(2);box-shadow:0 0 0 0 rgba(var(--kup_button_primary_color_rgb), 0)}}.f-chip--wrapper{--kup_chip_background_color:var(\n --kup-chip-background-color,\n var(--kup-background-color)\n );--kup_chip_border_radius:var(--kup-chip-border-radius, 16px);--kup_chip_font_family:var(--kup-chip-font-family, var(--kup-font-family));--kup_chip_font_size:var(--kup-chip-font-size, var(--kup-font-size));--kup_chip_font_weight:var(--kup-chip-font-weight, var(--kup-font-weight));--kup_chip_height:var(--kup-chip-height, 32px);--kup_chip_margin:var(--kup-chip-margin, 0 4px);--kup_chip_padding:var(--kup-chip-padding, 0 12px);--kup_chip_primary_color:var(\n --kup-chip-primary-color,\n var(--kup-primary-color)\n );--kup_chip_primary_color_rgb:var(\n --kup-chip-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_chip_text_color:var(--kup-chip-text-color, var(--kup-text-color));--kup_chip_text_color_rgb:var(\n --kup-chip-text-color-rgb,\n var(--kup-text-color-rgb)\n );font-family:var(--kup_chip_font_family);font-size:var(--kup_chip_font_size)}.f-chip--wrapper .chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.f-chip--wrapper .chip-set .chip{align-items:center;display:inline-flex;position:relative;background-color:var(--kup_chip_background_color);background-image:linear-gradient(to right, rgba(var(--kup_chip_text_color_rgb), 0.1) 0%, rgba(var(--kup_chip_text_color_rgb), 0.1) 0.1%, rgba(var(--kup_chip_text_color_rgb), 0.1));color:var(--kup_chip_text_color);border-radius:var(--kup_chip_border_radius);font-size:0.875em;font-weight:var(--kup_chip_font_weight);letter-spacing:0.0178571429em;text-decoration:inherit;text-transform:inherit;height:var(--kup_chip_height);box-sizing:border-box;padding:var(--kup_chip_padding);border-width:0;outline:none;cursor:pointer;margin:var(--kup_chip_margin)}.f-chip--wrapper .chip-set .chip .chip__icon--leading{color:var(--kup_chip_text_color)}.f-chip--wrapper .chip-set .chip .chip__icon--leading:not(.chip__icon--leading-hidden){margin-left:-4px;margin-right:6px}.f-chip--wrapper .chip-set .chip .chip__icon--leading .chip__icon--trailing{position:relative}.f-chip--wrapper .chip-set .chip .chip__icon{border-radius:50%;outline:none;vertical-align:middle}.f-chip--wrapper .chip-set .chip .chip__icon .chip_icon--leading:not(.chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.f-chip--wrapper .chip-set .chip .chip__icon .f-image__icon{margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-chip--wrapper .chip-set .chip .chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.f-chip--wrapper .chip-set .chip .chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.f-chip--wrapper .chip-set .chip svg path{color:var(--kup_chip_text_color);stroke:var(--kup_chip_text_color)}.f-chip--wrapper .chip-set .chip .kup-icon{background:var(--kup_chip_text_color);display:block;width:18px;height:18px}.f-chip--wrapper .chip-set .chip .chip__primary-action{outline:none}.f-chip--wrapper .chip-set .chip .chip__primary-action .chip__text{white-space:nowrap}.f-chip--wrapper .chip-set.chip-set--choice .chip--selected{background-color:var(--kup_chip_background_color);background-image:linear-gradient(to right, rgba(var(--kup_chip_primary_color_rgb), 0.25) 0%, rgba(var(--kup_chip_primary_color_rgb), 0.25) 0.1%, rgba(var(--kup_chip_primary_color_rgb), 0.25));color:var(--kup_chip_primary_color)}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading{opacity:1;transition:opacity 75ms linear;transition-delay:-50ms}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading+.chip__checkmark{opacity:0;transition:opacity 75ms linear;transition-delay:80ms}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading+.chip__checkmark .chip__checkmark-svg{transition:width 0ms}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading.chip__icon--leading-hidden{display:none;width:0;opacity:0}.f-chip--wrapper .chip-set.chip-set--filter .chip__icon--leading.chip__icon--leading-hidden+.chip__checkmark{height:20px;width:20px;opacity:1}.f-chip--wrapper .chip-set.chip-set--filter .chip--selected .chip__icon--leading{opacity:0}.f-chip--wrapper .chip-set.chip-set--filter .chip--selected .chip__checkmark-path{stroke-dashoffset:0}.f-chip--wrapper .chip-set.chip-set--filter .chip--selected .chip__checkmark{margin-left:-4px;margin-right:4px}.f-chip--wrapper .chip-set.chip-set--filter .chip--selected .chip__checkmark .chip__checkmark-svg{height:20px;width:20px}.f-chip--wrapper .chip-set.chip-set--input .kup-clear-icon{margin-left:4px;margin-right:-4px}.f-chip--wrapper .chip-set.chip-set--input .kup-clear-icon:hover{opacity:0.75}.f-chip--wrapper :not(svg){transform-origin:0px 0px}.f-chip--wrapper.kup-danger{--kup-chip-primary-color:var(--kup-danger-color);--kup-chip-primary-color-rgb:var(--kup-danger-color-rgb)}.f-chip--wrapper.kup-info{--kup-chip-primary-color:var(--kup-info-color);--kup-chip-primary-color-rgb:var(--kup-info-color-rgb)}.f-chip--wrapper.kup-secondary{--kup-chip-primary-color:var(--kup-secondary-color);--kup-chip-primary-color-rgb:var(--kup-secondary-color-rgb)}.f-chip--wrapper.kup-success{--kup-chip-primary-color:var(--kup-success-color);--kup-chip-primary-color-rgb:var(--kup-success-color-rgb)}.f-chip--wrapper.kup-warning{--kup-chip-primary-color:var(--kup-warning-color);--kup-chip-primary-color-rgb:var(--kup-warning-color-rgb)}.f-chip--wrapper .kup-icon.kup-clear-icon{-webkit-mask:var(--kup-clear-icon);mask:var(--kup-clear-icon)}:host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-background-color)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-color)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-primary-color)\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-on-primary-color)\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-title-background-color)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-title-color)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 2px solid var(--kup-border-color)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n rgba(var(--kup-disabled-background-color-rgb), 0.5)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-disabled-color)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n rgba(var(--kup-primary-color-rgb), 0.125)\n );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;border-left:var(--kup_calendar_navigator_border);border-right:var(--kup_calendar_navigator_border);border-top:var(--kup_calendar_navigator_border);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;justify-content:space-between}.navigation__left{--kup-font-size:0.875em;display:flex}.navigation__right{display:flex}.navigation__title{font-size:1.25em;font-weight:400;letter-spacing:0.1892857em;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-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)}#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-radius:var(--kup_calendar_event_border_radius);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 td.fc-day-today{background-color:var(--kup_calendar_today_background_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)}@media (max-width: 599px){.navigation{flex-direction:column}}';export{Bs as kup_calendar}
|