1(self.webpackChunkgatsby_starter_catalyst_sanity=self.webpackChunkgatsby_starter_catalyst_sanity||[]).push([[870],{98130:function(e,t,n){"use strict";n.d(t,{HYg:function(){return i.HY},azq:function(){return i.az},VfA:function(){return i.Vf},H6J:function(){return fn},I_K:function(){return mi},zeW:function(){return xt},BdM:function(){return Hr},n1v:function(){return wr},Tdg:function(){return Ar},IdW:function(){return wn},VPe:function(){return Zn},R_3:function(){return pi},hJ8:function(){return vi},lR3:function(){return Lr},xB8:function(){return qr},xVj:function(){return Yr},snJ:function(){return dr},voO:function(){return Nt},Vsx:function(){return li},wh8:function(){return Fr},zIV:function(){return on},lAU:function(){return $r},QJ3:function(){return On},Ttm:function(){return Kr},Oh2:function(){return ui},RVT:function(){return Gr},h2k:function(){return ci},xS$:function(){return Un},QOi:function(){return bi},E4D:function(){return S},jh6:function(){return D},bg6:function(){return c},rRV:function(){return gt},Euv:function(){return Qt},r39:function(){return ht},SPZ:function(){return be},rxu:function(){return Rn},bXg:function(){return T},SVl:function(){return te},iCZ:function(){return Kt},yLW:function(){return $t},jHR:function(){return vt},PZw:function(){return si},Q8U:function(){return ai},yRu:function(){return Me},cMs:function(){return et},p7j:function(){return Xe},S6v:function(){return Z},_aR:function(){return B},HPs:function(){return ie},MA3:function(){return gi},Hbc:function(){return oi},k$v:function(){return vn},y$4:function(){return it},hak:function(){return lt},b7Q:function(){return k}});var r=n(79900),i=n(51473),o=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function a(e){e.parentNode&&e.parentNode.removeChild(e)}function s(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(u(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function u(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}var l=/(top|left|right|bottom|width|height)$/i;function c(e,t){for(var n in t)d(e,n,t[n])}function d(e,t,n){null==n?e.style[t]="":"number"==typeof n&&l.test(t)?e.style[t]=n+"px":e.style[t]=n}function f(e,t){return function(n){var r=s(n.target,e);r&&t.call(r,n,r)}}function p(e,t,n,r){var i=f(n,r);return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var h=0;function v(){return String(h+=1)}function g(e,t,n){return n.func?n.func(e,t):function(e,t){if(!e&&!t)return 0;if(null==t)return-1;if(null==e)return 1;if("string"==typeof e||"string"==typeof t)return String(e).localeCompare(String(t));return e-t}(e[n.field],t[n.field])*(n.order||1)}function m(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function y(e){return e%1==0}function b(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var E=["sun","mon","tue","wed","thu","fri","sat"];function D(e,t){var n=N(e);return n[2]+=7*t,P(n)}function S(e,t){var n=N(e);return n[2]+=t,P(n)}function C(e,t){var n=N(e);return n[6]+=t,P(n)}function T(e,t){return w(e,t)/7}function w(e,t){return(t.valueOf()-e.valueOf())/864e5}function R(e,t){return _(e)===_(t)?Math.round(w(e,t)):null}function k(e){return P([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function I(e,t,n,r){var i=P([t,0,1+M(t,n,r)]),o=k(e),a=Math.round(w(i,o));return Math.floor(a/7)+1}function M(e,t,n){var r=7+t-n;return-((7+P([e,0,r]).getUTCDay()-t)%7)+r-1}function O(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function x(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function N(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function P(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function H(e){return!isNaN(e.valueOf())}function _(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function z(e,t,n,r){return{instanceId:v(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var A=Object.prototype.hasOwnProperty;function U(e,t){var n={};if(t)for(var r in t){for(var i=[],o=e.length-1;o>=0;o-=1){var a=e[o][r];if("object"==typeof a&&a)i.unshift(a);else if(void 0!==a){n[r]=a;break}}i.length&&(n[r]=U(i))}for(o=e.length-1;o>=0;o-=1){var s=e[o];for(var u in s)u in n||(n[u]=s[u])}return n}function V(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function B(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function W(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function F(e){var t=[];for(var n in e)t.push(e[n]);return t}function Z(e,t){if(e===t)return!0;for(var n in e)if(A.call(e,n)&&!(n in t))return!1;for(var n in t)if(A.call(t,n)&&e[n]!==t[n])return!1;return!0}function L(e,t){var n=[];for(var r in e)A.call(e,r)&&(r in t||n.push(r));for(var r in t)A.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function j(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!q(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function q(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Y(e,t,n){var r=n.dateEnv,i=n.pluginHooks,o=n.options,a=e.defs,s=e.instances;for(var u in s=V(s,(function(e){return!a[e.defId].recurringDef})),a){var l=a[u];if(l.recurringDef){var c=l.recurringDef.duration;c||(c=l.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var d=0,f=G(l,c,t,r,i.recurringTypes);d<f.length;d++){var p=f[d],h=z(u,{start:p,end:r.add(p,c)});s[h.instanceId]=h}}}return{defs:a,instances:s}}function G(e,t,n,r,i){var o=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(k)),o}var J=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function X(e,t){var n;return"string"==typeof e?function(e){var t=J.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?K(e):"number"==typeof e?K(((n={})[t||"milliseconds"]=e,n)):null}function K(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function $(e){return Q(e)/864e5}
1function Q(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function ee(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function te(e){return e.toISOString().replace(/T.*$/,"")}function ne(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?n+m(i,2)+":"+m(o,2):"GMT"+n+i+(o?":"+m(o,2):"")}function re(e,t,n){if(e===t)return!0;var r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function ie(e,t,n){var r,i;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(r){if(!re(r,o)){n&&n(i);var s=e.apply(this,o);t&&t(s,i)||(i=s)}}else i=e.apply(this,o);return r=o,i}}function oe(e,t,n){var r,i,o=this;return function(a){if(r){if(!Z(r,a)){n&&n(i);var s=e.call(o,a);t&&t(s,i)||(i=s)}}else i=e.call(o,a);return r=a,i}}var ae={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},se={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},ue=/\s*([ap])\.?m\.?/i,le=/,/g,ce=/\s+/g,de=/\u200e/g,fe=/UTC|GMT/,pe=function(){function e(e){var t={},n={},r=0;for(var i in e)i in ae?(n[i]=e[i],r=Math.max(ae[i],r)):(t[i]=e[i],i in se&&(r=Math.max(se[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=ie(he)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var i=this.standardDateProps,o=this.extendedSettings,a=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(_(e)!==_(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var s=a;!(s>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(s=1);var u=this.format(e,n),l=this.format(t,n);if(u===l)return u;var c=he(function(e,t){var n={};for(var r in e)(!(r in se)||se[r]<=t)&&(n[r]=e[r]);return n}(i,s),o,n),d=c(e),f=c(t),p=function(e,t,n,r){var i=0;for(;i<e.length;){var o=e.indexOf(t,i);if(-1===o)break;var a=e.substr(0,o);i=o+t.length;for(var s=e.substr(i),u=0;u<n.length;){var l=n.indexOf(r,u);if(-1===l)break;var c=n.substr(0,l);u=l+r.length;var d=n.substr(u);if(a===c&&s===d)return{before:a,after:s}}}return null}(u,d,l,f),h=o.separator||r||n.defaultSeparator||"";return p?p.before+d+h+f+p.after:u+h+l},e.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"}},e}();function he(e,t,n){var i=Object.keys(e).length;return 1===i&&"short"===e.timeZoneName?function(e){return ne(e.timeZoneOffset)}:0===i&&t.week?function(e){return function(e,t,n,r){var i=[];"narrow"===r?i.push(t):"short"===r&&i.push(t," ");i.push(n.simpleNumberFormat.format(e)),"rtl"===n.options.direction&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.locale,t.week)}:function(e,t,n){e=(0,r.pi)({},e),t=(0,r.pi)({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var i,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=(0,r.pi)({},e);delete a.minute,i=new Intl.DateTimeFormat(n.locale.codes,a)}return function(r){var a=r.marker;return function(e,t,n,r,i){e=e.replace(de,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(fe,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":ne(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(le,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));
1!1===r.meridiem?e=e.replace(ue,"").trim():"narrow"===r.meridiem?e=e.replace(ue,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(ue,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(ue,(function(e){return e.toLocaleLowerCase()})));return e=(e=e.replace(ce," ")).trim()}((i&&!a.getUTCMinutes()?i:o).format(a),r,e,t,n)}}(e,t,n)}function ve(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function ge(e,t,n,r){var i=ve(e,n.calendarSystem);return{date:i,start:i,end:t?ve(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var me=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,ge(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,ge(e,t,n,r))},e}(),ye=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(ge(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(ge(e,t,n,r))},e}();
1function be(e){return"object"==typeof e&&e?new pe(e):"string"==typeof e?new me(e):"function"==typeof e?new ye(e):null}var Ee={navLinkDayClick:Me,navLinkWeekClick:Me,duration:X,bootstrapFontAwesome:Me,buttonIcons:Me,customButtons:Me,defaultAllDayEventDuration:X,defaultTimedEventDuration:X,nextDayThreshold:X,scrollTime:X,slotMinTime:X,slotMaxTime:X,dayPopoverFormat:be,slotDuration:X,snapDuration:X,headerToolbar:Me,footerToolbar:Me,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:be,dayHeaderClassNames:Me,dayHeaderContent:Me,dayHeaderDidMount:Me,dayHeaderWillUnmount:Me,dayCellClassNames:Me,dayCellContent:Me,dayCellDidMount:Me,dayCellWillUnmount:Me,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Me,weekNumbers:Boolean,weekNumberClassNames:Me,weekNumberContent:Me,weekNumberDidMount:Me,weekNumberWillUnmount:Me,editable:Boolean,viewClassNames:Me,viewDidMount:Me,viewWillUnmount:Me,nowIndicator:Boolean,nowIndicatorClassNames:Me,nowIndicatorContent:Me,nowIndicatorDidMount:Me,nowIndicatorWillUnmount:Me,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Me,locale:Me,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Me,eventOrder:function(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)"string"==typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r},handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Me,contentHeight:Me,direction:String,weekNumberFormat:be,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:Me,initialDate:Me,now:Me,eventDataTransform:Me,stickyHeaderDates:Me,stickyFooterScrollbar:Me,viewHeight:Me,defaultAllDay:Boolean,eventSourceFailure:Me,eventSourceSuccess:Me,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Me,eventConstraint:Me,eventAllow:Me,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Me,eventContent:Me,eventDidMount:Me,eventWillUnmount:Me,selectConstraint:Me,selectOverlap:Me,selectAllow:Me,droppable:Boolean,unselectCancel:String,slotLabelFormat:Me,slotLaneClassNames:Me,slotLaneContent:Me,slotLaneDidMount:Me,slotLaneWillUnmount:Me,slotLabelClassNames:Me,slotLabelContent:Me,slotLabelDidMount:Me,slotLabelWillUnmount:Me,dayMaxEvents:Me,dayMaxEventRows:Me,dayMinWidth:Number,slotLabelInterval:X,allDayText:String,allDayClassNames:Me,allDayContent:Me,allDayDidMount:Me,allDayWillUnmount:Me,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:be,rerenderDelay:Number,moreLinkText:Me,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMinHeight:Number,slotEventOverlap:Boolean,plugins:Me,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:X,hiddenDays:Me,monthMode:Boolean,fixedWeekCount:Boolean,validRange:Me,visibleRange:Me,titleFormat:Me,noEventsText:String},De={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",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},Se={datesSet:Me,eventsSet:Me,eventAdd:Me,eventChange:Me,eventRemove:Me,windowResize:Me,eventClick:Me,eventMouseEnter:Me,eventMouseLeave:Me,select:Me,unselect:Me,loading:Me,_unmount:Me,_beforeprint:Me,_afterprint:Me,_noEventDrop:Me,_noEventResize:Me,_resize:Me,_scrollRequest:Me},Ce={buttonText:Me,views:Me,plugins:Me,initialEvents:Me,events:Me,eventSources:Me},Te={headerToolbar:we,footerToolbar:we,buttonText:we,buttonIcons:we};function we(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Z(e,t):e===t}var Re={type:String,component:Me,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Me,usesMinMaxTime:Boolean,classNames:Me,content:Me,didMount:Me,willUnmount:Me};function ke(e){return U(e,Te)}function Ie(e,t){var n={},r={};for(var i in t)i in e&&(n[i]=t[i](e[i]));for(var i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function Me(e){return e}
1function Oe(e,t,n,r){for(var i={defs:{},instances:{}},o=qe(n),a=0,s=e;a<s.length;a++){var u=Le(s[a],t,n,r,o);u&&xe(u,i)}return i}function xe(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ne(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=He(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function Pe(e,t){return{defs:(0,r.pi)((0,r.pi)({},e.defs),t.defs),instances:(0,r.pi)((0,r.pi)({},e.instances),t.instances)}}function He(e,t){var n=V(e.defs,t),r=V(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function _e(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var ze={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Me,overlap:Me,allow:Me,className:_e,classNames:_e,color:String,backgroundColor:String,borderColor:String,textColor:String},Ae={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Ue(e,t){var n=function(e,t){return Array.isArray(e)?Oe(e,null,t,!0):"object"==typeof e&&e?Oe([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Ve(e){return e.reduce(Be,Ae)}function Be(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var We={id:String,groupId:String,title:String,url:String},Fe={start:Me,end:Me,date:Me,allDay:Boolean},Ze=(0,r.pi)((0,r.pi)((0,r.pi)({},We),Fe),{extendedProps:Me});function Le(e,t,n,r,i){void 0===i&&(i=qe(n));var o=je(e,n,i),a=o.refined,s=o.extra,u=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),l=function(e,t,n,r){for(var i=0;i<r.length;i+=1){var o=r[i].parse(e,n);if(o){var a=e.allDay;return null==a&&null==(a=t)&&null==(a=o.allDayGuess)&&(a=!1),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}(a,u,n.dateEnv,n.pluginHooks.recurringTypes);if(l)return(c=Ye(a,s,t?t.sourceId:"",l.allDay,Boolean(l.duration),n)).recurringDef={typeId:l.typeId,typeData:l.typeData,duration:l.duration},{def:c,instance:null};var c,d=function(e,t,n,r){var i,o,a=e.allDay,s=null,u=!1,l=null,c=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(c))s=i.marker;else if(!r)return null;null!=e.end&&(o=n.dateEnv.createMarkerMeta(e.end));null==a&&(a=null!=t?t:(!i||i.isTimeUnspecified)&&(!o||o.isTimeUnspecified));a&&s&&(s=k(s));o&&(l=o.marker,a&&(l=k(l)),s&&l<=s&&(l=null));l?u=!0:r||(u=n.options.forceEventDuration||!1,l=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:u,range:{start:s,end:l},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(a,u,n,r);return d?{def:c=Ye(a,s,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:z(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function je(e,t,n){return void 0===n&&(n=qe(t)),Ie(e,n)}function qe(e){return(0,r.pi)((0,r.pi)((0,r.pi)({},ze),Ze),e.pluginHooks.eventRefiners)}function Ye(e,t,n,i,o,a){for(var s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:v(),sourceId:n,allDay:i,hasEnd:o,ui:Ue(e,a),extendedProps:(0,r.pi)((0,r.pi)({},e.extendedProps||{}),t)},u=0,l=a.pluginHooks.eventDefMemberAdders;u<l.length;u++){var c=l[u];(0,r.pi)(s,c(e))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Ge(e){var t=Math.floor(w(e.start,e.end))||1,n=k(e.start);return{start:n,end:S(n,t)}}function Je(e,t){void 0===t&&(t=X(0));var n=null,r=null;if(e.end){r=k(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=Q(t)&&(r=S(r,1))}return e.start&&(n=k(e.start),r&&r<=n&&(r=S(n,1))),{start:n,end:r}}function Xe(e){var t=Je(e);return w(t.start,t.end)>1}function Ke(e,t,n,r){return"year"===r?X(n.diffWholeYears(e,t),"year"):"month"===r?X(n.diffWholeMonths(e,t),"month"):(o=t,a=k(i=e),s=k(o),{years:0,months:0,days:Math.round(w(a,s)),milliseconds:o.valueOf()-s.valueOf()-(i.valueOf()-a.valueOf())});var i,o,a,s}function $e(e,t){var n,r,i=[],o=t.start;for(e.sort(Qe),n=0;n<e.length;n+=1)(r=e[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function Qe(e,t){return e.start.valueOf()-t.start.valueOf()}function et(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function tt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function nt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function rt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function it(e,t,n,r){var i={},o={},a={},s=[],u=[],l=st(e.defs,t);for(var c in e.defs){"inverse-background"===(p=l[(E=e.defs[c]).defId]).display&&(E.groupId?(i[E.groupId]=[],a[E.groupId]||(a[E.groupId]=E)):o[c]=[])}for(var d in e.instances){var f=e.instances[d],p=l[(E=e.defs[f.defId]).defId],h=f.range,v=!E.allDay&&r?Je(h,r):h,g=et(v,n);g&&("inverse-background"===p.display?E.groupId?i[E.groupId].push(g):o[f.defId].push(g):"none"!==p.display&&("background"===p.display?s:u).push({def:E,ui:p,instance:f,range:g,isStart:v.start&&v.start.valueOf()===g.start.valueOf(),isEnd:v.end&&v.end.valueOf()===g.end.valueOf()}))}for(var m in i)for(var y=0,b=$e(i[m],n);y<b.length;y++){var E,D=b[y];p=l[(E=a[m]).defId];s.push({def:E,ui:p,instance:null,range:D,isStart:!1,isEnd:!1})}for(var c in o)for(var S=0,C=$e(o[c],n);S<C.length;S++){D=C[S];s.push({def:e.defs[c],ui:l[c],instance:null,range:D,isStart:!1,isEnd:!1})}return{bg:s,fg:u}}function ot(e,t){e.fcSeg=t}function at(e){return e.fcSeg||e.parentNode.fcSeg||null}function st(e,t){return B(e,(function(e){return ut(e,t)}))}function ut(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Ve(n)}function lt(e,t){var n=e.map(ct);return n.sort((function(e,n){return function(e,t,n){var r,i;for(r=0;r<n.length;r+=1)if(i=g(e,t,n[r]))return i;return 0}(e,n,t)})),n.map((function(e){return e._seg}))}function ct(e){var t=e.eventRange,n=t.def,i=t.instance?t.instance.range:t.range,o=i.start?i.start.valueOf():0,a=i.end?i.end.valueOf():0;return(0,r.pi)((0,r.pi)((0,r.pi)({},n.extendedProps),n),{id:n.publicId,start:o,end:a,duration:a-o,allDay:Number(n.allDay),_seg:e})}function dt(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,i=r.def,o=r.ui,a=o.startEditable,s=0,u=n;s<u.length;s++){a=(0,u[s])(a,i,o,t)}return a}function ft(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function pt(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function ht(e,t,n,r,i,o,a){var s=n.dateEnv,u=n.options,l=u.displayEventTime,c=u.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;null==l&&(l=!1!==r),null==c&&(c=!1!==i);var p=f.range.start,h=f.range.end,v=o||e.start||e.eventRange.range.start,g=a||e.end||e.eventRange.range.end,m=k(p).valueOf()===k(v).valueOf(),y=k(C(h,-1)).valueOf()===k(C(g,-1)).valueOf();return l&&!d.allDay&&(m||y)?(v=m?p:v,g=y?h:g,c&&d.hasEnd?s.formatRange(v,g,t,{forcedStartTzo:o?null:f.forcedStartTzo,forcedEndTzo:a?null:f.forcedEndTzo}):s.format(v,t,{forcedTzo:o?null:f.forcedStartTzo})):""}function vt(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&rt(t,r.start)}}function gt(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}var mt={start:Me,end:Me,allDay:Boolean};function yt(e,t,n){var i=function(e,t){var n=Ie(e,mt),i=n.refined,o=n.extra,a=i.start?t.createMarkerMeta(i.start):null,s=i.end?t.createMarkerMeta(i.end):null,u=i.allDay;null==u&&(u=a&&a.isTimeUnspecified&&(!s||s.isTimeUnspecified));return(0,r.pi)({range:{start:a?a.marker:null,end:s?s.marker:null},allDay:u},o)}(e,t),o=i.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return i}function bt(e,t,n){return(0,r.pi)((0,r.pi)({},Et(e,t,n)),{timeZone:t.timeZone})}function Et(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function Dt(e,t,n){var r=je({editable:!1},n),i=Ye(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:ut(i,t),instance:z(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function St(e,t){for(var n,i,o={},a=0,s=t.pluginHooks.dateSpanTransforms;a<s.length;a++){var u=s[a];(0,r.pi)(o,u(e,t))}return(0,r.pi)(o,(n=e,i=t.dateEnv,(0,r.pi)((0,r.pi)({},Et(n.range,i,n.allDay)),{allDay:n.allDay}))),o}function Ct(e,t,n){var r=n.dateEnv,i=n.options,o=t;return e?(o=k(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function Tt(e,t,n,i){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var a=(0,r.pi)((0,r.pi)((0,r.pi)({},e),o),{ui:(0,r.pi)((0,r.pi)({},e.ui),o.ui)});n.extendedProps&&(a.extendedProps=(0,r.pi)((0,r.pi)({},a.extendedProps),n.extendedProps));for(var s=0,u=i.pluginHooks.eventDefMutationAppliers;s<u.length;s++){(0,u[s])(a,n,i)}return!a.hasEnd&&i.options.forceEventDuration&&(a.hasEnd=!0),a}function wt(e,t,n,i,o){var a=o.dateEnv,s=i.standardProps&&!0===i.standardProps.allDay,u=i.standardProps&&!1===i.standardProps.hasEnd,l=(0,r.pi)({},e);return s&&(l.range=Ge(l.range)),i.datesDelta&&n.startEditable&&(l.range={start:a.add(l.range.start,i.datesDelta),end:a.add(l.range.end,i.datesDelta)}),i.startDelta&&n.durationEditable&&(l.range={start:a.add(l.range.start,i.startDelta),end:l.range.end}),i.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,i.endDelta)}),u&&(l.range={start:l.range.start,end:Ct(t.allDay,l.range.start,o)}),t.allDay&&(l.range={start:k(l.range.start),end:k(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Ct(t.allDay,l.range.start,o)),l}var Rt=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}
1return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),kt={id:String,defaultAllDay:Boolean,url:String,format:String,events:Me,eventDataTransform:Me,success:Me,failure:Me};function It(e,t,n){var r;if(void 0===n&&(n=Mt(t)),"string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var i=Ie(r,n),o=i.refined,a=i.extra,s=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var i=n[r].parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}(o,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:v(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Ue(o,t),extendedProps:a}}return null}function Mt(e){return(0,r.pi)((0,r.pi)((0,r.pi)({},ze),kt),e.pluginHooks.eventSourceRefiners)}function Ot(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var xt=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(t=this.currentDataManager.emitter).trigger.apply(t,(0,r.pr)([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),i=r.viewSpecs,o=r.toolbarConfig,a=[].concat(o.viewsWithButtons);for(var s in i)a.push(s);for(t=0;t<a.length;t+=1)if((n=i[a[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Ot(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=X(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),be(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),be(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var i=this.getCurrentData(),o=yt(n,i.dateEnv,X({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),function(e,t,n){n.emitter.trigger("select",(0,r.pi)((0,r.pi)({},St(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}(o,null,i))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof Nt){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:xe({def:n,instance:r})}),this.triggerEventAdd(e)),e}var i,a=this.getCurrentData();if(t instanceof o)i=t.internalEventSource;else if("boolean"==typeof t)t&&(i=F(a.eventSources)[0]);else if(null!=t){var s=this.getEventSourceById(t);if(!s)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=s.internalEventSource}var u=Le(e,i,a,!1);if(u){var l=new Nt(a,u.def,u.def.recurringDef?null:u.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:xe(u)}
1),this.triggerEventAdd(l),l}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:Pt(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,i=n.instances;for(var o in e=String(e),r){var a=r[o];if(a.publicId===e){if(a.recurringDef)return new Nt(t,a,null);for(var s in i){var u=i[s];if(u.defId===a.defId)return new Nt(t,a,u)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return Ht(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new o(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new o(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof o)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=It(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new o(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=X(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),Nt=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in Fe)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=We[e](t),this.mutate({standardProps:{publicId:t}});else if(e in We)t=We[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in ze){var i=ze[e](t);"color"===e?i={backgroundColor:t,borderColor:t}:"editable"===e?i={startEditable:t,durationEditable:t}:((r={})[e]=t,i=r),this.mutate({standardProps:{ui:i}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=Ke(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var i=Ke(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,i,o,a=this._context.dateEnv,s={allDay:n.allDay},u=a.createMarker(e);if(u&&((null==t||(r=a.createMarker(t)))&&this._instance)){var l=this._instance.range;!0===n.allDay&&(l=Ge(l));var c=Ke(l.start,u,a,n.granularity);if(r){var d=Ke(l.end,r,a,n.granularity);o=d,(i=c).years===o.years&&i.months===o.months&&i.days===o.days&&i.milliseconds===o.milliseconds?this.mutate({datesDelta:c,standardProps:s}):this.mutate({startDelta:c,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:c,standardProps:s})}},e.prototype.moveStart=function(e){var t=X(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=X(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=X(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=be(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,i=this._context,o=i.getCurrentData().eventStore,a=Ne(o,n.instanceId);a=function(e,t,n,r){var i=st(e.defs,t),o={defs:{},instances:{}};for(var a in e.defs){var s=e.defs[a];o.defs[a]=Tt(s,i[a],n,r)}for(var u in e.instances){var l=e.instances[u];s=o.defs[l.defId],o.instances[u]=wt(l,s,i[l.defId],n,r)}return o}(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);var s=new e(i,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:a}),i.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:Ht(a,i,n),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},e.prototype.remove=function(){var e=this._context,t=Pt(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}
1,Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new o(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.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(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,i=this.startStr,o=this.endStr,a={};return t.title&&(a.title=t.title),i&&(a.start=i),o&&(a.end=o),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&"auto"!==n.display&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?(0,r.pi)(a,t.extendedProps):a.extendedProps=t.extendedProps),a},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function Pt(e){var t,n,r=e._def,i=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:i?(n={},n[i.instanceId]=i,n):{}}}function Ht(e,t,n){var r=e.defs,i=e.instances,o=[],a=n?n.instanceId:"";for(var s in i){var u=i[s],l=r[u.defId];u.instanceId!==a&&o.push(new Nt(t,l,u))}return o}var _t={};var zt,At=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return P(e)},e.prototype.markerToArray=function(e){return N(e)},e}();zt=At,_t["gregory"]=zt;var Ut=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var Vt=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new _t[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):P(O(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=P(e)),null!==t&&H(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=Ut.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(H(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return _(e)===_(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return _(e)===_(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=function(e,t){var n=R(e,t);return null!==n&&n%7==0?n/7:null}(e,t))?{unit:"week",value:n}:null!==(n=R(e,t))?{unit:"day",value:n}:y(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t))?{unit:"hour",value:n}:y(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t))?{unit:"minute",value:n}:y(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t))?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/($(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return $(e)/30}(n):n.days&&null!==(r=R(e,t))?r/$(n):(t.valueOf()-e.valueOf())/Q(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?k(e):"hour"===t?function(e){return P([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return P([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return P([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),i=I(e,r,t,n);if(i<1)return I(e,r-1,t,n);var o=I(e,r+1,t,n);return o>=1?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=C(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",ne(t,!0)))),r}(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?P(O(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?P(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-x(N(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(N(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?x(N(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(N(e))*60):new Date(e.valueOf()-(t||0))},e}(),Bt=[],Wt={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"};function Ft(e){for(var t=e.length>0?e[0].code:"en",n=Bt.concat(e),r={en:Wt},i=0,o=n;i<o.length;i++){var a=o[i];r[a.code]=a}return{map:r,defaultCode:t}}function Zt(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i-=1){var o=r.slice(0,i).join("-");if(t[o])return t[o]}return null}(n,t)||Wt;return Lt(e,n,r)}(e,t):Lt(e.code,[e.code],e)}function Lt(e,t,n){var r=U([Wt,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var jt,qt={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Yt(e,t){return Oe(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return(0,r.pi)((0,r.pi)({},qt),e)}))}(e),null,t)}function Gt(){return null==jt&&(jt=function(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),jt}var Jt={defs:{},instances:{}};
1!function(){function e(){this.getKeysForEventDefs=ie(this._getKeysForEventDefs),this.splitDateSelection=ie(this._splitDateSpan),this.splitEventStore=ie(this._splitEventStore),this.splitIndividualUi=ie(this._splitIndividualUi),this.splitEventDrag=ie(this._splitInteraction),this.splitEventResize=ie(this._splitInteraction),this.eventUiBuilders={}}e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),u=this.splitEventResize(e.eventResize),l={};for(var c in this.eventUiBuilders=B(n,(function(e,n){return t.eventUiBuilders[n]||ie(Xt)})),n){var d=n[c],f=a[c]||Jt,p=this.eventUiBuilders[c];l[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,o[c]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:u[c]||null}}return l},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return B(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var o in n)for(var a=0,s=t[o];a<s.length;a++){i[f=s[a]]||(i[f]={defs:{},instances:{}}),i[f].defs[o]=n[o]}for(var u in r)for(var l=r[u],c=0,d=t[l.defId];c<d.length;c++){var f;i[f=d[c]]&&(i[f].instances[u]=l)}return i},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,o=t[r];i<o.length;i++){var a=o[i];n[a]||(n[a]={}),n[a][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),o=function(r){t[r]||(t[r]={affectedEvents:n[r]||Jt,mutatedEvents:i[r]||Jt,isEvent:e.isEvent})};for(var a in n)o(a);for(var a in i)o(a)}return t}}();function Xt(e,t,n){var i=[];e&&i.push(e),t&&i.push(t);var o={"":Ve(i)};return n&&(0,r.pi)(o,n),o}function Kt(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!rt(r.activeRange,e)),isOther:Boolean(r&&!rt(r.currentRange,e)),isToday:Boolean(t&&rt(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function $t(e,t){var n=["fc-day","fc-day-"+E[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function Qt(e,t){return void 0===t&&(t="day"),JSON.stringify({date:te(e),type:t})}var en;function tn(){return en||(en=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=nn(e);return document.body.removeChild(e),t}()),en}function nn(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}var rn=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],i=this.options&&this.options[e],o=[].concat(i||[],r),a=0,s=o;a<s.length;a++){var u=s[a];u.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e]},e}();var on=function(){function e(e,t,n,r){this.els=t;var i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),an=function(){function e(){}
1return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),sn=(function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}(0,r.ZT)(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth}}(an),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,r.ZT)(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth}}(an),function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=(0,r.pi)({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}());sn.prototype.classes={},sn.prototype.iconClasses={},sn.prototype.baseIconClass="",sn.prototype.iconOverridePrefix="";var un=function(){function e(e,t,n){var i=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.handleScrollRequest=function(e){i.queuedRequest=(0,r.pi)({},i.queuedRequest||{},e),i.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),ln=(0,i.kr)({});function cn(e,t,n,r,i,o,a,s,u,l,c,d,f){return{dateEnv:i,options:n,pluginHooks:a,emitter:l,dispatch:s,getCurrentData:u,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:"rtl"===n.direction,addResizeHandler:function(e){l.on("_resize",e)},removeResizeHandler:function(e){l.off("_resize",e)},createScrollResponder:function(e){return new un(e,l,X(n.scrollTime))},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(L(e,this.props),L(t,this.state)),!j(this.props,e,this.propEquality)||!j(this.state,t,this.stateEquality)},t.addPropsEquality=pn,t.addStateEquality=hn,t.contextType=ln,t}(i.wA);dn.prototype.propEquality={},dn.prototype.stateEquality={};var fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.contextType=ln,t}(dn);function pn(e){var t=Object.create(this.prototype.propEquality);(0,r.pi)(t,e),this.prototype.propEquality=t}function hn(e){var t=Object.create(this.prototype.stateEquality);(0,r.pi)(t,e),this.prototype.stateEquality=t}function vn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function gn(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,o){if(t&&n===t.latestFetchId){var a=Oe(function(e,t,n){var r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;i&&(e=mn(e,i));r&&(e=mn(e,r));return e}(i,t,o),t,o);return r&&(a=Y(a,r,o)),Pe(yn(e,t.sourceId),a)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Y(t,n,r));return Pe(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Pe(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Y(e,r.activeRange,i):e;
1case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,i={},o={};for(var a in n)t.defs[a]||(i[a]=n[a]);for(var s in r)!t.instances[s]&&i[r[s].defId]&&(o[s]=r[s]);return{defs:i,instances:o}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return yn(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return He(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function mn(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],a=t(o);a?n.push(a):null==a&&n.push(o)}}else n=e;return n}function yn(e,t){return He(e,(function(e){return e.sourceId!==t}))}function bn(e,t){var n=t.getCurrentData(),i=(0,r.pi)({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||En)(i,t)}function En(e,t,n,i){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,i){var o=t.getCurrentData(),a=e.eventDrag,s=a.mutatedEvents,u=s.defs,l=s.instances,c=st(u,a.isEvent?e.eventUiBases:{"":o.selectionConfig});i&&(c=B(c,i));var d=(v=e.eventStore,g=a.affectedEvents.instances,{defs:v.defs,instances:V(v.instances,(function(e){return!g[e.instanceId]}))}),f=d.defs,p=d.instances,h=st(f,e.eventUiBases);var v,g;for(var m in l){var y=l[m],b=y.range,E=c[y.defId],D=u[y.defId];if(!Dn(E.constraints,b,d,e.businessHours,t))return!1;var S=t.options.eventOverlap,C="function"==typeof S?S:null;for(var T in p){var w=p[T];if(tt(b,w.range)){if(!1===h[w.defId].overlap&&a.isEvent)return!1;if(!1===E.overlap)return!1;if(C&&!C(new Nt(t,f[w.defId],w),new Nt(t,D,y)))return!1}}for(var R=o.eventStore,k=0,I=E.allows;k<I.length;k++){var M=I[k],O=(0,r.pi)((0,r.pi)({},n),{range:y.range,allDay:D.allDay}),x=R.defs[D.defId],N=R.instances[m],P=void 0;if(P=x?new Nt(t,x,N):new Nt(t,D),!M(St(O,t),P))return!1}}return!0}(e,t,n,i))&&!(e.dateSelection&&!function(e,t,n,i){var o=e.eventStore,a=o.defs,s=o.instances,u=e.dateSelection,l=u.range,c=t.getCurrentData().selectionConfig;i&&(c=i(c));if(!Dn(c.constraints,l,o,e.businessHours,t))return!1;var d=t.options.selectOverlap,f="function"==typeof d?d:null;for(var p in s){var h=s[p];if(tt(l,h.range)){if(!1===c.overlap)return!1;if(f&&!f(new Nt(t,a[h.defId],h),null))return!1}}for(var v=0,g=c.allows;v<g.length;v++){if(!(0,g[v])(St((0,r.pi)((0,r.pi)({},n),u),t),null))return!1}return!0}(e,t,n,i))}function Dn(e,t,n,r,i){for(var o=0,a=e;o<a.length;o++){if(!Tn(Sn(a[o],t,n,r,i),t))return!1}return!0}function Sn(e,t,n,r,i){return"businessHours"===e?Cn(Y(r,t,i)):"string"==typeof e?Cn(He(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?Cn(Y(e,t,i)):[]}function Cn(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Tn(e,t){for(var n=0,r=e;n<r.length;n++){if(nt(r[n],t))return!0}return!1}var wn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=v(),t}return(0,r.ZT)(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isInteractionValid=function(e){var t=this.props.dateProfile,n=e.mutatedEvents.instances;if(t)for(var r in n)if(!nt(t.validRange,n[r].range))return!1;return function(e,t){return bn({eventDrag:e},t)}(e,this.context)},t.prototype.isDateSelectionValid=function(e){var t,n,r=this.props.dateProfile;return!(r&&!nt(r.validRange,e.range))&&(t=e,n=this.context,bn({dateSelection:t},n))},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!s(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!(s(e,".fc-event:not(.fc-bg-event)")||s(e,".fc-daygri
1d-more-link")||s(e,"a[data-navlink]")||s(e,".fc-popover"))},t}(fn);function Rn(e){return{id:v(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function kn(){var e,t=[],n=[];return function(i,o){return e&&re(i,t)&&re(o,n)||(e=function(e,t){var n={},i={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];n[s.id]||(n[s.id]=!0,o(s.deps),l=s,i={reducers:(u=i).reducers.concat(l.reducers),isLoadingFuncs:u.isLoadingFuncs.concat(l.isLoadingFuncs),contextInit:u.contextInit.concat(l.contextInit),eventRefiners:(0,r.pi)((0,r.pi)({},u.eventRefiners),l.eventRefiners),eventDefMemberAdders:u.eventDefMemberAdders.concat(l.eventDefMemberAdders),eventSourceRefiners:(0,r.pi)((0,r.pi)({},u.eventSourceRefiners),l.eventSourceRefiners),isDraggableTransformers:u.isDraggableTransformers.concat(l.isDraggableTransformers),eventDragMutationMassagers:u.eventDragMutationMassagers.concat(l.eventDragMutationMassagers),eventDefMutationAppliers:u.eventDefMutationAppliers.concat(l.eventDefMutationAppliers),dateSelectionTransformers:u.dateSelectionTransformers.concat(l.dateSelectionTransformers),datePointTransforms:u.datePointTransforms.concat(l.datePointTransforms),dateSpanTransforms:u.dateSpanTransforms.concat(l.dateSpanTransforms),views:(0,r.pi)((0,r.pi)({},u.views),l.views),viewPropsTransformers:u.viewPropsTransformers.concat(l.viewPropsTransformers),isPropsValid:l.isPropsValid||u.isPropsValid,externalDefTransforms:u.externalDefTransforms.concat(l.externalDefTransforms),eventResizeJoinTransforms:u.eventResizeJoinTransforms.concat(l.eventResizeJoinTransforms),viewContainerAppends:u.viewContainerAppends.concat(l.viewContainerAppends),eventDropTransformers:u.eventDropTransformers.concat(l.eventDropTransformers),calendarInteractions:u.calendarInteractions.concat(l.calendarInteractions),componentInteractions:u.componentInteractions.concat(l.componentInteractions),themeClasses:(0,r.pi)((0,r.pi)({},u.themeClasses),l.themeClasses),eventSourceDefs:u.eventSourceDefs.concat(l.eventSourceDefs),cmdFormatter:l.cmdFormatter||u.cmdFormatter,recurringTypes:u.recurringTypes.concat(l.recurringTypes),namedTimeZonedImpl:l.namedTimeZonedImpl||u.namedTimeZonedImpl,initialView:u.initialView||l.initialView,elementDraggingImpl:u.elementDraggingImpl||l.elementDraggingImpl,optionChangeHandlers:(0,r.pi)((0,r.pi)({},u.optionChangeHandlers),l.optionChangeHandlers),scrollGridImpl:l.scrollGridImpl||u.scrollGridImpl,contentTypeHandlers:(0,r.pi)((0,r.pi)({},u.contentTypeHandlers),l.contentTypeHandlers),listenerRefiners:(0,r.pi)((0,r.pi)({},u.listenerRefiners),l.listenerRefiners),optionRefiners:(0,r.pi)((0,r.pi)({},u.optionRefiners),l.optionRefiners),propSetHandlers:(0,r.pi)((0,r.pi)({},u.propSetHandlers),l.propSetHandlers)})}var u,l}return e&&o(e),o(t),i}(i,o)),t=i,n=o,e}}var In=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t}(sn);function Mn(e,t,n,i){if(t[e])return t[e];var o=function(e,t,n,i){var o=n[e],a=i[e],s=function(e){return o&&null!==o[e]?o[e]:a&&null!==a[e]?a[e]:null},u=s("component"),l=s("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=Mn(l,t,n,i)}!u&&c&&(u=c.component);if(!u)return null;return{type:e,component:u,defaults:(0,r.pi)((0,r.pi)({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:(0,r.pi)((0,r.pi)({},c?c.overrides:{}),a?a.rawOptions:{})}}(e,t,n,i);return o&&(t[e]=o),o}In.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},In.prototype.baseIconClass="fc-icon",In.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"},In.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},In.prototype.iconOverrideOption="buttonIcons",In.prototype.iconOverrideCustomButtonOption="icon",In.prototype.iconOverridePrefix="fc-icon-";var On=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,i.Vf)(),t.handleRootEl=function(e){vn(t.rootElRef,e),t.props.elRef&&vn(t.props.elRef,e)},t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return(0,i.az)(Hn,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return(0,i.az)(Nn,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,i){return t.children(r,zn(t.classNames,n),e,i)}
1))}))},t}(fn),xn=(0,i.kr)(0);function Nn(e){return(0,i.az)(xn.Consumer,null,(function(t){return(0,i.az)(Pn,(0,r.pi)({renderId:t},e))}))}var Pn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=(0,i.Vf)(),t}return(0,r.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.context.pluginHooks.contentTypeHandlers,t=this.props,n=this.customContentInfo,i=An(t.content,t.hookProps),o=null;if(void 0===i&&(i=An(t.defaultContent,t.hookProps)),void 0!==i){if(n)n.contentVal=i[n.contentKey];else if("object"==typeof i)for(var a in e)if(void 0!==i[a]){var s=e[a]();n=this.customContentInfo=(0,r.pi)({contentKey:a,contentVal:i[a]},s);break}o=n?[]:i}return o},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(fn),Hn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&vn(t.props.elRef,e)},t}return(0,r.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e((0,r.pi)((0,r.pi)({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e((0,r.pi)((0,r.pi)({},this.props.hookProps),{el:this.rootEl}))},t}(fn);function _n(){var e,t,n=[];return function(r,i){return t&&Z(t,i)&&r===e||(e=r,t=i,n=zn(r,i)),n}}function zn(e,t){return"function"==typeof e&&(e=e(t)),_e(e)}function An(e,t){return"function"==typeof e?e(t,i.az):e}var Un=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=_n(),t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},o=this.normalizeClassNames(n.viewClassNames,r);return(0,i.az)(Hn,{hookProps:r,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},(function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(o))}))},t}(fn);function Vn(e){return B(e,Bn)}function Bn(e){var t,n="function"==typeof e?{component:e}:e,o=n.component;return n.content&&(t=n,o=function(e){return(0,i.az)(ln.Consumer,null,(function(n){return(0,i.az)(Un,{viewSpec:n.viewSpec},(function(o,a){var s=(0,r.pi)((0,r.pi)({},e),{nextDayThreshold:n.options.nextDayThreshold});return(0,i.az)(On,{hookProps:s,classNames:t.classNames,content:t.content,didMount:t.didMount,willUnmount:t.willUnmount,elRef:o},(function(e,t,n,r){return(0,i.az)("div",{className:a.concat(t).join(" "),ref:e},r)}))}))}))}),{superType:n.type,component:o,rawOptions:n}}function Wn(e,t,n,i){var o=Vn(e),a=Vn(t.views);return B(function(e,t){var n,r={};for(n in e)Mn(n,r,e,t);for(n in t)Mn(n,r,e,t);return r}(o,a),(function(e){return function(e,t,n,i,o){var a=e.overrides.duration||e.defaults.duration||i.duration||n.duration,s=null,u="",l="",c={};if(a&&(s=function(e){var t=JSON.stringify(e),n=Fn[t];void 0===n&&(n=X(e),Fn[t]=n);return n}(a))){var d=ee(s);u=d.unit,1===d.value&&(l=u,c=t[u]?t[u].rawOptions:{})}var f=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:s,durationUnit:u,singleUnit:l,optionDefaults:e.defaults,optionOverrides:(0,r.pi)((0,r.pi)({},c),e.overrides),buttonTextOverride:f(i)||f(n)||e.overrides.buttonText,buttonTextDefault:f(o)||e.defaults.buttonText||f(De)||e.type}}(e,a,t,n,i)}))}var Fn={};var Zn=function(){function e(e){this.props=e,this.nowDate=Ot(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,i,o,a,s,u,l,c,d=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(l=e,e=null!=(c=r).start&&l<c.start?c.start:null!=c.end&&l>=c.end?new Date(c.end.valueOf()-1):l),i=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(i.unit),a=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),s=a=this.trimHiddenDays(a),d.showNonCurrentDates||(s=et(s,i.range)),s=et(s=this.adjustActiveRange(s),r),u=tt(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:s,renderRange:a,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(i.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,i=null,o=null,a=null;return r.duration?(i=r.duration,o=r.durationUnit,a=this.buildRangeFromDuration(e,t,i,o)):(n=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(o=ee(i=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,i,o)),{duration:i,unit:o,range:a}},e.prototype.getFallbackDuration=function(){return X({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,i=t.slotMinTime,o=t.slotMaxTime,a=e.start,s=e.end;return r&&($(i)<0&&(a=k(a),a=n.add(a,i)),$(o)>1&&(s=S(s=k(s),-1),s=n.add(s,o))),{start:a,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var i,o,a,s=this.props,u=s.dateEnv,l=s.dateAlignment;if(!l){var c=this.props.dateIncrement;l=c&&Q(c)<Q(n)?ee(c).unit:r}function d(){i=u.startOf(e,l),o=u.add(i,n),a={start:i,end:o}}
1return $(n)<=1&&this.isHiddenDay(i)&&(i=k(i=this.skipHiddenDays(i,t))),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.props,o=i.dateEnv,a=i.dateAlignment,s=0,u=e;a&&(u=o.startOf(u,a)),u=k(u),r=u=this.skipHiddenDays(u,t);do{r=S(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:u,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?X(1,t):e||X({days:1}))},e.prototype.refineRange=function(e){if(e){var t=(n=e,r=this.props.dateEnv,i=null,o=null,n.start&&(i=r.createMarker(n.start)),n.end&&(o=r.createMarker(n.end)),i||o?i&&o&&o<i?null:{start:i,end:o}:null);return t&&(t=Je(t)),t}var n,r,i,o;return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=S(e,t);return e},e}();function Ln(e,t,n){var r=t?t.activeRange:null;return Yn({},function(e,t){var n=Mt(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var o=0,a=r;o<a.length;o++){var s=It(a[o],t,n);s&&i.push(s)}return i}(e,n),r,n)}function jn(e,t,n,i){var o,a,s=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Yn(e,t.sources,s,i);case"REMOVE_EVENT_SOURCE":return o=e,a=t.sourceId,V(o,(function(e){return e.sourceId!==a}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Gn(e,s,i):e;case"FETCH_EVENT_SOURCES":return Jn(e,t.sourceIds?W(t.sourceIds):Kn(e,i),s,t.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,i){var o,a=e[t];if(a&&n===a.latestFetchId)return(0,r.pi)((0,r.pi)({},e),((o={})[t]=(0,r.pi)((0,r.pi)({},a),{isFetching:!1,fetchRange:i}),o));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function qn(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Yn(e,t,n,i){for(var o={},a=0,s=t;a<s.length;a++){var u=s[a];o[u.sourceId]=u}return n&&(o=Gn(o,n,i)),(0,r.pi)((0,r.pi)({},e),o)}function Gn(e,t,n){return Jn(e,V(e,(function(e){return function(e,t,n){if(!$n(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)})),t,!1,n)}function Jn(e,t,n,r,i){var o={};for(var a in e){var s=e[a];t[a]?o[a]=Xn(s,n,r,i):o[a]=s}return o}function Xn(e,t,n,i){var o=i.options,a=i.calendarApi,s=i.pluginHooks.eventSourceDefs[e.sourceDefId],u=v();return s.fetch({eventSource:e,range:t,isRefetch:n,context:i},(function(n){var r=n.rawEvents;o.eventSourceSuccess&&(r=o.eventSourceSuccess.call(a,r,n.xhr)||r),e.success&&(r=e.success.call(a,r,n.xhr)||r),i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:u,fetchRange:t,rawEvents:r})}),(function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(a,n),e.failure&&e.failure(n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:u,fetchRange:t,error:n})})),(0,r.pi)((0,r.pi)({},e),{isFetching:!0,latestFetchId:u})}function Kn(e,t){return V(e,(function(e){return $n(e,t)}))}function $n(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Qn(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function er(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function tr(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function nr(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function rr(e,t,n,r,i){var o=[];return{headerToolbar:e.headerToolbar?ir(e.headerToolbar,e,t,n,r,i,o):null,footerToolbar:e.footerToolbar?ir(e.footerToolbar,e,t,n,r,i,o):null,viewsWithButtons:o}}function ir(e,t,n,r,i,o,a){return B(e,(function(e){return function(e,t,n,r,i,o,a){var s="rtl"===t.direction,u=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{};return(e?e.split(" "):[]).map((function(e){return e.split(",").map((function(e){return"title"===e?{buttonName:e}:((t=u[e])?(d=function(e){t.click&&t.click.call(e.target,e,e.target)},(f=r.getCustomButtonIconClass(t))||(f=r.getIconClass(e,s))||(p=t.text)):(n=i[e])?(a.push(e),d=function(){o.changeView(e)},(p=n.buttonTextOverride)||(f=r.getIconClass(e,s))||(p=n.buttonTextDefault)):o[e]&&(d=function(){o[e]()},(p=l[e])||(f=r.getIconClass(e,s))||(p=c[e])),{buttonName:e,buttonClick:d,buttonIcon:f,buttonText:p});var t,n,d,f,p}))}))}(e,t,n,r,i,o,a)}))}function or(e,t,n,r,i){var o=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+ar(t)}(t,n):o=ar(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var e=!1,t=void 0;try{t=JSON.parse(a.responseText),e=!0}catch(n){}e?r(t,a):i("Failure parsing JSON",a)}else i("Request failed",a)},a.onerror=function(){i("Request failed",a)},a.send(o)}function ar(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function sr(e,t){for(var n=F(t.getCurrentData().eventSources),r=[],i=0,o=e;i<o.length;i++){for(var a=o[i],s=!1,u=0;u<n.length;u+=1)if(n[u]._raw===a){n.splice(u,1),s=!0;break}s||r.push(a)}for(var l=0,c=n;l<c.length;l++){var d=c[l];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.calendarApi.addEventSource(h)}}var ur=[Rn({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),Rn({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;
1!function(e,t,n){var r=!1,i=function(){r||(r=!0,t.apply(this,arguments))},o=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(i,o);a&&"function"==typeof a.then&&a.then(i,o)}(e.eventSource.meta.bind(null,bt(e.range,r)),(function(e){t({rawEvents:e})}),n)}}]}),Rn({eventSourceRefiners:{method:String,extraParams:Me,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var i=e.eventSource.meta,o=function(e,t,n){var i,o,a,s,u=n.dateEnv,l=n.options,c={};null==(i=e.startParam)&&(i=l.startParam);null==(o=e.endParam)&&(o=l.endParam);null==(a=e.timeZoneParam)&&(a=l.timeZoneParam);s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};(0,r.pi)(c,s),c[i]=u.formatIso(t.start),c[o]=u.formatIso(t.end),"local"!==u.timeZone&&(c[a]=u.timeZone);return c}(i,e.range,e.context);or(i.method,i.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}}]}),Rn({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(i=e.endTime,o=e.startTime,r={years:i.years-o.years,months:i.months-o.months,days:i.days-o.days,milliseconds:i.milliseconds-o.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var i,o;return null},expand:function(e,t,n){var r=et(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var i=e?W(e):null,o=k(n.start),a=n.end,s=[];for(;o<a;){var u=void 0;i&&!i[o.getUTCDay()]||(u=t?r.add(o,t):o,s.push(u)),o=S(o,1)}return s}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:Me,startTime:X,endTime:X,duration:X,startRecur:Me,endRecur:Me}}),Rn({optionChangeHandlers:{events:function(e,t){sr([e],t)},eventSources:sr}}),Rn({isLoadingFuncs:[function(e){return qn(e.eventSources)}],contentTypeHandlers:{html:function(){return{render:lr}},domNodes:function(){return{render:cr}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",(0,r.pi)((0,r.pi)({},bt(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Ht(e,t))}}})];function lr(e,t){e.innerHTML=t}function cr(e,t){var n=Array.prototype.slice.call(e.childNodes),r=Array.prototype.slice.call(t);if(!re(n,r)){for(var i=0,o=r;i<o.length;i++){var s=o[i];e.appendChild(s)}n.forEach(a)}}var dr=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),fr=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new dr(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function pr(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,be(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};
1if("month"===t)return{year:"numeric",month:"long"};var n=R(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var hr=function(){function e(e){var t=this;this.computeOptionsData=ie(this._computeOptionsData),this.computeCurrentViewData=ie(this._computeCurrentViewData),this.organizeRawLocales=ie(Ft),this.buildLocale=ie(Zt),this.buildPluginHooks=kn(),this.buildDateEnv=ie(vr),this.buildTheme=ie(gr),this.parseToolbars=ie(rr),this.buildViewSpecs=ie(Wn),this.buildDateProfileGenerator=oe(mr),this.buildViewApi=ie(yr),this.buildViewUiProps=oe(Dr),this.buildEventUiBySource=ie(br,Z),this.buildEventUiBases=ie(Er),this.parseContextBusinessHours=oe(Cr),this.buildTitle=ie(pr),this.emitter=new rn,this.actionRunner=new fr(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},i=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),o=i.calendarOptions.initialView||i.pluginHooks.initialView,a=this.computeCurrentViewData(o,i,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);var s,u,l,c=(s=i.calendarOptions,u=i.dateEnv,null!=(l=s.initialDate)?u.createMarker(l):Ot(s.now,u)),d=a.dateProfileGenerator.build(c);rt(d.activeRange,c)||(c=d.currentRange.start);for(var f={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},p=0,h=i.pluginHooks.contextInit;p<h.length;p++){(0,h[p])(f)}for(var v=Ln(i.calendarOptions,d,f),g={dynamicOptionOverrides:n,currentViewType:o,currentDate:c,dateProfile:d,businessHours:this.parseContextBusinessHours(f),eventSources:v,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(f).selectionConfig},m=(0,r.pi)((0,r.pi)({},f),g),y=0,b=i.pluginHooks.reducers;y<b.length;y++){var E=b[y];(0,r.pi)(g,E(null,null,m))}Sr(g,f)&&this.emitter.trigger("loading",!0),this.state=g,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?(0,r.pi)((0,r.pi)({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,i=t.state,o=t.emitter,a=function(e,t){var n;switch(t.type){case"SET_OPTION":return(0,r.pi)((0,r.pi)({},e),((n={})[t.optionName]=t.rawOptionValue,n));default:return e}}(i.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),u=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(i.currentViewType,e),l=this.computeCurrentViewData(u,s,n.optionOverrides,a);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(l.options);var c={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},d=i.currentDate,f=i.dateProfile;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(f=l.dateProfileGenerator.build(d)),f=function(e,t,n,r){var i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":if(!e.activeRange||!rt(e.currentRange,t.dateMarker))return r.build(t.dateMarker);break;case"PREV":if((i=r.buildPrev(e,n)).isValid)return i;break;case"NEXT":if((i=r.buildNext(e,n)).isValid)return i}return e}(f,e,d=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(d,e),l.dateProfileGenerator),rt(f.currentRange,d)||(d=f.currentRange.start);for(var p=jn(i.eventSources,e,f,c),h=gn(i.eventStore,e,p,f,c),v=qn(p)&&!l.options.progressiveEventRendering&&i.renderableEventStore||h,g=this.buildViewUiProps(c),m=g.eventUiSingleBase,y=g.selectionConfig,b=this.buildEventUiBySource(p),E={dynamicOptionOverrides:a,currentViewType:u,currentDate:d,dateProfile:f,eventSources:p,eventStore:h,renderableEventStore:v,selectionConfig:y,eventUiBases:this.buildEventUiBases(v.defs,m,b),businessHours:this.parseContextBusinessHours(c),dateSelection:Qn(i.dateSelection,e),eventSelection:er(i.eventSelection,e),eventDrag:tr(i.eventDrag,e),eventResize:nr(i.eventResize,e)},D=(0,r.pi)((0,r.pi)({},c),E),S=0,C=s.pluginHooks.reducers;S<C.length;S++){var T=C[S];(0,r.pi)(E,T(i,e,D))}var w=Sr(i,c),R=Sr(E,c);!w&&R?o.trigger("loading",!0):w&&!R&&o.trigger("loading",!1),this.state=E,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e,t,n,i,o,a,s,u,l,c=this.props,d=this.state,f=this.data,p=this.computeOptionsData(c.optionOverrides,d.dynamicOptionOverrides,c.calendarApi),h=this.computeCurrentViewData(d.currentViewType,p,
1c.optionOverrides,d.dynamicOptionOverrides),v=this.data=(0,r.pi)((0,r.pi)((0,r.pi)({viewTitle:this.buildTitle(d.dateProfile,h.options,p.dateEnv),calendarApi:c.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},p),h),d),g=p.pluginHooks.optionChangeHandlers,m=f&&f.calendarOptions,y=p.calendarOptions;if(m&&m!==y)for(var b in m.timeZone!==y.timeZone&&(d.eventSources=v.eventSources=(a=v.eventSources,s=d.dateProfile,u=v,l=s?s.activeRange:null,Jn(a,Kn(a,u),l,!0,u)),d.eventStore=v.eventStore=(e=v.eventStore,t=f.dateEnv,n=v.dateEnv,i=e.defs,o=B(e.instances,(function(e){var o=i[e.defId];return o.allDay||o.recurringDef?e:(0,r.pi)((0,r.pi)({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})})),{defs:i,instances:o})),g)m[b]!==y[b]&&g[b](y[b],v);c.onData&&c.onData(v)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),i=r.refinedOptions,o=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData;Tr(r.extra);var u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,s,i.defaultRangeSeparator),l=this.buildViewSpecs(o.views,e,t,a),c=this.buildTheme(i,o);return{calendarOptions:i,pluginHooks:o,dateEnv:u,viewSpecs:l,theme:c,toolbarConfig:this.parseToolbars(i,e,c,l,n),localeDefaults:a,availableRawLocales:s.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=ke([De,e,t]),i=n.locales,o=n.locale,a=this.organizeRawLocales(i),s=a.map,u=this.buildLocale(o||a.defaultCode,s).options,l=this.buildPluginHooks(e.plugins||[],ur),c=this.currentCalendarOptionsRefiners=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},Ee),Se),Ce),l.listenerRefiners),l.optionRefiners),d={},f=ke([De,u,e,t]),p={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,g=!1;for(var m in f)"plugins"!==m&&(f[m]===h[m]||Te[m]&&m in h&&Te[m](h[m],f[m])?p[m]=v[m]:c[m]?(p[m]=c[m](f[m]),g=!0):d[m]=h[m]);return g&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=p),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:a,localeDefaults:u,extra:d}},e.prototype._computeCurrentViewData=function(e,t,n,r){var i=t.viewSpecs[e];if(!i)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var o=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r),a=o.refinedOptions;return Tr(o.extra),{viewSpec:i,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.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(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,i,o){var a=ke([De,e.optionDefaults,n,i,e.optionOverrides,o]),s=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},Ee),Se),Ce),Re),t.listenerRefiners),t.optionRefiners),u={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,f={};for(var p in a)a[p]===l[p]?u[p]=c[p]:(a[p]===this.currentCalendarOptionsInput[p]?p in this.currentCalendarOptionsRefined&&(u[p]=this.currentCalendarOptionsRefined[p]):s[p]?u[p]=s[p](a[p]):f[p]=a[p],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=u),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:f}},e}();function vr(e,t,n,r,i,o,a,s){var u=Zt(t||a.defaultCode,a.map);return new Vt({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:u,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function gr(e,t){return new(t.themeClasses[e.themeSystem]||In)(e)}function mr(e){return new(e.dateProfileGeneratorClass||Zn)(e)}function yr(e,t,n){return new Rt(e,t,n)}function br(e){return B(e,(function(e){return e.ui}))}function Er(e,t,n){var r={"":t};for(var i in e){var o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}function Dr(e){var t=e.options;return{eventUiSingleBase:Ue({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroun
1dColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Ue({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Sr(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function Cr(e){return Yt(e.options.businessHours,e)}function Tr(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var wr=function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new hr({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return(0,r.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t}(i.wA);var Rr=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}();function kr(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}var Ir={};(function(){function e(e,t){this.emitter=new rn}e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){}})(),Boolean;var Mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return i.az.apply(void 0,(0,r.pr)(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,o=[],a=!0,s=0,u=e;s<u.length;s++){var l=u[s],c=l.buttonName,d=l.buttonClick,f=l.buttonText,p=l.buttonIcon;if("title"===c)a=!1,o.push((0,i.az)("h2",{className:"fc-toolbar-title"},t.title));else{var h=p?{"aria-label":c}:{},v=["fc-"+c+"-button",n.getClass("button")];c===t.activeButton&&v.push(n.getClass("buttonActive"));var g=!t.isTodayEnabled&&"today"===c||!t.isPrevEnabled&&"prev"===c||!t.isNextEnabled&&"next"===c;o.push((0,i.az)("button",(0,r.pi)({disabled:g,className:v.join(" "),onClick:d,type:"button"},h),f||(p?(0,i.az)("span",{className:p}):"")))}}if(o.length>1){var m=a&&n.getClass("buttonGroup")||"";return i.az.apply(void 0,(0,r.pr)(["div",{className:m}],o))}return o[0]},t}(fn),Or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,a=!1,s=r.center;r.left?(a=!0,e=r.left):e=r.start,r.right?(a=!0,t=r.right):t=r.end;var u=[o||"","fc-toolbar",a?"fc-toolbar-ltr":""];return(0,i.az)("div",{className:u.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return(0,i.az)(Mr,{key:e,widgetGroups:t,title:n.title,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})},t}(fn),xr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,vn(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return n?null!==t.availableWidth?o=t.availableWidth/n:a=1/n*100+"%":o=e.height||"",(0,i.az)("div",{ref:this.handleEl,onClick:e.onClick,className:r.join(" "),style:{height:o,paddingBottom:a}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(fn),Nr=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,i=r.context,o=at(t);if(o&&r.isValidSegDownEl(e.target)){var a=s(e.target,".fc-event-forced-url"),u=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new Nt(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:i.viewApi}),u&&!e.defaultPrevented&&(window.location.href=u)}},n.destroy=p(t.el,"click",".fc-event",n.handleSegClick),n}return(0,r.ZT)(t,e),t}(Rr),Pr=function(e){function t(t){var n,r,i,o,a,s=e.call(this,t)||this;return s.handleEventElRemove=function(e){e===s.currentSegEl&&s.handleSegLeave(null,s.currentSegEl)},s.handleSegEnter=function(e,t){at(t)&&(s.currentSegEl=t,s.triggerEvent("eventMouseEnter",e,t))},s.handleSegLeave=function(e,t){s.currentSegEl&&(s.currentSegEl=null,s.triggerEvent("eventMouseLeave",e,t))},s.removeHoverListeners=(n=t.el,r=".fc-event",i=s.handleSegEnter,o=s.handleSegLeave,p(n,"mouseover",r,(function(e,t){t!==a&&(a=t,i(e,t),t.addEventListener("mouseleave",(function e(n){a=null,o(n,t),t.removeEventListener("mouseleave",e)})))}))),s}return(0,r.ZT)(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,o=at(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new Nt(i,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:i.viewApi})},t}(Rr),Hr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=ie(cn),t.buildViewPropTransformers=ie(zr),t.buildToolbarProps=ie(_r),t.handleNavLinkClick=f("a[data-navlink]",t._handleNavLinkClick.bind(t)),t.headerRef=(0,i.Vf)(),t.footerRef=(0,i.Vf)(),t.interactionsStore={},t.registerInteractiveComponent=function(e,n){var r=kr(e,n),i=[Nr,Pr].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=i,Ir[e.uid]=r},t.unregisterInteractiveComponent=function(e){for(var n=0,r=t.interactionsStore[e.uid];n<r.length;n++){r[n].destroy()}delete t.interactionsStore[e.uid],delete Ir[e.uid]},t.resizeRunner=new dr((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,o=t.options,a=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Ot(t.options.now,t.dateEnv),t.viewTitle),s=!1,u="";t.isHeightAuto||t.forPrint?u="":null!=o.height?s=!0:null!=o.contentHeight?u=o.contentHeight:e=Math.max(o.aspectRatio,.5);var l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent);return(0,i.az)(ln.Provider,{value:l},n.headerToolbar&&(0,i.az)(Or,(0,r.pi)({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.headerToolbar},a)),(0,i.az)(xr,{liquid:s,height:u,aspectRatio:e,onClick:this.handleNavLinkClick},this.renderView(t),this.buildAppendContent()),n.footerToolbar&&(0,i.az)(Or,(0,r.pi)({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footerToolbar},a)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},t.prototype._handleNavLinkClick=function(e,t){var n=this.props,r=n.dateEnv,i=n.options,o=n.calendarApi,a=t.getAttribute("data-navlink");a=a?JSON.parse(a):{};var s=r.createMarker(a.date),u=a.type,l="day"===u?i.navLinkDayClick:"week"===u?i.navLinkWeekClick:null;"function"==typeof l?l.call(o,r.toDate(s),e):("string"==typeof l&&(u=l),o.zoomTo(s,u))},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));
1return i.az.apply(void 0,(0,r.pr)([i.HY,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,o={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},a=0,s=this.buildViewPropTransformers(t.viewPropsTransformers);a<s.length;a++){var u=s[a];(0,r.pi)(o,u.transform(o,e))}var l=n.component;return(0,i.az)(l,(0,r.pi)({},o))},t}(dn);function _r(e,t,n,r,i,o){var a=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),u=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,isTodayEnabled:a.isValid&&!rt(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:u.isValid}}function zr(e){return e.map((function(e){return new e}))}var Ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,o=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Gt()||o.push("fc-liquid-hack"),e.children(o,i,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(fn);var Ur="fc-col-header-cell";function Vr(e){return e.text}var Br=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,o=e.theme,a=e.viewApi,s=this.props,u=s.date,l=s.dateProfile,c=Kt(u,s.todayRange,null,l),d=[Ur].concat($t(c,o)),f=t.format(u,s.dayHeaderFormat),p=n.navLinks&&!c.isDisabled&&s.colCnt>1?{"data-navlink":Qt(u),tabIndex:0}:{},h=(0,r.pi)((0,r.pi)((0,r.pi)({date:t.toDate(u),view:a},s.extraHookProps),{text:f}),c);return(0,i.az)(On,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Vr,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,o){return(0,i.az)("th",(0,r.pi)({ref:e,className:d.concat(t).join(" "),"data-date":c.isDisabled?void 0:te(u),colSpan:s.colSpan},s.extraDataAttrs),(0,i.az)("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&(0,i.az)("a",(0,r.pi)({ref:n,className:["fc-col-header-cell-cushion",s.isSticky?"fc-sticky":""].join(" ")},p),o)))}))},t}(fn),Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,o=t.theme,a=t.viewApi,s=t.options,u=S(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[Ur].concat($t(l,o),e.extraClassNames||[]),d=n.format(u,e.dayHeaderFormat),f=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({date:u},l),{view:a}),e.extraHookProps),{text:d});return(0,i.az)(On,{hookProps:f,classNames:s.dayHeaderClassNames,content:s.dayHeaderContent,defaultContent:Vr,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},(function(t,n,o,a){return(0,i.az)("th",(0,r.pi)({ref:t,className:c.concat(n).join(" "),colSpan:e.colSpan},e.extraDataAttrs),(0,i.az)("div",{className:"fc-scrollgrid-sync-inner"},(0,i.az)("a",{className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},a)))}))},t}(fn),Fr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=Ot(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=C(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,X(1,e.unit)),o=i.valueOf()-n.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:Zr(r)},nextState:{nowDate:i,todayRange:Zr(i)},waitMs:o}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=ln,t}(i.wA);function Zr(e){var t=k(e);return{start:t,end:S(t,1)}}var Lr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=ie(jr),t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,a=t.renderIntro,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return(0,i.az)(Fr,{unit:"day"},(function(e,t){return(0,i.az)("tr",null,a&&a("day"),n.map((function(e){return o?(0,i.az)(Br,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:s}):(0,i.az)(Wr,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s})}
1)))}))},t}(fn);function jr(e,t,n){return e||function(e,t){return be(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,n)}var qr=function(){function e(e,t){for(var n=e.start,r=e.end,i=[],o=[],a=-1;n<r;)t.isHiddenDay(n)?i.push(a+.5):(a+=1,i.push(a),o.push(n)),n=S(n,1);this.dates=o,this.indices=i,this.cnt=o.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(S(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(w(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Yr=function(){function e(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n+=1);i=Math.ceil(o.length/n)}else i=1,n=o.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,o=n.lastIndex,a=i;a<=o;){var s=Math.floor(a/t),u=Math.min((s+1)*t,o+1);r.push({row:s,firstCol:a%t,lastCol:(u-1)%t,isStart:n.isStart&&a===i,isEnd:n.isEnd&&u-1===o}),a=u}return r},e}(),Gr=function(){function e(){this.sliceBusinessHours=ie(this._sliceBusinessHours),this.sliceDateSelection=ie(this._sliceDateSpan),this.sliceEventStore=ie(this._sliceEventStore),this.sliceEventDrag=ie(this._sliceInteraction),this.sliceEventResize=ie(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,i){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=e.eventUiBases,u=this.sliceEventStore.apply(this,(0,r.pr)([e.eventStore,s,t,n],o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,(0,r.pr)([e.dateSelection,s,i],o)),businessHourSegs:this.sliceBusinessHours.apply(this,(0,r.pr)([e.businessHours,t,n,i],o)),fgEventSegs:u.fg,bgEventSegs:u.bg,eventDrag:this.sliceEventDrag.apply(this,(0,r.pr)([e.eventDrag,s,t,n],o)),eventResize:this.sliceEventResize.apply(this,(0,r.pr)([e.eventResize,s,t,n],o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this._sliceDateSpan.apply(this,(0,r.pr)([{range:{start:e,end:C(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,i){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];return e?this._sliceEventStore.apply(this,(0,r.pr)([Y(e,Jr(t,Boolean(n)),i),{},t,n],o)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];if(e){var a=it(e,t,Jr(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];if(!e)return null;var a=it(e.mutatedEvents,t,Jr(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];if(!e)return[];for(var a=Dt(e,t,n),s=this.sliceRange.apply(this,(0,r.pr)([e.range],i)),u=0,l=s;u<l.length;u++){var c=l[u];c.eventRange=a}return s},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];n.push.apply(n,this.sliceEventRange(o,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:S(n.start,1)});for(var i=this.sliceRange.apply(this,(0,r.pr)([n],t)),o=0,a=i;o<a.length;o++){var s=a[o];s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return i},e}();function Jr(e,t){var n=e.activeRange;return t?n:{start:C(n.start,e.slotMinTime.milliseconds),end:C(n.end,e.slotMaxTime.milliseconds-864e5)}}var Xr=/^(visible|hidden)$/,Kr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,vn(t.props.elRef,e)},t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),(0,i.az)("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(Xr.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(Xr.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return Xr.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return Xr.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(fn),$r=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,i=r.depths,o=r.currentMap,a=!1,s=!1;null!==e?(a=n in o,o[n]=e,i[n]=(i[n]||0)+1,s=!0):(i[n]-=1,i[n]||(delete o[n],delete t.callbackMap[n],a=!0)),t.masterCallback&&(a&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return function(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var i=[];null==n&&(n=Object.keys(e).length);for(var o=t;o<n;o+=r){var a=e[o];void 0!==a&&i.push(a)}return i}(this.currentMap,e,t,n)},e.prototype.getAll=function(){return F(this.currentMap)},e}();function Qr(e){for(var t=0,n=0,r=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i+=1)for(var o=n[i].querySelectorAll(t),a=0;a<o.length;a+=1)r.push(o[a]);return r}(e,".fc-scrollgrid-shrink");n<r.length;n++){var i=r[n];t=Math.max(t,b(i))}return Math.ceil(t)}function ei(e,t){return e.liquid&&t.liquid}function ti(e,t){return re(e,t,Z)}function ni(e,t){for(var n=[],o=0,a=e;o<a.length;o++)for(var s=a[o],u=s.span||1,l=0;l<u;l+=1)n.push((0,i.az)("col",{style:{width:"shrink"===s.width?ri(t):s.width||"",minWidth:s.minWidth||""}}));
1return i.az.apply(void 0,(0,r.pr)(["colgroup",{}],n))}function ri(e){return null==e?4:e}function ii(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function oi(e){return(0,i.az)("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ai(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function si(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=ie((function(e){return e}),ti),t.renderMicroColGroup=ie(ni),t.scrollerRefs=new $r,t.scrollerElRefs=new $r(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState((0,r.pi)({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,o=e.context,a=t.sections||[],s=this.processCols(t.cols),u=this.renderMicroColGroup(s,n.shrinkWidth),l=function(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}(t.liquid,o);t.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");for(var c,d=a.length,f=0,p=[],h=[],v=[];f<d&&"header"===(c=a[f]).type;)p.push(this.renderSection(c,u)),f+=1;for(;f<d&&"body"===(c=a[f]).type;)h.push(this.renderSection(c,u)),f+=1;for(;f<d&&"footer"===(c=a[f]).type;)v.push(this.renderSection(c,u)),f+=1;var g=!Gt();return(0,i.az)("table",{className:l.join(" "),style:{height:t.height}},Boolean(!g&&p.length)&&i.az.apply(void 0,(0,r.pr)(["thead",{}],p)),Boolean(!g&&h.length)&&i.az.apply(void 0,(0,r.pr)(["tbody",{}],h)),Boolean(!g&&v.length)&&i.az.apply(void 0,(0,r.pr)(["tfoot",{}],v)),g&&i.az.apply(void 0,(0,r.pr)(["tbody",{}],p,h,v)))},t.prototype.renderSection=function(e,t){return"outerContent"in e?(0,i.az)(i.HY,{key:e.key},e.outerContent):(0,i.az)("tr",{key:e.key,className:ii(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk))},t.prototype.renderChunkTd=function(e,t,n){if("outerContent"in n)return n.outerContent;var r=this.props,o=this.state,a=o.forceYScrollbars,s=o.scrollerClientWidths,u=o.scrollerClientHeights,l=function(e,t){return null!=t.maxHeight||ei(e,t)}(r,e),c=ei(r,e),d=r.liquid?a?"scroll":l?"auto":"hidden":"visible",f=e.key,p=function(e,t,n){var r=n.expandRows;return"function"==typeof t.content?t.content(n):(0,i.az)("table",{className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,(0,i.az)("tbody",{},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===s[f]?null:s[f],clientHeight:void 0!==u[f]?u[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}});return(0,i.az)("td",{ref:n.elRef},(0,i.az)("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},(0,i.az)(Kr,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:r.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.key===t)return i}return null}(this.props.sections,t);n&&vn(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return function(e){for(var t=0,n=e;t<n.length;t++)if("shrink"===n[t].width)return!0;return!1}(this.props.cols)?Qr(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=tn(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,i={},o={};for(var a in t.currentMap){var s=t.currentMap[a];if(s&&s.needsYScrolling()){r=!0;break}}for(var u=0,l=this.props.sections;u<l.length;u++){a=l[u].key;var c=n.currentMap[a];if(c){var d=c.parentNode;i[a]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),o[a]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:o}},t}(fn);ui.addStateEquality({scrollerClientWidths:Z,scrollerClientHeights:Z});var li=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=(0,i.Vf)(),t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,o=r.eventRange,a=o.ui,s={event:new Nt(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&dt(r,t),isStartResizable:!e.disableResizing&&ft(r,t),isEndResizable:!e.disableResizing&&pt(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)},u=function(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}(s).concat(a.classNames);return(0,i.az)(On,{hookProps:s,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,i){return e.children(t,u.concat(n),r,i,s)}))},t.prototype.componentDidMount=function(){ot(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&ot(this.elRef.current,t)},t}(fn),ci=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,o=t.options.eventTimeFormat||e.defaultTimeFormat,a=ht(n,o,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return(0,i.az)(li,{seg:n,timeText:a,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||di,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(t,o,a,s,u){return(0,i.az)("a",(0,r.pi)({className:e.extraClassNames.c
1oncat(o).join(" "),style:{borderColor:u.borderColor,backgroundColor:u.backgroundColor},ref:t},function(e){var t=e.eventRange.def.url;return t?{href:t}:{}}(n)),(0,i.az)("div",{className:"fc-event-main",ref:a,style:{color:u.textColor}},s),u.isStartResizable&&(0,i.az)("div",{className:"fc-event-resizer fc-event-resizer-start"}),u.isEndResizable&&(0,i.az)("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(fn);function di(e){return(0,i.az)("div",{className:"fc-event-main-frame"},e.timeText&&(0,i.az)("div",{className:"fc-event-time"},e.timeText),(0,i.az)("div",{className:"fc-event-title-container"},(0,i.az)("div",{className:"fc-event-title fc-sticky"},e.event.title||(0,i.az)(i.HY,null,"Â "))))}var fi=be({day:"numeric"}),pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=hi({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return(0,i.az)(Nn,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(fn);function hi(e){var t=e.date,n=e.dateEnv,i=Kt(t,e.todayRange,null,e.dateProfile);return(0,r.pi)((0,r.pi)((0,r.pi)({date:n.toDate(t),view:e.viewApi},i),{dayNumberText:e.showDayNumber?n.format(t,fi):""}),e.extraProps)}var vi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=oe(hi),t.normalizeClassNames=_n(),t}return(0,r.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),o=$t(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),a=r.isDisabled?{}:{"data-date":te(e.date)};return(0,i.az)(Hn,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,o,a,r.isDisabled)}))},t}(fn);function gi(e){return(0,i.az)("div",{className:"fc-"+e})}var mi=function(e){return(0,i.az)(li,{defaultContent:yi,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,o){return(0,i.az)("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)}))};function yi(e){return e.event.title&&(0,i.az)("div",{className:"fc-event-title"},e.event.title)}var bi=function(e){return(0,i.az)(ln.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,o=e.date,a=r.weekNumberFormat||e.defaultFormat,s={num:n.computeWeekNumber(o),text:n.format(o,a),date:o};return(0,i.az)(On,{hookProps:s,classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:Ei,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function Ei(e){return e.text}}}]); 2//# sourceMappingURL=76d22f9e-2d57f7674f67fc649eac.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.