iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 267 kB
JavaScript
/*! For license information please see chunk.26685ebc1ceb380523c0.js.LICENSE.txt */
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[6889],{36582:(e,t,n)=>{"use strict";n.d(t,{kgr:()=>We,H6J:()=>Zn,I_K:()=>oi,zeW:()=>on,BdM:()=>Eo,FEm:()=>Zr,Tdg:()=>To,hiv:()=>vr,IdW:()=>cr,VPe:()=>Sr,R_3:()=>ti,hJ8:()=>ei,lR3:()=>_o,xB8:()=>No,xVj:()=>Po,snJ:()=>Qr,KDF:()=>co,A9I:()=>jn,Q5$:()=>Ln,voO:()=>an,Vsx:()=>Jo,HYg:()=>d,U4m:()=>io,wh8:()=>Ro,zIV:()=>Un,lAU:()=>Lo,QJ3:()=>hr,Qgo:()=>Vn,Ttm:()=>Bo,Oh2:()=>Zo,RVT:()=>Oo,h2k:()=>Xo,xS$:()=>wr,QOi:()=>ai,Obu:()=>Fn,E4D:()=>Q,jh6:()=>q,N0T:()=>B,sGN:()=>H,rfG:()=>Jt,bg6:()=>T,oWe:()=>x,vuT:()=>ln,rRV:()=>Ut,Euv:()=>Mn,r39:()=>Bt,z6t:()=>V,skW:()=>Hn,AYo:()=>zn,vc:()=>uo,Jq9:()=>Dn,Pvs:()=>Ee,azq:()=>l,ifx:()=>nt,$N4:()=>ae,SPZ:()=>je,rxu:()=>ur,VfA:()=>u,Pe9:()=>wt,vrY:()=>xn,bXg:()=>G,deF:()=>N,x_n:()=>w,App:()=>A,_OJ:()=>P,rod:()=>et,Hcb:()=>p,SVl:()=>xe,U4g:()=>Bn,iCZ:()=>Cn,yLW:()=>Rn,$Td:()=>Zt,BJe:()=>Mt,iFU:()=>Tn,SOE:()=>tt,jHR:()=>Lt,PZw:()=>Go,Q8U:()=>Yo,yRu:()=>Ke,T6u:()=>lo,Rac:()=>so,cMs:()=>Tt,VEA:()=>An,CnA:()=>v,omy:()=>Ft,WoG:()=>nr,p7j:()=>Et,S6v:()=>pe,_aR:()=>ue,HPs:()=>ke,WOi:()=>po,mTn:()=>mt,BKI:()=>wn,ipI:()=>z,ZSf:()=>O,urV:()=>St,Boe:()=>vt,bXf:()=>g,sYA:()=>c,MA3:()=>ri,Hbc:()=>Qo,k$v:()=>Kn,y$4:()=>Ct,hak:()=>Nt,b7Q:()=>X,HpC:()=>Yt,ONu:()=>M});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function a(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}Object.create;if("undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var s=FullCalendarVDom.Component,l=FullCalendarVDom.createElement,c=FullCalendarVDom.render,u=FullCalendarVDom.createRef,d=FullCalendarVDom.Fragment,f=FullCalendarVDom.createContext,p=FullCalendarVDom.flushToDom,h=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]})},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}),e}();function v(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r++)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function g(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e,t){e.innerHTML=t}function y(e,t){var n=Array.prototype.slice.call(e.childNodes),r=Array.prototype.slice.call(t);if(!v(n,r)){for(var o=0,i=r;o<i.length;o++){var a=i[o];e.appendChild(a)}n.forEach(g)}}var b=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,E=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(A(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function w(e,t){return E.call(e,t)}function A(e,t){return b.call(e,t)}var D=/(top|left|right|bottom|width|height)$/i;function T(e,t){for(var n in t)x(e,n,t[n])}function x(e,t,n){null==n?e.style[t]="":"number"==typeof n&&D.test(t)?e.style[t]=n+"px":e.style[t]=n}function S(e){e.preventDefault()}function k(e,t){return function(n){var r=w(n.target,e);r&&t.call(r,n,r)}}function C(e,t,n,r){var o=k(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var R=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function M(e,t){var n=function(r){t(r),R.forEach((function(t){e.removeEventListener(t,n)}))};R.forEach((function(t){e.addEventListener(t,n)}))}var _=0;function I(){return String(_++)}function N(){document.body.classList.add("fc-not-allowed")}function P(){document.body.classList.remove("fc-not-allowed")}function O(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",S)}function H(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",S)}function z(e){e.addEventListener("contextmenu",S)}function B(e){e.removeEventListener("contextmenu",S)}function L(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 U(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function V(e,t){return e-t}function j(e){return e%1==0}function F(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 W=["sun","mon","tue","wed","thu","fri","sat"];function q(e,t){var n=ne(e);return n[2]+=7*t,re(n)}function Q(e,t){var n=ne(e);return n[2]+=t,re(n)}function Y(e,t){var n=ne(e);return n[6]+=t,re(n)}function G(e,t){return Z(e,t)/7}function Z(e,t){return(t.valueOf()-e.valueOf())/864e5}function J(e,t){return ie(e)===ie(t)?Math.round(Z(e,t)):null}function X(e){return re([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function K(e,t,n,r){var o=re([t,0,1+$(t,n,r)]),i=X(e),a=Math.round(Z(o,i));return Math.floor(a/7)+1}function $(e,t,n){var r=7+t-n;return-((7+re([e,0,r]).getUTCDay()-t)%7)+r-1}function ee(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function te(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 ne(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function re(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function oe(e){return!isNaN(e.valueOf())}function ie(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function ae(e,t,n,r){return{instanceId:I(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var se=Object.prototype.hasOwnProperty;function le(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;i>=0;i--){var a=e[i][r];if("object"==typeof a&&a)o.unshift(a);else if(void 0!==a){n[r]=a;break}}o.length&&(n[r]=le(o))}for(i=e.length-1;i>=0;i--){var s=e[i];for(var l in s)l in n||(n[l]=s[l])}return n}function ce(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ue(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function de(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function fe(e){var t=[];for(var n in e)t.push(e[n]);return t}function pe(e,t){if(e===t)return!0;for(var n in e)if(se.call(e,n)&&!(n in t))return!1;for(var n in t)if(se.call(t,n)&&e[n]!==t[n])return!1;return!0}function he(e,t){var n=[];for(var r in e)se.call(e,r)&&(r in t||n.push(r));for(var r in t)se.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function ve(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!ge(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function ge(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function me(e,t,n){var r=n.dateEnv,o=n.pluginHooks,i=n.options,a=e.defs,s=e.instances;for(var l in s=ce(s,(function(e){return!a[e.defId].recurringDef})),a){var c=a[l];if(c.recurringDef){var u=c.recurringDef.duration;u||(u=c.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);for(var d=0,f=ye(c,u,t,r,o.recurringTypes);d<f.length;d++){var p=f[d],h=ae(l,{start:p,end:r.add(p,u)});s[h.instanceId]=h}}}return{defs:a,instances:s}}function ye(e,t,n,r,o){var i=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(X)),i}var be=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Ee(e,t){var n;return"string"==typeof e?function(e){var t=be.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?we(e):"number"==typeof e?we(((n={})[t||"milliseconds"]=e,n)):null}function we(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 Ae(e){return De(e)/864e5}function De(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Te(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 xe(e){return e.toISOString().replace(/T.*$/,"")}function Se(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+U(o,2)+":"+U(i,2):"GMT"+n+o+(i?":"+U(i,2):"")}function ke(e,t,n){var r,o;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r){if(!v(r,i)){n&&n(o);var s=e.apply(this,i);t&&t(s,o)||(o=s)}}else o=e.apply(this,i);return r=i,o}}function Ce(e,t,n){var r,o;return function(i){if(r){if(!pe(r,i)){n&&n(o);var a=e.call(this,i);t&&t(a,o)||(o=a)}}else o=e.call(this,i);return r=i,o}}var Re={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Me={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},_e=/\s*([ap])\.?m\.?/i,Ie=/,/g,Ne=/\s+/g,Pe=/\u200e/g,Oe=/UTC|GMT/,He=function(){function e(e){var t={},n={},r=0;for(var o in e)o in Re?(n[o]=e[o],r=Math.max(Re[o],r)):(t[o]=e[o],o in Me&&(r=Math.max(Me[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=ke(ze)}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 o=this.standardDateProps,i=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(ie(e)!==ie(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var s=a;!(s>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(s=1);var l=this.format(e,n),c=this.format(t,n);if(l===c)return l;var u=ze(function(e,t){var n={};for(var r in e)(!(r in Me)||Me[r]<=t)&&(n[r]=e[r]);return n}(o,s),i,n),d=u(e),f=u(t),p=function(e,t,n,r){var o=0;for(;o<e.length;){var i=e.indexOf(t,o);if(-1===i)break;var a=e.substr(0,i);o=i+t.length;for(var s=e.substr(o),l=0;l<n.length;){var c=n.indexOf(r,l);if(-1===c)break;var u=n.substr(0,c);l=c+r.length;var d=n.substr(l);if(a===u&&s===d)return{before:a,after:s}}}return null}(l,d,c,f),h=i.separator||r||n.defaultSeparator||"";return p?p.before+d+h+f+p.after:l+h+c},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 ze(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Se(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r){var o=[];"narrow"===r?o.push(t):"short"===r&&o.push(t," ");o.push(n.simpleNumberFormat.format(e)),"rtl"===n.options.direction&&o.reverse();return o.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.locale,t.week)}:function(e,t,n){e=i({},e),t=i({},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 r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=i({},e);delete a.minute,r=new Intl.DateTimeFormat(n.locale.codes,a)}return function(i){var a=i.marker;return function(e,t,n,r,o){e=e.replace(Pe,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(Oe,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":Se(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Ie,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(_e,"").trim():"narrow"===r.meridiem?e=e.replace(_e,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(_e,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(_e,(function(e){return e.toLocaleLowerCase()})));return e=(e=e.replace(Ne," ")).trim()}((r&&!a.getUTCMinutes()?r:o).format(a),i,e,t,n)}}(e,t,n)}function Be(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 Le(e,t,n,r){var o=Be(e,n.calendarSystem);return{date:o,start:o,end:t?Be(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var Ue=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,Le(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,Le(e,t,n,r))},e}(),Ve=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(Le(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(Le(e,t,n,r))},e}();function je(e){return"object"==typeof e&&e?new He(e):"string"==typeof e?new Ue(e):"function"==typeof e?new Ve(e):void 0}var Fe={navLinkDayClick:Ke,navLinkWeekClick:Ke,duration:Ee,bootstrapFontAwesome:Ke,buttonIcons:Ke,customButtons:Ke,defaultAllDayEventDuration:Ee,defaultTimedEventDuration:Ee,nextDayThreshold:Ee,scrollTime:Ee,slotMinTime:Ee,slotMaxTime:Ee,dayPopoverFormat:je,slotDuration:Ee,snapDuration:Ee,headerToolbar:Ke,footerToolbar:Ke,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:je,dayHeaderClassNames:Ke,dayHeaderContent:Ke,dayHeaderDidMount:Ke,dayHeaderWillUnmount:Ke,dayCellClassNames:Ke,dayCellContent:Ke,dayCellDidMount:Ke,dayCellWillUnmount:Ke,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Ke,weekNumbers:Boolean,weekNumberClassNames:Ke,weekNumberContent:Ke,weekNumberDidMount:Ke,weekNumberWillUnmount:Ke,editable:Boolean,viewClassNames:Ke,viewDidMount:Ke,viewWillUnmount:Ke,nowIndicator:Boolean,nowIndicatorClassNames:Ke,nowIndicatorContent:Ke,nowIndicatorDidMount:Ke,nowIndicatorWillUnmount:Ke,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Ke,locale:Ke,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Ke,eventOrder:function(e){var t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t++)"string"==typeof(n=o[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:Ke,contentHeight:Ke,direction:String,weekNumberFormat:je,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:Ke,initialDate:Ke,now:Ke,eventDataTransform:Ke,stickyHeaderDates:Ke,stickyFooterScrollbar:Ke,viewHeight:Ke,defaultAllDay:Boolean,eventSourceFailure:Ke,eventSourceSuccess:Ke,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Ke,eventConstraint:Ke,eventAllow:Ke,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Ke,eventContent:Ke,eventDidMount:Ke,eventWillUnmount:Ke,selectConstraint:Ke,selectOverlap:Ke,selectAllow:Ke,droppable:Boolean,unselectCancel:String,slotLabelFormat:Ke,slotLaneClassNames:Ke,slotLaneContent:Ke,slotLaneDidMount:Ke,slotLaneWillUnmount:Ke,slotLabelClassNames:Ke,slotLabelContent:Ke,slotLabelDidMount:Ke,slotLabelWillUnmount:Ke,dayMaxEvents:Ke,dayMaxEventRows:Ke,dayMinWidth:Number,slotLabelInterval:Ee,allDayText:String,allDayClassNames:Ke,allDayContent:Ke,allDayDidMount:Ke,allDayWillUnmount:Ke,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:je,rerenderDelay:Number,moreLinkText:Ke,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMinHeight:Number,slotEventOverlap:Boolean,plugins:Ke,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ee,hiddenDays:Ke,monthMode:Boolean,fixedWeekCount:Boolean,validRange:Ke,visibleRange:Ke,titleFormat:Ke,noEventsText:String},We={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},qe={datesSet:Ke,eventsSet:Ke,eventAdd:Ke,eventChange:Ke,eventRemove:Ke,windowResize:Ke,eventClick:Ke,eventMouseEnter:Ke,eventMouseLeave:Ke,select:Ke,unselect:Ke,loading:Ke,_unmount:Ke,_beforeprint:Ke,_afterprint:Ke,_noEventDrop:Ke,_noEventResize:Ke,_resize:Ke,_scrollRequest:Ke},Qe={buttonText:Ke,views:Ke,plugins:Ke,initialEvents:Ke,events:Ke,eventSources:Ke},Ye={headerToolbar:Ge,footerToolbar:Ge,buttonText:Ge,buttonIcons:Ge};function Ge(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?pe(e,t):e===t}var Ze={type:String,component:Ke,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Ke,usesMinMaxTime:Boolean,classNames:Ke,content:Ke,didMount:Ke,willUnmount:Ke};function Je(e){return le(e,Ye)}function Xe(e,t){var n={},r={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function Ke(e){return e}function $e(e,t,n,r){for(var o={defs:{},instances:{}},i=gt(n),a=0,s=e;a<s.length;a++){var l=ht(s[a],t,n,r,i);l&&et(l,o)}return o}function et(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 tt(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=ot(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return{defs:{},instances:{}}}function nt(){return{defs:{},instances:{}}}function rt(e,t){return{defs:i(i({},e.defs),t.defs),instances:i(i({},e.instances),t.instances)}}function ot(e,t){var n=ce(e.defs,t),r=ce(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function it(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var at={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Ke,overlap:Ke,allow:Ke,className:it,classNames:it,color:String,backgroundColor:String,borderColor:String,textColor:String};function st(e,t){var n=function(e,t){return Array.isArray(e)?$e(e,null,t,!0):"object"==typeof e&&e?$e([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 lt(e){return e.reduce(ct,ut)}function ct(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 ut={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]},dt={id:String,groupId:String,title:String,url:String},ft={start:Ke,end:Ke,date:Ke,allDay:Boolean},pt=i(i(i({},dt),ft),{extendedProps:Ke});function ht(e,t,n,r,o){void 0===o&&(o=gt(n));var i=vt(e,n,o),a=i.refined,s=i.extra,l=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),c=function(e,t,n,r){for(var o=0;o<r.length;o++){var i=r[o].parse(e,n);if(i){var a=e.allDay;return null==a&&null==(a=t)&&null==(a=i.allDayGuess)&&(a=!1),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(a,l,n.dateEnv,n.pluginHooks.recurringTypes);if(c)return(u=mt(a,s,t?t.sourceId:"",c.allDay,Boolean(c.duration),n)).recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:u,instance:null};var u,d=function(e,t,n,r){var o,i,a=e.allDay,s=null,l=!1,c=null,u=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(u))s=o.marker;else if(!r)return null;null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end));null==a&&(a=null!=t?t:(!o||o.isTimeUnspecified)&&(!i||i.isTimeUnspecified));a&&s&&(s=X(s));i&&(c=i.marker,a&&(c=X(c)),s&&c<=s&&(c=null));c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:l,range:{start:s,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(a,l,n,r);return d?{def:u=mt(a,s,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:ae(u.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function vt(e,t,n){return void 0===n&&(n=gt(t)),Xe(e,n)}function gt(e){return i(i(i({},at),pt),e.pluginHooks.eventRefiners)}function mt(e,t,n,r,o,a){for(var s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:I(),sourceId:n,allDay:r,hasEnd:o,ui:st(e,a),extendedProps:i(i({},e.extendedProps||{}),t)},l=0,c=a.pluginHooks.eventDefMemberAdders;l<c.length;l++){var u=c[l];i(s,u(e))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function yt(e){var t=Math.floor(Z(e.start,e.end))||1,n=X(e.start);return{start:n,end:Q(n,t)}}function bt(e,t){void 0===t&&(t=Ee(0));var n=null,r=null;if(e.end){r=X(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=De(t)&&(r=Q(r,1))}return e.start&&(n=X(e.start),r&&r<=n&&(r=Q(n,1))),{start:n,end:r}}function Et(e){var t=bt(e);return Z(t.start,t.end)>1}function wt(e,t,n,r){return"year"===r?Ee(n.diffWholeYears(e,t),"year"):"month"===r?Ee(n.diffWholeMonths(e,t),"month"):(i=t,a=X(o=e),s=X(i),{years:0,months:0,days:Math.round(Z(a,s)),milliseconds:i.valueOf()-s.valueOf()-(o.valueOf()-a.valueOf())});var o,i,a,s}function At(e,t){var n,r,o=[],i=t.start;for(e.sort(Dt),n=0;n<e.length;n++)(r=e[n]).start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function Dt(e,t){return e.start.valueOf()-t.start.valueOf()}function Tt(e,t){var n=e.start,r=e.end,o=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)&&(o={start:n,end:r}),o}function xt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function St(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function kt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Ct(e,t,n,r){var o={},i={},a={},s=[],l=[],c=_t(e.defs,t);for(var u in e.defs){"inverse-background"===(p=c[(E=e.defs[u]).defId]).display&&(E.groupId?(o[E.groupId]=[],a[E.groupId]||(a[E.groupId]=E)):i[u]=[])}for(var d in e.instances){var f=e.instances[d],p=c[(E=e.defs[f.defId]).defId],h=f.range,v=!E.allDay&&r?bt(h,r):h,g=Tt(v,n);g&&("inverse-background"===p.display?E.groupId?o[E.groupId].push(g):i[f.defId].push(g):"none"!==p.display&&("background"===p.display?s:l).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 o)for(var y=0,b=At(o[m],n);y<b.length;y++){var E,w=b[y];p=c[(E=a[m]).defId];s.push({def:E,ui:p,instance:null,range:w,isStart:!1,isEnd:!1})}for(var u in i)for(var A=0,D=At(i[u],n);A<D.length;A++){w=D[A];s.push({def:e.defs[u],ui:c[u],instance:null,range:w,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function Rt(e,t){e.fcSeg=t}function Mt(e){return e.fcSeg||e.parentNode.fcSeg||null}function _t(e,t){return ue(e,(function(e){return It(e,t)}))}function It(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),lt(n)}function Nt(e,t){var n=e.map(Pt);return n.sort((function(e,n){return function(e,t,n){var r,o;for(r=0;r<n.length;r++)if(o=L(e,t,n[r]))return o;return 0}(e,n,t)})),n.map((function(e){return e._seg}))}function Pt(e){var t=e.eventRange,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return i(i(i({},n.extendedProps),n),{id:n.publicId,start:o,end:a,duration:a-o,allDay:Number(n.allDay),_seg:e})}function Ot(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,o=r.def,i=r.ui,a=i.startEditable,s=0,l=n;s<l.length;s++){a=(0,l[s])(a,o,i,t)}return a}function Ht(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function zt(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Bt(e,t,n,r,o,i,a){var s=n.dateEnv,l=n.options,c=l.displayEventTime,u=l.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;if(null==c&&(c=!1!==r),null==u&&(u=!1!==o),c&&!d.allDay&&(e.isStart||e.isEnd)){var p=i||(e.isStart?f.range.start:e.start||e.eventRange.range.start),h=a||(e.isEnd?f.range.end:e.end||e.eventRange.range.end);return u&&d.hasEnd?s.formatRange(p,h,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:a?null:f.forcedEndTzo}):s.format(p,t,{forcedTzo:i?null:f.forcedStartTzo})}return""}function Lt(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&kt(t,r.start)}}function Ut(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}var Vt={start:Ke,end:Ke,allDay:Boolean};function jt(e,t,n){var r=function(e,t){var n=Xe(e,Vt),r=n.refined,o=n.extra,a=r.start?t.createMarkerMeta(r.start):null,s=r.end?t.createMarkerMeta(r.end):null,l=r.allDay;null==l&&(l=a&&a.isTimeUnspecified&&(!s||s.isTimeUnspecified));return i({range:{start:a?a.marker:null,end:s?s.marker:null},allDay:l},o)}(e,t),o=r.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}function Ft(e,t){return n=e.range,r=t.range,(null===n.start?null:n.start.valueOf())===(null===r.start?null:r.start.valueOf())&&(null===n.end?null:n.end.valueOf())===(null===r.end?null:r.end.valueOf())&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t);var n,r}function Wt(e,t,n){return i(i({},qt(e,t,n)),{timeZone:t.timeZone})}function qt(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 Qt(e,t,n){var r=vt({editable:!1},n),o=mt(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:It(o,t),instance:ae(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Yt(e,t,n){n.emitter.trigger("select",i(i({},Gt(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Gt(e,t){for(var n,r,o={},a=0,s=t.pluginHooks.dateSpanTransforms;a<s.length;a++){var l=s[a];i(o,l(e,t))}return i(o,(n=e,r=t.dateEnv,i(i({},qt(n.range,r,n.allDay)),{allDay:n.allDay}))),o}function Zt(e,t,n){var r=n.dateEnv,o=n.options,i=t;return e?(i=X(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function Jt(e,t,n,r){var o=_t(e.defs,t),i={defs:{},instances:{}};for(var a in e.defs){var s=e.defs[a];i.defs[a]=Xt(s,o[a],n,r)}for(var l in e.instances){var c=e.instances[l];s=i.defs[c.defId];i.instances[l]=Kt(c,s,o[c.defId],n,r)}return i}function Xt(e,t,n,r){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var a=i(i(i({},e),o),{ui:i(i({},e.ui),o.ui)});n.extendedProps&&(a.extendedProps=i(i({},a.extendedProps),n.extendedProps));for(var s=0,l=r.pluginHooks.eventDefMutationAppliers;s<l.length;s++){(0,l[s])(a,n,r)}return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function Kt(e,t,n,r,o){var a=o.dateEnv,s=r.standardProps&&!0===r.standardProps.allDay,l=r.standardProps&&!1===r.standardProps.hasEnd,c=i({},e);return s&&(c.range=yt(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:a.add(c.range.start,r.datesDelta),end:a.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:a.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:a.add(c.range.end,r.endDelta)}),l&&(c.range={start:c.range.start,end:Zt(t.allDay,c.range.start,o)}),t.allDay&&(c.range={start:X(c.range.start),end:X(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Zt(t.allDay,c.range.start,o)),c}var $t=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return 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}(),en={id:String,defaultAllDay:Boolean,url:String,events:Ke,eventDataTransform:Ke,success:Ke,failure:Ke};function tn(e,t,n){var r;if(void 0===n&&(n=nn(t)),"string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var o=Xe(r,n),i=o.refined,a=o.extra,s=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r--){var o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}(i,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:I(),sourceDefId:s.sourceDefId,meta:s.meta,ui:st(i,t),extendedProps:a}}return null}function nn(e){return i(i(i({},at),en),e.pluginHooks.eventSourceRefiners)}function rn(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var on=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=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,a([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(),o=r.viewSpecs,i=r.toolbarConfig,a=[].concat(i.viewsWithButtons);for(var s in o)a.push(s);for(t=0;t<a.length;t++)if((n=o[a[t]])&&n.singleUnit===e)return n},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:rn(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=Ee(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),je(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),je(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 r=this.getCurrentData(),o=jt(n,r.dateEnv,Ee({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),Yt(o,null,r))},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 an){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:et({def:n,instance:r})}),this.triggerEventAdd(e)),e}var o,i=this.getCurrentData();if(t instanceof h)o=t.internalEventSource;else if("boolean"==typeof t)t&&(o=fe(i.eventSources)[0]);else if(null!=t){var a=this.getEventSourceById(t);if(!a)return console.warn('Could not find an event source with ID "'+t+'"'),null;o=a.internalEventSource}var s=ht(e,o,i,!1);if(s){var l=new an(i,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:et(s)}),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:sn(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,o=n.instances;for(var i in e=String(e),r){var a=r[i];if(a.publicId===e){if(a.recurringDef)return new an(t,a,null);for(var s in o){var l=o[s];if(l.defId===a.defId)return new an(t,a,l)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return ln(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 h(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 h(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof h)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=tn(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new h(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},e.prototype.scrollToTime=function(e){var t=Ee(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),an=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 ft)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e in dt)t=dt[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in at){var o=at[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:((r={})[e]=t,o=r),this.mutate({standardProps:{ui:o}})}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 o=wt(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}},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 o=wt(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o,i,a=this._context.dateEnv,s={allDay:n.allDay},l=a.createMarker(e);if(l&&((null==t||(r=a.createMarker(t)))&&this._instance)){var c=this._instance.range;!0===n.allDay&&(c=yt(c));var u=wt(c.start,l,a,n.granularity);if(r){var d=wt(c.end,r,a,n.granularity);i=d,(o=u).years===i.years&&o.months===i.months&&o.days===i.days&&o.milliseconds===i.milliseconds?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}},e.prototype.moveStart=function(e){var t=Ee(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Ee(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Ee(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=je(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,o=this._context,i=tt(o.getCurrentData().eventStore,n.instanceId);i=Jt(i,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,o);var a=new e(o,r,n);this._def=i.defs[r.defId],this._instance=i.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:i}),o.emitter.trigger("eventChange",{oldEvent:a,event:this,relatedEvents:ln(i,o,n),revert:function(){o.dispatch({type:"REMOVE_EVENTS",eventStore:i})}})}},e.prototype.remove=function(){var e=this._context,t=sn(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new h(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,r=this.startStr,o=this.endStr,a={};return t.title&&(a.title=t.title),r&&(a.start=r),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?i(a,t.extendedProps):a.extendedProps=t.extendedProps),a},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function sn(e){var t,n,r=e._def,o=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function ln(e,t,n){var r=e.defs,o=e.instances,i=[],a=n?n.instanceId:"";for(var s in o){var l=o[s],c=r[l.defId];l.instanceId!==a&&i.push(new an(t,c,l))}return i}var cn={};var un,dn=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 re(e)},e.prototype.markerToArray=function(e){return ne(e)},e}();un=dn,cn["gregory"]=un;var fn=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var pn=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 cn[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()):re(ee(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=re(e)),null!==t&&oe(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=fn.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(oe(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)