@sme.up/ketchup 7.4.2 → 8.0.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.
Files changed (160) hide show
  1. package/dist/cjs/{component-72a5b626.js → component-85c2bd4d.js} +1 -1
  2. package/dist/cjs/{f-button-daddd700.js → f-button-49b2c37c.js} +1 -1
  3. package/dist/cjs/{f-cell-3682fad4.js → f-cell-9a6bc55c.js} +4 -4
  4. package/dist/cjs/{f-chip-9d540d94.js → f-chip-dee84122.js} +2 -2
  5. package/dist/cjs/{f-image-7b42d149.js → f-image-27f965ff.js} +4 -4
  6. package/dist/cjs/{f-paginator-utils-1baeba0f.js → f-paginator-utils-4a30189d.js} +2 -2
  7. package/dist/cjs/{f-text-field-a6ed2d22.js → f-text-field-04a663b4.js} +1 -1
  8. package/dist/cjs/{f-text-field-mdc-85997738.js → f-text-field-mdc-0e22f3e3.js} +2 -2
  9. package/dist/cjs/ketchup.cjs.js +2 -2
  10. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +814 -819
  12. package/dist/cjs/kup-box.cjs.entry.js +10 -10
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +7 -10
  18. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-echart.cjs.entry.js +25 -8
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +8 -19
  21. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  25. package/dist/cjs/{kup-manager-10351449.js → kup-manager-2ff5d258.js} +80 -1
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-planner.cjs.entry.js +1127 -218
  30. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/cjs/{tslib.es6-0ee02c67.js → tslib.es6-386654de.js} +9 -5
  35. package/dist/collection/collection-manifest.json +1 -1
  36. package/dist/collection/components/kup-card/kup-card.css +4 -8
  37. package/dist/collection/components/kup-chip/kup-chip.js +4 -3
  38. package/dist/collection/components/kup-dashboard/kup-dashboard.js +0 -3
  39. package/dist/collection/components/kup-data-table/kup-data-table.css +3 -6
  40. package/dist/collection/components/kup-data-table/kup-data-table.js +6 -20
  41. package/dist/collection/components/kup-echart/kup-echart-declarations.js +2 -0
  42. package/dist/collection/components/kup-echart/kup-echart.js +23 -8
  43. package/dist/collection/components/kup-family-tree/kup-family-tree.css +2 -2
  44. package/dist/collection/components/kup-family-tree/kup-family-tree.js +4 -15
  45. package/dist/collection/components/kup-image/kup-image.js +28 -0
  46. package/dist/collection/components/kup-list/kup-list.css +1 -1
  47. package/dist/collection/components/kup-planner/kup-planner-declarations.js +5 -2
  48. package/dist/collection/components/kup-planner/kup-planner.css +6 -3
  49. package/dist/collection/components/kup-planner/kup-planner.js +347 -65
  50. package/dist/collection/components/kup-qlik/kup-qlik.css +4 -8
  51. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -3
  52. package/dist/collection/components/kup-spinner/kup-spinner.css +2 -4
  53. package/dist/collection/components/kup-tree/kup-tree.js +66 -67
  54. package/dist/collection/f-components/f-image/f-image.js +3 -3
  55. package/dist/collection/managers/kup-data/kup-data-column-helper.js +1 -0
  56. package/dist/collection/managers/kup-manager/kup-manager.js +18 -0
  57. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  58. package/dist/collection/types/GenericTypes.js +1 -0
  59. package/dist/components/kup-autocomplete2.js +228 -151
  60. package/dist/components/kup-dashboard.js +0 -3
  61. package/dist/components/kup-echart2.js +24 -7
  62. package/dist/components/kup-family-tree.js +5 -16
  63. package/dist/components/kup-planner.js +1127 -219
  64. package/dist/components/kup-progress-bar.js +1 -1
  65. package/dist/components/kup-qlik.js +1 -1
  66. package/dist/components/kup-radio.js +1 -1
  67. package/dist/components/kup-rating.js +1 -1
  68. package/dist/components/kup-snackbar.js +1 -1
  69. package/dist/components/kup-spinner.js +1 -1
  70. package/dist/components/kup-switch.js +1 -1
  71. package/dist/components/kup-tab-bar.js +1 -1
  72. package/dist/components/kup-text-field.js +1 -1
  73. package/dist/components/kup-time-picker.js +1 -1
  74. package/dist/components/kup-tree.js +1 -1
  75. package/dist/esm/{component-b1bedf1d.js → component-120651a0.js} +1 -1
  76. package/dist/esm/{f-button-8d15b5a0.js → f-button-744cf1f6.js} +1 -1
  77. package/dist/esm/{f-cell-7b706e57.js → f-cell-b319c869.js} +4 -4
  78. package/dist/esm/{f-chip-c671fe90.js → f-chip-7e3e4180.js} +2 -2
  79. package/dist/esm/{f-image-21451b15.js → f-image-098c26ce.js} +4 -4
  80. package/dist/esm/{f-paginator-utils-92bbf277.js → f-paginator-utils-674cb2ae.js} +2 -2
  81. package/dist/esm/{f-text-field-0bb2d109.js → f-text-field-c38ef113.js} +1 -1
  82. package/dist/esm/{f-text-field-mdc-d42d3f9e.js → f-text-field-mdc-cee583ea.js} +2 -2
  83. package/dist/esm/ketchup.js +2 -2
  84. package/dist/esm/kup-accordion.entry.js +4 -4
  85. package/dist/esm/kup-autocomplete_27.entry.js +814 -819
  86. package/dist/esm/kup-box.entry.js +10 -10
  87. package/dist/esm/kup-calendar.entry.js +5 -5
  88. package/dist/esm/kup-cell.entry.js +5 -5
  89. package/dist/esm/kup-dash-list.entry.js +1 -1
  90. package/dist/esm/kup-dash_2.entry.js +1 -1
  91. package/dist/esm/kup-dashboard.entry.js +7 -10
  92. package/dist/esm/kup-drawer.entry.js +1 -1
  93. package/dist/esm/kup-echart.entry.js +25 -8
  94. package/dist/esm/kup-family-tree.entry.js +8 -19
  95. package/dist/esm/kup-iframe.entry.js +1 -1
  96. package/dist/esm/kup-image-list.entry.js +8 -8
  97. package/dist/esm/kup-lazy.entry.js +1 -1
  98. package/dist/esm/kup-magic-box.entry.js +2 -2
  99. package/dist/esm/{kup-manager-6145d980.js → kup-manager-b41eb2a8.js} +80 -2
  100. package/dist/esm/kup-nav-bar.entry.js +1 -1
  101. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  102. package/dist/esm/kup-photo-frame.entry.js +1 -1
  103. package/dist/esm/kup-planner.entry.js +1128 -219
  104. package/dist/esm/kup-probe.entry.js +1 -1
  105. package/dist/esm/kup-qlik.entry.js +2 -2
  106. package/dist/esm/kup-snackbar.entry.js +4 -4
  107. package/dist/esm/loader.js +2 -2
  108. package/dist/esm/{tslib.es6-3eea2234.js → tslib.es6-8c2af864.js} +9 -5
  109. package/dist/ketchup/ketchup.esm.js +1 -1
  110. package/dist/ketchup/{p-439ac105.entry.js → p-0b0b61cb.entry.js} +1 -1
  111. package/dist/ketchup/p-0b91f5f8.entry.js +1 -0
  112. package/dist/ketchup/{p-81605f08.js → p-10d84b1b.js} +1 -1
  113. package/dist/ketchup/{p-a203f78b.js → p-27a56c87.js} +1 -1
  114. package/dist/ketchup/{p-32517a99.entry.js → p-395e1960.entry.js} +1 -1
  115. package/dist/ketchup/{p-76bf53df.entry.js → p-3b41aca7.entry.js} +1 -1
  116. package/dist/ketchup/{p-4d039705.entry.js → p-3efe7f43.entry.js} +1 -1
  117. package/dist/ketchup/{p-a641780a.entry.js → p-4325d965.entry.js} +1 -1
  118. package/dist/ketchup/{p-2915a66a.entry.js → p-4ae2ca6f.entry.js} +1 -1
  119. package/dist/ketchup/{p-e4975ffa.entry.js → p-5ce2b4fc.entry.js} +1 -1
  120. package/dist/ketchup/p-5d398e42.js +1 -0
  121. package/dist/ketchup/{p-7cfdce27.js → p-77e3d537.js} +1 -1
  122. package/dist/ketchup/p-7f59211b.js +1 -0
  123. package/dist/ketchup/p-940a5feb.js +30 -0
  124. package/dist/ketchup/{p-826c91d7.js → p-9700eb32.js} +1 -1
  125. package/dist/ketchup/p-a7e19620.entry.js +39 -0
  126. package/dist/ketchup/p-a877a87b.entry.js +9 -0
  127. package/dist/ketchup/p-a9b7533b.entry.js +25 -0
  128. package/dist/ketchup/{p-89ac80c1.entry.js → p-af82131e.entry.js} +1 -1
  129. package/dist/ketchup/{p-da37c417.entry.js → p-b032f47d.entry.js} +1 -1
  130. package/dist/ketchup/{p-0c1cbf8b.entry.js → p-b244f5ca.entry.js} +1 -1
  131. package/dist/ketchup/{p-2a2dc2a8.entry.js → p-bb17c1ba.entry.js} +1 -1
  132. package/dist/ketchup/{p-0c9b7c80.entry.js → p-bd42562d.entry.js} +1 -1
  133. package/dist/ketchup/{p-849ad5d8.entry.js → p-c8b7790a.entry.js} +1 -1
  134. package/dist/ketchup/{p-c022824e.entry.js → p-c968e93d.entry.js} +1 -1
  135. package/dist/ketchup/{p-1242366a.entry.js → p-d739710a.entry.js} +1 -1
  136. package/dist/ketchup/{p-ae4fffe0.js → p-d98fdb9b.js} +1 -1
  137. package/dist/ketchup/{p-c222d070.entry.js → p-da891093.entry.js} +1 -1
  138. package/dist/ketchup/{p-281cff81.entry.js → p-df316daf.entry.js} +1 -1
  139. package/dist/ketchup/{p-d87fb5ff.entry.js → p-e02b5141.entry.js} +1 -1
  140. package/dist/ketchup/{p-ea16ddc0.js → p-e714f4dc.js} +1 -1
  141. package/dist/ketchup/{p-c4d9e3e2.js → p-ef614656.js} +1 -1
  142. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -0
  143. package/dist/types/components/kup-image/kup-image.d.ts +2 -0
  144. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +18 -3
  145. package/dist/types/components/kup-planner/kup-planner.d.ts +36 -11
  146. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -5
  147. package/dist/types/components.d.ts +39 -4
  148. package/dist/types/f-components/f-image/f-image-declarations.d.ts +1 -0
  149. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
  150. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +1 -0
  151. package/dist/types/managers/kup-manager/kup-manager.d.ts +7 -0
  152. package/dist/types/types/GenericTypes.d.ts +1 -0
  153. package/package.json +8 -20
  154. package/dist/ketchup/p-02a26d59.entry.js +0 -9
  155. package/dist/ketchup/p-462475ac.entry.js +0 -10
  156. package/dist/ketchup/p-5292ef67.js +0 -30
  157. package/dist/ketchup/p-79b0730b.js +0 -15
  158. package/dist/ketchup/p-9f00ad0f.js +0 -1
  159. package/dist/ketchup/p-be61dd36.entry.js +0 -39
  160. package/dist/ketchup/p-e83e70e2.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as t,c as n,a as e,f as r,h as i,H as o,g as a}from"./p-d4ece435.js";import{_ as s,a as u,c}from"./p-79b0730b.js";import{as as l,at as f,k as d,g as h,s as v,au as g,l as m,u as p}from"./p-5292ef67.js";import{c as b}from"./p-97e8ea42.js";import{F as A}from"./p-7cfdce27.js";import{a as y,F as w}from"./p-c4d9e3e2.js";import"./p-6c77a36c.js";import"./p-9f00ad0f.js";var k,E,x,D,N,S,C,T={},_=[],M=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function R(t,n){for(var e in n)t[e]=n[e];return t}function B(t){var n=t.parentNode;n&&n.removeChild(t)}function I(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?k.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?++x:i};return null==i&&null!=E.vnode&&E.vnode(o),o}function P(t){return t.children}function H(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)&&D.push(t)&&!U.__r++||S!==E.debounceRendering)&&((S=E.debounceRendering)||N)(U)}function U(){for(var t;U.__r=D.length;)t=D.sort((function(t,n){return t.__v.__b-n.__v.__b})),D=[],t.some((function(t){var n,e,r,i,o,a;t.__d&&(o=(i=(n=t).__v).__e,(a=n.__P)&&(e=[],(r=R({},i)).__v=i.__v+1,J(a,i,r,n.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,e,null==o?Q(i):o,i.__h),X(e,i),i.__e!=o&&O(i)))}))}function F(t,n,e,r,i,o,a,s,u,c){var l,f,d,h,v,g,m,p=r&&r.__k||_,b=p.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(P,{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=p[l])||d&&h.key==d.key&&h.type===d.type)p[l]=void 0;else for(f=0;f<b;f++){if((d=p[f])&&h.key==d.key&&h.type===d.type){p[f]=void 0;break}d=null}J(t,h,d=d||T,i,o,a,s,u,c),v=h.__e,(f=h.ref)&&d.ref!=f&&(m||(m=[]),d.ref&&m.push(d.ref,null,h),m.push(f,h.__c||v,h)),null!=v?(null==g&&(g=v),"function"==typeof h.type&&h.__k===d.__k?h.__d=u=j(h,u,t):u=L(t,h,d,p,v,u),"function"==typeof e.type&&(e.__d=u)):u&&d.__e==u&&u.parentNode!=t&&(u=Q(d))}for(e.__e=g,l=b;l--;)null!=p[l]&&("function"==typeof e.type&&null!=p[l].__e&&p[l].__e==e.__d&&(e.__d=Q(r,l+1)),tt(p[l],p[l]));if(m)for(l=0;l<m.length;l++)K(m[l],m[++l],m[++l])}function j(t,n,e){for(var r,i=t.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=t,n="function"==typeof r.type?j(r,n,e):L(e,r,r,i,r.__e,n));return n}function G(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){G(t,n)})):n.push(t)),n}function L(t,n,e,r,i,o){var a,s,u;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(s=o,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==i)break t;t.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function W(t,n,e){"-"===n[0]?t.setProperty(n,e):t[n]=null==e?"":"number"!=typeof e||M.test(n)?e:e+"px"}function Y(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||W(t.style,n,"");if(e)for(n in e)r&&e[n]===r[n]||W(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?q:Z,o):t.removeEventListener(n,o?q:Z,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 Z(t){this.l[t.type+!1](E.event?E.event(t):t)}function q(t){this.l[t.type+!0](E.event?E.event(t):t)}function J(t,n,e,r,i,o,a,s,u){var c,l,f,d,h,v,g,m,p,b,A,y=n.type;if(void 0!==n.constructor)return null;null!=e.__h&&(u=e.__h,s=n.__e=e.__e,n.__h=null,o=[s]),(c=E.__b)&&c(n);try{t:if("function"==typeof y){if(m=n.props,p=(c=y.contextType)&&r[c.__c],b=c?p?p.props.value:c.__:r,e.__c?g=(l=n.__c=e.__c).__=l.__E:("prototype"in y&&y.prototype.render?n.__c=l=new y(m,b):(n.__c=l=new H(m,b),l.constructor=y,l.render=nt),p&&p.sub(l),l.props=m,l.state||(l.state={}),l.context=b,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=y.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=R({},l.__s)),R(l.__s,y.getDerivedStateFromProps(m,l.__s))),d=l.props,h=l.state,f)null==y.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==d&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(m,b),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(m,l.__s,b)||n.__v===e.__v){l.props=m,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(m,l.__s,b),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(d,h,v)}))}l.context=b,l.props=m,l.state=l.__s,(c=E.__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=R(R({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(v=l.getSnapshotBeforeUpdate(d,h)),A=null!=c&&c.type===P&&null==c.key?c.props.children:c,F(t,Array.isArray(A)?A:[A],n,e,r,i,o,a,s,u),l.base=n.__e,n.__h=null,l.__h.length&&a.push(l),g&&(l.__E=l.__=null),l.__e=!1}else null==o&&n.__v===e.__v?(n.__k=e.__k,n.__e=e.__e):n.__e=$(e.__e,n,e,r,i,o,a,u);(c=E.diffed)&&c(n)}catch(t){n.__v=null,(u||null!=o)&&(n.__e=s,n.__h=!!u,o[o.indexOf(s)]=null),E.__e(t,n,e)}}function X(t,n){E.__c&&E.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){E.__e(t,n.__v)}}))}function $(t,n,e,r,i,o,a,s){var u,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((u=o[v])&&"setAttribute"in u==!!h&&(h?u.localName===h:3===u.nodeType)){t=u,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,s=!1}if(null===h)f===d||s&&t.data===d||(t.data=d);else{if(o=o&&k.call(t.childNodes),c=(f=e.props||T).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!s){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||Y(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]||Y(t,o,n[o],e[o],r)}(t,d,f,i,s),l)n.__k=[];else if(v=n.props.children,F(t,Array.isArray(v)?v:[v],n,e,r,i&&"foreignObject"!==h,o,a,o?o[0]:e.__k&&Q(e,0),s),null!=o)for(v=o.length;v--;)null!=o[v]&&B(o[v]);s||("value"in d&&void 0!==(v=d.value)&&(v!==t.value||"progress"===h&&!v||"option"===h&&v!==f.value)&&Y(t,"value",v,f.value,!1),"checked"in d&&void 0!==(v=d.checked)&&v!==t.checked&&Y(t,"checked",v,f.checked,!1))}return t}function K(t,n,e){try{"function"==typeof t?t(n):t.current=n}catch(t){E.__e(t,e)}}function tt(t,n,e){var r,i;if(E.unmount&&E.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||K(r,null,n)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){E.__e(t,n)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&tt(r[i],n,"function"!=typeof t.type);e||null==t.__e||B(t.__e),t.__e=t.__d=void 0}function nt(t,n,e){return this.constructor(t,e)}function et(t,n,e){var r,i,o;E.__&&E.__(t,n),i=(r="function"==typeof e)?null:e&&e.__k||n.__k,o=[],J(n,t=(!r&&e||n).__k=I(P,null,[t]),i||T,T,void 0!==n.ownerSVGElement,!r&&e?[e]:i?null:n.firstChild?k.call(n.childNodes):null,o,!r&&e?e:i?i.__e:n.firstChild,r),X(o,t)}k=_.slice,E={__e:function(t,n,e,r){for(var i,o,a;n=n.__;)if((i=n.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(n){t=n}throw t}},x=0,H.prototype.setState=function(t,n){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=R({},this.state),"function"==typeof t&&(t=t(R({},e),this.props)),t&&R(e,t),null!=t&&this.__v&&(n&&this.__h.push(n),V(this))},H.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),V(this))},H.prototype.render=P,D=[],N="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U.__r=0,C=0;var rt,it,ot=[],at=E.__b,st=E.__r,ut=E.diffed,ct=E.__c,lt=E.unmount;function ft(){for(var t;t=ot.shift();)if(t.__P)try{t.__H.__h.forEach(ht),t.__H.__h.forEach(vt),t.__H.__h=[]}catch(n){t.__H.__h=[],E.__e(n,t.__v)}}E.__b=function(t){rt=null,at&&at(t)},E.__r=function(t){st&&st(t);var n=(rt=t.__c).__H;n&&(n.__h.forEach(ht),n.__h.forEach(vt),n.__h=[])},E.diffed=function(t){ut&&ut(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==ot.push(n)&&it===E.requestAnimationFrame||((it=E.requestAnimationFrame)||function(t){var n,e=function(){clearTimeout(r),dt&&cancelAnimationFrame(n),setTimeout(t)},r=setTimeout(e,100);dt&&(n=requestAnimationFrame(e))})(ft)),rt=null},E.__c=function(t,n){n.some((function(t){try{t.__h.forEach(ht),t.__h=t.__h.filter((function(t){return!t.__||vt(t)}))}catch(e){n.some((function(t){t.__h&&(t.__h=[])})),n=[],E.__e(e,t.__v)}})),ct&&ct(t,n)},E.unmount=function(t){lt&&lt(t);var n,e=t.__c;e&&e.__H&&(e.__H.__.forEach((function(t){try{ht(t)}catch(t){n=t}})),n&&E.__e(n,e.__v))};var dt="function"==typeof requestAnimationFrame;function ht(t){var n=rt,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),rt=n}function vt(t){var n=rt;t.__c=t.__(),rt=n}function gt(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 mt(t){this.props=t}(mt.prototype=new H).isPureReactComponent=!0,mt.prototype.shouldComponentUpdate=function(t,n){return gt(this.props,t)||gt(this.state,n)};var pt=E.__b;E.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),pt&&pt(t)};var bt=E.__e;E.__e=function(t,n,e,r){if(t.then)for(var i,o=n;o=o.__;)if((i=o.__c)&&i.__c)return null==n.__e&&(n.__e=e.__e,n.__k=e.__k),i.__c(t,n);bt(t,n,e,r)};var At=E.unmount;function yt(){this.__u=0,this.t=null,this.__b=null}function wt(t){var n=t.__.__c;return n&&n.__e&&n.__e(t)}function kt(){this.u=null,this.o=null}E.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&!0===t.__h&&(t.type=null),At&&At(t)},(yt.prototype=new H).__c=function(t,n){var e=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var i=wt(r.__v),o=!1,a=function(){o||(o=!0,e.__R=null,i?i(s):s())};e.__R=a;var s=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()}},u=!0===n.__h;r.__u++||u||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&&I(P,null,t.fallback);return i&&(i.__h=null),[I(P,null,n.__e?null:t.children),i]};var Et=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 xt(t){return this.getChildContext=function(){return t.context},t.children}function Dt(t){var n=this,e=t.i;n.componentWillUnmount=function(){et(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)}}),et(I(xt,{context:n.context},t.__v),n.l)):n.l&&n.componentWillUnmount()}(kt.prototype=new H).__e=function(t){var n=this,e=wt(n.__v),r=n.o.get(t);return r[0]++,function(i){var o=function(){n.props.revealOrder?(r.push(i),Et(n,t,r)):i()};e?e(o):o()}},kt.prototype.render=function(t){this.u=null,this.o=new Map;var n=G(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},kt.prototype.componentDidUpdate=kt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(n,e){Et(t,e,n)}))};var Nt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,St=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|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]/,Ct="undefined"!=typeof document,Tt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};H.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(H.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}));var _t=E.event;function Mt(){}function Rt(){return this.cancelBubble}function Bt(){return this.defaultPrevented}E.event=function(t){return _t&&(t=_t(t)),t.persist=Mt,t.isPropagationStopped=Rt,t.isDefaultPrevented=Bt,t.nativeEvent=t};var It={configurable:!0,get:function(){return this.class}},zt=E.vnode;E.vnode=function(t){var n=t.type,e=t.props,r=e;if("string"==typeof n){var i=-1===n.indexOf("-");for(var o in r={},e){var a=e[o];Ct&&"children"===o&&"noscript"===n||"value"===o&&"defaultValue"in e&&null==a||("defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===a?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!Tt(e.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&St.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[o]=a)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=G(e.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=G(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,e.class!=e.className&&(It.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",It))}t.$$typeof=Nt,zt&&zt(t)};var Pt=E.__r;E.__r=function(t){Pt&&Pt(t)};var Ht="undefined"!=typeof globalThis?globalThis:window;Ht.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):Ht.FullCalendarVDom={Component:H,createElement:I,render:et,createRef:function(){return{current:null}},Fragment:P,createContext:function(t){var n=function(t,n){var e={__c:n="__cC"+C++,__: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 I(Dt,{__v:t,i:n})},flushSync:function(t){t();var n=E.debounceRendering,e=[];for(E.debounceRendering=function(t){e.push(t)},et(I(Qt,{}),document.createElement("div"));e.length;)e.shift()();E.debounceRendering=n},unmountComponentAtNode:function(t){et(null,t)}};var Qt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){return I("div",{})},n.prototype.componentDidMount=function(){this.setState({})},n}(H);if("undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var Ot=FullCalendarVDom.Component,Vt=FullCalendarVDom.createElement,Ut=FullCalendarVDom.render,Ft=FullCalendarVDom.createRef,jt=FullCalendarVDom.Fragment,Gt=FullCalendarVDom.createContext,Lt=FullCalendarVDom.createPortal,Wt=FullCalendarVDom.flushSync,Yt=FullCalendarVDom.unmountComponentAtNode,Zt=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 qt(t){t.parentNode&&t.parentNode.removeChild(t)}function Jt(t,n){if(t.closest)return t.closest(n);if(!document.documentElement.contains(t))return null;do{if(Xt(t,n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}function Xt(t,n){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,n)}var $t=/(top|left|right|bottom|width|height)$/i;function Kt(t,n){for(var e in n)tn(t,e,n[e])}function tn(t,n,e){t.style[n]=null==e?"":"number"==typeof e&&$t.test(n)?e+"px":e}function nn(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 en(t){return t.getRootNode?t.getRootNode():document}var rn=0;function on(){return"fc-dom-"+(rn+=1)}function an(t){t.preventDefault()}function sn(t,n,e,r){var i=function(t,n){return function(e){var r=Jt(e.target,t);r&&n.call(r,e,r)}}(e,r);return t.addEventListener(n,i),function(){t.removeEventListener(n,i)}}var un=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function cn(t){return u({onClick:t},ln(t))}function ln(t){return{tabIndex:0,onKeyDown:function(n){"Enter"!==n.key&&" "!==n.key||(t(n),n.preventDefault())}}}var fn=0;function dn(){return String(fn+=1)}function hn(){document.body.classList.add("fc-not-allowed")}function vn(){document.body.classList.remove("fc-not-allowed")}function gn(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 mn(t,n){var e=String(t);return"000".substr(0,n-e.length)+e}function pn(t,n,e){return"function"==typeof t?t.apply(void 0,n):"string"==typeof t?n.reduce((function(t,n,e){return t.replace("$"+e,n||"")}),t):e}function bn(t,n){return t-n}function An(t){return t%1==0}function yn(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 wn=["sun","mon","tue","wed","thu","fri","sat"];function kn(t,n){var e=Rn(t);return e[2]+=7*n,Bn(e)}function En(t,n){var e=Rn(t);return e[2]+=n,Bn(e)}function xn(t,n){var e=Rn(t);return e[6]+=n,Bn(e)}function Dn(t,n){return(n.valueOf()-t.valueOf())/864e5}function Nn(t,n){return zn(t)===zn(n)?Math.round(Dn(t,n)):null}function Sn(t){return Bn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Cn(t,n,e,r){var i=Bn([n,0,1+Tn(n,e,r)]),o=Sn(t),a=Math.round(Dn(i,o));return Math.floor(a/7)+1}function Tn(t,n,e){var r=7+n-e;return-(7+Bn([t,0,r]).getUTCDay()-n)%7+r-1}function _n(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Mn(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 Rn(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Bn(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC.apply(Date,t))}function In(t){return!isNaN(t.valueOf())}function zn(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}function Pn(t,n,e,r){return{instanceId:dn(),defId:t,range:n,forcedStartTzo:null==e?null:e,forcedEndTzo:null==r?null:r}}var Hn=Object.prototype.hasOwnProperty;function Qn(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]=Qn(i))}for(o=t.length-1;o>=0;o-=1){var s=t[o];for(var u in s)u in e||(e[u]=s[u])}return e}function On(t,n){var e={};for(var r in t)n(t[r],r)&&(e[r]=t[r]);return e}function Vn(t,n){var e={};for(var r in t)e[r]=n(t[r],r);return e}function Un(t){for(var n={},e=0,r=t;e<r.length;e++)n[r[e]]=!0;return n}function Fn(t){var n=[];for(var e in t)n.push(t[e]);return n}function jn(t,n){if(t===n)return!0;for(var e in t)if(Hn.call(t,e)&&!(e in n))return!1;for(var e in n)if(Hn.call(n,e)&&t[e]!==n[e])return!1;return!0}function Gn(t,n){var e=[];for(var r in t)Hn.call(t,r)&&(r in n||e.push(r));for(var r in n)Hn.call(n,r)&&t[r]!==n[r]&&e.push(r);return e}function Ln(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 Wn(t,n,e){var r=e.dateEnv,i=e.pluginHooks,o=e.options,a=t.defs,s=t.instances;for(var u in s=On(s,(function(t){return!a[t.defId].recurringDef})),a){var c=a[u];if(c.recurringDef){var l=c.recurringDef.duration;l||(l=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var f=0,d=Yn(c,l,n,r,i.recurringTypes);f<d.length;f++){var h=d[f],v=Pn(u,{start:h,end:r.add(h,l)});s[v.instanceId]=v}}}return{defs:a,instances:s}}function Yn(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(Sn)),o}var Zn=["years","months","days","milliseconds"],qn=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Jn(t,n){var e;return"string"==typeof t?function(t){var n=qn.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?Xn(t):"number"==typeof t?Xn(((e={})[n||"milliseconds"]=t,e)):null}function Xn(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 $n(t,n){return{years:t.years+n.years,months:t.months+n.months,days:t.days+n.days,milliseconds:t.milliseconds+n.milliseconds}}function Kn(t){return te(t)/864e5}function te(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function ne(t,n){for(var e=null,r=0;r<Zn.length;r+=1){var i=Zn[r];if(n[i]){var o=t[i]/n[i];if(!An(o)||null!==e&&e!==o)return null;e=o}else if(t[i])return null}return e}function ee(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 re(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",oe(n,!0)))),r}function ie(t){return t.toISOString().replace(/T.*$/,"")}function oe(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+mn(i,2)+":"+mn(o,2):"GMT"+e+i+(o?":"+mn(o,2):"")}function ae(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 se(t,n,e){var r,i;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(r){if(!ae(r,o)){e&&e(i);var s=t.apply(this,o);n&&n(s,i)||(i=s)}}else i=t.apply(this,o);return r=o,i}}function ue(t,n,e){var r,i,o=this;return function(a){if(r){if(!jn(r,a)){e&&e(i);var s=t.call(o,a);n&&n(s,i)||(i=s)}}else i=t.call(o,a);return r=a,i}}var ce={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},le={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},fe=/\s*([ap])\.?m\.?/i,de=/,/g,he=/\s+/g,ve=/\u200e/g,ge=/UTC|GMT/,me=function(){function t(t){var n={},e={},r=0;for(var i in t)i in ce?(e[i]=t[i],r=Math.max(ce[i],r)):(n[i]=t[i],i in le&&(r=Math.max(le[i],r)));this.standardDateProps=n,this.extendedSettings=e,this.severity=r,this.buildFormattingFunc=se(pe)}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,s=this.standardDateProps,u=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:zn(i)!==zn(o)?1:0);if(!c)return this.format(t,e);var l=c;!(l>1)||"numeric"!==s.year&&"2-digit"!==s.year||"numeric"!==s.month&&"2-digit"!==s.month||"numeric"!==s.day&&"2-digit"!==s.day||(l=1);var f=this.format(t,e),d=this.format(n,e);if(f===d)return f;var h=pe(function(t,n){var e={};for(var r in t)(!(r in le)||le[r]<=n)&&(e[r]=t[r]);return e}(s,l),u,e),v=h(t),g=h(n),m=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),s=t.substr(i=o+n.length),u=0;u<e.length;){var c=e.indexOf(r,u);if(-1===c)break;var l=e.substr(0,c),f=e.substr(u=c+r.length);if(a===l&&s===f)return{before:a,after:s}}}return null}(f,v,d,g),p=u.separator||r||e.defaultSeparator||"";return m?m.before+v+p+g+m.after:f+p+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 pe(t,n,e){var r=Object.keys(t).length;return 1===r&&"short"===t.timeZoneName?function(t){return oe(t.timeZoneOffset)}:0===r&&n.week?function(t){return r=e.computeWeekNumber(t.marker),i=e.weekText,o=e.weekTextLong,a=e.locale,u=[],"long"===(s=n.week)?u.push(o):"short"!==s&&"narrow"!==s||u.push(i),"long"!==s&&"short"!==s||u.push(" "),u.push(a.simpleNumberFormat.format(r)),"rtl"===a.options.direction&&u.reverse(),u.join("");var r,i,o,a,s,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(ve,""),"short"===e.timeZoneName&&(t=function(t,n){var e=!1;return t=t.replace(ge,(function(){return e=!0,n})),e||(t+=" "+n),t}(t,"UTC"===i.timeZone||null==n.timeZoneOffset?"UTC":oe(n.timeZoneOffset))),r.omitCommas&&(t=t.replace(de,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),!1===r.meridiem?t=t.replace(fe,"").trim():"narrow"===r.meridiem?t=t.replace(fe,(function(t,n){return n.toLocaleLowerCase()})):"short"===r.meridiem?t=t.replace(fe,(function(t,n){return n.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(t=t.replace(fe,(function(t){return t.toLocaleLowerCase()}))),t=(t=t.replace(he," ")).trim()}((r&&!a.getUTCMinutes()?r:i).format(a),o,t,n,e)}}(t,n,e)}function be(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 Ae(t,n,e,r){var i=be(t,e.calendarSystem);return{date:i,start:i,end:n?be(n,e.calendarSystem):null,timeZone:e.timeZone,localeCodes:e.locale.codes,defaultSeparator:r||e.defaultSeparator}}var ye=function(){function t(t){this.cmdStr=t}return t.prototype.format=function(t,n,e){return n.cmdFormatter(this.cmdStr,Ae(t,null,n,e))},t.prototype.formatRange=function(t,n,e,r){return e.cmdFormatter(this.cmdStr,Ae(t,n,e,r))},t}(),we=function(){function t(t){this.func=t}return t.prototype.format=function(t,n,e){return this.func(Ae(t,null,n,e))},t.prototype.formatRange=function(t,n,e,r){return this.func(Ae(t,n,e,r))},t}();function ke(t){return"object"==typeof t&&t?new me(t):"string"==typeof t?new ye(t):"function"==typeof t?new we(t):null}var Ee={navLinkDayClick:Re,navLinkWeekClick:Re,duration:Jn,bootstrapFontAwesome:Re,buttonIcons:Re,customButtons:Re,defaultAllDayEventDuration:Jn,defaultTimedEventDuration:Jn,nextDayThreshold:Jn,scrollTime:Jn,scrollTimeReset:Boolean,slotMinTime:Jn,slotMaxTime:Jn,dayPopoverFormat:ke,slotDuration:Jn,snapDuration:Jn,headerToolbar:Re,footerToolbar:Re,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ke,dayHeaderClassNames:Re,dayHeaderContent:Re,dayHeaderDidMount:Re,dayHeaderWillUnmount:Re,dayCellClassNames:Re,dayCellContent:Re,dayCellDidMount:Re,dayCellWillUnmount:Re,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Re,weekNumbers:Boolean,weekNumberClassNames:Re,weekNumberContent:Re,weekNumberDidMount:Re,weekNumberWillUnmount:Re,editable:Boolean,viewClassNames:Re,viewDidMount:Re,viewWillUnmount:Re,nowIndicator:Boolean,nowIndicatorClassNames:Re,nowIndicatorContent:Re,nowIndicatorDidMount:Re,nowIndicatorWillUnmount:Re,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Re,locale:Re,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Re,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:Re,contentHeight:Re,direction:String,weekNumberFormat:ke,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Re,initialDate:Re,now:Re,eventDataTransform:Re,stickyHeaderDates:Re,stickyFooterScrollbar:Re,viewHeight:Re,defaultAllDay:Boolean,eventSourceFailure:Re,eventSourceSuccess:Re,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Re,eventConstraint:Re,eventAllow:Re,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Re,eventContent:Re,eventDidMount:Re,eventWillUnmount:Re,selectConstraint:Re,selectOverlap:Re,selectAllow:Re,droppable:Boolean,unselectCancel:String,slotLabelFormat:Re,slotLaneClassNames:Re,slotLaneContent:Re,slotLaneDidMount:Re,slotLaneWillUnmount:Re,slotLabelClassNames:Re,slotLabelContent:Re,slotLabelDidMount:Re,slotLabelWillUnmount:Re,dayMaxEvents:Re,dayMaxEventRows:Re,dayMinWidth:Number,slotLabelInterval:Jn,allDayText:String,allDayClassNames:Re,allDayContent:Re,allDayDidMount:Re,allDayWillUnmount:Re,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ke,rerenderDelay:Number,moreLinkText:Re,moreLinkHint:Re,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Re,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Jn,hiddenDays:Re,monthMode:Boolean,fixedWeekCount:Boolean,validRange:Re,visibleRange:Re,titleFormat:Re,eventInteractive:Boolean,noEventsText:String,viewHint:Re,navLinkHint:Re,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Re,moreLinkClassNames:Re,moreLinkContent:Re,moreLinkDidMount:Re,moreLinkWillUnmount:Re},xe={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},De={datesSet:Re,eventsSet:Re,eventAdd:Re,eventChange:Re,eventRemove:Re,windowResize:Re,eventClick:Re,eventMouseEnter:Re,eventMouseLeave:Re,select:Re,unselect:Re,loading:Re,_unmount:Re,_beforeprint:Re,_afterprint:Re,_noEventDrop:Re,_noEventResize:Re,_resize:Re,_scrollRequest:Re},Ne={buttonText:Re,buttonHints:Re,views:Re,plugins:Re,initialEvents:Re,events:Re,eventSources:Re},Se={headerToolbar:Ce,footerToolbar:Ce,buttonText:Ce,buttonHints:Ce,buttonIcons:Ce};function Ce(t,n){return"object"==typeof t&&"object"==typeof n&&t&&n?jn(t,n):t===n}var Te={type:String,component:Re,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Re,usesMinMaxTime:Boolean,classNames:Re,content:Re,didMount:Re,willUnmount:Re};function _e(t){return Qn(t,Se)}function Me(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 Re(t){return t}function Be(t,n,e,r){for(var i={defs:{},instances:{}},o=qe(e),a=0,s=t;a<s.length;a++){var u=Ye(s[a],n,e,r,o);u&&Ie(u,i)}return i}function Ie(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 ze(t,n){var e=t.instances[n];if(e){var r=t.defs[e.defId],i=He(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 Pe(t,n){return{defs:u(u({},t.defs),n.defs),instances:u(u({},t.instances),n.instances)}}function He(t,n){var e=On(t.defs,n),r=On(t.instances,(function(t){return e[t.defId]}));return{defs:e,instances:r}}function Qe(t){return Array.isArray(t)?t:"string"==typeof t?t.split(/\s+/):[]}var Oe={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Re,overlap:Re,allow:Re,className:Qe,classNames:Qe,color:String,backgroundColor:String,borderColor:String,textColor:String},Ve={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ue(t,n){var e=function(t,n){return Array.isArray(t)?Be(t,null,n,!0):"object"==typeof t&&t?Be([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 Fe(t){return t.reduce(je,Ve)}function je(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 Ge={id:String,groupId:String,title:String,url:String,interactive:Boolean},Le={start:Re,end:Re,date:Re,allDay:Boolean},We=u(u(u({},Ge),Le),{extendedProps:Re});function Ye(t,n,e,r,i){void 0===i&&(i=qe(e));var o=Ze(t,e,i),a=o.refined,s=o.extra,u=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,u,e.dateEnv,e.pluginHooks.recurringTypes);if(c)return(l=Je(a,s,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,s=null,u=!1,c=null;if(i=e.dateEnv.createMarkerMeta(null!=t.start?t.start:t.date))s=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&&s&&(s=Sn(s)),o&&(c=o.marker,a&&(c=Sn(c)),s&&c<=s&&(c=null)),c?u=!0:r||(u=e.options.forceEventDuration||!1,c=e.dateEnv.add(s,a?e.options.defaultAllDayEventDuration:e.options.defaultTimedEventDuration)),{allDay:a,hasEnd:u,range:{start:s,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(a,u,e,r);return f?{def:l=Je(a,s,n?n.sourceId:"",f.allDay,f.hasEnd,e),instance:Pn(l.defId,f.range,f.forcedStartTzo,f.forcedEndTzo)}:null}function Ze(t,n,e){return void 0===e&&(e=qe(n)),Me(t,e)}function qe(t){return u(u(u({},Oe),We),t.pluginHooks.eventRefiners)}function Je(t,n,e,r,i,o){for(var a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:dn(),sourceId:e,allDay:r,hasEnd:i,interactive:t.interactive,ui:Ue(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 Xe(t){var n=Math.floor(Dn(t.start,t.end))||1,e=Sn(t.start);return{start:e,end:En(e,n)}}function $e(t,n){void 0===n&&(n=Jn(0));var e=null,r=null;if(t.end){r=Sn(t.end);var i=t.end.valueOf()-r.valueOf();i&&i>=te(n)&&(r=En(r,1))}return t.start&&(e=Sn(t.start),r&&r<=e&&(r=En(e,1))),{start:e,end:r}}function Ke(t,n,e,r){return"year"===r?Jn(e.diffWholeYears(t,n),"year"):"month"===r?Jn(e.diffWholeMonths(t,n),"month"):(o=n,a=Sn(i=t),s=Sn(o),{years:0,months:0,days:Math.round(Dn(a,s)),milliseconds:o.valueOf()-s.valueOf()-(i.valueOf()-a.valueOf())});var i,o,a,s}function tr(t,n){var e,r,i=[],o=n.start;for(t.sort(nr),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 nr(t,n){return t.start.valueOf()-n.start.valueOf()}function er(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 rr(t,n){return(null===t.end||null===n.start||t.end>n.start)&&(null===t.start||null===n.end||t.start<n.end)}function ir(t,n){return(null===t.start||null!==n.start&&n.start>=t.start)&&(null===t.end||null!==n.end&&n.end<=t.end)}function or(t,n){return(null===t.start||n>=t.start)&&(null===t.end||n<t.end)}function ar(t,n,e,r){var i={},o={},a={},s=[],u=[],c=cr(t.defs,n);for(var l in t.defs)"inverse-background"===(h=c[(y=t.defs[l]).defId]).display&&(y.groupId?(i[y.groupId]=[],a[y.groupId]||(a[y.groupId]=y)):o[l]=[]);for(var f in t.instances){var d=t.instances[f],h=c[(y=t.defs[d.defId]).defId],v=d.range,g=!y.allDay&&r?$e(v,r):v,m=er(g,e);m&&("inverse-background"===h.display?y.groupId?i[y.groupId].push(m):o[d.defId].push(m):"none"!==h.display&&("background"===h.display?s:u).push({def:y,ui:h,instance:d,range:m,isStart:g.start&&g.start.valueOf()===m.start.valueOf(),isEnd:g.end&&g.end.valueOf()===m.end.valueOf()}))}for(var p in i)for(var b=0,A=tr(i[p],e);b<A.length;b++){var y;s.push({def:y=a[p],ui:h=c[y.defId],instance:null,range:A[b],isStart:!1,isEnd:!1})}for(var l in o)for(var w=0,k=tr(o[l],e);w<k.length;w++)s.push({def:t.defs[l],ui:c[l],instance:null,range:k[w],isStart:!1,isEnd:!1});return{bg:s,fg:u}}function sr(t,n){t.fcSeg=n}function ur(t){return t.fcSeg||t.parentNode.fcSeg||null}function cr(t,n){return Vn(t,(function(t){return lr(t,n)}))}function lr(t,n){var e=[];return n[""]&&e.push(n[""]),n[t.defId]&&e.push(n[t.defId]),e.push(t.ui),Fe(e)}function fr(t,n){var e=t.map(dr);return e.sort((function(t,e){return function(t,n,e){var r,i;for(r=0;r<e.length;r+=1)if(i=gn(t,n,e[r]))return i;return 0}(t,e,n)})),e.map((function(t){return t._seg}))}function dr(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 hr(t,n){for(var e=t.eventRange,r=e.def,i=e.ui,o=i.startEditable,a=0,s=n.pluginHooks.isDraggableTransformers;a<s.length;a++)o=(0,s[a])(o,r,i,n);return o}function vr(t,n){return t.isStart&&t.eventRange.ui.durationEditable&&n.options.eventResizableFromStart}function gr(t){return t.isEnd&&t.eventRange.ui.durationEditable}function mr(t,n,e,r,i,o,a){var s=e.dateEnv,u=e.options,c=u.displayEventTime,l=u.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,g=o||t.start||t.eventRange.range.start,m=a||t.end||t.eventRange.range.end,p=Sn(h).valueOf()===Sn(g).valueOf(),b=Sn(xn(v,-1)).valueOf()===Sn(xn(m,-1)).valueOf();return c&&!f.allDay&&(p||b)?(g=p?h:g,m=b?v:m,l&&f.hasEnd?s.formatRange(g,m,n,{forcedStartTzo:o?null:d.forcedStartTzo,forcedEndTzo:a?null:d.forcedEndTzo}):s.format(g,n,{forcedTzo:o?null:d.forcedStartTzo})):""}function pr(t,n,e){var r=t.eventRange.range;return{isPast:r.end<(e||n.start),isFuture:r.start>=(e||n.end),isToday:n&&or(n,r.start)}}function br(t){return t.instance?t.instance.instanceId:t.def.defId+":"+t.range.start.toISOString()}function Ar(t,n){var e=t.eventRange,r=e.def,i=e.instance,o=r.url;if(o)return{href:o};var a=n.emitter,s=n.options.eventInteractive;return null==s&&null==(s=r.interactive)&&(s=Boolean(a.hasHandlers("eventClick"))),s?ln((function(t){a.trigger("eventClick",{el:t.target,event:new zr(n,r,i),jsEvent:t,view:n.viewApi})})):{}}var yr={start:Re,end:Re,allDay:Boolean};function wr(t,n,e){return u(u({},kr(t,n,e)),{timeZone:n.timeZone})}function kr(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 Er(t,n,e){e.emitter.trigger("select",u(u({},xr(t,e)),{jsEvent:n?n.origEvent:null,view:e.viewApi||e.calendarApi.view}))}function xr(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({},kr((e=t).range,n.dateEnv,e.allDay)),{allDay:e.allDay})),r}function Dr(t,n,e){var r=e.dateEnv,i=e.options,o=n;return t?(o=Sn(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function Nr(t,n,e,r){var i=cr(t.defs,n),o={defs:{},instances:{}};for(var a in t.defs)o.defs[a]=Sr(t.defs[a],i[a],e,r);for(var s in t.instances){var u=t.instances[s];o.instances[s]=Cr(u,o.defs[u.defId],i[u.defId],e,r)}return o}function Sr(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 Cr(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=Xe(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:Dr(n.allDay,c.range.start,i)}),n.allDay&&(c.range={start:Sn(c.range.start),end:Sn(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Dr(n.allDay,c.range.start,i)),c}var Tr=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}(),_r={id:String,defaultAllDay:Boolean,url:String,format:String,events:Re,eventDataTransform:Re,success:Re,failure:Re};function Mr(t,n,e){var r;if(void 0===e&&(e=Rr(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=Me(r,e),o=i.refined,a=i.extra,s=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(s)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:dn(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Ue(o,n),extendedProps:a}}return null}function Rr(t){return u(u(u({},Oe),_r),t.pluginHooks.eventSourceRefiners)}function Br(t,n){return"function"==typeof t&&(t=t()),null==t?n.createNowMarker():n.createMarker(t)}var Ir=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,c([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=r.toolbarConfig,a=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(var s in i)a.push(s);for(n=0;n<a.length;n+=1)if((e=i[a[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:Br(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=Jn(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),ke(n))},t.prototype.formatRange=function(t,n,e){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(t),r.createMarker(n),ke(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=Me(t,yr),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,Jn({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Er(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 zr){var e=t._def,r=t._instance;return this.getCurrentData().eventStore.defs[e.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Ie({def:e,instance:r})}),this.triggerEventAdd(t)),t}var i,o=this.getCurrentData();if(n instanceof Zt)i=n.internalEventSource;else if("boolean"==typeof n)n&&(i=Fn(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 s=Ye(t,i,o,!1);if(s){var u=new zr(o,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ie(s)}),this.triggerEventAdd(u),u}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:Pr(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 zr(n,a,null);for(var s in i){var u=i[s];if(u.defId===a.defId)return new zr(n,a,u)}}}return null},t.prototype.getEvents=function(){var t=this.getCurrentData();return Hr(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 Zt(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 Zt(n,e[r]);return null},t.prototype.addEventSource=function(t){var n=this.getCurrentData();if(t instanceof Zt)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;var e=Mr(t,n);return e?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e]}),new Zt(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=Jn(t);n&&this.trigger("_scrollRequest",{time:n})},t}(),zr=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 Le)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===t)n=Ge[t](n),this.mutate({standardProps:{publicId:n}});else if(t in Ge)n=Ge[t](n),this.mutate({standardProps:(e={},e[t]=n,e)});else if(t in Oe){var i=Oe[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=Ke(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=Ke(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,s={allDay:e.allDay},u=a.createMarker(t);if(u&&(null==n||(r=a.createMarker(n)))&&this._instance){var c=this._instance.range;!0===e.allDay&&(c=Xe(c));var l=Ke(c.start,u,a,e.granularity);if(r){var f=Ke(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:s}:{startDelta:l,endDelta:f,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:l,standardProps:s})}},t.prototype.moveStart=function(t){var n=Jn(t);n&&this.mutate({startDelta:n})},t.prototype.moveEnd=function(t){var n=Jn(t);n&&this.mutate({endDelta:n})},t.prototype.moveDates=function(t){var n=Jn(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=ke(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=ze(o,e.instanceId);a=Nr(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},n,i);var s=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:s,event:this,relatedEvents:Hr(a,i,e),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},t.prototype.remove=function(){var t=this._context,n=Pr(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 Zt(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 Pr(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 Hr(t,n,e){var r=t.defs,i=t.instances,o=[],a=e?e.instanceId:"";for(var s in i){var u=i[s];u.instanceId!==a&&o.push(new zr(n,r[u.defId],u))}return o}var Qr={},Or=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 Bn(t)},t.prototype.markerToArray=function(t){return Rn(t)},t}();Qr.gregory=Or;var Vr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/,Ur=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 Qr[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.weekTextLong=(null!=t.weekTextLong?t.weekTextLong:t.locale.options.weekTextLong)||this.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()):Bn(_n(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=Bn(t)),null!==n&&In(n)?{marker:n,isTimeUnspecified:!1,forcedTzo:null}:null},t.prototype.parse=function(t){var n=function(t){var n=Vr.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(In(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 zn(t)===zn(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 zn(t)===zn(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}:(e=function(t,n){var e=Nn(t,n);return null!==e&&e%7==0?e/7:null}(t,n),null!==e?{unit:"week",value:e}:null!==(e=Nn(t,n))?{unit:"day",value:e}:(e=function(t,n){return(n.valueOf()-t.valueOf())/36e5}(t,n),An(e)?{unit:"hour",value:e}:(e=function(t,n){return(n.valueOf()-t.valueOf())/6e4}(t,n),An(e)?{unit:"minute",value:e}:(e=function(t,n){return(n.valueOf()-t.valueOf())/1e3}(t,n),An(e)?{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/(Kn(e)/365):e.months&&null!==(r=this.diffWholeMonths(t,n))?r/(Kn(e)/30):e.days&&null!==(r=Nn(t,n))?r/Kn(e):(n.valueOf()-t.valueOf())/te(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?Sn(t):"hour"===n?function(t){return Bn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}(t):"minute"===n?function(t){return Bn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}(t):"second"===n?function(t){return Bn([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=Cn(t,r,n,e);if(i<1)return Cn(t,r-1,n,e);var o=Cn(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=xn(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)),re(t,e,n.omitTime)},t.prototype.timestampToMarker=function(t){return"local"===this.timeZone?Bn(_n(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Bn(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)},t.prototype.offsetForMarker=function(t){return"local"===this.timeZone?-Mn(Rn(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Rn(t)):null},t.prototype.toDate=function(t,n){return"local"===this.timeZone?Mn(Rn(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Rn(t))*60):new Date(t.valueOf()-(n||0))},t}(),Fr=[],jr={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Gr=u(u({},jr),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(t,n){return"day"===n?"Today":"This "+t}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(t){return"Show "+t+" more event"+(1===t?"":"s")}});function Lr(t){for(var n=t.length>0?t[0].code:"en",e=Fr.concat(t),r={en:Gr},i=0,o=e;i<o.length;i++){var a=o[i];r[a.code]=a}return{map:r,defaultCode:n}}function Wr(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)||Gr;return Yr(t,e,r)}(t,n):Yr(t.code,[t.code],t)}function Yr(t,n,e){var r=Qn([jr,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 Zr,qr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Jr(t,n){return t.left>=n.left&&t.left<n.right&&t.top>=n.top&&t.top<n.bottom}function Xr(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 $r(){return null==Zr&&(Zr=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}()),Zr}var Kr={defs:{},instances:{}},ti=function(){function t(){this.getKeysForEventDefs=se(this._getKeysForEventDefs),this.splitDateSelection=se(this._splitDateSpan),this.splitEventStore=se(this._splitEventStore),this.splitIndividualUi=se(this._splitIndividualUi),this.splitEventDrag=se(this._splitInteraction),this.splitEventResize=se(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),s=this.splitEventDrag(t.eventDrag),u=this.splitEventResize(t.eventResize),c={};for(var l in this.eventUiBuilders=Vn(e,(function(t,e){return n.eventUiBuilders[e]||se(ni)})),e){var f=e[l],d=a[l]||Kr;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:s[l]||null,eventResize:u[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 Vn(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,s=n[o];a<s.length;a++)i[d=s[a]]||(i[d]={defs:{},instances:{}}),i[d].defs[o]=e[o];for(var u in r)for(var c=r[u],l=0,f=n[c.defId];l<f.length;l++){var d;i[d=f[l]]&&(i[d].instances[u]=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]||Kr,mutatedEvents:i[r]||Kr,isEvent:t.isEvent})};for(var a in e)o(a);for(var a in i)o(a)}return n},t}();function ni(t,n,e){var r=[];t&&r.push(t),n&&r.push(n);var i={"":Fe(r)};return e&&u(i,e),i}function ei(t,n,e,r){return{dow:t.getUTCDay(),isDisabled:Boolean(r&&!or(r.activeRange,t)),isOther:Boolean(r&&!or(r.currentRange,t)),isToday:Boolean(n&&or(n,t)),isPast:Boolean(e?t<e:!!n&&t<n.start),isFuture:Boolean(e?t>e:!!n&&t>=n.end)}}function ri(t,n){var e=["fc-day","fc-day-"+wn[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}var ii=ke({year:"numeric",month:"long",day:"numeric"}),oi=ke({week:"long"});function ai(t,n,e,r){void 0===e&&(e="day"),void 0===r&&(r=!0);var i=t.dateEnv,o=t.options,a=t.calendarApi,s=i.format(n,"week"===e?oi:ii);if(o.navLinks){var c=i.toDate(n),l=function(t){var r="day"===e?o.navLinkDayClick:"week"===e?o.navLinkWeekClick:null;"function"==typeof r?r.call(a,i.toDate(n),t):("string"==typeof r&&(e=r),a.zoomTo(n,e))};return u({title:pn(o.navLinkHint,[s,c],s),"data-navlink":""},r?cn(l):{onClick:l})}return{"aria-label":s}}var si,ui=null;function ci(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function li(t,n,e){void 0===n&&(n=!1);var r=e?t.getBoundingClientRect():fi(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,s=ci(t),u=s.y-r-i,c={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:s.x-o-a,scrollbarLeft:0,scrollbarRight:0};return null===ui&&(ui=function(){var t=document.createElement("div");Kt(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 qt(t),n}()),ui&&"rtl"===e.direction?c.scrollbarLeft=u:c.scrollbarRight=u,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 fi(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 di(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 hi=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=0,i=[].concat(this.options&&this.options[t]||[],this.handlers[t]||[]);r<i.length;r++)i[r].apply(this.thisContext,n)},t.prototype.hasHandlers=function(t){return Boolean(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])},t}(),vi=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}(),gi=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}(),mi=function(t){function n(n){var e=t.call(this)||this;return e.el=n,e}return s(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}(gi),pi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(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}(gi),bi=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}();bi.prototype.classes={},bi.prototype.iconClasses={},bi.prototype.baseIconClass="",bi.prototype.iconOverridePrefix="";var Ai=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}(),yi=Gt({});function wi(t,n,e,r,i,o,a,s,u,c,l,f,d){return{dateEnv:i,options:e,pluginHooks:a,emitter:c,dispatch:s,getCurrentData:u,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 Ai(t,c,Jn(e.scrollTime),e.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:d}}var ki=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.shouldComponentUpdate=function(t,n){return this.debug&&console.log(Gn(t,this.props),Gn(n,this.state)),!Ln(this.props,t,this.propEquality)||!Ln(this.state,n,this.stateEquality)},n.addPropsEquality=xi,n.addStateEquality=Di,n.contextType=yi,n}(Ot);ki.prototype.propEquality={},ki.prototype.stateEquality={};var Ei=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.contextType=yi,n}(ki);function xi(t){var n=Object.create(this.prototype.propEquality);u(n,t),this.prototype.propEquality=n}function Di(t){var n=Object.create(this.prototype.stateEquality);u(n,t),this.prototype.stateEquality=n}function Ni(t,n){"function"==typeof t?t(n):t&&(t.current=n)}var Si=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.uid=dn(),n}return s(n,t),n.prototype.prepareHits=function(){},n.prototype.queryHit=function(){return null},n.prototype.isValidSegDownEl=function(t){return!this.props.eventDrag&&!this.props.eventResize&&!Jt(t,".fc-event-mirror")},n.prototype.isValidDateDownEl=function(t){return!(Jt(t,".fc-event:not(.fc-bg-event)")||Jt(t,".fc-more-link")||Jt(t,"a[data-navlink]")||Jt(t,".fc-popover"))},n}(Ei);function Ci(t){return{id:dn(),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 Ti=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n}(bi);function _i(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=_i(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}Ti.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ti.prototype.baseIconClass="fc-icon",Ti.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"},Ti.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ti.prototype.iconOverrideOption="buttonIcons",Ti.prototype.iconOverrideCustomButtonOption="icon",Ti.prototype.iconOverridePrefix="fc-icon-";var Mi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.rootElRef=Ft(),n.handleRootEl=function(t){Ni(n.rootElRef,t),n.props.elRef&&Ni(n.props.elRef,t)},n}return s(n,t),n.prototype.render=function(){var t=this,n=this.props,e=n.hookProps;return Vt(zi,{hookProps:e,didMount:n.didMount,willUnmount:n.willUnmount,elRef:this.handleRootEl},(function(r){return Vt(Bi,{hookProps:e,content:n.content,defaultContent:n.defaultContent,backupElRef:t.rootElRef},(function(t,i){return n.children(r,Hi(n.classNames,e),t,i)}))}))},n}(Ei),Ri=Gt(0);function Bi(t){return Vt(Ri.Consumer,null,(function(n){return Vt(Ii,u({renderId:n},t))}))}var Ii=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.innerElRef=Ft(),n}return s(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=Qi(t.content,t.hookProps);return void 0===n&&(n=Qi(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}(Ei),zi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleRootEl=function(t){n.rootEl=t,n.props.elRef&&Ni(n.props.elRef,t)},n}return s(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}(Ei);function Pi(){var t,n,e=[];return function(r,i){return n&&jn(n,i)&&r===t||(t=r,n=i,e=Hi(r,i)),e}}function Hi(t,n){return"function"==typeof t&&(t=t(n)),Qe(t)}function Qi(t,n){return"function"==typeof t?t(n,Vt):t}var Oi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.normalizeClassNames=Pi(),n}return s(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 Vt(zi,{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}(Ei);function Vi(t){return Vn(t,Ui)}function Ui(t){var n,e="function"==typeof t?{component:t}:t,r=e.component;return e.content&&(n=e,r=function(t){return Vt(yi.Consumer,null,(function(e){return Vt(Oi,{viewSpec:e.viewSpec},(function(r,i){var o=u(u({},t),{nextDayThreshold:e.options.nextDayThreshold});return Vt(Mi,{hookProps:o,classNames:n.classNames,content:n.content,didMount:n.didMount,willUnmount:n.willUnmount,elRef:r},(function(t,n,e,r){return Vt("div",{className:i.concat(n).join(" "),ref:t},r)}))}))}))}),{superType:e.type,component:r,rawOptions:e}}function Fi(t,n,e,r){var i=Vi(t),o=Vi(n.views),a=function(t,n){var e,r={};for(e in t)_i(e,r,t,n);for(e in n)_i(e,r,t,n);return r}(i,o);return Vn(a,(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=ji[n];return void 0===e&&(e=Jn(t),ji[n]=e),e}(o),a)){var f=ee(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},h=function(n){var e=n.buttonHints||{},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(xe)||t.type,buttonTitleOverride:h(r)||h(e)||t.overrides.buttonHint,buttonTitleDefault:h(i)||t.defaults.buttonHint||h(xe)}}(t,o,n,e,r)}))}var ji={},Gi=function(){function t(t){this.props=t,this.nowDate=Br(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,s,u,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),s=a=this.trimHiddenDays(a),f.showNonCurrentDates||(s=er(s,i.range)),s=er(s=this.adjustActiveRange(s),r),u=rr(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:s,renderRange:a,slotMinTime:f.slotMinTime,slotMaxTime:f.slotMaxTime,isValid:u,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=ee(i=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:a}},t.prototype.getFallbackDuration=function(){return Jn({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&&(Kn(r)<0&&(o=Sn(o),o=e.add(o,r)),Kn(i)>1&&(a=En(a=Sn(a),-1),a=e.add(a,i))),{start:o,end:a}},t.prototype.buildRangeFromDuration=function(t,n,e,r){var i,o,a,s=this.props,u=s.dateEnv,c=s.dateAlignment;if(!c){var l=this.props.dateIncrement;c=l&&te(l)<te(e)?ee(l).unit:r}function f(){i=u.startOf(t,c),o=u.add(i,e),a={start:i,end:o}}return Kn(e)<=1&&this.isHiddenDay(i)&&(i=Sn(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,s=t;o&&(s=i.dateEnv.startOf(s,o)),s=Sn(s),r=s=this.skipHiddenDays(s,n);do{r=En(r,1),this.isHiddenDay(r)||(a+=1)}while(a<e);return{start:s,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)?Jn(1,n):t||Jn({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=$e(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=En(t,n);return t},t}();function Li(t){for(var n in t)if(t[n].isFetching)return!0;return!1}function Wi(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=Yi(i,e,r)),u(u({},t),i)}function Yi(t,n,e){return Zi(t,On(t,(function(t){return function(t,n,e){return Xi(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 Zi(t,n,e,r,i){var o={};for(var a in t){var s=t[a];o[a]=n[a]?qi(s,e,r,i):s}return o}function qi(t,n,e,r){var i=r.options,o=r.calendarApi,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],s=dn();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 On(t,(function(t){return Xi(t,n)}))}function Xi(t,n){return!n.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function $i(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 Ki(t,n){return He(t,(function(t){return t.sourceId!==n}))}function to(t,n){switch(n.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return n.selection;default:return t}}function no(t,n){switch(n.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return n.eventInstanceId;default:return t}}function eo(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 ro(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 io(t,n,e,r,i){return{header:t.headerToolbar?oo(t.headerToolbar,t,n,e,r,i):null,footer:t.footerToolbar?oo(t.footerToolbar,t,n,e,r,i):null}}function oo(t,n,e,r,i,o){var a={},s=[],u=!1;for(var c in t){var l=ao(t[c],n,e,r,i,o);a[c]=l.widgets,s.push.apply(s,l.viewsWithButtons),u=u||l.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:u}}function ao(t,n,e,r,i,o){var a="rtl"===n.direction,s=n.customButtons||{},u=e.buttonText||{},c=n.buttonText||{},l=e.buttonHints||{},f=n.buttonHints||{},d=t?t.split(" "):[],h=[],v=!1;return{widgets:d.map((function(t){return t.split(",").map((function(t){if("title"===t)return v=!0,{buttonName:t};var e,d,g,m,p,b;if(e=s[t])g=function(t){e.click&&e.click.call(t.target,t,t.target)},(m=r.getCustomButtonIconClass(e))||(m=r.getIconClass(t,a))||(p=e.text),b=e.hint||e.text;else if(d=i[t]){h.push(t),g=function(){o.changeView(t)},(p=d.buttonTextOverride)||(m=r.getIconClass(t,a))||(p=d.buttonTextDefault);var A=d.buttonTextOverride||d.buttonTextDefault;b=pn(d.buttonTitleOverride||d.buttonTitleDefault||n.viewHint,[A,t],A)}else if(o[t])if(g=function(){o[t]()},(p=u[t])||(m=r.getIconClass(t,a))||(p=c[t]),"prevYear"===t||"nextYear"===t){var y="prevYear"===t?"prev":"next";b=pn(l[y]||f[y],[c.year||"year","year"],c[t])}else b=function(n){return pn(l[t]||f[t],[c[n]||n,n],c[t])};return{buttonName:t,buttonClick:g,buttonIcon:m,buttonText:p,buttonHint:b}}))})),viewsWithButtons:h,hasTitle:v}}function so(t){var n=[];for(var e in t)n.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n.join("&")}function uo(t,n){for(var e=Fn(n.getCurrentData().eventSources),r=[],i=0,o=t;i<o.length;i++){for(var a=o[i],s=!1,u=0;u<e.length;u+=1)if(e[u]._raw===a){e.splice(u,1),s=!0;break}s||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 co=[Ci({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(t){return Array.isArray(t.events)?t.events:null},fetch:function(t,n){n({rawEvents:t.eventSource.meta})}}]}),Ci({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,wr(t.range,t.context.dateEnv)),(function(t){n({rawEvents:t})}),e)}}]}),Ci({eventSourceRefiners:{method:String,extraParams:Re,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("?")?"?":"&")+so(n)}(n,e):o=so(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})}))}}]}),Ci({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=er(n,{start:t.startRecur,end:t.endRecur});return r?function(t,n,e,r){for(var i=t?Un(t):null,o=Sn(e.start),a=e.end,s=[];o<a;){var u=void 0;i&&!i[o.getUTCDay()]||(u=n?r.add(o,n):o,s.push(u)),o=En(o,1)}return s}(t.daysOfWeek,t.startTime,r,e):[]}}],eventRefiners:{daysOfWeek:Re,startTime:Jn,endTime:Jn,duration:Jn,startRecur:Re,endRecur:Re}}),Ci({optionChangeHandlers:{events:function(t,n){uo([t],n)},eventSources:uo}}),Ci({isLoadingFuncs:[function(t){return Li(t.eventSources)}],contentTypeHandlers:{html:function(){var t=null,n="";return{render:function(e,r){e===t&&r===n||(e.innerHTML=r),t=e,n=r},destroy:function(){t.innerHTML="",t=null,n=""}}},domNodes:function(){var t=null,n=[];function e(){n.forEach(qt),n=[],t=null}return{render:function(r,i){var o=Array.prototype.slice.call(i);if(r!==t||!ae(n,o)){for(var a=0,s=o;a<s.length;a++)r.appendChild(s[a]);e()}t=r,n=o},destroy:e}}},propSetHandlers:{dateProfile:function(t,n){n.emitter.trigger("datesSet",u(u({},wr(t.activeRange,n.dateEnv)),{view:n.viewApi}))},eventStore:function(t,n){var e=n.emitter;e.hasHandlers("eventsSet")&&e.trigger("eventsSet",Hr(t,n))}}})],lo=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}(),fo=function(){function t(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new lo(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 ho(t,n,e){var r;return r=/^(year|month)$/.test(t.currentRangeUnit)?t.currentRange:t.activeRange,e.formatRange(r.start,r.end,ke(n.titleFormat||function(t){var n=t.currentRangeUnit;if("year"===n)return{year:"numeric"};if("month"===n)return{year:"numeric",month:"long"};var e=Nn(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 vo=function(){function t(t){var n,e,r,i=this;this.computeOptionsData=se(this._computeOptionsData),this.computeCurrentViewData=se(this._computeCurrentViewData),this.organizeRawLocales=se(Lr),this.buildLocale=se(Wr),this.buildPluginHooks=(e=[],r=[],function(t,i){return n&&ae(t,e)&&ae(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=se(go),this.buildTheme=se(mo),this.parseToolbars=se(io),this.buildViewSpecs=se(Fi),this.buildDateProfileGenerator=ue(po),this.buildViewApi=se(bo),this.buildViewUiProps=ue(wo),this.buildEventUiBySource=se(Ao,jn),this.buildEventUiBases=se(yo),this.parseContextBusinessHours=ue(Eo),this.buildTitle=se(ho),this.emitter=new hi,this.actionRunner=new fo(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):Br(l.now,f)),v=c.dateProfileGenerator.build(h);or(v.activeRange,h)||(h=v.currentRange.start);for(var g={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},m=0,p=a.pluginHooks.contextInit;m<p.length;m++)(0,p[m])(g);for(var b=function(t,n,e){var r=n?n.activeRange:null;return Wi({},function(t,n){var e=Rr(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 s=Mr(a[o],n,e);s&&i.push(s)}return i}(t,e),r,e)}(a.calendarOptions,v,g),A={dynamicOptionOverrides:o,currentViewType:s,currentDate:h,dateProfile:v,businessHours:this.parseContextBusinessHours(g),eventSources:b,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(g).selectionConfig},y=u(u({},g),A),w=0,k=a.pluginHooks.reducers;w<k.length;w++)u(A,(0,k[w])(null,null,y));ko(A,g)&&this.emitter.trigger("loading",!0),this.state=A,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;return"SET_OPTION"===n.type?u(u({},t),((e={})[n.optionName]=n.rawOptionValue,e)):t}(r.dynamicOptionOverrides,t),a=this.computeOptionsData(e.optionOverrides,o,e.calendarApi),s=function(t,n){return"CHANGE_VIEW_TYPE"===n.type&&(t=n.viewType),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)),f=function(t,n){return"CHANGE_DATE"===n.type?n.dateMarker:t}(f,t),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,c.dateProfileGenerator),"PREV"!==t.type&&"NEXT"!==t.type&&or(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 Wi(t,n.sources,o,r);case"REMOVE_EVENT_SOURCE":return i=n.sourceId,On(t,(function(t){return t.sourceId!==i}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return e?Yi(t,o,r):t;case"FETCH_EVENT_SOURCES":return Zi(t,n.sourceIds?Un(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=Be(function(t,n,e){var r=e.options.eventDataTransform,i=n?n.eventDataTransform:null;return i&&(t=$i(t,i)),r&&(t=$i(t,r)),t}(i,n,o),n,o);return r&&(a=Wn(a,r,o)),Pe(Ki(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=Wn(n,e,r)),Pe(t,n)}(t,n.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return n.eventStore;case"MERGE_EVENTS":return Pe(t,n.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Wn(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 s in r)!n.instances[s]&&i[r[s].defId]&&(o[s]=r[s]);return{defs:i,instances:o}}(t,n.eventStore);case"REMOVE_EVENT_SOURCE":return Ki(t,n.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return He(t,(function(t){return!t.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return t}}(r.eventStore,t,h,d,l),g=Li(h)&&!c.options.progressiveEventRendering&&r.renderableEventStore||v,m=this.buildViewUiProps(l),p=m.eventUiSingleBase,b=m.selectionConfig,A=this.buildEventUiBySource(h),y={dynamicOptionOverrides:o,currentViewType:s,currentDate:f,dateProfile:d,eventSources:h,eventStore:v,renderableEventStore:g,selectionConfig:b,eventUiBases:this.buildEventUiBases(g.defs,p,A),businessHours:this.parseContextBusinessHours(l),dateSelection:to(r.dateSelection,t),eventSelection:no(r.eventSelection,t),eventDrag:eo(r.eventDrag,t),eventResize:ro(r.eventResize,t)},w=u(u({},l),y),k=0,E=a.pluginHooks.reducers;k<E.length;k++)u(y,(0,E[k])(r,t,w));var x=ko(r,l),D=ko(y,l);!x&&D?i.trigger("loading",!0):x&&!D&&i.trigger("loading",!1),this.state=y,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),g=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),m=h.pluginHooks.optionChangeHandlers,p=d&&d.calendarOptions,b=h.calendarOptions;if(p&&p!==b)for(var A in p.timeZone!==b.timeZone&&(f.eventSources=g.eventSources=(c=(a=f.dateProfile)?a.activeRange:null,Zi(o=g.eventSources,Ji(o,s=g),c,!0,s)),f.eventStore=g.eventStore=(n=d.dateEnv,e=g.dateEnv,r=(t=g.eventStore).defs,i=Vn(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})),m)p[A]!==b[A]&&m[A](b[A],g);l.onData&&l.onData(g)},t.prototype._computeOptionsData=function(t,n,e){var r=this.processRawCalendarOptions(t,n),i=r.refinedOptions,o=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData;xo(r.extra);var u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,s,i.defaultRangeSeparator),c=this.buildViewSpecs(o.views,t,n,a),l=this.buildTheme(i,o);return{calendarOptions:i,pluginHooks:o,dateEnv:u,viewSpecs:c,theme:l,toolbarConfig:this.parseToolbars(i,t,l,c,e),localeDefaults:a,availableRawLocales:s.map}},t.prototype.processRawCalendarOptions=function(t,n){var e=_e([xe,t,n]),r=e.locale,i=this.organizeRawLocales(e.locales),o=this.buildLocale(r||i.defaultCode,i.map).options,a=this.buildPluginHooks(t.plugins||[],co),s=this.currentCalendarOptionsRefiners=u(u(u(u(u({},Ee),De),Ne),a.listenerRefiners),a.optionRefiners),c={},l=_e([xe,o,t,n]),f={},d=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,v=!1;for(var g in l)"plugins"!==g&&(l[g]===d[g]||Se[g]&&g in d&&Se[g](d[g],l[g])?f[g]=h[g]:s[g]?(f[g]=s[g](l[g]),v=!0):c[g]=d[g]);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 xo(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=_e([xe,t.optionDefaults,e,r,t.optionOverrides,i]),a=u(u(u(u(u(u({},Ee),De),Ne),Te),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 go(t,n,e,r,i,o,a,s){var u=Wr(n||a.defaultCode,a.map);return new Ur({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:u,weekNumberCalculation:e,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function mo(t,n){return new(n.themeClasses[t.themeSystem]||Ti)(t)}function po(t){return new(t.dateProfileGeneratorClass||Gi)(t)}function bo(t,n,e){return new Tr(t,n,e)}function Ao(t){return Vn(t,(function(t){return t.ui}))}function yo(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 wo(t){var n=t.options;return{eventUiSingleBase:Ue({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:Ue({constraint:n.selectConstraint,overlap:"boolean"==typeof n.selectOverlap?n.selectOverlap:void 0,allow:n.selectAllow},t)}}function ko(t,n){for(var e=0,r=n.pluginHooks.isLoadingFuncs;e<r.length;e++)if((0,r[e])(t))return!0;return!1}function Eo(t){return n=t,Be(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({},qr),t)}))}(t.options.businessHours),null,n);var n}function xo(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 vo({optionOverrides:n.optionOverrides,calendarApi:n.calendarApi,onData:e.handleData}),e}s(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)}}(Ot);var Do=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,c([{index:t.index,thickness:t.thickness,span:Co(a,o)}],i)),r):(e.push(t),0)},t.prototype.insertEntryAt=function(t,n){var e=this.entriesByLevel;-1===n.lateral?(To(this.levelCoords,n.level,n.levelCoord),To(e,n.level,[t])):To(e[n.level],n.lateral,t),this.stackCnts[So(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,s=0,u=-1,c=-1,l=null,f=0,d=0;d<a;d+=1){var h=e[d];if(!i&&h>=s+t.thickness)break;for(var v=r[d],g=void 0,m=_o(v,t.span.start,No),p=m[0]+m[1];(g=v[p])&&g.span.start<t.span.end;){var b=h+g.thickness;b>s&&(s=b,l=g,u=d,c=p),b===s&&(f=Math.max(f,o[So(g)]+1)),p+=1}}var A=0;if(l)for(A=u+1;A<a&&e[A]<s;)A+=1;var y=-1;return A<a&&e[A]===s&&(y=_o(r[A],t.span.end,No)[0]),{touchingLevel:u,touchingLateral:c,touchingEntry:l,stackCnt:f,levelCoord:s,level:A,lateral:y}},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 No(t){return t.span.end}function So(t){return t.index+":"+t.span.start}function Co(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 To(t,n,e){t.splice(n,0,e)}function _o(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 Mo=function(){function t(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}return t.prototype.destroy=function(){},t}();function Ro(t){var n;return(n={})[t.component.uid]=t,n}var Bo={},Io=function(){function t(){this.emitter=new hi}return t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(){},t.prototype.setMirrorNeedsRevert=function(){},t.prototype.setAutoScrollEnabled=function(){},t}(),zo={},Po=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t=this,n=this.props.widgetGroups.map((function(n){return t.renderWidgetGroup(n)}));return Vt.apply(void 0,c(["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 s=a[o],u=s.buttonName,l=s.buttonClick,f=s.buttonText,d=s.buttonIcon,h=s.buttonHint;if("title"===u)i=!1,r.push(Vt("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{var v=u===n.activeButton,g=!n.isTodayEnabled&&"today"===u||!n.isPrevEnabled&&"prev"===u||!n.isNextEnabled&&"next"===u,m=["fc-"+u+"-button",e.getClass("button")];v&&m.push(e.getClass("buttonActive")),r.push(Vt("button",{type:"button",title:"function"==typeof h?h(n.navUnit):h,disabled:g,"aria-pressed":v,className:m.join(" "),onClick:l},f||(d?Vt("span",{className:d}):"")))}}if(r.length>1){var p=i&&e.getClass("buttonGroup")||"";return Vt.apply(void 0,c(["div",{className:p}],r))}return r[0]},n}(Ei),Ho=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t,n,e=this.props,r=!1,i=e.model.sectionWidgets,o=i.center;return i.left?(r=!0,t=i.left):t=i.start,i.right?(r=!0,n=i.right):n=i.end,Vt("div",{className:[e.extraClassName||"","fc-toolbar",r?"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 Vt(Po,{key:t,widgetGroups:n,title:e.title,navUnit:e.navUnit,activeButton:e.activeButton,isTodayEnabled:e.isTodayEnabled,isPrevEnabled:e.isPrevEnabled,isNextEnabled:e.isNextEnabled,titleId:e.titleId})},n}(Ei),Qo=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,Ni(n.props.elRef,t),n.updateAvailableWidth()},n.handleResize=function(){n.updateAvailableWidth()},n}return s(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||"",Vt("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,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}(Ei),Oo=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=ur(n);if(o&&r.isValidSegDownEl(t.target)){var a=Jt(t.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:n,event:new zr(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:i.viewApi}),s&&!t.defaultPrevented&&(window.location.href=s)}},e.destroy=sn(n.el,"click",".fc-event",e.handleSegClick),e}return s(n,t),n}(Mo),Vo=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){ur(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,sn(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 s(n,t),n.prototype.destroy=function(){this.removeHoverListeners()},n.prototype.triggerEvent=function(t,n,e){var r=this.component,i=r.context,o=ur(e);n&&!r.isValidSegDownEl(n.target)||i.emitter.trigger(t,{el:e,event:new zr(i,o.eventRange.def,o.eventRange.instance),jsEvent:n,view:i.viewApi})},n}(Mo),Uo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buildViewContext=se(wi),n.buildViewPropTransformers=se(jo),n.buildToolbarProps=se(Fo),n.headerRef=Ft(),n.footerRef=Ft(),n.interactionsStore={},n.state={viewLabelId:on()},n.registerInteractiveComponent=function(t,e){var r=function(t,n){return{component:t,el:n.el,useEventCenter:null==n.useEventCenter||n.useEventCenter,isHitComboAllowed:n.isHitComboAllowed||null}}(t,e),i=[Oo,Vo].concat(n.props.pluginHooks.componentInteractions).map((function(t){return new t(r)}));n.interactionsStore[t.uid]=i,Bo[t.uid]=r},n.unregisterInteractiveComponent=function(t){var e=n.interactionsStore[t.uid];if(e){for(var r=0,i=e;r<i.length;r++)i[r].destroy();delete n.interactionsStore[t.uid]}delete Bo[t.uid]},n.resizeRunner=new lo((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 s(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,Br(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),c=e.header&&e.header.hasTitle?this.state.viewLabelId:"";return Vt(yi.Provider,{value:s},e.header&&Vt(Ho,u({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:e.header,titleId:c},i)),Vt(Qo,{liquid:o,height:a,aspectRatio:t,labeledById:c},this.renderView(n),this.buildAppendContent()),e.footer&&Vt(Ho,u({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:e.footer,titleId:""},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.buildAppendContent=function(){var t=this.props,n=t.pluginHooks.viewContainerAppends.map((function(n){return n(t)}));return Vt.apply(void 0,c([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 Vt(n.component,u({},e))},n}(ki);function Fo(t,n,e,r,i,o){var a=e.build(i,void 0,!1),s=e.buildPrev(n,r,!1),u=e.buildNext(n,r,!1);return{title:o,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!or(n.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:u.isValid}}function jo(t){return t.map((function(t){return new t}))}var Go=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 s(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 $r()||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}(Ei),Lo="fc-col-header-cell";function Wo(t){return t.text}var Yo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(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=ei(a,o.todayRange,null,o.dateProfile),c=[Lo].concat(ri(s,r)),l=n.format(a,o.dayHeaderFormat),f=!s.isDisabled&&o.colCnt>1?ai(this.context,a):{},d=u(u(u({date:n.toDate(a),view:i},o.extraHookProps),{text:l}),s);return Vt(Mi,{hookProps:d,classNames:e.dayHeaderClassNames,content:e.dayHeaderContent,defaultContent:Wo,didMount:e.dayHeaderDidMount,willUnmount:e.dayHeaderWillUnmount},(function(t,n,e,r){return Vt("th",u({ref:t,role:"columnheader",className:c.concat(n).join(" "),"data-date":s.isDisabled?void 0:ie(a),colSpan:o.colSpan},o.extraDataAttrs),Vt("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&Vt("a",u({ref:e,className:["fc-col-header-cell-cushion",o.isSticky?"fc-sticky":""].join(" ")},f),r)))}))},n}(Ei),Zo=ke({weekday:"long"}),qo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(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=En(new Date(2592e5),t.dow),s={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[Lo].concat(ri(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 Vt(Mi,{hookProps:f,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:Wo,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(function(n,r,i,o){return Vt("th",u({ref:n,role:"columnheader",className:c.concat(r).join(" "),colSpan:t.colSpan},t.extraDataAttrs),Vt("div",{className:"fc-scrollgrid-sync-inner"},Vt("a",{"aria-label":e.format(a,Zo),className:["fc-col-header-cell-cushion",t.isSticky?"fc-sticky":""].join(" "),ref:i},o)))}))},n}(Ei),Jo=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.initialNowDate=Br(e.options.now,e.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return s(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=xn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=n.dateEnv.startOf(e,t.unit),i=n.dateEnv.add(r,Jn(1,t.unit)),o=i.valueOf()-e.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:Xo(r)},nextState:{nowDate:i,todayRange:Xo(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=yi,n}(Ot);function Xo(t){var n=Sn(t);return{start:n,end:En(n,1)}}var $o=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.createDayHeaderFormatter=se(Ko),n}return s(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 Vt(Jo,{unit:"day"},(function(t,a){return Vt("tr",{role:"row"},i&&i("day"),n.map((function(t){return r?Vt(Yo,{key:t.toISOString(),date:t,dateProfile:e,todayRange:a,colCnt:n.length,dayHeaderFormat:o}):Vt(qo,{key:t.getUTCDay(),dow:t.getUTCDay(),dayHeaderFormat:o})})))}))},n}(Ei);function Ko(t,n,e){return t||function(t,n){return ke(!t||n>10?{weekday:"short"}:n>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(n,e)}var ta=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=En(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(En(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(Dn(this.dates[0],t));return e<0?n[0]-1:e>=n.length?n[n.length-1]+1:n[e]},t}(),na=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 s=Math.floor(a/n),u=Math.min((s+1)*n,o+1);r.push({row:s,firstCol:a%n,lastCol:(u-1)%n,isStart:e.isStart&&a===i,isEnd:e.isEnd&&u-1===o}),a=u}return r},t}(),ea=function(){function t(){this.sliceBusinessHours=se(this._sliceBusinessHours),this.sliceDateSelection=se(this._sliceDateSpan),this.sliceEventStore=se(this._sliceEventStore),this.sliceEventDrag=se(this._sliceInteraction),this.sliceEventResize=se(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,s=this.sliceEventStore.apply(this,c([t.eventStore,a,n,e],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,c([t.dateSelection,a,r],i)),businessHourSegs:this.sliceBusinessHours.apply(this,c([t.businessHours,n,e,r],i)),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag.apply(this,c([t.eventDrag,a,n,e],i)),eventResize:this.sliceEventResize.apply(this,c([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,c([{range:{start:t,end:xn(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,c([Wn(t,ra(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=ar(t,n,ra(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=ar(t.mutatedEvents,n,ra(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=function(t,n,e){var r=Ze({editable:!1},e),i=Je(r.refined,r.extra,"",t.allDay,!0,e);return{def:i,ui:lr(i,n),instance:Pn(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}(t,n,e),a=this.sliceRange.apply(this,c([t.range],r)),s=0,u=a;s<u.length;s++)u[s].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:En(e.start,1)});for(var r=this.sliceRange.apply(this,c([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 ra(t,n){var e=t.activeRange;return n?e:{start:xn(e.start,t.slotMinTime.milliseconds),end:xn(e.end,t.slotMaxTime.milliseconds-864e5)}}function ia(t,n,e){var r=t.mutatedEvents.instances;for(var i in r)if(!ir(n.validRange,r[i].range))return!1;return oa({eventDrag:t},e)}function oa(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||aa)(r,n)}function aa(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=cr(s,o.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(l=Vn(l,r));var f,d,h=(d=o.affectedEvents.instances,{defs:(f=t.eventStore).defs,instances:On(f.instances,(function(t){return!d[t.instanceId]}))}),v=h.defs,g=h.instances,m=cr(v,t.eventUiBases);for(var p in c){var b=c[p],A=b.range,y=l[b.defId],w=s[b.defId];if(!sa(y.constraints,A,h,t.businessHours,n))return!1;var k=n.options.eventOverlap,E="function"==typeof k?k:null;for(var x in g){var D=g[x];if(rr(A,D.range)){if(!1===m[D.defId].overlap&&o.isEvent)return!1;if(!1===y.overlap)return!1;if(E&&!E(new zr(n,v[D.defId],D),new zr(n,w,b)))return!1}}for(var N=i.eventStore,S=0,C=y.allows;S<C.length;S++){var T,_=C[S],M=u(u({},e),{range:b.range,allDay:w.allDay}),R=N.defs[w.defId];if(T=R?new zr(n,R,N.instances[p]):new zr(n,w),!_(xr(M,n),T))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)),!sa(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(rr(c,v.range)){if(!1===l.overlap)return!1;if(d&&!d(new zr(n,o[v.defId],v),null))return!1}}for(var g=0,m=l.allows;g<m.length;g++)if(!(0,m[g])(xr(u(u({},e),s),n),null))return!1;return!0}(t,n,e,r))}function sa(t,n,e,r,i){for(var o=0,a=t;o<a.length;o++)if(!la(ua(a[o],n,e,r,i),n))return!1;return!0}function ua(t,n,e,r,i){return"businessHours"===t?ca(Wn(r,n,i)):"string"==typeof t?ca(He(e,(function(n){return n.groupId===t}))):"object"==typeof t&&t?ca(Wn(t,n,i)):[]}function ca(t){var n=t.instances,e=[];for(var r in n)e.push(n[r].range);return e}function la(t,n){for(var e=0,r=t;e<r.length;e++)if(ir(r[e],n))return!0;return!1}var fa=/^(visible|hidden)$/,da=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleEl=function(t){n.el=t,Ni(n.props.elRef,t)},n}return s(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"),Vt("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(fa.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(fa.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 fa.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},n.prototype.getYScrollbarWidth=function(){return fa.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},n}(Ei),ha=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 Fn(this.currentMap)},t}();function va(t,n){return t.liquid&&n.liquid}function ga(t,n){return ae(t,n,jn)}function ma(t,n){for(var e=[],r=0,i=t;r<i.length;r++)for(var o=i[r],a=o.span||1,s=0;s<a;s+=1)e.push(Vt("col",{style:{width:"shrink"===o.width?pa(n):o.width||"",minWidth:o.minWidth||""}}));return Vt.apply(void 0,c(["colgroup",{}],e))}function pa(t){return null==t?4:t}function ba(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 Aa(t){return Vt("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function ya(t){var n=t.stickyHeaderDates;return null!=n&&"auto"!==n||(n="auto"===t.height||"auto"===t.viewHeight),n}function wa(t){var n=t.stickyFooterScrollbar;return null!=n&&"auto"!==n||(n="auto"===t.height||"auto"===t.viewHeight),n}var ka=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.processCols=se((function(t){return t}),ga),n.renderMicroColGroup=se(ma),n.scrollerRefs=new ha,n.scrollerElRefs=new ha(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 s(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),s=function(t,n){var e=["fc-scrollgrid",n.theme.getClass("table")];return t&&e.push("fc-scrollgrid-liquid"),e}(n.liquid,r);n.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");for(var u,l=i.length,f=0,d=[],h=[],v=[];f<l&&"header"===(u=i[f]).type;)d.push(this.renderSection(u,a,!0)),f+=1;for(;f<l&&"body"===(u=i[f]).type;)h.push(this.renderSection(u,a,!1)),f+=1;for(;f<l&&"footer"===(u=i[f]).type;)v.push(this.renderSection(u,a,!0)),f+=1;var g=!$r(),m={role:"rowgroup"};return Vt("table",{role:"grid",className:s.join(" "),style:{height:n.height}},Boolean(!g&&d.length)&&Vt.apply(void 0,c(["thead",m],d)),Boolean(!g&&h.length)&&Vt.apply(void 0,c(["tbody",m],h)),Boolean(!g&&v.length)&&Vt.apply(void 0,c(["tfoot",m],v)),g&&Vt.apply(void 0,c(c(c(["tbody",m],d),h),v)))},n.prototype.renderSection=function(t,n,e){return"outerContent"in t?Vt(jt,{key:t.key},t.outerContent):Vt("tr",{key:t.key,role:"presentation",className:ba(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk,e))},n.prototype.renderChunkTd=function(t,n,e,r){if("outerContent"in e)return e.outerContent;var i=this.props,o=this.state,a=o.forceYScrollbars,s=o.scrollerClientWidths,u=o.scrollerClientHeights,c=function(t,n){return null!=n.maxHeight||va(t,n)}(i,t),l=va(i,t),f=i.liquid?a?"scroll":c?"auto":"hidden":"visible",d=t.key,h=function(t,n,e,r){var i=e.expandRows;return"function"==typeof n.content?n.content(e):Vt("table",{role:"presentation",className:[n.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:i?e.clientHeight:""}},e.tableColGroupNode,Vt(r?"thead":"tbody",{role:"presentation"},"function"==typeof n.rowContent?n.rowContent(e):n.rowContent))}(t,e,{tableColGroupNode:n,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===s[d]?null:s[d],clientHeight:void 0!==u[d]?u[d]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return Vt(r?"th":"td",{ref:e.elRef,role:"presentation"},Vt("div",{className:"fc-scroller-harness"+(l?" fc-scroller-harness-liquid":"")},Vt(da,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:f,overflowX:i.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:l,liquidIsAbsolute:!0},h)))},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&&Ni(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=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=0,r=0,i=n;r<i.length;r++)e=Math.max(e,yn(i[r]));return Math.ceil(e)}(this.scrollerElRefs.getAll()):0},n.prototype.computeScrollerDims=function(){var t=(si||(si=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=ci(t);return document.body.removeChild(t),n}()),si),n=this.scrollerRefs,e=this.scrollerElRefs,r=!1,i={},o={};for(var a in n.currentMap){var s=n.currentMap[a];if(s&&s.needsYScrolling()){r=!0;break}}for(var u=0,c=this.props.sections;u<c.length;u++){var l=e.currentMap[a=c[u].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}(Ei);ka.addStateEquality({scrollerClientWidths:jn,scrollerClientHeights:jn});var Ea=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.elRef=Ft(),n}return s(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 zr(n,i.def,i.instance),view:n.viewApi,timeText:t.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!t.disableDragging&&hr(r,n),isStartResizable:!t.disableResizing&&vr(r,n),isEndResizable:!t.disableResizing&&gr(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)},s=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 Vt(Mi,{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,s.concat(e),r,i,a)}))},n.prototype.componentDidMount=function(){sr(this.elRef.current,this.props.seg)},n.prototype.componentDidUpdate=function(t){var n=this.props.seg;n!==t.seg&&sr(this.elRef.current,n)},n}(Ei),xa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=t.seg,r=mr(e,n.options.eventTimeFormat||t.defaultTimeFormat,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return Vt(Ea,{seg:e,timeText:r,disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||Da,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(r,i,o,a,s){return Vt("a",u({className:t.extraClassNames.concat(i).join(" "),style:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},ref:r},Ar(e,n)),Vt("div",{className:"fc-event-main",ref:o,style:{color:s.textColor}},a),s.isStartResizable&&Vt("div",{className:"fc-event-resizer fc-event-resizer-start"}),s.isEndResizable&&Vt("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},n}(Ei);function Da(t){return Vt("div",{className:"fc-event-main-frame"},t.timeText&&Vt("div",{className:"fc-event-time"},t.timeText),Vt("div",{className:"fc-event-title-container"},Vt("div",{className:"fc-event-title fc-sticky"},t.event.title||Vt(jt,null," "))))}var Na=function(t){return Vt(yi.Consumer,null,(function(n){var e=n.options,r={isAxis:t.isAxis,date:n.dateEnv.toDate(t.date),view:n.viewApi};return Vt(Mi,{hookProps:r,classNames:e.nowIndicatorClassNames,content:e.nowIndicatorContent,didMount:e.nowIndicatorDidMount,willUnmount:e.nowIndicatorWillUnmount},t.children)}))},Sa=ke({day:"numeric"}),Ca=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=Ta({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv});return Vt(Bi,{hookProps:r,content:e.dayCellContent,defaultContent:t.defaultContent},t.children)},n}(Ei);function Ta(t){var n=t.date,e=t.dateEnv,r=ei(n,t.todayRange,null,t.dateProfile);return u(u(u({date:e.toDate(n),view:t.viewApi},r),{dayNumberText:t.showDayNumber?e.format(n,Sa):""}),t.extraProps)}var _a=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.refineHookProps=ue(Ta),n.normalizeClassNames=Pi(),n}return s(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=ri(r,n.theme).concat(r.isDisabled?[]:this.normalizeClassNames(e.dayCellClassNames,r)),o=r.isDisabled?{}:{"data-date":ie(t.date)};return Vt(zi,{hookProps:r,didMount:e.dayCellDidMount,willUnmount:e.dayCellWillUnmount,elRef:t.elRef},(function(n){return t.children(n,i,o,r.isDisabled)}))},n}(Ei);function Ma(t){return Vt("div",{className:"fc-"+t})}var Ra=function(t){return Vt(Ea,{defaultContent:Ba,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 Vt("div",{ref:t,className:["fc-bg-event"].concat(n).join(" "),style:{backgroundColor:i.backgroundColor}},r)}))};function Ba(t){return t.event.title&&Vt("div",{className:"fc-event-title"},t.event.title)}var Ia=function(t){return Vt(yi.Consumer,null,(function(n){var e=n.dateEnv,r=n.options,i=t.date,o=r.weekNumberFormat||t.defaultFormat,a=e.computeWeekNumber(i),s=e.format(i,o);return Vt(Mi,{hookProps:{num:a,text:s,date:i},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:za,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)}))};function za(t){return t.text}var Pa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={titleId:on()},n.handleRootEl=function(t){n.rootEl=t,n.props.elRef&&Ni(n.props.elRef,t)},n.handleDocumentMouseDown=function(t){var e=nn(t);n.rootEl.contains(e)||n.handleCloseClick()},n.handleDocumentKeyDown=function(t){"Escape"===t.key&&n.handleCloseClick()},n.handleCloseClick=function(){var t=n.props.onClose;t&&t()},n}return s(n,t),n.prototype.render=function(){var t=this.context,n=t.theme,e=t.options,r=this.props,i=this.state,o=["fc-popover",n.getClass("popover")].concat(r.extraClassNames||[]);return Lt(Vt("div",u({id:r.id,className:o.join(" "),"aria-labelledby":i.titleId},r.extraAttrs,{ref:this.handleRootEl}),Vt("div",{className:"fc-popover-header "+n.getClass("popoverHeader")},Vt("span",{className:"fc-popover-title",id:i.titleId},r.title),Vt("span",{className:"fc-popover-close "+n.getIconClass("close"),title:e.closeHint,onClick:this.handleCloseClick})),Vt("div",{className:"fc-popover-body "+n.getClass("popoverContent")},r.children)),r.parentEl)},n.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},n.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},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=di(t),e=t.getBoundingClientRect(),r=0,i=n;r<i.length;r++){var o=Xr(e,i[r].getBoundingClientRect());if(!o)return null;e=o}return e}(e);if(o){var a=i.getBoundingClientRect(),s=r?Jt(e,".fc-scrollgrid").getBoundingClientRect().top:o.top,u=t?o.right-a.width:o.left;s=Math.max(s,10),u=Math.min(u,document.documentElement.clientWidth-10-a.width),u=Math.max(u,10);var c=i.offsetParent.getBoundingClientRect();Kt(i,{top:s-c.top,left:u-c.left})}},n}(Ei),Ha=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 s(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 Vt(_a,{date:e,dateProfile:i,todayRange:r,elRef:this.handleRootEl},(function(t,a,s){return Vt(Pa,{elRef:t,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(a),extraAttrs:s,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Vt(Ca,{date:e,dateProfile:i,todayRange:r},(function(t,n){return n&&Vt("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}(Si),Qa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.linkElRef=Ft(),n.state={isPopoverOpen:!1,popoverId:on()},n.handleClick=function(t){var e=n.props,r=n.context,i=r.options.moreLinkClick,o=Va(e).start;function a(t){var n=t.eventRange,e=n.range;return{event:new zr(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 s(n,t),n.prototype.render=function(){var t=this,n=this.props,e=this.state;return Vt(yi.Consumer,null,(function(r){var i=r.viewApi,o=r.options,a=r.calendarApi,s=o.moreLinkText,u=n.moreCnt,c=Va(n),l="function"==typeof s?s.call(a,u):"+"+u+" "+s,f=pn(o.moreLinkHint,[u],l),d={num:u,shortText:"+"+u,text:l,view:i};return Vt(jt,null,Boolean(n.moreCnt)&&Vt(Mi,{elRef:t.linkElRef,hookProps:d,classNames:o.moreLinkClassNames,content:o.moreLinkContent,defaultContent:n.defaultContent||Oa,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},(function(r,i,o,a){return n.children(r,["fc-more-link"].concat(i),o,a,t.handleClick,f,e.isPopoverOpen,e.isPopoverOpen?e.popoverId:"")})),e.isPopoverOpen&&Vt(Ha,{id:e.popoverId,startDate:c.start,endDate:c.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=Jt(this.linkElRef.current,".fc-view-harness"))},n}(Ei);function Oa(t){return t.text}function Va(t){if(t.allDayDate)return{start:t.allDayDate,end:En(t.allDayDate,1)};var n,e=t.hiddenSegs;return{start:Ua(e),end:(n=e,n.reduce(ja).eventRange.range.end)}}function Ua(t){return t.reduce(Fa).eventRange.range.start}function Fa(t,n){return t.eventRange.range.start<n.eventRange.range.start?t:n}function ja(t,n){return t.eventRange.range.end>n.eventRange.range.end?t:n}
1
+ import{r as t,c as n,a as e,f as r,h as i,H as o,g as a}from"./p-d4ece435.js";import{_ as s,a as u,c}from"./p-7f59211b.js";import{as as l,at as f,k as d,g as h,s as v,au as g,l as m,u as p}from"./p-940a5feb.js";import{c as b}from"./p-97e8ea42.js";import{F as A}from"./p-77e3d537.js";import{a as y,F as w}from"./p-ef614656.js";import"./p-6c77a36c.js";import"./p-5d398e42.js";var k,E,x,D,N,S,C,T={},_=[],M=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function R(t,n){for(var e in n)t[e]=n[e];return t}function B(t){var n=t.parentNode;n&&n.removeChild(t)}function I(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?k.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?++x:i};return null==i&&null!=E.vnode&&E.vnode(o),o}function P(t){return t.children}function H(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)&&D.push(t)&&!U.__r++||S!==E.debounceRendering)&&((S=E.debounceRendering)||N)(U)}function U(){for(var t;U.__r=D.length;)t=D.sort((function(t,n){return t.__v.__b-n.__v.__b})),D=[],t.some((function(t){var n,e,r,i,o,a;t.__d&&(o=(i=(n=t).__v).__e,(a=n.__P)&&(e=[],(r=R({},i)).__v=i.__v+1,J(a,i,r,n.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,e,null==o?Q(i):o,i.__h),X(e,i),i.__e!=o&&O(i)))}))}function F(t,n,e,r,i,o,a,s,u,c){var l,f,d,h,v,g,m,p=r&&r.__k||_,b=p.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(P,{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=p[l])||d&&h.key==d.key&&h.type===d.type)p[l]=void 0;else for(f=0;f<b;f++){if((d=p[f])&&h.key==d.key&&h.type===d.type){p[f]=void 0;break}d=null}J(t,h,d=d||T,i,o,a,s,u,c),v=h.__e,(f=h.ref)&&d.ref!=f&&(m||(m=[]),d.ref&&m.push(d.ref,null,h),m.push(f,h.__c||v,h)),null!=v?(null==g&&(g=v),"function"==typeof h.type&&h.__k===d.__k?h.__d=u=j(h,u,t):u=L(t,h,d,p,v,u),"function"==typeof e.type&&(e.__d=u)):u&&d.__e==u&&u.parentNode!=t&&(u=Q(d))}for(e.__e=g,l=b;l--;)null!=p[l]&&("function"==typeof e.type&&null!=p[l].__e&&p[l].__e==e.__d&&(e.__d=Q(r,l+1)),tt(p[l],p[l]));if(m)for(l=0;l<m.length;l++)K(m[l],m[++l],m[++l])}function j(t,n,e){for(var r,i=t.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=t,n="function"==typeof r.type?j(r,n,e):L(e,r,r,i,r.__e,n));return n}function G(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){G(t,n)})):n.push(t)),n}function L(t,n,e,r,i,o){var a,s,u;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(s=o,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==i)break t;t.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function W(t,n,e){"-"===n[0]?t.setProperty(n,e):t[n]=null==e?"":"number"!=typeof e||M.test(n)?e:e+"px"}function Y(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||W(t.style,n,"");if(e)for(n in e)r&&e[n]===r[n]||W(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?q:Z,o):t.removeEventListener(n,o?q:Z,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 Z(t){this.l[t.type+!1](E.event?E.event(t):t)}function q(t){this.l[t.type+!0](E.event?E.event(t):t)}function J(t,n,e,r,i,o,a,s,u){var c,l,f,d,h,v,g,m,p,b,A,y=n.type;if(void 0!==n.constructor)return null;null!=e.__h&&(u=e.__h,s=n.__e=e.__e,n.__h=null,o=[s]),(c=E.__b)&&c(n);try{t:if("function"==typeof y){if(m=n.props,p=(c=y.contextType)&&r[c.__c],b=c?p?p.props.value:c.__:r,e.__c?g=(l=n.__c=e.__c).__=l.__E:("prototype"in y&&y.prototype.render?n.__c=l=new y(m,b):(n.__c=l=new H(m,b),l.constructor=y,l.render=nt),p&&p.sub(l),l.props=m,l.state||(l.state={}),l.context=b,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=y.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=R({},l.__s)),R(l.__s,y.getDerivedStateFromProps(m,l.__s))),d=l.props,h=l.state,f)null==y.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==d&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(m,b),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(m,l.__s,b)||n.__v===e.__v){l.props=m,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(m,l.__s,b),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(d,h,v)}))}l.context=b,l.props=m,l.state=l.__s,(c=E.__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=R(R({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(v=l.getSnapshotBeforeUpdate(d,h)),A=null!=c&&c.type===P&&null==c.key?c.props.children:c,F(t,Array.isArray(A)?A:[A],n,e,r,i,o,a,s,u),l.base=n.__e,n.__h=null,l.__h.length&&a.push(l),g&&(l.__E=l.__=null),l.__e=!1}else null==o&&n.__v===e.__v?(n.__k=e.__k,n.__e=e.__e):n.__e=$(e.__e,n,e,r,i,o,a,u);(c=E.diffed)&&c(n)}catch(t){n.__v=null,(u||null!=o)&&(n.__e=s,n.__h=!!u,o[o.indexOf(s)]=null),E.__e(t,n,e)}}function X(t,n){E.__c&&E.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){E.__e(t,n.__v)}}))}function $(t,n,e,r,i,o,a,s){var u,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((u=o[v])&&"setAttribute"in u==!!h&&(h?u.localName===h:3===u.nodeType)){t=u,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,s=!1}if(null===h)f===d||s&&t.data===d||(t.data=d);else{if(o=o&&k.call(t.childNodes),c=(f=e.props||T).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!s){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||Y(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]||Y(t,o,n[o],e[o],r)}(t,d,f,i,s),l)n.__k=[];else if(v=n.props.children,F(t,Array.isArray(v)?v:[v],n,e,r,i&&"foreignObject"!==h,o,a,o?o[0]:e.__k&&Q(e,0),s),null!=o)for(v=o.length;v--;)null!=o[v]&&B(o[v]);s||("value"in d&&void 0!==(v=d.value)&&(v!==t.value||"progress"===h&&!v||"option"===h&&v!==f.value)&&Y(t,"value",v,f.value,!1),"checked"in d&&void 0!==(v=d.checked)&&v!==t.checked&&Y(t,"checked",v,f.checked,!1))}return t}function K(t,n,e){try{"function"==typeof t?t(n):t.current=n}catch(t){E.__e(t,e)}}function tt(t,n,e){var r,i;if(E.unmount&&E.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||K(r,null,n)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){E.__e(t,n)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&tt(r[i],n,"function"!=typeof t.type);e||null==t.__e||B(t.__e),t.__e=t.__d=void 0}function nt(t,n,e){return this.constructor(t,e)}function et(t,n,e){var r,i,o;E.__&&E.__(t,n),i=(r="function"==typeof e)?null:e&&e.__k||n.__k,o=[],J(n,t=(!r&&e||n).__k=I(P,null,[t]),i||T,T,void 0!==n.ownerSVGElement,!r&&e?[e]:i?null:n.firstChild?k.call(n.childNodes):null,o,!r&&e?e:i?i.__e:n.firstChild,r),X(o,t)}k=_.slice,E={__e:function(t,n,e,r){for(var i,o,a;n=n.__;)if((i=n.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(n){t=n}throw t}},x=0,H.prototype.setState=function(t,n){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=R({},this.state),"function"==typeof t&&(t=t(R({},e),this.props)),t&&R(e,t),null!=t&&this.__v&&(n&&this.__h.push(n),V(this))},H.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),V(this))},H.prototype.render=P,D=[],N="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U.__r=0,C=0;var rt,it,ot=[],at=E.__b,st=E.__r,ut=E.diffed,ct=E.__c,lt=E.unmount;function ft(){for(var t;t=ot.shift();)if(t.__P)try{t.__H.__h.forEach(ht),t.__H.__h.forEach(vt),t.__H.__h=[]}catch(n){t.__H.__h=[],E.__e(n,t.__v)}}E.__b=function(t){rt=null,at&&at(t)},E.__r=function(t){st&&st(t);var n=(rt=t.__c).__H;n&&(n.__h.forEach(ht),n.__h.forEach(vt),n.__h=[])},E.diffed=function(t){ut&&ut(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==ot.push(n)&&it===E.requestAnimationFrame||((it=E.requestAnimationFrame)||function(t){var n,e=function(){clearTimeout(r),dt&&cancelAnimationFrame(n),setTimeout(t)},r=setTimeout(e,100);dt&&(n=requestAnimationFrame(e))})(ft)),rt=null},E.__c=function(t,n){n.some((function(t){try{t.__h.forEach(ht),t.__h=t.__h.filter((function(t){return!t.__||vt(t)}))}catch(e){n.some((function(t){t.__h&&(t.__h=[])})),n=[],E.__e(e,t.__v)}})),ct&&ct(t,n)},E.unmount=function(t){lt&&lt(t);var n,e=t.__c;e&&e.__H&&(e.__H.__.forEach((function(t){try{ht(t)}catch(t){n=t}})),n&&E.__e(n,e.__v))};var dt="function"==typeof requestAnimationFrame;function ht(t){var n=rt,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),rt=n}function vt(t){var n=rt;t.__c=t.__(),rt=n}function gt(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 mt(t){this.props=t}(mt.prototype=new H).isPureReactComponent=!0,mt.prototype.shouldComponentUpdate=function(t,n){return gt(this.props,t)||gt(this.state,n)};var pt=E.__b;E.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),pt&&pt(t)};var bt=E.__e;E.__e=function(t,n,e,r){if(t.then)for(var i,o=n;o=o.__;)if((i=o.__c)&&i.__c)return null==n.__e&&(n.__e=e.__e,n.__k=e.__k),i.__c(t,n);bt(t,n,e,r)};var At=E.unmount;function yt(){this.__u=0,this.t=null,this.__b=null}function wt(t){var n=t.__.__c;return n&&n.__e&&n.__e(t)}function kt(){this.u=null,this.o=null}E.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&!0===t.__h&&(t.type=null),At&&At(t)},(yt.prototype=new H).__c=function(t,n){var e=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var i=wt(r.__v),o=!1,a=function(){o||(o=!0,e.__R=null,i?i(s):s())};e.__R=a;var s=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()}},u=!0===n.__h;r.__u++||u||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&&I(P,null,t.fallback);return i&&(i.__h=null),[I(P,null,n.__e?null:t.children),i]};var Et=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 xt(t){return this.getChildContext=function(){return t.context},t.children}function Dt(t){var n=this,e=t.i;n.componentWillUnmount=function(){et(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)}}),et(I(xt,{context:n.context},t.__v),n.l)):n.l&&n.componentWillUnmount()}(kt.prototype=new H).__e=function(t){var n=this,e=wt(n.__v),r=n.o.get(t);return r[0]++,function(i){var o=function(){n.props.revealOrder?(r.push(i),Et(n,t,r)):i()};e?e(o):o()}},kt.prototype.render=function(t){this.u=null,this.o=new Map;var n=G(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},kt.prototype.componentDidUpdate=kt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(n,e){Et(t,e,n)}))};var Nt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,St=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|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]/,Ct="undefined"!=typeof document,Tt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};H.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(H.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}));var _t=E.event;function Mt(){}function Rt(){return this.cancelBubble}function Bt(){return this.defaultPrevented}E.event=function(t){return _t&&(t=_t(t)),t.persist=Mt,t.isPropagationStopped=Rt,t.isDefaultPrevented=Bt,t.nativeEvent=t};var It={configurable:!0,get:function(){return this.class}},zt=E.vnode;E.vnode=function(t){var n=t.type,e=t.props,r=e;if("string"==typeof n){var i=-1===n.indexOf("-");for(var o in r={},e){var a=e[o];Ct&&"children"===o&&"noscript"===n||"value"===o&&"defaultValue"in e&&null==a||("defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===a?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!Tt(e.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&St.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[o]=a)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=G(e.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=G(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,e.class!=e.className&&(It.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",It))}t.$$typeof=Nt,zt&&zt(t)};var Pt=E.__r;E.__r=function(t){Pt&&Pt(t)};var Ht="undefined"!=typeof globalThis?globalThis:window;Ht.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):Ht.FullCalendarVDom={Component:H,createElement:I,render:et,createRef:function(){return{current:null}},Fragment:P,createContext:function(t){var n=function(t,n){var e={__c:n="__cC"+C++,__: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 I(Dt,{__v:t,i:n})},flushSync:function(t){t();var n=E.debounceRendering,e=[];for(E.debounceRendering=function(t){e.push(t)},et(I(Qt,{}),document.createElement("div"));e.length;)e.shift()();E.debounceRendering=n},unmountComponentAtNode:function(t){et(null,t)}};var Qt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){return I("div",{})},n.prototype.componentDidMount=function(){this.setState({})},n}(H);if("undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var Ot=FullCalendarVDom.Component,Vt=FullCalendarVDom.createElement,Ut=FullCalendarVDom.render,Ft=FullCalendarVDom.createRef,jt=FullCalendarVDom.Fragment,Gt=FullCalendarVDom.createContext,Lt=FullCalendarVDom.createPortal,Wt=FullCalendarVDom.flushSync,Yt=FullCalendarVDom.unmountComponentAtNode,Zt=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 qt(t){t.parentNode&&t.parentNode.removeChild(t)}function Jt(t,n){if(t.closest)return t.closest(n);if(!document.documentElement.contains(t))return null;do{if(Xt(t,n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}function Xt(t,n){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,n)}var $t=/(top|left|right|bottom|width|height)$/i;function Kt(t,n){for(var e in n)tn(t,e,n[e])}function tn(t,n,e){t.style[n]=null==e?"":"number"==typeof e&&$t.test(n)?e+"px":e}function nn(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 en(t){return t.getRootNode?t.getRootNode():document}var rn=0;function on(){return"fc-dom-"+(rn+=1)}function an(t){t.preventDefault()}function sn(t,n,e,r){var i=function(t,n){return function(e){var r=Jt(e.target,t);r&&n.call(r,e,r)}}(e,r);return t.addEventListener(n,i),function(){t.removeEventListener(n,i)}}var un=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function cn(t){return u({onClick:t},ln(t))}function ln(t){return{tabIndex:0,onKeyDown:function(n){"Enter"!==n.key&&" "!==n.key||(t(n),n.preventDefault())}}}var fn=0;function dn(){return String(fn+=1)}function hn(){document.body.classList.add("fc-not-allowed")}function vn(){document.body.classList.remove("fc-not-allowed")}function gn(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 mn(t,n){var e=String(t);return"000".substr(0,n-e.length)+e}function pn(t,n,e){return"function"==typeof t?t.apply(void 0,n):"string"==typeof t?n.reduce((function(t,n,e){return t.replace("$"+e,n||"")}),t):e}function bn(t,n){return t-n}function An(t){return t%1==0}function yn(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 wn=["sun","mon","tue","wed","thu","fri","sat"];function kn(t,n){var e=Rn(t);return e[2]+=7*n,Bn(e)}function En(t,n){var e=Rn(t);return e[2]+=n,Bn(e)}function xn(t,n){var e=Rn(t);return e[6]+=n,Bn(e)}function Dn(t,n){return(n.valueOf()-t.valueOf())/864e5}function Nn(t,n){return zn(t)===zn(n)?Math.round(Dn(t,n)):null}function Sn(t){return Bn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Cn(t,n,e,r){var i=Bn([n,0,1+Tn(n,e,r)]),o=Sn(t),a=Math.round(Dn(i,o));return Math.floor(a/7)+1}function Tn(t,n,e){var r=7+n-e;return-(7+Bn([t,0,r]).getUTCDay()-n)%7+r-1}function _n(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Mn(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 Rn(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Bn(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC.apply(Date,t))}function In(t){return!isNaN(t.valueOf())}function zn(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}function Pn(t,n,e,r){return{instanceId:dn(),defId:t,range:n,forcedStartTzo:null==e?null:e,forcedEndTzo:null==r?null:r}}var Hn=Object.prototype.hasOwnProperty;function Qn(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]=Qn(i))}for(o=t.length-1;o>=0;o-=1){var s=t[o];for(var u in s)u in e||(e[u]=s[u])}return e}function On(t,n){var e={};for(var r in t)n(t[r],r)&&(e[r]=t[r]);return e}function Vn(t,n){var e={};for(var r in t)e[r]=n(t[r],r);return e}function Un(t){for(var n={},e=0,r=t;e<r.length;e++)n[r[e]]=!0;return n}function Fn(t){var n=[];for(var e in t)n.push(t[e]);return n}function jn(t,n){if(t===n)return!0;for(var e in t)if(Hn.call(t,e)&&!(e in n))return!1;for(var e in n)if(Hn.call(n,e)&&t[e]!==n[e])return!1;return!0}function Gn(t,n){var e=[];for(var r in t)Hn.call(t,r)&&(r in n||e.push(r));for(var r in n)Hn.call(n,r)&&t[r]!==n[r]&&e.push(r);return e}function Ln(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 Wn(t,n,e){var r=e.dateEnv,i=e.pluginHooks,o=e.options,a=t.defs,s=t.instances;for(var u in s=On(s,(function(t){return!a[t.defId].recurringDef})),a){var c=a[u];if(c.recurringDef){var l=c.recurringDef.duration;l||(l=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var f=0,d=Yn(c,l,n,r,i.recurringTypes);f<d.length;f++){var h=d[f],v=Pn(u,{start:h,end:r.add(h,l)});s[v.instanceId]=v}}}return{defs:a,instances:s}}function Yn(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(Sn)),o}var Zn=["years","months","days","milliseconds"],qn=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Jn(t,n){var e;return"string"==typeof t?function(t){var n=qn.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?Xn(t):"number"==typeof t?Xn(((e={})[n||"milliseconds"]=t,e)):null}function Xn(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 $n(t,n){return{years:t.years+n.years,months:t.months+n.months,days:t.days+n.days,milliseconds:t.milliseconds+n.milliseconds}}function Kn(t){return te(t)/864e5}function te(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function ne(t,n){for(var e=null,r=0;r<Zn.length;r+=1){var i=Zn[r];if(n[i]){var o=t[i]/n[i];if(!An(o)||null!==e&&e!==o)return null;e=o}else if(t[i])return null}return e}function ee(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 re(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",oe(n,!0)))),r}function ie(t){return t.toISOString().replace(/T.*$/,"")}function oe(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+mn(i,2)+":"+mn(o,2):"GMT"+e+i+(o?":"+mn(o,2):"")}function ae(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 se(t,n,e){var r,i;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(r){if(!ae(r,o)){e&&e(i);var s=t.apply(this,o);n&&n(s,i)||(i=s)}}else i=t.apply(this,o);return r=o,i}}function ue(t,n,e){var r,i,o=this;return function(a){if(r){if(!jn(r,a)){e&&e(i);var s=t.call(o,a);n&&n(s,i)||(i=s)}}else i=t.call(o,a);return r=a,i}}var ce={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},le={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},fe=/\s*([ap])\.?m\.?/i,de=/,/g,he=/\s+/g,ve=/\u200e/g,ge=/UTC|GMT/,me=function(){function t(t){var n={},e={},r=0;for(var i in t)i in ce?(e[i]=t[i],r=Math.max(ce[i],r)):(n[i]=t[i],i in le&&(r=Math.max(le[i],r)));this.standardDateProps=n,this.extendedSettings=e,this.severity=r,this.buildFormattingFunc=se(pe)}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,s=this.standardDateProps,u=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:zn(i)!==zn(o)?1:0);if(!c)return this.format(t,e);var l=c;!(l>1)||"numeric"!==s.year&&"2-digit"!==s.year||"numeric"!==s.month&&"2-digit"!==s.month||"numeric"!==s.day&&"2-digit"!==s.day||(l=1);var f=this.format(t,e),d=this.format(n,e);if(f===d)return f;var h=pe(function(t,n){var e={};for(var r in t)(!(r in le)||le[r]<=n)&&(e[r]=t[r]);return e}(s,l),u,e),v=h(t),g=h(n),m=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),s=t.substr(i=o+n.length),u=0;u<e.length;){var c=e.indexOf(r,u);if(-1===c)break;var l=e.substr(0,c),f=e.substr(u=c+r.length);if(a===l&&s===f)return{before:a,after:s}}}return null}(f,v,d,g),p=u.separator||r||e.defaultSeparator||"";return m?m.before+v+p+g+m.after:f+p+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 pe(t,n,e){var r=Object.keys(t).length;return 1===r&&"short"===t.timeZoneName?function(t){return oe(t.timeZoneOffset)}:0===r&&n.week?function(t){return r=e.computeWeekNumber(t.marker),i=e.weekText,o=e.weekTextLong,a=e.locale,u=[],"long"===(s=n.week)?u.push(o):"short"!==s&&"narrow"!==s||u.push(i),"long"!==s&&"short"!==s||u.push(" "),u.push(a.simpleNumberFormat.format(r)),"rtl"===a.options.direction&&u.reverse(),u.join("");var r,i,o,a,s,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(ve,""),"short"===e.timeZoneName&&(t=function(t,n){var e=!1;return t=t.replace(ge,(function(){return e=!0,n})),e||(t+=" "+n),t}(t,"UTC"===i.timeZone||null==n.timeZoneOffset?"UTC":oe(n.timeZoneOffset))),r.omitCommas&&(t=t.replace(de,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),!1===r.meridiem?t=t.replace(fe,"").trim():"narrow"===r.meridiem?t=t.replace(fe,(function(t,n){return n.toLocaleLowerCase()})):"short"===r.meridiem?t=t.replace(fe,(function(t,n){return n.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(t=t.replace(fe,(function(t){return t.toLocaleLowerCase()}))),t=(t=t.replace(he," ")).trim()}((r&&!a.getUTCMinutes()?r:i).format(a),o,t,n,e)}}(t,n,e)}function be(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 Ae(t,n,e,r){var i=be(t,e.calendarSystem);return{date:i,start:i,end:n?be(n,e.calendarSystem):null,timeZone:e.timeZone,localeCodes:e.locale.codes,defaultSeparator:r||e.defaultSeparator}}var ye=function(){function t(t){this.cmdStr=t}return t.prototype.format=function(t,n,e){return n.cmdFormatter(this.cmdStr,Ae(t,null,n,e))},t.prototype.formatRange=function(t,n,e,r){return e.cmdFormatter(this.cmdStr,Ae(t,n,e,r))},t}(),we=function(){function t(t){this.func=t}return t.prototype.format=function(t,n,e){return this.func(Ae(t,null,n,e))},t.prototype.formatRange=function(t,n,e,r){return this.func(Ae(t,n,e,r))},t}();function ke(t){return"object"==typeof t&&t?new me(t):"string"==typeof t?new ye(t):"function"==typeof t?new we(t):null}var Ee={navLinkDayClick:Re,navLinkWeekClick:Re,duration:Jn,bootstrapFontAwesome:Re,buttonIcons:Re,customButtons:Re,defaultAllDayEventDuration:Jn,defaultTimedEventDuration:Jn,nextDayThreshold:Jn,scrollTime:Jn,scrollTimeReset:Boolean,slotMinTime:Jn,slotMaxTime:Jn,dayPopoverFormat:ke,slotDuration:Jn,snapDuration:Jn,headerToolbar:Re,footerToolbar:Re,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ke,dayHeaderClassNames:Re,dayHeaderContent:Re,dayHeaderDidMount:Re,dayHeaderWillUnmount:Re,dayCellClassNames:Re,dayCellContent:Re,dayCellDidMount:Re,dayCellWillUnmount:Re,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Re,weekNumbers:Boolean,weekNumberClassNames:Re,weekNumberContent:Re,weekNumberDidMount:Re,weekNumberWillUnmount:Re,editable:Boolean,viewClassNames:Re,viewDidMount:Re,viewWillUnmount:Re,nowIndicator:Boolean,nowIndicatorClassNames:Re,nowIndicatorContent:Re,nowIndicatorDidMount:Re,nowIndicatorWillUnmount:Re,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Re,locale:Re,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Re,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:Re,contentHeight:Re,direction:String,weekNumberFormat:ke,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Re,initialDate:Re,now:Re,eventDataTransform:Re,stickyHeaderDates:Re,stickyFooterScrollbar:Re,viewHeight:Re,defaultAllDay:Boolean,eventSourceFailure:Re,eventSourceSuccess:Re,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Re,eventConstraint:Re,eventAllow:Re,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Re,eventContent:Re,eventDidMount:Re,eventWillUnmount:Re,selectConstraint:Re,selectOverlap:Re,selectAllow:Re,droppable:Boolean,unselectCancel:String,slotLabelFormat:Re,slotLaneClassNames:Re,slotLaneContent:Re,slotLaneDidMount:Re,slotLaneWillUnmount:Re,slotLabelClassNames:Re,slotLabelContent:Re,slotLabelDidMount:Re,slotLabelWillUnmount:Re,dayMaxEvents:Re,dayMaxEventRows:Re,dayMinWidth:Number,slotLabelInterval:Jn,allDayText:String,allDayClassNames:Re,allDayContent:Re,allDayDidMount:Re,allDayWillUnmount:Re,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ke,rerenderDelay:Number,moreLinkText:Re,moreLinkHint:Re,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Re,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Jn,hiddenDays:Re,monthMode:Boolean,fixedWeekCount:Boolean,validRange:Re,visibleRange:Re,titleFormat:Re,eventInteractive:Boolean,noEventsText:String,viewHint:Re,navLinkHint:Re,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Re,moreLinkClassNames:Re,moreLinkContent:Re,moreLinkDidMount:Re,moreLinkWillUnmount:Re},xe={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},De={datesSet:Re,eventsSet:Re,eventAdd:Re,eventChange:Re,eventRemove:Re,windowResize:Re,eventClick:Re,eventMouseEnter:Re,eventMouseLeave:Re,select:Re,unselect:Re,loading:Re,_unmount:Re,_beforeprint:Re,_afterprint:Re,_noEventDrop:Re,_noEventResize:Re,_resize:Re,_scrollRequest:Re},Ne={buttonText:Re,buttonHints:Re,views:Re,plugins:Re,initialEvents:Re,events:Re,eventSources:Re},Se={headerToolbar:Ce,footerToolbar:Ce,buttonText:Ce,buttonHints:Ce,buttonIcons:Ce};function Ce(t,n){return"object"==typeof t&&"object"==typeof n&&t&&n?jn(t,n):t===n}var Te={type:String,component:Re,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Re,usesMinMaxTime:Boolean,classNames:Re,content:Re,didMount:Re,willUnmount:Re};function _e(t){return Qn(t,Se)}function Me(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 Re(t){return t}function Be(t,n,e,r){for(var i={defs:{},instances:{}},o=qe(e),a=0,s=t;a<s.length;a++){var u=Ye(s[a],n,e,r,o);u&&Ie(u,i)}return i}function Ie(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 ze(t,n){var e=t.instances[n];if(e){var r=t.defs[e.defId],i=He(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 Pe(t,n){return{defs:u(u({},t.defs),n.defs),instances:u(u({},t.instances),n.instances)}}function He(t,n){var e=On(t.defs,n),r=On(t.instances,(function(t){return e[t.defId]}));return{defs:e,instances:r}}function Qe(t){return Array.isArray(t)?t:"string"==typeof t?t.split(/\s+/):[]}var Oe={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Re,overlap:Re,allow:Re,className:Qe,classNames:Qe,color:String,backgroundColor:String,borderColor:String,textColor:String},Ve={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ue(t,n){var e=function(t,n){return Array.isArray(t)?Be(t,null,n,!0):"object"==typeof t&&t?Be([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 Fe(t){return t.reduce(je,Ve)}function je(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 Ge={id:String,groupId:String,title:String,url:String,interactive:Boolean},Le={start:Re,end:Re,date:Re,allDay:Boolean},We=u(u(u({},Ge),Le),{extendedProps:Re});function Ye(t,n,e,r,i){void 0===i&&(i=qe(e));var o=Ze(t,e,i),a=o.refined,s=o.extra,u=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,u,e.dateEnv,e.pluginHooks.recurringTypes);if(c)return(l=Je(a,s,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,s=null,u=!1,c=null;if(i=e.dateEnv.createMarkerMeta(null!=t.start?t.start:t.date))s=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&&s&&(s=Sn(s)),o&&(c=o.marker,a&&(c=Sn(c)),s&&c<=s&&(c=null)),c?u=!0:r||(u=e.options.forceEventDuration||!1,c=e.dateEnv.add(s,a?e.options.defaultAllDayEventDuration:e.options.defaultTimedEventDuration)),{allDay:a,hasEnd:u,range:{start:s,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(a,u,e,r);return f?{def:l=Je(a,s,n?n.sourceId:"",f.allDay,f.hasEnd,e),instance:Pn(l.defId,f.range,f.forcedStartTzo,f.forcedEndTzo)}:null}function Ze(t,n,e){return void 0===e&&(e=qe(n)),Me(t,e)}function qe(t){return u(u(u({},Oe),We),t.pluginHooks.eventRefiners)}function Je(t,n,e,r,i,o){for(var a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:dn(),sourceId:e,allDay:r,hasEnd:i,interactive:t.interactive,ui:Ue(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 Xe(t){var n=Math.floor(Dn(t.start,t.end))||1,e=Sn(t.start);return{start:e,end:En(e,n)}}function $e(t,n){void 0===n&&(n=Jn(0));var e=null,r=null;if(t.end){r=Sn(t.end);var i=t.end.valueOf()-r.valueOf();i&&i>=te(n)&&(r=En(r,1))}return t.start&&(e=Sn(t.start),r&&r<=e&&(r=En(e,1))),{start:e,end:r}}function Ke(t,n,e,r){return"year"===r?Jn(e.diffWholeYears(t,n),"year"):"month"===r?Jn(e.diffWholeMonths(t,n),"month"):(o=n,a=Sn(i=t),s=Sn(o),{years:0,months:0,days:Math.round(Dn(a,s)),milliseconds:o.valueOf()-s.valueOf()-(i.valueOf()-a.valueOf())});var i,o,a,s}function tr(t,n){var e,r,i=[],o=n.start;for(t.sort(nr),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 nr(t,n){return t.start.valueOf()-n.start.valueOf()}function er(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 rr(t,n){return(null===t.end||null===n.start||t.end>n.start)&&(null===t.start||null===n.end||t.start<n.end)}function ir(t,n){return(null===t.start||null!==n.start&&n.start>=t.start)&&(null===t.end||null!==n.end&&n.end<=t.end)}function or(t,n){return(null===t.start||n>=t.start)&&(null===t.end||n<t.end)}function ar(t,n,e,r){var i={},o={},a={},s=[],u=[],c=cr(t.defs,n);for(var l in t.defs)"inverse-background"===(h=c[(y=t.defs[l]).defId]).display&&(y.groupId?(i[y.groupId]=[],a[y.groupId]||(a[y.groupId]=y)):o[l]=[]);for(var f in t.instances){var d=t.instances[f],h=c[(y=t.defs[d.defId]).defId],v=d.range,g=!y.allDay&&r?$e(v,r):v,m=er(g,e);m&&("inverse-background"===h.display?y.groupId?i[y.groupId].push(m):o[d.defId].push(m):"none"!==h.display&&("background"===h.display?s:u).push({def:y,ui:h,instance:d,range:m,isStart:g.start&&g.start.valueOf()===m.start.valueOf(),isEnd:g.end&&g.end.valueOf()===m.end.valueOf()}))}for(var p in i)for(var b=0,A=tr(i[p],e);b<A.length;b++){var y;s.push({def:y=a[p],ui:h=c[y.defId],instance:null,range:A[b],isStart:!1,isEnd:!1})}for(var l in o)for(var w=0,k=tr(o[l],e);w<k.length;w++)s.push({def:t.defs[l],ui:c[l],instance:null,range:k[w],isStart:!1,isEnd:!1});return{bg:s,fg:u}}function sr(t,n){t.fcSeg=n}function ur(t){return t.fcSeg||t.parentNode.fcSeg||null}function cr(t,n){return Vn(t,(function(t){return lr(t,n)}))}function lr(t,n){var e=[];return n[""]&&e.push(n[""]),n[t.defId]&&e.push(n[t.defId]),e.push(t.ui),Fe(e)}function fr(t,n){var e=t.map(dr);return e.sort((function(t,e){return function(t,n,e){var r,i;for(r=0;r<e.length;r+=1)if(i=gn(t,n,e[r]))return i;return 0}(t,e,n)})),e.map((function(t){return t._seg}))}function dr(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 hr(t,n){for(var e=t.eventRange,r=e.def,i=e.ui,o=i.startEditable,a=0,s=n.pluginHooks.isDraggableTransformers;a<s.length;a++)o=(0,s[a])(o,r,i,n);return o}function vr(t,n){return t.isStart&&t.eventRange.ui.durationEditable&&n.options.eventResizableFromStart}function gr(t){return t.isEnd&&t.eventRange.ui.durationEditable}function mr(t,n,e,r,i,o,a){var s=e.dateEnv,u=e.options,c=u.displayEventTime,l=u.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,g=o||t.start||t.eventRange.range.start,m=a||t.end||t.eventRange.range.end,p=Sn(h).valueOf()===Sn(g).valueOf(),b=Sn(xn(v,-1)).valueOf()===Sn(xn(m,-1)).valueOf();return c&&!f.allDay&&(p||b)?(g=p?h:g,m=b?v:m,l&&f.hasEnd?s.formatRange(g,m,n,{forcedStartTzo:o?null:d.forcedStartTzo,forcedEndTzo:a?null:d.forcedEndTzo}):s.format(g,n,{forcedTzo:o?null:d.forcedStartTzo})):""}function pr(t,n,e){var r=t.eventRange.range;return{isPast:r.end<(e||n.start),isFuture:r.start>=(e||n.end),isToday:n&&or(n,r.start)}}function br(t){return t.instance?t.instance.instanceId:t.def.defId+":"+t.range.start.toISOString()}function Ar(t,n){var e=t.eventRange,r=e.def,i=e.instance,o=r.url;if(o)return{href:o};var a=n.emitter,s=n.options.eventInteractive;return null==s&&null==(s=r.interactive)&&(s=Boolean(a.hasHandlers("eventClick"))),s?ln((function(t){a.trigger("eventClick",{el:t.target,event:new zr(n,r,i),jsEvent:t,view:n.viewApi})})):{}}var yr={start:Re,end:Re,allDay:Boolean};function wr(t,n,e){return u(u({},kr(t,n,e)),{timeZone:n.timeZone})}function kr(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 Er(t,n,e){e.emitter.trigger("select",u(u({},xr(t,e)),{jsEvent:n?n.origEvent:null,view:e.viewApi||e.calendarApi.view}))}function xr(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({},kr((e=t).range,n.dateEnv,e.allDay)),{allDay:e.allDay})),r}function Dr(t,n,e){var r=e.dateEnv,i=e.options,o=n;return t?(o=Sn(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function Nr(t,n,e,r){var i=cr(t.defs,n),o={defs:{},instances:{}};for(var a in t.defs)o.defs[a]=Sr(t.defs[a],i[a],e,r);for(var s in t.instances){var u=t.instances[s];o.instances[s]=Cr(u,o.defs[u.defId],i[u.defId],e,r)}return o}function Sr(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 Cr(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=Xe(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:Dr(n.allDay,c.range.start,i)}),n.allDay&&(c.range={start:Sn(c.range.start),end:Sn(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Dr(n.allDay,c.range.start,i)),c}var Tr=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}(),_r={id:String,defaultAllDay:Boolean,url:String,format:String,events:Re,eventDataTransform:Re,success:Re,failure:Re};function Mr(t,n,e){var r;if(void 0===e&&(e=Rr(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=Me(r,e),o=i.refined,a=i.extra,s=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(s)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:dn(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Ue(o,n),extendedProps:a}}return null}function Rr(t){return u(u(u({},Oe),_r),t.pluginHooks.eventSourceRefiners)}function Br(t,n){return"function"==typeof t&&(t=t()),null==t?n.createNowMarker():n.createMarker(t)}var Ir=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,c([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=r.toolbarConfig,a=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(var s in i)a.push(s);for(n=0;n<a.length;n+=1)if((e=i[a[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:Br(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=Jn(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),ke(n))},t.prototype.formatRange=function(t,n,e){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(t),r.createMarker(n),ke(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=Me(t,yr),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,Jn({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Er(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 zr){var e=t._def,r=t._instance;return this.getCurrentData().eventStore.defs[e.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Ie({def:e,instance:r})}),this.triggerEventAdd(t)),t}var i,o=this.getCurrentData();if(n instanceof Zt)i=n.internalEventSource;else if("boolean"==typeof n)n&&(i=Fn(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 s=Ye(t,i,o,!1);if(s){var u=new zr(o,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ie(s)}),this.triggerEventAdd(u),u}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:Pr(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 zr(n,a,null);for(var s in i){var u=i[s];if(u.defId===a.defId)return new zr(n,a,u)}}}return null},t.prototype.getEvents=function(){var t=this.getCurrentData();return Hr(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 Zt(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 Zt(n,e[r]);return null},t.prototype.addEventSource=function(t){var n=this.getCurrentData();if(t instanceof Zt)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;var e=Mr(t,n);return e?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e]}),new Zt(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=Jn(t);n&&this.trigger("_scrollRequest",{time:n})},t}(),zr=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 Le)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===t)n=Ge[t](n),this.mutate({standardProps:{publicId:n}});else if(t in Ge)n=Ge[t](n),this.mutate({standardProps:(e={},e[t]=n,e)});else if(t in Oe){var i=Oe[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=Ke(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=Ke(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,s={allDay:e.allDay},u=a.createMarker(t);if(u&&(null==n||(r=a.createMarker(n)))&&this._instance){var c=this._instance.range;!0===e.allDay&&(c=Xe(c));var l=Ke(c.start,u,a,e.granularity);if(r){var f=Ke(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:s}:{startDelta:l,endDelta:f,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:l,standardProps:s})}},t.prototype.moveStart=function(t){var n=Jn(t);n&&this.mutate({startDelta:n})},t.prototype.moveEnd=function(t){var n=Jn(t);n&&this.mutate({endDelta:n})},t.prototype.moveDates=function(t){var n=Jn(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=ke(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=ze(o,e.instanceId);a=Nr(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},n,i);var s=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:s,event:this,relatedEvents:Hr(a,i,e),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},t.prototype.remove=function(){var t=this._context,n=Pr(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 Zt(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 Pr(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 Hr(t,n,e){var r=t.defs,i=t.instances,o=[],a=e?e.instanceId:"";for(var s in i){var u=i[s];u.instanceId!==a&&o.push(new zr(n,r[u.defId],u))}return o}var Qr={},Or=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 Bn(t)},t.prototype.markerToArray=function(t){return Rn(t)},t}();Qr.gregory=Or;var Vr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/,Ur=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 Qr[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.weekTextLong=(null!=t.weekTextLong?t.weekTextLong:t.locale.options.weekTextLong)||this.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()):Bn(_n(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=Bn(t)),null!==n&&In(n)?{marker:n,isTimeUnspecified:!1,forcedTzo:null}:null},t.prototype.parse=function(t){var n=function(t){var n=Vr.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(In(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 zn(t)===zn(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 zn(t)===zn(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}:(e=function(t,n){var e=Nn(t,n);return null!==e&&e%7==0?e/7:null}(t,n),null!==e?{unit:"week",value:e}:null!==(e=Nn(t,n))?{unit:"day",value:e}:(e=function(t,n){return(n.valueOf()-t.valueOf())/36e5}(t,n),An(e)?{unit:"hour",value:e}:(e=function(t,n){return(n.valueOf()-t.valueOf())/6e4}(t,n),An(e)?{unit:"minute",value:e}:(e=function(t,n){return(n.valueOf()-t.valueOf())/1e3}(t,n),An(e)?{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/(Kn(e)/365):e.months&&null!==(r=this.diffWholeMonths(t,n))?r/(Kn(e)/30):e.days&&null!==(r=Nn(t,n))?r/Kn(e):(n.valueOf()-t.valueOf())/te(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?Sn(t):"hour"===n?function(t){return Bn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}(t):"minute"===n?function(t){return Bn([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}(t):"second"===n?function(t){return Bn([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=Cn(t,r,n,e);if(i<1)return Cn(t,r-1,n,e);var o=Cn(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=xn(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)),re(t,e,n.omitTime)},t.prototype.timestampToMarker=function(t){return"local"===this.timeZone?Bn(_n(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Bn(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)},t.prototype.offsetForMarker=function(t){return"local"===this.timeZone?-Mn(Rn(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Rn(t)):null},t.prototype.toDate=function(t,n){return"local"===this.timeZone?Mn(Rn(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Rn(t))*60):new Date(t.valueOf()-(n||0))},t}(),Fr=[],jr={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Gr=u(u({},jr),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(t,n){return"day"===n?"Today":"This "+t}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(t){return"Show "+t+" more event"+(1===t?"":"s")}});function Lr(t){for(var n=t.length>0?t[0].code:"en",e=Fr.concat(t),r={en:Gr},i=0,o=e;i<o.length;i++){var a=o[i];r[a.code]=a}return{map:r,defaultCode:n}}function Wr(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)||Gr;return Yr(t,e,r)}(t,n):Yr(t.code,[t.code],t)}function Yr(t,n,e){var r=Qn([jr,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 Zr,qr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Jr(t,n){return t.left>=n.left&&t.left<n.right&&t.top>=n.top&&t.top<n.bottom}function Xr(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 $r(){return null==Zr&&(Zr=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}()),Zr}var Kr={defs:{},instances:{}},ti=function(){function t(){this.getKeysForEventDefs=se(this._getKeysForEventDefs),this.splitDateSelection=se(this._splitDateSpan),this.splitEventStore=se(this._splitEventStore),this.splitIndividualUi=se(this._splitIndividualUi),this.splitEventDrag=se(this._splitInteraction),this.splitEventResize=se(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),s=this.splitEventDrag(t.eventDrag),u=this.splitEventResize(t.eventResize),c={};for(var l in this.eventUiBuilders=Vn(e,(function(t,e){return n.eventUiBuilders[e]||se(ni)})),e){var f=e[l],d=a[l]||Kr;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:s[l]||null,eventResize:u[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 Vn(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,s=n[o];a<s.length;a++)i[d=s[a]]||(i[d]={defs:{},instances:{}}),i[d].defs[o]=e[o];for(var u in r)for(var c=r[u],l=0,f=n[c.defId];l<f.length;l++){var d;i[d=f[l]]&&(i[d].instances[u]=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]||Kr,mutatedEvents:i[r]||Kr,isEvent:t.isEvent})};for(var a in e)o(a);for(var a in i)o(a)}return n},t}();function ni(t,n,e){var r=[];t&&r.push(t),n&&r.push(n);var i={"":Fe(r)};return e&&u(i,e),i}function ei(t,n,e,r){return{dow:t.getUTCDay(),isDisabled:Boolean(r&&!or(r.activeRange,t)),isOther:Boolean(r&&!or(r.currentRange,t)),isToday:Boolean(n&&or(n,t)),isPast:Boolean(e?t<e:!!n&&t<n.start),isFuture:Boolean(e?t>e:!!n&&t>=n.end)}}function ri(t,n){var e=["fc-day","fc-day-"+wn[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}var ii=ke({year:"numeric",month:"long",day:"numeric"}),oi=ke({week:"long"});function ai(t,n,e,r){void 0===e&&(e="day"),void 0===r&&(r=!0);var i=t.dateEnv,o=t.options,a=t.calendarApi,s=i.format(n,"week"===e?oi:ii);if(o.navLinks){var c=i.toDate(n),l=function(t){var r="day"===e?o.navLinkDayClick:"week"===e?o.navLinkWeekClick:null;"function"==typeof r?r.call(a,i.toDate(n),t):("string"==typeof r&&(e=r),a.zoomTo(n,e))};return u({title:pn(o.navLinkHint,[s,c],s),"data-navlink":""},r?cn(l):{onClick:l})}return{"aria-label":s}}var si,ui=null;function ci(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function li(t,n,e){void 0===n&&(n=!1);var r=e?t.getBoundingClientRect():fi(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,s=ci(t),u=s.y-r-i,c={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:s.x-o-a,scrollbarLeft:0,scrollbarRight:0};return null===ui&&(ui=function(){var t=document.createElement("div");Kt(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 qt(t),n}()),ui&&"rtl"===e.direction?c.scrollbarLeft=u:c.scrollbarRight=u,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 fi(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 di(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 hi=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=0,i=[].concat(this.options&&this.options[t]||[],this.handlers[t]||[]);r<i.length;r++)i[r].apply(this.thisContext,n)},t.prototype.hasHandlers=function(t){return Boolean(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])},t}(),vi=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}(),gi=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}(),mi=function(t){function n(n){var e=t.call(this)||this;return e.el=n,e}return s(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}(gi),pi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(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}(gi),bi=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}();bi.prototype.classes={},bi.prototype.iconClasses={},bi.prototype.baseIconClass="",bi.prototype.iconOverridePrefix="";var Ai=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}(),yi=Gt({});function wi(t,n,e,r,i,o,a,s,u,c,l,f,d){return{dateEnv:i,options:e,pluginHooks:a,emitter:c,dispatch:s,getCurrentData:u,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 Ai(t,c,Jn(e.scrollTime),e.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:d}}var ki=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.shouldComponentUpdate=function(t,n){return this.debug&&console.log(Gn(t,this.props),Gn(n,this.state)),!Ln(this.props,t,this.propEquality)||!Ln(this.state,n,this.stateEquality)},n.addPropsEquality=xi,n.addStateEquality=Di,n.contextType=yi,n}(Ot);ki.prototype.propEquality={},ki.prototype.stateEquality={};var Ei=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.contextType=yi,n}(ki);function xi(t){var n=Object.create(this.prototype.propEquality);u(n,t),this.prototype.propEquality=n}function Di(t){var n=Object.create(this.prototype.stateEquality);u(n,t),this.prototype.stateEquality=n}function Ni(t,n){"function"==typeof t?t(n):t&&(t.current=n)}var Si=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.uid=dn(),n}return s(n,t),n.prototype.prepareHits=function(){},n.prototype.queryHit=function(){return null},n.prototype.isValidSegDownEl=function(t){return!this.props.eventDrag&&!this.props.eventResize&&!Jt(t,".fc-event-mirror")},n.prototype.isValidDateDownEl=function(t){return!(Jt(t,".fc-event:not(.fc-bg-event)")||Jt(t,".fc-more-link")||Jt(t,"a[data-navlink]")||Jt(t,".fc-popover"))},n}(Ei);function Ci(t){return{id:dn(),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 Ti=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n}(bi);function _i(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=_i(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}Ti.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ti.prototype.baseIconClass="fc-icon",Ti.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"},Ti.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ti.prototype.iconOverrideOption="buttonIcons",Ti.prototype.iconOverrideCustomButtonOption="icon",Ti.prototype.iconOverridePrefix="fc-icon-";var Mi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.rootElRef=Ft(),n.handleRootEl=function(t){Ni(n.rootElRef,t),n.props.elRef&&Ni(n.props.elRef,t)},n}return s(n,t),n.prototype.render=function(){var t=this,n=this.props,e=n.hookProps;return Vt(zi,{hookProps:e,didMount:n.didMount,willUnmount:n.willUnmount,elRef:this.handleRootEl},(function(r){return Vt(Bi,{hookProps:e,content:n.content,defaultContent:n.defaultContent,backupElRef:t.rootElRef},(function(t,i){return n.children(r,Hi(n.classNames,e),t,i)}))}))},n}(Ei),Ri=Gt(0);function Bi(t){return Vt(Ri.Consumer,null,(function(n){return Vt(Ii,u({renderId:n},t))}))}var Ii=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.innerElRef=Ft(),n}return s(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=Qi(t.content,t.hookProps);return void 0===n&&(n=Qi(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}(Ei),zi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleRootEl=function(t){n.rootEl=t,n.props.elRef&&Ni(n.props.elRef,t)},n}return s(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}(Ei);function Pi(){var t,n,e=[];return function(r,i){return n&&jn(n,i)&&r===t||(t=r,n=i,e=Hi(r,i)),e}}function Hi(t,n){return"function"==typeof t&&(t=t(n)),Qe(t)}function Qi(t,n){return"function"==typeof t?t(n,Vt):t}var Oi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.normalizeClassNames=Pi(),n}return s(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 Vt(zi,{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}(Ei);function Vi(t){return Vn(t,Ui)}function Ui(t){var n,e="function"==typeof t?{component:t}:t,r=e.component;return e.content&&(n=e,r=function(t){return Vt(yi.Consumer,null,(function(e){return Vt(Oi,{viewSpec:e.viewSpec},(function(r,i){var o=u(u({},t),{nextDayThreshold:e.options.nextDayThreshold});return Vt(Mi,{hookProps:o,classNames:n.classNames,content:n.content,didMount:n.didMount,willUnmount:n.willUnmount,elRef:r},(function(t,n,e,r){return Vt("div",{className:i.concat(n).join(" "),ref:t},r)}))}))}))}),{superType:e.type,component:r,rawOptions:e}}function Fi(t,n,e,r){var i=Vi(t),o=Vi(n.views),a=function(t,n){var e,r={};for(e in t)_i(e,r,t,n);for(e in n)_i(e,r,t,n);return r}(i,o);return Vn(a,(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=ji[n];return void 0===e&&(e=Jn(t),ji[n]=e),e}(o),a)){var f=ee(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},h=function(n){var e=n.buttonHints||{},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(xe)||t.type,buttonTitleOverride:h(r)||h(e)||t.overrides.buttonHint,buttonTitleDefault:h(i)||t.defaults.buttonHint||h(xe)}}(t,o,n,e,r)}))}var ji={},Gi=function(){function t(t){this.props=t,this.nowDate=Br(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,s,u,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),s=a=this.trimHiddenDays(a),f.showNonCurrentDates||(s=er(s,i.range)),s=er(s=this.adjustActiveRange(s),r),u=rr(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:s,renderRange:a,slotMinTime:f.slotMinTime,slotMaxTime:f.slotMaxTime,isValid:u,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=ee(i=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:a}},t.prototype.getFallbackDuration=function(){return Jn({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&&(Kn(r)<0&&(o=Sn(o),o=e.add(o,r)),Kn(i)>1&&(a=En(a=Sn(a),-1),a=e.add(a,i))),{start:o,end:a}},t.prototype.buildRangeFromDuration=function(t,n,e,r){var i,o,a,s=this.props,u=s.dateEnv,c=s.dateAlignment;if(!c){var l=this.props.dateIncrement;c=l&&te(l)<te(e)?ee(l).unit:r}function f(){i=u.startOf(t,c),o=u.add(i,e),a={start:i,end:o}}return Kn(e)<=1&&this.isHiddenDay(i)&&(i=Sn(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,s=t;o&&(s=i.dateEnv.startOf(s,o)),s=Sn(s),r=s=this.skipHiddenDays(s,n);do{r=En(r,1),this.isHiddenDay(r)||(a+=1)}while(a<e);return{start:s,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)?Jn(1,n):t||Jn({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=$e(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=En(t,n);return t},t}();function Li(t){for(var n in t)if(t[n].isFetching)return!0;return!1}function Wi(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=Yi(i,e,r)),u(u({},t),i)}function Yi(t,n,e){return Zi(t,On(t,(function(t){return function(t,n,e){return Xi(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 Zi(t,n,e,r,i){var o={};for(var a in t){var s=t[a];o[a]=n[a]?qi(s,e,r,i):s}return o}function qi(t,n,e,r){var i=r.options,o=r.calendarApi,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],s=dn();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 On(t,(function(t){return Xi(t,n)}))}function Xi(t,n){return!n.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function $i(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 Ki(t,n){return He(t,(function(t){return t.sourceId!==n}))}function to(t,n){switch(n.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return n.selection;default:return t}}function no(t,n){switch(n.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return n.eventInstanceId;default:return t}}function eo(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 ro(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 io(t,n,e,r,i){return{header:t.headerToolbar?oo(t.headerToolbar,t,n,e,r,i):null,footer:t.footerToolbar?oo(t.footerToolbar,t,n,e,r,i):null}}function oo(t,n,e,r,i,o){var a={},s=[],u=!1;for(var c in t){var l=ao(t[c],n,e,r,i,o);a[c]=l.widgets,s.push.apply(s,l.viewsWithButtons),u=u||l.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:u}}function ao(t,n,e,r,i,o){var a="rtl"===n.direction,s=n.customButtons||{},u=e.buttonText||{},c=n.buttonText||{},l=e.buttonHints||{},f=n.buttonHints||{},d=t?t.split(" "):[],h=[],v=!1;return{widgets:d.map((function(t){return t.split(",").map((function(t){if("title"===t)return v=!0,{buttonName:t};var e,d,g,m,p,b;if(e=s[t])g=function(t){e.click&&e.click.call(t.target,t,t.target)},(m=r.getCustomButtonIconClass(e))||(m=r.getIconClass(t,a))||(p=e.text),b=e.hint||e.text;else if(d=i[t]){h.push(t),g=function(){o.changeView(t)},(p=d.buttonTextOverride)||(m=r.getIconClass(t,a))||(p=d.buttonTextDefault);var A=d.buttonTextOverride||d.buttonTextDefault;b=pn(d.buttonTitleOverride||d.buttonTitleDefault||n.viewHint,[A,t],A)}else if(o[t])if(g=function(){o[t]()},(p=u[t])||(m=r.getIconClass(t,a))||(p=c[t]),"prevYear"===t||"nextYear"===t){var y="prevYear"===t?"prev":"next";b=pn(l[y]||f[y],[c.year||"year","year"],c[t])}else b=function(n){return pn(l[t]||f[t],[c[n]||n,n],c[t])};return{buttonName:t,buttonClick:g,buttonIcon:m,buttonText:p,buttonHint:b}}))})),viewsWithButtons:h,hasTitle:v}}function so(t){var n=[];for(var e in t)n.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n.join("&")}function uo(t,n){for(var e=Fn(n.getCurrentData().eventSources),r=[],i=0,o=t;i<o.length;i++){for(var a=o[i],s=!1,u=0;u<e.length;u+=1)if(e[u]._raw===a){e.splice(u,1),s=!0;break}s||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 co=[Ci({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(t){return Array.isArray(t.events)?t.events:null},fetch:function(t,n){n({rawEvents:t.eventSource.meta})}}]}),Ci({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,wr(t.range,t.context.dateEnv)),(function(t){n({rawEvents:t})}),e)}}]}),Ci({eventSourceRefiners:{method:String,extraParams:Re,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("?")?"?":"&")+so(n)}(n,e):o=so(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})}))}}]}),Ci({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=er(n,{start:t.startRecur,end:t.endRecur});return r?function(t,n,e,r){for(var i=t?Un(t):null,o=Sn(e.start),a=e.end,s=[];o<a;){var u=void 0;i&&!i[o.getUTCDay()]||(u=n?r.add(o,n):o,s.push(u)),o=En(o,1)}return s}(t.daysOfWeek,t.startTime,r,e):[]}}],eventRefiners:{daysOfWeek:Re,startTime:Jn,endTime:Jn,duration:Jn,startRecur:Re,endRecur:Re}}),Ci({optionChangeHandlers:{events:function(t,n){uo([t],n)},eventSources:uo}}),Ci({isLoadingFuncs:[function(t){return Li(t.eventSources)}],contentTypeHandlers:{html:function(){var t=null,n="";return{render:function(e,r){e===t&&r===n||(e.innerHTML=r),t=e,n=r},destroy:function(){t.innerHTML="",t=null,n=""}}},domNodes:function(){var t=null,n=[];function e(){n.forEach(qt),n=[],t=null}return{render:function(r,i){var o=Array.prototype.slice.call(i);if(r!==t||!ae(n,o)){for(var a=0,s=o;a<s.length;a++)r.appendChild(s[a]);e()}t=r,n=o},destroy:e}}},propSetHandlers:{dateProfile:function(t,n){n.emitter.trigger("datesSet",u(u({},wr(t.activeRange,n.dateEnv)),{view:n.viewApi}))},eventStore:function(t,n){var e=n.emitter;e.hasHandlers("eventsSet")&&e.trigger("eventsSet",Hr(t,n))}}})],lo=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}(),fo=function(){function t(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new lo(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 ho(t,n,e){var r;return r=/^(year|month)$/.test(t.currentRangeUnit)?t.currentRange:t.activeRange,e.formatRange(r.start,r.end,ke(n.titleFormat||function(t){var n=t.currentRangeUnit;if("year"===n)return{year:"numeric"};if("month"===n)return{year:"numeric",month:"long"};var e=Nn(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 vo=function(){function t(t){var n,e,r,i=this;this.computeOptionsData=se(this._computeOptionsData),this.computeCurrentViewData=se(this._computeCurrentViewData),this.organizeRawLocales=se(Lr),this.buildLocale=se(Wr),this.buildPluginHooks=(e=[],r=[],function(t,i){return n&&ae(t,e)&&ae(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=se(go),this.buildTheme=se(mo),this.parseToolbars=se(io),this.buildViewSpecs=se(Fi),this.buildDateProfileGenerator=ue(po),this.buildViewApi=se(bo),this.buildViewUiProps=ue(wo),this.buildEventUiBySource=se(Ao,jn),this.buildEventUiBases=se(yo),this.parseContextBusinessHours=ue(Eo),this.buildTitle=se(ho),this.emitter=new hi,this.actionRunner=new fo(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):Br(l.now,f)),v=c.dateProfileGenerator.build(h);or(v.activeRange,h)||(h=v.currentRange.start);for(var g={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},m=0,p=a.pluginHooks.contextInit;m<p.length;m++)(0,p[m])(g);for(var b=function(t,n,e){var r=n?n.activeRange:null;return Wi({},function(t,n){var e=Rr(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 s=Mr(a[o],n,e);s&&i.push(s)}return i}(t,e),r,e)}(a.calendarOptions,v,g),A={dynamicOptionOverrides:o,currentViewType:s,currentDate:h,dateProfile:v,businessHours:this.parseContextBusinessHours(g),eventSources:b,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(g).selectionConfig},y=u(u({},g),A),w=0,k=a.pluginHooks.reducers;w<k.length;w++)u(A,(0,k[w])(null,null,y));ko(A,g)&&this.emitter.trigger("loading",!0),this.state=A,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;return"SET_OPTION"===n.type?u(u({},t),((e={})[n.optionName]=n.rawOptionValue,e)):t}(r.dynamicOptionOverrides,t),a=this.computeOptionsData(e.optionOverrides,o,e.calendarApi),s=function(t,n){return"CHANGE_VIEW_TYPE"===n.type&&(t=n.viewType),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)),f=function(t,n){return"CHANGE_DATE"===n.type?n.dateMarker:t}(f,t),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,c.dateProfileGenerator),"PREV"!==t.type&&"NEXT"!==t.type&&or(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 Wi(t,n.sources,o,r);case"REMOVE_EVENT_SOURCE":return i=n.sourceId,On(t,(function(t){return t.sourceId!==i}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return e?Yi(t,o,r):t;case"FETCH_EVENT_SOURCES":return Zi(t,n.sourceIds?Un(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=Be(function(t,n,e){var r=e.options.eventDataTransform,i=n?n.eventDataTransform:null;return i&&(t=$i(t,i)),r&&(t=$i(t,r)),t}(i,n,o),n,o);return r&&(a=Wn(a,r,o)),Pe(Ki(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=Wn(n,e,r)),Pe(t,n)}(t,n.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return n.eventStore;case"MERGE_EVENTS":return Pe(t,n.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Wn(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 s in r)!n.instances[s]&&i[r[s].defId]&&(o[s]=r[s]);return{defs:i,instances:o}}(t,n.eventStore);case"REMOVE_EVENT_SOURCE":return Ki(t,n.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return He(t,(function(t){return!t.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return t}}(r.eventStore,t,h,d,l),g=Li(h)&&!c.options.progressiveEventRendering&&r.renderableEventStore||v,m=this.buildViewUiProps(l),p=m.eventUiSingleBase,b=m.selectionConfig,A=this.buildEventUiBySource(h),y={dynamicOptionOverrides:o,currentViewType:s,currentDate:f,dateProfile:d,eventSources:h,eventStore:v,renderableEventStore:g,selectionConfig:b,eventUiBases:this.buildEventUiBases(g.defs,p,A),businessHours:this.parseContextBusinessHours(l),dateSelection:to(r.dateSelection,t),eventSelection:no(r.eventSelection,t),eventDrag:eo(r.eventDrag,t),eventResize:ro(r.eventResize,t)},w=u(u({},l),y),k=0,E=a.pluginHooks.reducers;k<E.length;k++)u(y,(0,E[k])(r,t,w));var x=ko(r,l),D=ko(y,l);!x&&D?i.trigger("loading",!0):x&&!D&&i.trigger("loading",!1),this.state=y,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),g=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),m=h.pluginHooks.optionChangeHandlers,p=d&&d.calendarOptions,b=h.calendarOptions;if(p&&p!==b)for(var A in p.timeZone!==b.timeZone&&(f.eventSources=g.eventSources=(c=(a=f.dateProfile)?a.activeRange:null,Zi(o=g.eventSources,Ji(o,s=g),c,!0,s)),f.eventStore=g.eventStore=(n=d.dateEnv,e=g.dateEnv,r=(t=g.eventStore).defs,i=Vn(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})),m)p[A]!==b[A]&&m[A](b[A],g);l.onData&&l.onData(g)},t.prototype._computeOptionsData=function(t,n,e){var r=this.processRawCalendarOptions(t,n),i=r.refinedOptions,o=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData;xo(r.extra);var u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,s,i.defaultRangeSeparator),c=this.buildViewSpecs(o.views,t,n,a),l=this.buildTheme(i,o);return{calendarOptions:i,pluginHooks:o,dateEnv:u,viewSpecs:c,theme:l,toolbarConfig:this.parseToolbars(i,t,l,c,e),localeDefaults:a,availableRawLocales:s.map}},t.prototype.processRawCalendarOptions=function(t,n){var e=_e([xe,t,n]),r=e.locale,i=this.organizeRawLocales(e.locales),o=this.buildLocale(r||i.defaultCode,i.map).options,a=this.buildPluginHooks(t.plugins||[],co),s=this.currentCalendarOptionsRefiners=u(u(u(u(u({},Ee),De),Ne),a.listenerRefiners),a.optionRefiners),c={},l=_e([xe,o,t,n]),f={},d=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,v=!1;for(var g in l)"plugins"!==g&&(l[g]===d[g]||Se[g]&&g in d&&Se[g](d[g],l[g])?f[g]=h[g]:s[g]?(f[g]=s[g](l[g]),v=!0):c[g]=d[g]);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 xo(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=_e([xe,t.optionDefaults,e,r,t.optionOverrides,i]),a=u(u(u(u(u(u({},Ee),De),Ne),Te),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 go(t,n,e,r,i,o,a,s){var u=Wr(n||a.defaultCode,a.map);return new Ur({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:u,weekNumberCalculation:e,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function mo(t,n){return new(n.themeClasses[t.themeSystem]||Ti)(t)}function po(t){return new(t.dateProfileGeneratorClass||Gi)(t)}function bo(t,n,e){return new Tr(t,n,e)}function Ao(t){return Vn(t,(function(t){return t.ui}))}function yo(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 wo(t){var n=t.options;return{eventUiSingleBase:Ue({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:Ue({constraint:n.selectConstraint,overlap:"boolean"==typeof n.selectOverlap?n.selectOverlap:void 0,allow:n.selectAllow},t)}}function ko(t,n){for(var e=0,r=n.pluginHooks.isLoadingFuncs;e<r.length;e++)if((0,r[e])(t))return!0;return!1}function Eo(t){return n=t,Be(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({},qr),t)}))}(t.options.businessHours),null,n);var n}function xo(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 vo({optionOverrides:n.optionOverrides,calendarApi:n.calendarApi,onData:e.handleData}),e}s(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)}}(Ot);var Do=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,c([{index:t.index,thickness:t.thickness,span:Co(a,o)}],i)),r):(e.push(t),0)},t.prototype.insertEntryAt=function(t,n){var e=this.entriesByLevel;-1===n.lateral?(To(this.levelCoords,n.level,n.levelCoord),To(e,n.level,[t])):To(e[n.level],n.lateral,t),this.stackCnts[So(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,s=0,u=-1,c=-1,l=null,f=0,d=0;d<a;d+=1){var h=e[d];if(!i&&h>=s+t.thickness)break;for(var v=r[d],g=void 0,m=_o(v,t.span.start,No),p=m[0]+m[1];(g=v[p])&&g.span.start<t.span.end;){var b=h+g.thickness;b>s&&(s=b,l=g,u=d,c=p),b===s&&(f=Math.max(f,o[So(g)]+1)),p+=1}}var A=0;if(l)for(A=u+1;A<a&&e[A]<s;)A+=1;var y=-1;return A<a&&e[A]===s&&(y=_o(r[A],t.span.end,No)[0]),{touchingLevel:u,touchingLateral:c,touchingEntry:l,stackCnt:f,levelCoord:s,level:A,lateral:y}},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 No(t){return t.span.end}function So(t){return t.index+":"+t.span.start}function Co(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 To(t,n,e){t.splice(n,0,e)}function _o(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 Mo=function(){function t(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}return t.prototype.destroy=function(){},t}();function Ro(t){var n;return(n={})[t.component.uid]=t,n}var Bo={},Io=function(){function t(){this.emitter=new hi}return t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(){},t.prototype.setMirrorNeedsRevert=function(){},t.prototype.setAutoScrollEnabled=function(){},t}(),zo={},Po=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t=this,n=this.props.widgetGroups.map((function(n){return t.renderWidgetGroup(n)}));return Vt.apply(void 0,c(["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 s=a[o],u=s.buttonName,l=s.buttonClick,f=s.buttonText,d=s.buttonIcon,h=s.buttonHint;if("title"===u)i=!1,r.push(Vt("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{var v=u===n.activeButton,g=!n.isTodayEnabled&&"today"===u||!n.isPrevEnabled&&"prev"===u||!n.isNextEnabled&&"next"===u,m=["fc-"+u+"-button",e.getClass("button")];v&&m.push(e.getClass("buttonActive")),r.push(Vt("button",{type:"button",title:"function"==typeof h?h(n.navUnit):h,disabled:g,"aria-pressed":v,className:m.join(" "),onClick:l},f||(d?Vt("span",{className:d}):"")))}}if(r.length>1){var p=i&&e.getClass("buttonGroup")||"";return Vt.apply(void 0,c(["div",{className:p}],r))}return r[0]},n}(Ei),Ho=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t,n,e=this.props,r=!1,i=e.model.sectionWidgets,o=i.center;return i.left?(r=!0,t=i.left):t=i.start,i.right?(r=!0,n=i.right):n=i.end,Vt("div",{className:[e.extraClassName||"","fc-toolbar",r?"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 Vt(Po,{key:t,widgetGroups:n,title:e.title,navUnit:e.navUnit,activeButton:e.activeButton,isTodayEnabled:e.isTodayEnabled,isPrevEnabled:e.isPrevEnabled,isNextEnabled:e.isNextEnabled,titleId:e.titleId})},n}(Ei),Qo=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,Ni(n.props.elRef,t),n.updateAvailableWidth()},n.handleResize=function(){n.updateAvailableWidth()},n}return s(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||"",Vt("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,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}(Ei),Oo=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=ur(n);if(o&&r.isValidSegDownEl(t.target)){var a=Jt(t.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:n,event:new zr(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:i.viewApi}),s&&!t.defaultPrevented&&(window.location.href=s)}},e.destroy=sn(n.el,"click",".fc-event",e.handleSegClick),e}return s(n,t),n}(Mo),Vo=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){ur(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,sn(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 s(n,t),n.prototype.destroy=function(){this.removeHoverListeners()},n.prototype.triggerEvent=function(t,n,e){var r=this.component,i=r.context,o=ur(e);n&&!r.isValidSegDownEl(n.target)||i.emitter.trigger(t,{el:e,event:new zr(i,o.eventRange.def,o.eventRange.instance),jsEvent:n,view:i.viewApi})},n}(Mo),Uo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buildViewContext=se(wi),n.buildViewPropTransformers=se(jo),n.buildToolbarProps=se(Fo),n.headerRef=Ft(),n.footerRef=Ft(),n.interactionsStore={},n.state={viewLabelId:on()},n.registerInteractiveComponent=function(t,e){var r=function(t,n){return{component:t,el:n.el,useEventCenter:null==n.useEventCenter||n.useEventCenter,isHitComboAllowed:n.isHitComboAllowed||null}}(t,e),i=[Oo,Vo].concat(n.props.pluginHooks.componentInteractions).map((function(t){return new t(r)}));n.interactionsStore[t.uid]=i,Bo[t.uid]=r},n.unregisterInteractiveComponent=function(t){var e=n.interactionsStore[t.uid];if(e){for(var r=0,i=e;r<i.length;r++)i[r].destroy();delete n.interactionsStore[t.uid]}delete Bo[t.uid]},n.resizeRunner=new lo((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 s(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,Br(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),c=e.header&&e.header.hasTitle?this.state.viewLabelId:"";return Vt(yi.Provider,{value:s},e.header&&Vt(Ho,u({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:e.header,titleId:c},i)),Vt(Qo,{liquid:o,height:a,aspectRatio:t,labeledById:c},this.renderView(n),this.buildAppendContent()),e.footer&&Vt(Ho,u({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:e.footer,titleId:""},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.buildAppendContent=function(){var t=this.props,n=t.pluginHooks.viewContainerAppends.map((function(n){return n(t)}));return Vt.apply(void 0,c([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 Vt(n.component,u({},e))},n}(ki);function Fo(t,n,e,r,i,o){var a=e.build(i,void 0,!1),s=e.buildPrev(n,r,!1),u=e.buildNext(n,r,!1);return{title:o,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!or(n.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:u.isValid}}function jo(t){return t.map((function(t){return new t}))}var Go=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 s(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 $r()||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}(Ei),Lo="fc-col-header-cell";function Wo(t){return t.text}var Yo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(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=ei(a,o.todayRange,null,o.dateProfile),c=[Lo].concat(ri(s,r)),l=n.format(a,o.dayHeaderFormat),f=!s.isDisabled&&o.colCnt>1?ai(this.context,a):{},d=u(u(u({date:n.toDate(a),view:i},o.extraHookProps),{text:l}),s);return Vt(Mi,{hookProps:d,classNames:e.dayHeaderClassNames,content:e.dayHeaderContent,defaultContent:Wo,didMount:e.dayHeaderDidMount,willUnmount:e.dayHeaderWillUnmount},(function(t,n,e,r){return Vt("th",u({ref:t,role:"columnheader",className:c.concat(n).join(" "),"data-date":s.isDisabled?void 0:ie(a),colSpan:o.colSpan},o.extraDataAttrs),Vt("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&Vt("a",u({ref:e,className:["fc-col-header-cell-cushion",o.isSticky?"fc-sticky":""].join(" ")},f),r)))}))},n}(Ei),Zo=ke({weekday:"long"}),qo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(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=En(new Date(2592e5),t.dow),s={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[Lo].concat(ri(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 Vt(Mi,{hookProps:f,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:Wo,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(function(n,r,i,o){return Vt("th",u({ref:n,role:"columnheader",className:c.concat(r).join(" "),colSpan:t.colSpan},t.extraDataAttrs),Vt("div",{className:"fc-scrollgrid-sync-inner"},Vt("a",{"aria-label":e.format(a,Zo),className:["fc-col-header-cell-cushion",t.isSticky?"fc-sticky":""].join(" "),ref:i},o)))}))},n}(Ei),Jo=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.initialNowDate=Br(e.options.now,e.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return s(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=xn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=n.dateEnv.startOf(e,t.unit),i=n.dateEnv.add(r,Jn(1,t.unit)),o=i.valueOf()-e.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:Xo(r)},nextState:{nowDate:i,todayRange:Xo(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=yi,n}(Ot);function Xo(t){var n=Sn(t);return{start:n,end:En(n,1)}}var $o=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.createDayHeaderFormatter=se(Ko),n}return s(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 Vt(Jo,{unit:"day"},(function(t,a){return Vt("tr",{role:"row"},i&&i("day"),n.map((function(t){return r?Vt(Yo,{key:t.toISOString(),date:t,dateProfile:e,todayRange:a,colCnt:n.length,dayHeaderFormat:o}):Vt(qo,{key:t.getUTCDay(),dow:t.getUTCDay(),dayHeaderFormat:o})})))}))},n}(Ei);function Ko(t,n,e){return t||function(t,n){return ke(!t||n>10?{weekday:"short"}:n>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(n,e)}var ta=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=En(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(En(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(Dn(this.dates[0],t));return e<0?n[0]-1:e>=n.length?n[n.length-1]+1:n[e]},t}(),na=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 s=Math.floor(a/n),u=Math.min((s+1)*n,o+1);r.push({row:s,firstCol:a%n,lastCol:(u-1)%n,isStart:e.isStart&&a===i,isEnd:e.isEnd&&u-1===o}),a=u}return r},t}(),ea=function(){function t(){this.sliceBusinessHours=se(this._sliceBusinessHours),this.sliceDateSelection=se(this._sliceDateSpan),this.sliceEventStore=se(this._sliceEventStore),this.sliceEventDrag=se(this._sliceInteraction),this.sliceEventResize=se(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,s=this.sliceEventStore.apply(this,c([t.eventStore,a,n,e],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,c([t.dateSelection,a,r],i)),businessHourSegs:this.sliceBusinessHours.apply(this,c([t.businessHours,n,e,r],i)),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag.apply(this,c([t.eventDrag,a,n,e],i)),eventResize:this.sliceEventResize.apply(this,c([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,c([{range:{start:t,end:xn(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,c([Wn(t,ra(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=ar(t,n,ra(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=ar(t.mutatedEvents,n,ra(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=function(t,n,e){var r=Ze({editable:!1},e),i=Je(r.refined,r.extra,"",t.allDay,!0,e);return{def:i,ui:lr(i,n),instance:Pn(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}(t,n,e),a=this.sliceRange.apply(this,c([t.range],r)),s=0,u=a;s<u.length;s++)u[s].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:En(e.start,1)});for(var r=this.sliceRange.apply(this,c([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 ra(t,n){var e=t.activeRange;return n?e:{start:xn(e.start,t.slotMinTime.milliseconds),end:xn(e.end,t.slotMaxTime.milliseconds-864e5)}}function ia(t,n,e){var r=t.mutatedEvents.instances;for(var i in r)if(!ir(n.validRange,r[i].range))return!1;return oa({eventDrag:t},e)}function oa(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||aa)(r,n)}function aa(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=cr(s,o.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(l=Vn(l,r));var f,d,h=(d=o.affectedEvents.instances,{defs:(f=t.eventStore).defs,instances:On(f.instances,(function(t){return!d[t.instanceId]}))}),v=h.defs,g=h.instances,m=cr(v,t.eventUiBases);for(var p in c){var b=c[p],A=b.range,y=l[b.defId],w=s[b.defId];if(!sa(y.constraints,A,h,t.businessHours,n))return!1;var k=n.options.eventOverlap,E="function"==typeof k?k:null;for(var x in g){var D=g[x];if(rr(A,D.range)){if(!1===m[D.defId].overlap&&o.isEvent)return!1;if(!1===y.overlap)return!1;if(E&&!E(new zr(n,v[D.defId],D),new zr(n,w,b)))return!1}}for(var N=i.eventStore,S=0,C=y.allows;S<C.length;S++){var T,_=C[S],M=u(u({},e),{range:b.range,allDay:w.allDay}),R=N.defs[w.defId];if(T=R?new zr(n,R,N.instances[p]):new zr(n,w),!_(xr(M,n),T))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)),!sa(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(rr(c,v.range)){if(!1===l.overlap)return!1;if(d&&!d(new zr(n,o[v.defId],v),null))return!1}}for(var g=0,m=l.allows;g<m.length;g++)if(!(0,m[g])(xr(u(u({},e),s),n),null))return!1;return!0}(t,n,e,r))}function sa(t,n,e,r,i){for(var o=0,a=t;o<a.length;o++)if(!la(ua(a[o],n,e,r,i),n))return!1;return!0}function ua(t,n,e,r,i){return"businessHours"===t?ca(Wn(r,n,i)):"string"==typeof t?ca(He(e,(function(n){return n.groupId===t}))):"object"==typeof t&&t?ca(Wn(t,n,i)):[]}function ca(t){var n=t.instances,e=[];for(var r in n)e.push(n[r].range);return e}function la(t,n){for(var e=0,r=t;e<r.length;e++)if(ir(r[e],n))return!0;return!1}var fa=/^(visible|hidden)$/,da=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.handleEl=function(t){n.el=t,Ni(n.props.elRef,t)},n}return s(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"),Vt("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(fa.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(fa.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 fa.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},n.prototype.getYScrollbarWidth=function(){return fa.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},n}(Ei),ha=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 Fn(this.currentMap)},t}();function va(t,n){return t.liquid&&n.liquid}function ga(t,n){return ae(t,n,jn)}function ma(t,n){for(var e=[],r=0,i=t;r<i.length;r++)for(var o=i[r],a=o.span||1,s=0;s<a;s+=1)e.push(Vt("col",{style:{width:"shrink"===o.width?pa(n):o.width||"",minWidth:o.minWidth||""}}));return Vt.apply(void 0,c(["colgroup",{}],e))}function pa(t){return null==t?4:t}function ba(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 Aa(t){return Vt("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function ya(t){var n=t.stickyHeaderDates;return null!=n&&"auto"!==n||(n="auto"===t.height||"auto"===t.viewHeight),n}function wa(t){var n=t.stickyFooterScrollbar;return null!=n&&"auto"!==n||(n="auto"===t.height||"auto"===t.viewHeight),n}var ka=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.processCols=se((function(t){return t}),ga),n.renderMicroColGroup=se(ma),n.scrollerRefs=new ha,n.scrollerElRefs=new ha(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 s(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),s=function(t,n){var e=["fc-scrollgrid",n.theme.getClass("table")];return t&&e.push("fc-scrollgrid-liquid"),e}(n.liquid,r);n.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");for(var u,l=i.length,f=0,d=[],h=[],v=[];f<l&&"header"===(u=i[f]).type;)d.push(this.renderSection(u,a,!0)),f+=1;for(;f<l&&"body"===(u=i[f]).type;)h.push(this.renderSection(u,a,!1)),f+=1;for(;f<l&&"footer"===(u=i[f]).type;)v.push(this.renderSection(u,a,!0)),f+=1;var g=!$r(),m={role:"rowgroup"};return Vt("table",{role:"grid",className:s.join(" "),style:{height:n.height}},Boolean(!g&&d.length)&&Vt.apply(void 0,c(["thead",m],d)),Boolean(!g&&h.length)&&Vt.apply(void 0,c(["tbody",m],h)),Boolean(!g&&v.length)&&Vt.apply(void 0,c(["tfoot",m],v)),g&&Vt.apply(void 0,c(c(c(["tbody",m],d),h),v)))},n.prototype.renderSection=function(t,n,e){return"outerContent"in t?Vt(jt,{key:t.key},t.outerContent):Vt("tr",{key:t.key,role:"presentation",className:ba(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk,e))},n.prototype.renderChunkTd=function(t,n,e,r){if("outerContent"in e)return e.outerContent;var i=this.props,o=this.state,a=o.forceYScrollbars,s=o.scrollerClientWidths,u=o.scrollerClientHeights,c=function(t,n){return null!=n.maxHeight||va(t,n)}(i,t),l=va(i,t),f=i.liquid?a?"scroll":c?"auto":"hidden":"visible",d=t.key,h=function(t,n,e,r){var i=e.expandRows;return"function"==typeof n.content?n.content(e):Vt("table",{role:"presentation",className:[n.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:i?e.clientHeight:""}},e.tableColGroupNode,Vt(r?"thead":"tbody",{role:"presentation"},"function"==typeof n.rowContent?n.rowContent(e):n.rowContent))}(t,e,{tableColGroupNode:n,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===s[d]?null:s[d],clientHeight:void 0!==u[d]?u[d]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return Vt(r?"th":"td",{ref:e.elRef,role:"presentation"},Vt("div",{className:"fc-scroller-harness"+(l?" fc-scroller-harness-liquid":"")},Vt(da,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:f,overflowX:i.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:l,liquidIsAbsolute:!0},h)))},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&&Ni(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=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=0,r=0,i=n;r<i.length;r++)e=Math.max(e,yn(i[r]));return Math.ceil(e)}(this.scrollerElRefs.getAll()):0},n.prototype.computeScrollerDims=function(){var t=(si||(si=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=ci(t);return document.body.removeChild(t),n}()),si),n=this.scrollerRefs,e=this.scrollerElRefs,r=!1,i={},o={};for(var a in n.currentMap){var s=n.currentMap[a];if(s&&s.needsYScrolling()){r=!0;break}}for(var u=0,c=this.props.sections;u<c.length;u++){var l=e.currentMap[a=c[u].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}(Ei);ka.addStateEquality({scrollerClientWidths:jn,scrollerClientHeights:jn});var Ea=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.elRef=Ft(),n}return s(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 zr(n,i.def,i.instance),view:n.viewApi,timeText:t.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!t.disableDragging&&hr(r,n),isStartResizable:!t.disableResizing&&vr(r,n),isEndResizable:!t.disableResizing&&gr(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)},s=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 Vt(Mi,{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,s.concat(e),r,i,a)}))},n.prototype.componentDidMount=function(){sr(this.elRef.current,this.props.seg)},n.prototype.componentDidUpdate=function(t){var n=this.props.seg;n!==t.seg&&sr(this.elRef.current,n)},n}(Ei),xa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=t.seg,r=mr(e,n.options.eventTimeFormat||t.defaultTimeFormat,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return Vt(Ea,{seg:e,timeText:r,disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||Da,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(r,i,o,a,s){return Vt("a",u({className:t.extraClassNames.concat(i).join(" "),style:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},ref:r},Ar(e,n)),Vt("div",{className:"fc-event-main",ref:o,style:{color:s.textColor}},a),s.isStartResizable&&Vt("div",{className:"fc-event-resizer fc-event-resizer-start"}),s.isEndResizable&&Vt("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},n}(Ei);function Da(t){return Vt("div",{className:"fc-event-main-frame"},t.timeText&&Vt("div",{className:"fc-event-time"},t.timeText),Vt("div",{className:"fc-event-title-container"},Vt("div",{className:"fc-event-title fc-sticky"},t.event.title||Vt(jt,null," "))))}var Na=function(t){return Vt(yi.Consumer,null,(function(n){var e=n.options,r={isAxis:t.isAxis,date:n.dateEnv.toDate(t.date),view:n.viewApi};return Vt(Mi,{hookProps:r,classNames:e.nowIndicatorClassNames,content:e.nowIndicatorContent,didMount:e.nowIndicatorDidMount,willUnmount:e.nowIndicatorWillUnmount},t.children)}))},Sa=ke({day:"numeric"}),Ca=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t=this.props,n=this.context,e=n.options,r=Ta({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv});return Vt(Bi,{hookProps:r,content:e.dayCellContent,defaultContent:t.defaultContent},t.children)},n}(Ei);function Ta(t){var n=t.date,e=t.dateEnv,r=ei(n,t.todayRange,null,t.dateProfile);return u(u(u({date:e.toDate(n),view:t.viewApi},r),{dayNumberText:t.showDayNumber?e.format(n,Sa):""}),t.extraProps)}var _a=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.refineHookProps=ue(Ta),n.normalizeClassNames=Pi(),n}return s(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=ri(r,n.theme).concat(r.isDisabled?[]:this.normalizeClassNames(e.dayCellClassNames,r)),o=r.isDisabled?{}:{"data-date":ie(t.date)};return Vt(zi,{hookProps:r,didMount:e.dayCellDidMount,willUnmount:e.dayCellWillUnmount,elRef:t.elRef},(function(n){return t.children(n,i,o,r.isDisabled)}))},n}(Ei);function Ma(t){return Vt("div",{className:"fc-"+t})}var Ra=function(t){return Vt(Ea,{defaultContent:Ba,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 Vt("div",{ref:t,className:["fc-bg-event"].concat(n).join(" "),style:{backgroundColor:i.backgroundColor}},r)}))};function Ba(t){return t.event.title&&Vt("div",{className:"fc-event-title"},t.event.title)}var Ia=function(t){return Vt(yi.Consumer,null,(function(n){var e=n.dateEnv,r=n.options,i=t.date,o=r.weekNumberFormat||t.defaultFormat,a=e.computeWeekNumber(i),s=e.format(i,o);return Vt(Mi,{hookProps:{num:a,text:s,date:i},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:za,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)}))};function za(t){return t.text}var Pa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={titleId:on()},n.handleRootEl=function(t){n.rootEl=t,n.props.elRef&&Ni(n.props.elRef,t)},n.handleDocumentMouseDown=function(t){var e=nn(t);n.rootEl.contains(e)||n.handleCloseClick()},n.handleDocumentKeyDown=function(t){"Escape"===t.key&&n.handleCloseClick()},n.handleCloseClick=function(){var t=n.props.onClose;t&&t()},n}return s(n,t),n.prototype.render=function(){var t=this.context,n=t.theme,e=t.options,r=this.props,i=this.state,o=["fc-popover",n.getClass("popover")].concat(r.extraClassNames||[]);return Lt(Vt("div",u({id:r.id,className:o.join(" "),"aria-labelledby":i.titleId},r.extraAttrs,{ref:this.handleRootEl}),Vt("div",{className:"fc-popover-header "+n.getClass("popoverHeader")},Vt("span",{className:"fc-popover-title",id:i.titleId},r.title),Vt("span",{className:"fc-popover-close "+n.getIconClass("close"),title:e.closeHint,onClick:this.handleCloseClick})),Vt("div",{className:"fc-popover-body "+n.getClass("popoverContent")},r.children)),r.parentEl)},n.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},n.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},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=di(t),e=t.getBoundingClientRect(),r=0,i=n;r<i.length;r++){var o=Xr(e,i[r].getBoundingClientRect());if(!o)return null;e=o}return e}(e);if(o){var a=i.getBoundingClientRect(),s=r?Jt(e,".fc-scrollgrid").getBoundingClientRect().top:o.top,u=t?o.right-a.width:o.left;s=Math.max(s,10),u=Math.min(u,document.documentElement.clientWidth-10-a.width),u=Math.max(u,10);var c=i.offsetParent.getBoundingClientRect();Kt(i,{top:s-c.top,left:u-c.left})}},n}(Ei),Ha=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 s(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 Vt(_a,{date:e,dateProfile:i,todayRange:r,elRef:this.handleRootEl},(function(t,a,s){return Vt(Pa,{elRef:t,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(a),extraAttrs:s,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Vt(Ca,{date:e,dateProfile:i,todayRange:r},(function(t,n){return n&&Vt("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}(Si),Qa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.linkElRef=Ft(),n.state={isPopoverOpen:!1,popoverId:on()},n.handleClick=function(t){var e=n.props,r=n.context,i=r.options.moreLinkClick,o=Va(e).start;function a(t){var n=t.eventRange,e=n.range;return{event:new zr(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 s(n,t),n.prototype.render=function(){var t=this,n=this.props,e=this.state;return Vt(yi.Consumer,null,(function(r){var i=r.viewApi,o=r.options,a=r.calendarApi,s=o.moreLinkText,u=n.moreCnt,c=Va(n),l="function"==typeof s?s.call(a,u):"+"+u+" "+s,f=pn(o.moreLinkHint,[u],l),d={num:u,shortText:"+"+u,text:l,view:i};return Vt(jt,null,Boolean(n.moreCnt)&&Vt(Mi,{elRef:t.linkElRef,hookProps:d,classNames:o.moreLinkClassNames,content:o.moreLinkContent,defaultContent:n.defaultContent||Oa,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},(function(r,i,o,a){return n.children(r,["fc-more-link"].concat(i),o,a,t.handleClick,f,e.isPopoverOpen,e.isPopoverOpen?e.popoverId:"")})),e.isPopoverOpen&&Vt(Ha,{id:e.popoverId,startDate:c.start,endDate:c.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=Jt(this.linkElRef.current,".fc-view-harness"))},n}(Ei);function Oa(t){return t.text}function Va(t){if(t.allDayDate)return{start:t.allDayDate,end:En(t.allDayDate,1)};var n,e=t.hiddenSegs;return{start:Ua(e),end:(n=e,n.reduce(ja).eventRange.range.end)}}function Ua(t){return t.reduce(Fa).eventRange.range.start}function Fa(t,n){return t.eventRange.range.start<n.eventRange.range.start?t:n}function ja(t,n){return t.eventRange.range.end>n.eventRange.range.end?t:n}
2
2
  /*!
3
3
  FullCalendar v5.10.2
4
4
  Docs & License: https://fullcalendar.io/