UNPKG

naxxumhr-calander

Version:

``` npm install ```

22 lines 272 kB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["naxxumhr-calander"]=t(require("vue")):e["naxxumhr-calander"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),s=n("fc6a"),a=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=s(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),s=n("5270"),a=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=a(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=l},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"23cb":function(e,t,n){var r=n("a691"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),s=n("6eeb"),a=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,d,f,p,h,v=e.target,g=e.global,y=e.stat;if(u=g?r:y?r[v]||a(v,{}):(r[v]||{}).prototype,u)for(d in t){if(p=t[d],e.noTargetGet?(h=i(u,d),f=h&&h.value):f=u[d],n=c(g?d:v+(y?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;l(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),s(u,d,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function a(){var e;return"undefined"!==typeof XMLHttpRequest?e=n("b50d"):"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)&&(e=n("b50d")),e}var l={adapter:a(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l}).call(this,n("4362"))},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"37e8":function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),s=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=s(t),a=r.length,l=0;while(a>l)i.f(e,n=r[l++],t[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532"),i=n("6dc0");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;if(i(e))throw new Error("URL contains XSS injection attempt");return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"428f":function(e,t,n){var r=n("da84");e.exports=r},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var r=n("d039"),i=n("c6b6"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),s=r("unscopables"),a=Array.prototype;void 0==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},4990:function(e,t,n){"use strict";n.d(t,"a",(function(){return ko})),n.d(t,"b",(function(){return zr})),n.d(t,"c",(function(){return Vi})),n.d(t,"d",(function(){return Yo})),n.d(t,"e",(function(){return Zo})),n.d(t,"f",(function(){return Xo})),n.d(t,"g",(function(){return Bo})),n.d(t,"h",(function(){return jr})),n.d(t,"i",(function(){return Or})),n.d(t,"j",(function(){return hn})),n.d(t,"k",(function(){return Ao})),n.d(t,"l",(function(){return Uo})),n.d(t,"m",(function(){return Do})),n.d(t,"n",(function(){return Ir})),n.d(t,"o",(function(){return Pr})),n.d(t,"p",(function(){return kr})),n.d(t,"q",(function(){return $o})),n.d(t,"r",(function(){return br})),n.d(t,"s",(function(){return Lo})),n.d(t,"t",(function(){return Mr})),n.d(t,"u",(function(){return Z})),n.d(t,"v",(function(){return Te})),n.d(t,"w",(function(){return Y})),n.d(t,"x",(function(){return Ge})),n.d(t,"y",(function(){return Ve})),n.d(t,"z",(function(){return u})),n.d(t,"A",(function(){return Rn})),n.d(t,"B",(function(){return w})),n.d(t,"C",(function(){return ke})),n.d(t,"D",(function(){return Er})),n.d(t,"E",(function(){return zo})),n.d(t,"F",(function(){return qe})),n.d(t,"G",(function(){return Qe})),n.d(t,"H",(function(){return Pe})),n.d(t,"I",(function(){return U})),n.d(t,"J",(function(){return Tn})),n.d(t,"K",(function(){return On})),n.d(t,"L",(function(){return Cn})),n.d(t,"M",(function(){return _})),n.d(t,"N",(function(){return H})),n.d(t,"O",(function(){return si})),n.d(t,"P",(function(){return O})),n.d(t,"Q",(function(){return be})),n.d(t,"R",(function(){return o})),n.d(t,"S",(function(){return Ot})),n.d(t,"T",(function(){return cr})),n.d(t,"U",(function(){return an})),n.d(t,"V",(function(){return Br})),n.d(t,"W",(function(){return Xn})),n.d(t,"X",(function(){return st})),n.d(t,"Y",(function(){return Q})),n.d(t,"Z",(function(){return x})),n.d(t,"ab",(function(){return $})),n.d(t,"bb",(function(){return He})),n.d(t,"cb",(function(){return Le})),n.d(t,"db",(function(){return y})),n.d(t,"eb",(function(){return m})),n.d(t,"fb",(function(){return Ne})),n.d(t,"gb",(function(){return St})),n.d(t,"hb",(function(){return S})),n.d(t,"ib",(function(){return b})),n.d(t,"jb",(function(){return cn})),n.d(t,"kb",(function(){return wr})),n.d(t,"lb",(function(){return z})),n.d(t,"mb",(function(){return Dr})),n.d(t,"nb",(function(){return bn})),n.d(t,"ob",(function(){return R})),n.d(t,"pb",(function(){return wt})),n.d(t,"qb",(function(){return ai})),n.d(t,"rb",(function(){return gn})),n.d(t,"sb",(function(){return Zn})),n.d(t,"tb",(function(){return s})),n.d(t,"ub",(function(){return f})),n.d(t,"vb",(function(){return Oo})),n.d(t,"wb",(function(){return Co})),n.d(t,"xb",(function(){return Mt})),n.d(t,"yb",(function(){return C})),n.d(t,"zb",(function(){return no})),n.d(t,"Ab",(function(){return Ln})),n.d(t,"Bb",(function(){return ot})),n.d(t,"Cb",(function(){return V})),n.d(t,"Db",(function(){return vt})),n.d(t,"Eb",(function(){return ze})),n.d(t,"Fb",(function(){return zt})),n.d(t,"Gb",(function(){return yr})),n.d(t,"Hb",(function(){return Oe})),n.d(t,"Ib",(function(){return Go})),n.d(t,"Jb",(function(){return lr})),n.d(t,"Kb",(function(){return T})),n.d(t,"Lb",(function(){return d})),n.d(t,"Mb",(function(){return Fe})),n.d(t,"Nb",(function(){return Be})),n.d(t,"Ob",(function(){return Nt})),n.d(t,"Pb",(function(){return Ht})),n.d(t,"Qb",(function(){return h})),n.d(t,"Rb",(function(){return vn})),n.d(t,"Sb",(function(){return ie})),n.d(t,"Tb",(function(){return Ue})),n.d(t,"Ub",(function(){return _e})),n.d(t,"Vb",(function(){return Ae})),n.d(t,"Wb",(function(){return W})),n.d(t,"Xb",(function(){return je}));
/*!
FullCalendar Core Package v4.4.0
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
var r={className:!0,colSpan:!0,rowSpan:!0},i={"<tr":"tbody","<td":"tr"};function o(e,t,n){var i=document.createElement(e);if(t)for(var o in t)"style"===o?w(i,t[o]):r[o]?i[o]=t[o]:i.setAttribute(o,t[o]);return"string"===typeof n?i.innerHTML=n:null!=n&&u(i,n),i}function s(e){e=e.trim();var t=document.createElement(c(e));return t.innerHTML=e,t.firstChild}function a(e){return Array.prototype.slice.call(l(e))}function l(e){e=e.trim();var t=document.createElement(c(e));return t.innerHTML=e,t.childNodes}function c(e){return i[e.substr(0,3)]||"div"}function u(e,t){for(var n=p(t),r=0;r<n.length;r++)e.appendChild(n[r])}function d(e,t){for(var n=p(t),r=e.firstChild||null,i=0;i<n.length;i++)e.insertBefore(n[i],r)}function f(e,t){for(var n=p(t),r=e.nextSibling||null,i=0;i<n.length;i++)e.parentNode.insertBefore(n[i],r)}function p(e){var t;return t="string"===typeof e?a(e):e instanceof Node?[e]:Array.prototype.slice.call(e),t}function h(e){e.parentNode&&e.parentNode.removeChild(e)}var v=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,g=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(m(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function y(e,t){return g.call(e,t)}function m(e,t){return v.call(e,t)}function b(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].querySelectorAll(t),s=0;s<o.length;s++)r.push(o[s]);return r}function S(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].children,s=0;s<o.length;s++){var a=o[s];t&&!m(a,t)||r.push(a)}return r}var E=/(top|left|right|bottom|width|height)$/i;function w(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&&E.test(t)?e.style[t]=n+"px":e.style[t]=n}function T(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function C(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function O(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function R(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function x(e,t){return{left:e.left-t.left,top:e.top-t.top}}var I=null;function k(){return null===I&&(I=j()),I}function j(){var e=o("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);var t=e.firstChild,n=t.getBoundingClientRect().left>e.getBoundingClientRect().left;return h(e),n}function M(e){return e=Math.max(0,e),e=Math.round(e),e}function P(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=M(e.offsetWidth-e.clientWidth-r-i),l=M(e.offsetHeight-e.clientHeight-o-s),c={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:l,scrollbarLeft:0,scrollbarRight:0};return k()&&"rtl"===n.direction?c.scrollbarLeft=a:c.scrollbarRight=a,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function _(e,t){void 0===t&&(t=!1);var n=H(e),r=P(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function H(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function N(){return{left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}}function L(e){return e.getBoundingClientRect().height+A(e)}function A(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function z(e){var t=[];while(e instanceof HTMLElement){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function U(e){return z(e).map((function(e){return _(e)})).concat(N()).reduce((function(e,t){return C(e,t)||t}))}function B(e){e.preventDefault()}function V(e,t,n,r){function i(e){var t=y(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}function F(e,t,n,r){var i;return V(e,"mouseover",t,(function(e,t){if(t!==i){i=t,n(e,t);var o=function(e){i=null,r(e,t),t.removeEventListener("mouseleave",o)};t.addEventListener("mouseleave",o)}}))}var G=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function W(e,t){var n=function(r){t(r),G.forEach((function(t){e.removeEventListener(t,n)}))};G.forEach((function(t){e.addEventListener(t,n)}))}var q=["sun","mon","tue","wed","thu","fri","sat"];function Y(e,t){var n=pe(e);return n[2]+=7*t,he(n)}function Z(e,t){var n=pe(e);return n[2]+=t,he(n)}function X(e,t){var n=pe(e);return n[6]+=t,he(n)}function $(e,t){return Q(e,t)/7}function Q(e,t){return(t.valueOf()-e.valueOf())/864e5}function K(e,t){return(t.valueOf()-e.valueOf())/36e5}function J(e,t){return(t.valueOf()-e.valueOf())/6e4}function ee(e,t){return(t.valueOf()-e.valueOf())/1e3}function te(e,t){var n=ie(e),r=ie(t);return{years:0,months:0,days:Math.round(Q(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function ne(e,t){var n=re(e,t);return null!==n&&n%7===0?n/7:null}function re(e,t){return ge(e)===ge(t)?Math.round(Q(e,t)):null}function ie(e){return he([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function oe(e){return he([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function se(e){return he([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function ae(e){return he([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function le(e,t,n){var r=e.getUTCFullYear(),i=ce(e,r,t,n);if(i<1)return ce(e,r-1,t,n);var o=ce(e,r+1,t,n);return o>=1?Math.min(i,o):i}function ce(e,t,n,r){var i=he([t,0,1+ue(t,n,r)]),o=ie(e),s=Math.round(Q(i,o));return Math.floor(s/7)+1}function ue(e,t,n){var r=7+t-n,i=(7+he([e,0,r]).getUTCDay()-t)%7;return-i+r-1}function de(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function fe(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 pe(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function he(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function ve(e){return!isNaN(e.valueOf())}function ge(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var ye=["years","months","days","milliseconds"],me=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function be(e,t){var n;return"string"===typeof e?Se(e):"object"===typeof e&&e?Ee(e):"number"===typeof e?Ee((n={},n[t||"milliseconds"]=e,n)):null}function Se(e){var t=me.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}function Ee(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*we(e),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)}}function we(e){return e.weeks||e.week||0}function De(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function Te(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Ce(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function Oe(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Re(e){return Ie(e)/365}function xe(e){return Ie(e)/30}function Ie(e){return ke(e)/864e5}function ke(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function je(e,t){for(var n=null,r=0;r<ye.length;r++){var i=ye[r];if(t[i]){var o=e[i]/t[i];if(!Ke(o)||null!==n&&n!==o)return null;n=o}else if(e[i])return null}return n}function Me(e,t){var n=e.milliseconds;if(n){if(n%1e3!==0)return{unit:"millisecond",value:n};if(n%6e4!==0)return{unit:"second",value:n/1e3};if(n%36e5!==0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return e.days?t||e.days%7!==0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Pe(e,t){t.left&&w(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&w(e,{borderRightWidth:1,marginRight:t.right-1})}function _e(e){w(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})}function He(){document.body.classList.add("fc-not-allowed")}function Ne(){document.body.classList.remove("fc-not-allowed")}function Le(e,t,n){var r=Math.floor(t/e.length),i=Math.floor(t-r*(e.length-1)),o=[],s=[],a=[],l=0;Ae(e),e.forEach((function(t,n){var c=n===e.length-1?i:r,u=t.getBoundingClientRect().height,d=u+A(t);d<c?(o.push(t),s.push(d),a.push(u)):l+=d})),n&&(t-=l,r=Math.floor(t/o.length),i=Math.floor(t-r*(o.length-1))),o.forEach((function(e,t){var n=t===o.length-1?i:r,l=s[t],c=a[t],u=n-(l-c);l<n&&(e.style.height=u+"px")}))}function Ae(e){e.forEach((function(e){e.style.height=""}))}function ze(e){var t=0;return e.forEach((function(e){var n=e.firstChild;if(n instanceof HTMLElement){var r=n.getBoundingClientRect().width;r>t&&(t=r)}})),t++,e.forEach((function(e){e.style.width=t+"px"})),t}function Ue(e,t){var n={position:"relative",left:-1};w(e,n),w(t,n);var r=e.getBoundingClientRect().height-t.getBoundingClientRect().height,i={position:"",left:""};return w(e,i),w(t,i),r}function Be(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",B)}function Ve(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",B)}function Fe(e){e.addEventListener("contextmenu",B)}function Ge(e){e.removeEventListener("contextmenu",B)}function We(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++)n=i[t],"string"===typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"===typeof n&&r.push({func:n});return r}function qe(e,t,n){var r,i;for(r=0;r<n.length;r++)if(i=Ye(e,t,n[r]),i)return i;return 0}function Ye(e,t,n){return n.func?n.func(e,t):Ze(e[n.field],t[n.field])*(n.order||1)}function Ze(e,t){return e||t?null==t?-1:null==e?1:"string"===typeof e||"string"===typeof t?String(e).localeCompare(String(t)):e-t:0}function Xe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $e(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function Qe(e,t){return e-t}function Ke(e){return e%1===0}function Je(e,t,n){if("function"===typeof e&&(e=[e]),e){var r=void 0,i=void 0;for(r=0;r<e.length;r++)i=e[r].apply(t,n)||i;return i}}function et(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]}function tt(e,t){var n,r,i,o,s,a=function(){var l=(new Date).valueOf()-o;l<t?n=setTimeout(a,t-l):(n=null,s=e.apply(i,r),i=r=null)};return function(){return i=this,r=arguments,o=(new Date).valueOf(),n||(n=setTimeout(a,t)),s}}function nt(e,t,n,r){void 0===n&&(n={});var i={};for(var o in t){var s=t[o];void 0!==e[o]?i[o]=s===Function?"function"===typeof e[o]?e[o]:null:s?s(e[o]):e[o]:void 0!==n[o]?i[o]=n[o]:s===String?i[o]="":s&&s!==Number&&s!==Boolean&&s!==Function?i[o]=s(null):i[o]=null}if(r)for(var o in e)void 0===t[o]&&(r[o]=e[o]);return i}function rt(e){var t=Math.floor(Q(e.start,e.end))||1,n=ie(e.start),r=Z(n,t);return{start:n,end:r}}function it(e,t){void 0===t&&(t=be(0));var n=null,r=null;if(e.end){r=ie(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=ke(t)&&(r=Z(r,1))}return e.start&&(n=ie(e.start),r&&r<=n&&(r=Z(n,1))),{start:n,end:r}}function ot(e){var t=it(e);return Q(t.start,t.end)>1}function st(e,t,n,r){return"year"===r?be(n.diffWholeYears(e,t),"year"):"month"===r?be(n.diffWholeMonths(e,t),"month"):te(e,t)}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var at=function(e,t){return at=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])},at(e,t)};function lt(e,t){function n(){this.constructor=e}at(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ct=function(){return ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ct.apply(this,arguments)};function ut(e,t,n,r,i){for(var o=0;o<r.length;o++){var s={},a=r[o].parse(e,s,n);if(a){var l=s.allDay;return delete s.allDay,null==l&&(l=t,null==l&&(l=a.allDayGuess,null==l&&(l=!1))),ct(i,s),{allDay:l,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}function dt(e,t,n,r,i){var o=i[e.recurringDef.typeId],s=o.expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(ie)),s}var ft=Object.prototype.hasOwnProperty;function pt(e,t){var n,r,i,o,s,a,l={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;o>=0;o--)if(s=e[o][r],"object"===typeof s&&s)i.unshift(s);else if(void 0!==s){l[r]=s;break}i.length&&(l[r]=pt(i))}for(n=e.length-1;n>=0;n--)for(r in a=e[n],a)r in l||(l[r]=a[r]);return l}function ht(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function vt(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function gt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];t[i]=!0}return t}function yt(e){var t=[];for(var n in e)t.push(e[n]);return t}function mt(e,t){for(var n in e)if(ft.call(e,n)&&!(n in t))return!1;for(var n in t)if(ft.call(t,n)&&e[n]!==t[n])return!1;return!0}function bt(e,t,n,r){for(var i=Ot(),o=0,s=e;o<s.length;o++){var a=s[o],l=ar(a,t,n,r);l&&St(l,i)}return i}function St(e,t){return void 0===t&&(t=Ot()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Et(e,t,n){var r=n.dateEnv,i=e.defs,o=e.instances;for(var s in o=ht(o,(function(e){return!i[e.defId].recurringDef})),i){var a=i[s];if(a.recurringDef){var l=a.recurringDef.duration;l||(l=a.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(var c=dt(a,l,t,n.dateEnv,n.pluginSystem.hooks.recurringTypes),u=0,d=c;u<d.length;u++){var f=d[u],p=cr(s,{start:f,end:r.add(f,l)});o[p.instanceId]=p}}}return{defs:i,instances:o}}function wt(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=xt(e,(function(e){return Dt(r,e)}));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Ot()}function Dt(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Tt(e,t,n){var r=n.opt("eventDataTransform"),i=t?t.eventDataTransform:null;return i&&(e=Ct(e,i)),r&&(e=Ct(e,r)),e}function Ct(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],s=t(o);s?n.push(s):null==s&&n.push(o)}}else n=e;return n}function Ot(){return{defs:{},instances:{}}}function Rt(e,t){return{defs:ct({},e.defs,t.defs),instances:ct({},e.instances,t.instances)}}function xt(e,t){var n=ht(e.defs,t),r=ht(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function It(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function kt(e,t){var n,r,i=[],o=t.start;for(e.sort(jt),n=0;n<e.length;n++)r=e[n],r.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 jt(e,t){return e.start.valueOf()-t.start.valueOf()}function Mt(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 Pt(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function _t(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Ht(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Nt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Lt(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function At(e,t){var n,r=e.length;if(r!==t.length)return!1;for(n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function zt(e){var t,n;return function(){return t&&At(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}function Ut(e,t){var n=null;return function(){var r=e.apply(this,arguments);return(null===n||n!==r&&!t(n,r))&&(n=r),n}}var Bt={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Vt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ft=/\s*([ap])\.?m\.?/i,Gt=/,/g,Wt=/\s+/g,qt=/\u200e/g,Yt=/UTC|GMT/,Zt=function(){function e(e){var t={},n={},r=0;for(var i in e)i in Bt?(n[i]=e[i],r=Math.max(Bt[i],r)):(t[i]=e[i],i in Vt&&(r=Math.max(Vt[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=zt(Xt)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n){var r=this,i=r.standardDateProps,o=r.extendedSettings,s=tn(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);var a=s;!(a>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(a=1);var l=this.format(e,n),c=this.format(t,n);if(l===c)return l;var u=nn(i,a),d=Xt(u,o,n),f=d(e),p=d(t),h=rn(l,f,c,p),v=o.separator||"";return h?h.before+f+v+p+h.after:l+v+c},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},e}();function Xt(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return un(e.timeZoneOffset)}:0===r&&t.week?function(e){return en(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:$t(e,t,n)}function $t(e,t,n){e=ct({},e),t=ct({},t),Qt(e,t),e.timeZone="UTC";var r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var o=ct({},e);delete o.minute,r=new Intl.DateTimeFormat(n.locale.codes,o)}return function(o){var s,a=o.marker;s=r&&!a.getUTCMinutes()?r:i;var l=s.format(a);return Kt(l,o,e,t,n)}}function Qt(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}function Kt(e,t,n,r,i){return e=e.replace(qt,""),"short"===n.timeZoneName&&(e=Jt(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":un(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(Gt,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(Ft,"").trim():"narrow"===r.meridiem?e=e.replace(Ft,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(Ft,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(Ft,(function(e){return e.toLocaleLowerCase()}))),e=e.replace(Wt," "),e=e.trim(),e}function Jt(e,t){var n=!1;return e=e.replace(Yt,(function(){return n=!0,t})),n||(e+=" "+t),e}function en(e,t,n,r){var i=[];return"narrow"===r?i.push(t):"short"===r&&i.push(t," "),i.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&i.reverse(),i.join("")}function tn(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:ge(e)!==ge(t)?1:0}function nn(e,t){var n={};for(var r in e)r in Vt&&!(Vt[r]<=t)||(n[r]=e[r]);return n}function rn(e,t,n,r){var i=0;while(i<e.length){var o=e.indexOf(t,i);if(-1===o)break;var s=e.substr(0,o);i=o+t.length;var a=e.substr(i),l=0;while(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(s===u&&a===d)return{before:s,after:a}}}return null}var on=function(){function e(e,t){this.cmdStr=e,this.separator=t}return e.prototype.format=function(e,t){return t.cmdFormatter(this.cmdStr,dn(e,null,t,this.separator))},e.prototype.formatRange=function(e,t,n){return n.cmdFormatter(this.cmdStr,dn(e,t,n,this.separator))},e}(),sn=function(){function e(e){this.func=e}return e.prototype.format=function(e,t){return this.func(dn(e,null,t))},e.prototype.formatRange=function(e,t,n){return this.func(dn(e,t,n))},e}();function an(e,t){return"object"===typeof e&&e?("string"===typeof t&&(e=ct({separator:t},e)),new Zt(e)):"string"===typeof e?new on(e,t):"function"===typeof e?new sn(e):void 0}function ln(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",un(t,!0)))),r}function cn(e){return $e(e.getUTCHours(),2)+":"+$e(e.getUTCMinutes(),2)+":"+$e(e.getUTCSeconds(),2)}function un(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+$e(i,2)+":"+$e(o,2):"GMT"+n+i+(o?":"+$e(o,2):"")}function dn(e,t,n,r){var i=fn(e,n.calendarSystem),o=t?fn(t,n.calendarSystem):null;return{date:i,start:i,end:o,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function fn(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]}}var pn=function(){function e(e,t){this.calendar=e,this.internalEventSource=t}return e.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),e}(),hn=function(){function e(e,t,n){this._calendar=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in or);else if(e in ir)"function"===typeof ir[e]&&(t=ir[e](t)),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in Kn){var i=void 0;"function"===typeof Kn[e]&&(t=Kn[e](t)),"color"===e?i={backgroundColor:t,borderColor:t}:"editable"===e?i={startEditable:t,durationEditable:t}:(r={},r[e]=t,i=r),this.mutate({standardProps:{ui:i}})}},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._calendar.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=this._instance.range,o=st(i.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._calendar.dateEnv;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){var i=st(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=this._calendar.dateEnv,o={allDay:n.allDay},s=i.createMarker(e);if(s&&(null==t||(r=i.createMarker(t),r))&&this._instance){var a=this._instance.range;!0===n.allDay&&(a=rt(a));var l=st(a.start,s,i,n.granularity);if(r){var c=st(a.end,r,i,n.granularity);De(l,c)?this.mutate({datesDelta:l,standardProps:o}):this.mutate({startDelta:l,endDelta:c,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:l,standardProps:o})}},e.prototype.moveStart=function(e){var t=be(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=be(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=be(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._calendar.opt("allDayMaintainDuration")),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._calendar.dateEnv,n=this._instance,r=an(e,this._calendar.opt("defaultRangeSeparator"));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(e){var t=this._def,n=this._instance;if(n){this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:n.instanceId,mutation:e,fromApi:!0});var r=this._calendar.state.eventStore;this._def=r.defs[t.defId],this._instance=r.instances[n.instanceId]}},e.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new pn(this._calendar,this._calendar.state.eventSources[e]):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),e}();function vn(e,t,n,r){var i={},o={},s={},a=[],l=[],c=Sn(e.defs,t);for(var u in e.defs){var d=e.defs[u];"inverse-background"===d.rendering&&(d.groupId?(i[d.groupId]=[],s[d.groupId]||(s[d.groupId]=d)):o[u]=[])}for(var f in e.instances){var p=e.instances[f],h=(d=e.defs[p.defId],c[d.defId]),v=p.range,g=!d.allDay&&r?it(v,r):v,y=Mt(g,n);y&&("inverse-background"===d.rendering?d.groupId?i[d.groupId].push(y):o[p.defId].push(y):("background"===d.rendering?a:l).push({def:d,ui:h,instance:p,range:y,isStart:g.start&&g.start.valueOf()===y.start.valueOf(),isEnd:g.end&&g.end.valueOf()===y.end.valueOf()}))}for(var m in i)for(var b=i[m],S=kt(b,n),E=0,w=S;E<w.length;E++){var D=w[E];d=s[m],h=c[d.defId];a.push({def:d,ui:h,instance:null,range:D,isStart:!1,isEnd:!1})}for(var u in o){b=o[u],S=kt(b,n);for(var T=0,C=S;T<C.length;T++){D=C[T];a.push({def:e.defs[u],ui:c[u],instance:null,range:D,isStart:!1,isEnd:!1})}}return{bg:a,fg:l}}function gn(e){return"background"===e.rendering||"inverse-background"===e.rendering}function yn(e,t,n){var r=e.calendar,i=e.view;r.hasPublicHandlers("eventRender")&&(t=t.filter((function(e){var t=r.publiclyTrigger("eventRender",[{event:new hn(r,e.eventRange.def,e.eventRange.instance),isMirror:n,isStart:e.isStart,isEnd:e.isEnd,el:e.el,view:i}]);return!1!==t&&(t&&!0!==t&&(e.el=t),!0)})));for(var o=0,s=t;o<s.length;o++){var a=s[o];mn(a.el,a)}return t}function mn(e,t){e.fcSeg=t}function bn(e){return e.fcSeg||null}function Sn(e,t){return vt(e,(function(e){return En(e,t)}))}function En(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),nr(n)}function wn(e,t,n){var r=e.calendar,i=e.view;if(r.hasPublicHandlers("eventPositioned"))for(var o=0,s=t;o<s.length;o++){var a=s[o];r.publiclyTriggerAfterSizing("eventPositioned",[{event:new hn(r,a.eventRange.def,a.eventRange.instance),isMirror:n,isStart:a.isStart,isEnd:a.isEnd,el:a.el,view:i}])}r.state.loadingLevel||(r.afterSizingTriggers._eventsPositioned=[null])}function Dn(e,t,n){for(var r=e.calendar,i=e.view,o=0,s=t;o<s.length;o++){var a=s[o];r.trigger("eventElRemove",a.el)}if(r.hasPublicHandlers("eventDestroy"))for(var l=0,c=t;l<c.length;l++){a=c[l];r.publiclyTrigger("eventDestroy",[{event:new hn(r,a.eventRange.def,a.eventRange.instance),isMirror:n,el:a.el,view:i}])}}function Tn(e,t,n){for(var r=e.calendar,i=e.view,o=r.pluginSystem.hooks.isDraggableTransformers,s=n.startEditable,a=0,l=o;a<l.length;a++){var c=l[a];s=c(s,t,n,i)}return s}function Cn(e,t,n){return n.durationEditable&&e.options.eventResizableFromStart}function On(e,t,n){return n.durationEditable}function Rn(e,t,n,r){var i=Sn(e.defs,t),o=Ot();for(var s in e.defs){var a=e.defs[s];o.defs[s]=xn(a,i[s],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(var l in e.instances){var c=e.instances[l];a=o.defs[c.defId];o.instances[l]=In(c,a,i[c.defId],n,r)}return o}function xn(e,t,n,r,i){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var s=ct({},e,o,{ui:ct({},e.ui,o.ui)});n.extendedProps&&(s.extendedProps=ct({},s.extendedProps,n.extendedProps));for(var a=0,l=r;a<l.length;a++){var c=l[a];c(s,n,i)}return!s.hasEnd&&i.opt("forceEventDuration")&&(s.hasEnd=!0),s}function In(e,t,n,r,i){var o=i.dateEnv,s=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=ct({},e);return s&&(l.range=rt(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:i.getDefaultEventEnd(t.allDay,l.range.start)}),t.allDay&&(l.range={start:ie(l.range.start),end:ie(l.range.end)}),l.range.end<l.range.start&&(l.range.end=i.getDefaultEventEnd(t.allDay,l.range.start)),l}function kn(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return jn(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return Mn(e,t.eventStore,r?r.activeRange:null,i);case"MERGE_EVENTS":return Rt(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?Et(e,r.activeRange,i):e;case"CHANGE_TIMEZONE":return Pn(e,t.oldDateEnv,i.dateEnv);case"MUTATE_EVENTS":return _n(e,t.instanceId,t.mutation,t.fromApi,i);case"REMOVE_EVENT_INSTANCES":return Nn(e,t.instances);case"REMOVE_EVENT_DEF":return xt(e,(function(e){return e.defId!==t.defId}));case"REMOVE_EVENT_SOURCE":return Hn(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return xt(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return Ot();case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:return e}}function jn(e,t,n,r,i,o){if(t&&n===t.latestFetchId){var s=bt(Tt(i,t,o),t.sourceId,o);return r&&(s=Et(s,r,o)),Rt(Hn(e,t.sourceId),s)}return e}function Mn(e,t,n,r){return n&&(t=Et(t,n,r)),Rt(e,t)}function Pn(e,t,n){var r=e.defs,i=vt(e.instances,(function(e){var i=r[e.defId];return i.allDay||i.recurringDef?e:ct({},e,{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:i}}function _n(e,t,n,r,i){var o=wt(e,t),s=r?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:i.eventUiBases;return o=Rn(o,s,n,i),Rt(e,o)}function Hn(e,t){return xt(e,(function(e){return e.sourceId!==t}))}function Nn(e,t){return{defs:e.defs,instances:ht(e.instances,(function(e){return!t[e.instanceId]}))}}function Ln(e,t){return zn({eventDrag:e},t)}function An(e,t){return zn({dateSelection:e},t)}function zn(e,t){var n=t.view,r=ct({businessHours:n?n.props.businessHours:Ot(),dateSelection:"",eventStore:t.state.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginSystem.hooks.isPropsValid||Un)(r,t)}function Un(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!Bn(e,t,n,r))&&!(e.dateSelection&&!Vn(e,t,n,r))}function Bn(e,t,n,r){var i=e.eventDrag,o=i.mutatedEvents,s=o.defs,a=o.instances,l=Sn(s,i.isEvent?e.eventUiBases:{"":t.selectionConfig});r&&(l=vt(l,r));var c=Nn(e.eventStore,i.affectedEvents.instances),u=c.defs,d=c.instances,f=Sn(u,e.eventUiBases);for(var p in a){var h=a[p],v=h.range,g=l[h.defId],y=s[h.defId];if(!Fn(g.constraints,v,c,e.businessHours,t))return!1;var m=t.opt("eventOverlap");for(var b in"function"!==typeof m&&(m=null),d){var S=d[b];if(_t(v,S.range)){var E=f[S.defId].overlap;if(!1===E&&i.isEvent)return!1;if(!1===g.overlap)return!1;if(m&&!m(new hn(t,u[S.defId],S),new hn(t,y,h)))return!1}}for(var w=t.state.eventStore,D=0,T=g.allows;D<T.length;D++){var C=T[D],O=ct({},n,{range:h.range,allDay:y.allDay}),R=w.defs[y.defId],x=w.instances[p],I=void 0;if(I=R?new hn(t,R,x):new hn(t,y),!C(t.buildDateSpanApi(O),I))return!1}}return!0}function Vn(e,t,n,r){var i=e.eventStore,o=i.defs,s=i.instances,a=e.dateSelection,l=a.range,c=t.selectionConfig;if(r&&(c=r(c)),!Fn(c.constraints,l,i,e.businessHours,t))return!1;var u=t.opt("selectOverlap");for(var d in"function"!==typeof u&&(u=null),s){var f=s[d];if(_t(l,f.range)){if(!1===c.overlap)return!1;if(u&&!u(new hn(t,o[f.defId],f)))return!1}}for(var p=0,h=c.allows;p<h.length;p++){var v=h[p],g=ct({},n,a);if(!v(t.buildDateSpanApi(g),null))return!1}return!0}function Fn(e,t,n,r,i){for(var o=0,s=e;o<s.length;o++){var a=s[o];if(!qn(Gn(a,t,n,r,i),t))return!1}return!0}function Gn(e,t,n,r,i){return"businessHours"===e?Wn(Et(r,t,i)):"string"===typeof e?Wn(xt(n,(function(t){return t.groupId===e}))):"object"===typeof e&&e?Wn(Et(e,t,i)):[]}function Wn(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function qn(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(Ht(i,t))return!0}return!1}function Yn(e,t){return Array.isArray(e)?bt(e,"",t,!0):"object"===typeof e&&e?bt([e],"",t,!0):null!=e?String(e):null}function Zn(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function Xn(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function $n(e){var t=[];for(var n in e){var r=e[n];null!=r&&t.push(n+'="'+Zn(r)+'"')}return t.join(" ")}function Qn(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}var Kn={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:Qn,classNames:Qn,color:String,backgroundColor:String,borderColor:String,textColor:String};function Jn(e,t,n){var r=nt(e,Kn,{},n),i=Yn(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=i?[i]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function er(e,t,n,r){var i={},o={};for(var s in Kn){var a=e+Xe(s);i[s]=t[a],o[a]=!0}if("event"===e&&(i.editable=t.editable),r)for(var s in t)o[s]||(r[s]=t[s]);return Jn(i,n)}var tr={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function nr(e){return e.reduce(rr,tr)}function rr(e,t){return{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 ir={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},or={start:null,date:null,end:null,allDay:null},sr=0;function ar(e,t,n,r){var i=pr(t,n),o={},s=ut(e,i,n.dateEnv,n.pluginSystem.hooks.recurringTypes,o);if(s){var a=lr(o,t,s.allDay,Boolean(s.duration),n);return a.recurringDef={typeId:s.typeId,typeData:s.typeData,duration:s.duration},{def:a,instance:null}}var l={},c=ur(e,i,n,l,r);if(c){a=lr(l,t,c.allDay,c.hasEnd,n);var u=cr(a.defId,c.range,c.forcedStartTzo,c.forcedEndTzo);return{def:a,instance:u}}return null}function lr(e,t,n,r,i){var o={},s=fr(e,i,o);s.defId=String(sr++),s.sourceId=t,s.allDay=n,s.hasEnd=r;for(var a=0,l=i.pluginSystem.hooks.eventDefParsers;a<l.length;a++){var c=l[a],u={};c(s,o,u),o=u}return s.extendedProps=ct(o,s.extendedProps||{}),Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function cr(e,t,n,r){return{instanceId:String(sr++),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function ur(e,t,n,r,i){var o,s,a=dr(e,r),l=a.allDay,c=null,u=!1,d=null;if(o=n.dateEnv.createMarkerMeta(a.start),o)c=o.marker;else if(!i)return null;return null!=a.end&&(s=n.dateEnv.createMarkerMeta(a.end)),null==l&&(l=null!=t?t:(!o||o.isTimeUnspecified)&&(!s||s.isTimeUnspecified)),l&&c&&(c=ie(c)),s&&(d=s.marker,l&&(d=ie(d)),c&&d<=c&&(d=null)),d?u=!0:i||(u=n.opt("forceEventDuration")||!1,d=n.dateEnv.add(c,l?n.defaultAllDayEventDuration:n.defaultTimedEventDuration)),{allDay:l,hasEnd:u,range:{start:c,end:d},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}function dr(e,t){var n=nt(e,or,{},t);return n.start=null!==n.start?n.start:n.date,delete n.date,n}function fr(e,t,n){var r={},i=nt(e,ir,{},r),o=Jn(r,t,n);return i.publicId=i.id,delete i.id,i.ui=o,i}function pr(e,t){var n=null;if(e){var r=t.state.eventSources[e];n=r.allDayDefault}return null==n&&(n=t.opt("allDayDefault")),n}var hr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"};function vr(e,t){return bt(gr(e),"",t)}function gr(e){var t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"===typeof e&&e?[e]:[],t=t.map((function(e){return ct({},hr,e)})),t}function yr(e,t,n){void 0===n&&(n=[]);var r,i,o=[];function s(){if(i){for(var e=0,n=o;e<n.length;e++){var s=n[e];s.unrender()}t&&t.apply(r,i),i=null}}function a(){i&&At(i,arguments)||(s(),r=this,i=arguments,e.apply(this,arguments))}a.dependents=o,a.unrender=s;for(var l=0,c=n;l<c.length;l++){var u=c[l];u.dependents.push(a)}return a}var mr=Ot(),br=function(){function e(){this.getKeysForEventDefs=zt(this._getKeysForEventDefs),this.splitDateSelection=zt(this._splitDateSpan),this.splitEventStore=zt(this._splitEventStore),this.splitIndividualUi=zt(this._splitIndividualUi),this.splitEventDrag=zt(this._splitInteraction),this.splitEventResize=zt(this._splitInteraction),this.eventUiBuilders={}}return 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),s=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),c={};for(var u in this.eventUiBuilders=vt(n,(function(e,n){return t.eventUiBuilders[n]||zt(Sr)})),n){var d=n[u],f=s[u]||mr,p=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,o[u]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[u]||null,eventResize:l[u]||null}}return c},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=this.getKeysForDateSpan(e),r=0,i=n;r<i.length;r++){var o=i[r];t[o]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return vt(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 s=0,a=t[o];s<a.length;s++){var l=a[s];i[l]||(i[l]=Ot()),i[l].defs[o]=n[o]}for(var c in r)for(var u=r[c],d=0,f=t[u.defId];d<f.length;d++){l=f[d];i[l]&&(i[l].instances[c]=u)}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 s=o[i];n[s]||(n[s]={}),n[s][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]||mr,mutatedEvents:i[r]||mr,isEvent:e.isEvent,origSeg:e.origSeg})};for(var s in n)o(s);for(var s in i)o(s)}return t},e}();function Sr(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":nr(r)};return n&&ct(i,n),i}function Er(e,t,n,r,i){var o,s,a,l;return n instanceof Date?o=n:(o=n.date,s=n.type,a=n.forceOff),l={date:t.formatIso(o,{omitTime:!0}),type:s||"day"},"string"===typeof r&&(i=r,r=null),r=r?" "+$n(r):"",i=i||"",!a&&e.navLinks?"<a"+r+' data-goto="'+Zn(JSON.stringify(l))+'">'+i+"</a>":"<span"+r+">"+i+"</span>"}function wr(e){return e.allDayHtml||Zn(e.allDayText)}function Dr(e,t,n,r){var i,o,s=n.calendar,a=n.options,l=n.theme,c=n.dateEnv,u=[];return Nt(t.activeRange,e)?(u.push("fc-"+q[e.getUTCDay()]),a.monthMode&&c.getMonth(e)!==c.getMonth(t.currentRange.start)&&u.push("fc-other-month"),i=ie(s.getNow()),o=Z(i,1),e<i?u.push("fc-past"):e>=o?u.push("fc-future"):(u.push("fc-today"),!0!==r&&u.push(l.getClass("today")))):u.push("fc-disabled-day"),u}function Tr(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))},s=e(i,o);s&&"function"===typeof s.then&&s.then(i,o)}var Cr=function(){function e(){}return e.mixInto=function(e){this.mixIntoObj(e.prototype)},e.mixIntoObj=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach((function(n){e[n]||(e[n]=t.prototype[n])}))},e.mixOver=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach((function(n){e.prototype[n]=t.prototype[n]}))},e}(),Or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lt(t,e),t.prototype.on=function(e,t){return Rr(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){return Rr(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){return this._handlers&&xr(this._handlers,e,t),this._oneHandlers&&xr(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.triggerWith(e,this,t),this},t.prototype.triggerWith=function(e,t,n){return this._handlers&&Je(this._handlers[e],t,n),this._oneHandlers&&(Je(this._oneHandlers[e],t,n),delete this._oneHandlers[e]),this},t.prototype.hasHandlers=function(e){return this._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},t}(Cr);function Rr(e,t,n){(e[t]||(e[t]=[])).push(n)}function xr(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}var Ir=function(){function e(e,t,n,r){this.originEl=e,this.els=t,this.isHorizontal=n,this.isVertical=r}return e.prototype.build=function(){var e=this.originEl,t=this.originClientRect=e.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(t.left),this.isVertical&&this.buildElVerticals(t.top)},e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r],s=o.getBoundingClientRect();t.push(s.left-e),n.push(s.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],s=o.getBoundingClientRect();t.push(s.top-e),n.push(s.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++)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++)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}(),kr=function(){function e(){}return 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}(),jr=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return lt(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},t}(kr),Mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lt(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},t}(kr),Pr=function(e){function t(t,n){var r=e.call(this,o("div",{className:"fc-scroller"}))||this;return r.overflowX=t,r.overflowY=n,r.applyOverflow(),r}return lt(t,e),t.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},t.prototype.destroy=function(){h(this.el)},t.prototype.applyOverflow=function(){w(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},t.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),w(this.el,{overflowX:t,overflowY:n})},t.prototype.setHeight=function(e){D(this.el,"height",e)},t.prototype.getScrollbarWidths=function(){var e=P(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},t}(jr),_r=function(){function e(e){this.calendarOptions=e,this.processIconOverride()}return e.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},e.prototype.setIconOverride=function(e){var t,n;if("object"===typeof e&&e){for(n in t=ct({},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){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();_r.prototype.classes={},_r.prototype.iconClasses={},_r.prototype.baseIconClass="",_r.prototype.iconOverridePrefix="";var Hr=0,Nr=function(){function e(e,t,n,r,i){this.calendar=e,this.theme=t,this.dateEnv=n,this.options=r,this.view=i,this.isRtl="rtl"===r.dir,this.eventOrderSpecs=We(r.eventOrder),this.nextDayThreshold=be(r.nextDayThreshold)}return e.prototype.extend=function(t,n){return new e(this.calendar,this.theme,this.dateEnv,t||this.options,n||this.view)},e}(),Lr=function(){function e(){this.uid=String(Hr++)}return e.addEqualityFuncs=function(e){this.prototype.equalityFuncs=ct({},this.prototype.equalityFuncs,e)},e.prototype.receiveProps=function(e,t){var n=this.context;this.context=t,n||this.firstContext(t);var r=Ar(this.props||{},e,this.equalityFuncs),i=r.anyChanges,o=r.comboProps;this.props=o,i&&(n&&this.beforeUpdate(),this.render(o,t),n&&this.afterUpdate())},e.prototype.render=function(e,t){},e.prototype.firstContext=function(e){},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.destroy=function(){},e}();function Ar(e,t,n){var r={},i=!1;for(var o in t)o in e&&(e[o]===t[o]||n[o]&&n[o](e[o],t[o]))?r[o]=e[o]:(r[o]=t[o],i=!0);for(var o in e)if(!(o in t)){i=!0;break}return{anyChanges:i,comboProps:r}}Lr.prototype.equalityFuncs={};var zr=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return lt(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),h(this.el)},t.prototype.buildPositionCaches=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isInteractionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile,r=e.mutatedEvents.instances;if(n)for(var i in r)if(!Ht(n.validRange,r[i].range))return!1;return Ln(e,t)},t.prototype.isDateSelectionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile;return!(n&&!Ht(n.validRange,e.range))&&An(e,t)},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!y(e,".fc-mirror")&&(this.isPopover()||!this.isInPopover(e))},t.prototype.isValidDateDownEl=function(e){var t=y(e,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!y(e,".fc-more")&&!y(e,"a[data-goto]")&&!this.isInPopover(e)},t.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},t.prototype.isInPopover=function(e){return Boolean(y(e,".fc-popover"))},t}(Lr);zr.prototype.fgSegSelector=".fc-event-container > *",zr.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var Ur=0;function Br(e){return{id:String(Ur++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],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||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}var Vr=function(){function e(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}return e.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,n=e.deps;t<n.length;t++){var r=n[t];this.add(r)}this.hooks=Fr(this.hooks,e)}},e}();function Fr(e,t){return{reducers:e.reducers.concat(t.reducers),eventDefParsers:e.eventDefParsers.concat(t.eventDefParsers),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:ct({},e.views,t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),eventResizeJoinTransforms:e.eventResizeJoinTransforms.concat(t.eventResizeJoinTransforms),viewContainerModifiers:e.viewContainerModifiers.concat(t.viewContainerModifiers),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:ct({},e.themeClasses,t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,defaultView:e.defaultView||t.defaultView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:ct({},e.optionChangeHandlers,t.optionChangeHandlers)}}var Gr={ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}},Wr=Br({eventSourceDefs:[Gr]}),qr={parseMeta:function(e){return"function"===typeof e?e:"function"===typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.calendar.dateEnv,i=e.eventSource.meta;Tr(i.bind(null,{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}),(function(e){t({rawEvents:e})}),n)}},Yr=Br({eventSourceDefs:[qr]});function Zr(e,t,n,r,i){e=e.toUpperCase();var o=null;"GET"===e?t=Xr(t,n):o=$r(n);var s=new XMLHttpRequest;s.open(e,t,!0),"GET"!==e&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){if(s.status>=200&&s.status<400)try{var e=JSON.parse(s.responseText);r(e,s)}catch(t){i("Failure parsing JSON",s)}else i("Request failed",s)},s.onerror=function(){i("Request failed",s)},s.send(o)}function Xr(e,t){return e+(-1===e.indexOf("?")?"?":"&")+$r(t)}function $r(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var Qr={parseMeta:function(e){if("string"===typeof e)e={url:e};else if(!e||"object"!==typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,i=Jr(r,e.range,e.calendar);Zr(r.method,r.url,i,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}},Kr=Br({eventSourceDefs:[Qr]});function Jr(e,t,n){var r,i,o,s,a=n.dateEnv,l={};return r=e.startParam,null==r&&(r=n.opt("startParam")),i=e.endParam,null==i&&(i=n.opt("endParam")),o=e.timeZoneParam,null==o&&(o=n.opt("timeZoneParam")),s="function"===typeof e.extraParams?e.extraParams():e.extraParams||{},ct(l,s),l[r]=a.formatIso(t.start),l[i]=a.formatIso(t.end),"local"!==a.timeZone&&(l[o]=a.timeZone),l}var ei={parse:function(e,t,n){var r=n.createMarker.bind(n),i={daysOfWeek:null,startTime:be,endTime:be,startRecur:r,endRecur:r},o=nt(e,i,{},t),s=!1;for(var a in o)if(null!=o[a]){s=!0;break}if(s){var l=null;return"duration"in t&&(l=be(t.duration),delete t.duration),!l&&o.startTime&&o.endTime&&(l=Ce(o.endTime,o.startTime)),{allDayGuess:Boolean(!o.startTime&&!o.endTime),duration:l,typeData:o}}return null},expand:function(e,t,n){var r=Mt(t,{start:e.startRecur,end:e.endRecur});return r?ni(e.daysOfWeek,e.startTime,r,n):[]}},ti=Br({recurringTypes:[ei]});function ni(e,t,n,r){var i=e?gt(e):null,o=ie(n.start),s=n.end,a=[];while(o<s){var l=void 0;i&&!i[o.getUTCDay()]||(l=t?r.add(o,t):o,a.push(l)),o=Z(o,1)}return a}var ri=Br({optionChangeHandlers:{events:function(e,t,n){ii([e],t,n)},eventSources:ii,plugins:oi}});function ii(e,t,n){for(var r=yt(t.state.eventSources),i=[],o=0,s=e;o<s.length;o++){for(var a=s[o],l=!1,c=0;c<r.length;c++)if(n(r[c]._raw,a)){r.splice(c,1),l=!0;break}l||i.push(a)}for(var u=0,d=r;u<d.length;u++){var f=d[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:f.sourceId})}for(var p=0,h=i;p<h.length;p++){var v=h[p];t.addEventSource(v)}}function oi(e,t){t.addPluginInputs(e)}var si={},ai={defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},li={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},ci=["header","footer","buttonText","buttonIcons"];function ui(e){return pt(e,ci)}var di=[Wr,Yr,Kr,ti,ri];function fi(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];if("string"===typeof i){var o="FullCalendar"+Xe(i);window[o]?t.push(window[o].default):console.warn("Plugin file not loaded for "+i)}else t.push(i)}return di.concat(t)}var pi={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"};function hi(e){for(var t=e.length>0?e[0].code:"en",n=window["FullCalendarLocalesAll"]||[],r=window["FullCalendarLocales"]||{},i=n.concat(yt(r),e),o={en:pi},s=0,a=i;s<a.length;s++){var l=a[s];o[l.code]=l}return{map:o,defaultCode:t}}function vi(e,t){return"object"!==typeof e||Array.isArray(e)?gi(e,t):mi(e.code,[e.code],e)}function gi(e,t){var n=[].concat(e||[]),r=yi(n,t)||pi;return mi(e,n,r)}function yi(e,t){for(var n=0;n<e.length;n++)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i--){var o=r.slice(0,i).join("-");if(t[o])return t[o]}return null}function mi(e,t,n){var r=pt([pi,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 bi=function(){function e(e){this.overrides=ct({},e),this.dynamicOverrides={},this.compute()}return e.prototype.mutate=function(e,t,n){if(Object.keys(e).length||t.length){var r=n?this.dynamicOverrides:this.overrides;ct(r,e);for(var i=0,o=t;i<o.length;i++){var s=o[i];delete r[s]}this.compute()}},e.prototype.compute=function(){var e=et(this.dynamicOverrides.locales,this.overrides.locales,ai.locales),t=et(this.dynamicOverrides.locale,this.overrides.locale,ai.locale),n=hi(e),r=vi(t||n.defaultCode,n.map).options,i=et(this.dynamicOverrides.dir,this.overrides.dir,r.dir),o="rtl"===i?li:{};this.dirDefaults=o,this.localeDefaults=r,this.computed=ui([ai,o,r,this.overrides,this.dynamicOverrides])},e}(),Si={};function Ei(e,t){Si[e]=t}function wi(e){return new Si[e]}var Di=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 he(e)},e.prototype.markerToArray=function(e){return pe(e)},e}();Ei("gregory",Di);var Ti=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Ci(e){var t=Ti.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(ve(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}var Oi=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=wi(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.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}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()):he(de(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=he(e)),null!==t&&ve(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=Ci(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 ge(e)===ge(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 ge(e)===ge(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}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=ne(e,t),null!==n?{unit:"week",value:n}:(n=re(e,t),null!==n?{unit:"day",value:n}:(n=K(e,t),Ke(n)?{unit:"hour",value:n}:(n=J(e,t),Ke(n)?{unit:"minute",value:n}:(n=ee(e,t),Ke(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/Re(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/xe(n):n.days&&(r=re(e,t),null!==r)?r/Ie(n):(t.valueOf()-e.valueOf())/ke(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?ie(e):"hour"===t?oe(e):"minute"===t?se(e):"second"===t?ae(e):void 0},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)):le(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=X(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)},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)),ln(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?he(de(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?he(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-fe(pe(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(pe(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?fe(pe(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(pe(e))*60):new Date(e.valueOf()-(t||0))},e}(),Ri={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},xi=0;function Ii(e,t){var n=t.pluginSystem.hooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function ki(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;r>=0;r--){var i=n[r],o=i.parseMeta(e);if(o){var s=ji("object"===typeof e?e:{},o,r,t);return s._raw=e,s}}return null}function ji(e,t,n,r){var i={},o=nt(e,Ri,{},i),s={},a=Jn(i,r,s);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(xi++),o.sourceDefId=n,o.meta=t,o.ui=a,o.extendedProps=s,o}function Mi(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return _i(e,t.sources,n?n.activeRange:null,r);case"REMOVE_EVENT_SOURCE":return Hi(e,t.sourceId);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return n?Ni(e,n.activeRange,r):e;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return Ai(e,t.sourceIds?gt(t.sourceIds):Bi(e,r),n?n.activeRange:null,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Ui(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}var Pi=0;function _i(e,t,n,r){for(var i={},o=0,s=t;o<s.length;o++){var a=s[o];i[a.sourceId]=a}return n&&(i=Ni(i,n,r)),ct({},e,i)}function Hi(e,t){return ht(e,(function(e){return e.sourceId!==t}))}function Ni(e,t,n){return Ai(e,ht(e,(function(e){return Li(e,t,n)})),t,n)}function Li(e,t,n){return Ii(e,n)?!n.opt("lazyFetching")||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function Ai(e,t,n,r){var i={};for(var o in e){var s=e[o];t[o]?i[o]=zi(s,n,r):i[o]=s}return i}function zi(e,t,n){var r=n.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],i=String(Pi++);return r.fetch({eventSource:e,calendar:n,range:t},(function(r){var o,s,a=r.rawEvents,l=n.opt("eventSourceSuccess");e.success&&(s=e.success(a,r.xhr)),l&&(o=l(a,r.xhr)),a=s||o||a,n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:a})}),(function(r){var o=n.opt("eventSourceFailure");console.warn(r.message,r),e.failure&&e.failure(r),o&&o(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:r})})),ct({},e,{isFetching:!0,latestFetchId:i})}function Ui(e,t,n,r){var i,o=e[t];return o&&n===o.latestFetchId?ct({},e,(i={},i[t]=ct({},o,{isFetching:!1,fetchRange:r}),i)):e}function Bi(e,t){return ht(e,(function(e){return Ii(e,t)}))}var Vi=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},e.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},e.prototype.build=function(e,t,n){var r;void 0===n&&(n=!1);var i,o,s,a,l,c=null,u=null;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=Lt(e,r)),i=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(i.unit),s=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),s=this.trimHiddenDays(s),a=s,this.options.showNonCurrentDates||(a=Mt(a,i.range)),c=be(this.options.minTime),u=be(this.options.maxTime),a=this.adjustActiveRange(a,c,u),a=Mt(a,r),l=_t(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:a,renderRange:s,minTime:c,maxTime:u,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this,i=r.viewSpec,o=r.dateEnv,s=null,a=null,l=null;return i.duration?(s=i.duration,a=i.durationUnit,l=this.buildRangeFromDuration(e,t,s,a)):(n=this.options.dayCount)?(a="day",l=this.buildRangeFromDayCount(e,t,n)):(l=this.buildCustomVisibleRange(e))?a=o.greatestWholeUnit(l.start,l.end).unit:(s=this.getFallbackDuration(),a=Me(s).unit,l=this.buildRangeFromDuration(e,t,s,a)),{duration:s,unit:a,range:l}},e.prototype.getFallbackDuration=function(){return be({day:1})},e.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(Ie(t)<0&&(i=ie(i),i=r.add(i,t)),Ie(n)>1&&(o=ie(o),o=Z(o,-1),o=r.add(o,n))),{start:i,end:o}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var i,o,s,a,l,c=this.dateEnv,u=this.options.dateAlignment;function d(){s=c.startOf(e,u),a=c.add(s,n),l={start:s,end:a}}return u||(i=this.options.dateIncrement,i?(o=be(i),u=ke(o)<ke(n)?Me(o,!we(i)).unit:r):u=r),Ie(n)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,t),s=ie(s)),d(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,t),d()),l},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.dateEnv,o=this.options.dateAlignment,s=0,a=e;o&&(a=i.startOf(a,o)),a=ie(a),a=this.skipHiddenDays(a,t),r=a;do{r=Z(r,1),this.isHiddenDay(r)||s++}while(s<n);return{start:a,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.dateEnv,n=this.getRangeOption("visibleRange",t.toDate(e));return!n||null!=n.start&&null!=n.end?n:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.options.dateIncrement;return n?be(n):(t=this.options.dateAlignment)?be(1,t):e||be({days:1})},e.prototype.getRangeOption=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.options[e];return"function"===typeof r&&(r=r.apply(null,t)),r&&(r=It(r,this.dateEnv)),r&&(r=it(r)),r},e.prototype.initHiddenDays=function(){var e,t=this.options.hiddenDays||[],n=[],r=0;for(!1===this.options.weekends&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==t.indexOf(e))||r++;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){void 0===t&&(t=1),void 0===n&&(n=!1);while(this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7])e=Z(e,t);return e},e}();function Fi(e,t){return Pt(e.validRange,t.validRange)&&Pt(e.activeRange,t.activeRange)&&Pt(e.renderRange,t.renderRange)&&De(e.minTime,t.minTime)&&De(e.maxTime,t.maxTime)}function Gi(e,t,n){for(var r=Wi(e.viewType,t),i=qi(e.dateProfile,t,e.currentDate,r,n),o=Mi(e.eventSources,t,i,n),s=ct({},e,{viewType:r,dateProfile:i,currentDate:Yi(e.currentDate,t,i),eventSources:o,eventStore:kn(e.eventStore,t,o,i,n),dateSelection:Zi(e.dateSelection,t,n),eventSelection:Xi(e.eventSelection,t),eventDrag:$i(e.eventDrag,t,o,n),eventResize:Qi(e.eventResize,t,o,n),eventSourceLoadingLevel:Ki(o),loadingLevel:Ki(o)}),a=0,l=n.pluginSystem.hooks.reducers;a<l.length;a++){var c=l[a];s=c(s,t,n)}return s}function Wi(e,t){switch(t.type){case"SET_VIEW_TYPE":return t.viewType;default:return e}}function qi(e,t,n,r,i){var o;switch(t.type){case"PREV":o=i.dateProfileGenerators[r].buildPrev(e,n);break;case"NEXT":o=i.dateProfileGenerators[r].buildNext(e,n);break;case"SET_DATE":e.activeRange&&Nt(e.currentRange,t.dateMarker)||(o=i.dateProfileGenerators[r].build(t.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":var s=i.dateProfileGenerators[r];if(!s)throw new Error(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=s.build(t.dateMarker||n,void 0,!0);break}return!o||!o.isValid||e&&Fi(e,o)?e:o}function Yi(e,t,n){switch(t.type){case"PREV":case"NEXT":return Nt(n.currentRange,e)?e:n.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var r=t.dateMarker||e;return n.activeRange&&!Nt(n.activeRange,r)?n.currentRange.start:r;default:return e}}function Zi(e,t,n){switch(t.type){case"SELECT_DATES":return t.selection;case"UNSELECT_DATES":return null;default:return e}}function Xi(e,t){switch(t.type){case"SELECT_EVENT":return t.eventInstanceId;case"UNSELECT_EVENT":return"";default:return e}}function $i(e,t,n,r){switch(t.type){case"SET_EVENT_DRAG":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_DRAG":return null;default:return e}}function Qi(e,t,n,r){switch(t.type){case"SET_EVENT_RESIZE":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return e}}function Ki(e){var t=0;for(var n in e)e[n].isFetching&&t++;return t}var Ji={start:null,end:null,allDay:Boolean};function eo(e,t,n){var r=to(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function to(e,t){var n={},r=nt(e,Ji,{},n),i=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,s=r.allDay;return null==s&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),n.range={start:i?i.marker:null,end:o?o.marker:null},n.allDay=s,n}function no(e,t){return Pt(e.range,t.range)&&e.allDay===t.allDay&&ro(e,t)}function ro(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}function io(e,t){return{start:t.toDate(e.range.start),end:t.toDate(e.range.end),startStr:t.formatIso(e.range.start,{omitTime:e.allDay}),endStr:t.formatIso(e.range.end,{omitTime:e.allDay}),allDay:e.allDay}}function oo(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}function so(e,t,n){var r=lr({editable:!1},"",e.allDay,!0,n);return{def:r,ui:En(r,t),instance:cr(r.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function ao(e,t){var n,r={};for(n in e)lo(n,r,e,t);for(n in t)lo(n,r,e,t);return r}function lo(e,t,n,r){if(t[e])return t[e];var i=co(e,t,n,r);return i&&(t[e]=i),i}function co(e,t,n,r){var i=n[e],o=r[e],s=function(e){return i&&null!==i[e]?i[e]:o&&null!==o[e]?o[e]:null},a=s("class"),l=s("superType");!l&&a&&(l=uo(a,r)||uo(a,n));var c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=lo(l,t,n,r)}return!a&&c&&(a=c.class),a?{type:e,class:a,defaults:ct({},c?c.defaults:{},i?i.options:{}),overrides:ct({},c?c.overrides:{},o?o.options:{})}:null}function uo(e,t){var n=Object.getPrototypeOf(e.prototype);for(var r in t){var i=t[r];if(i.class&&i.class.prototype===n)return r}return""}function fo(e){return vt(e,ho)}var po={type:String,class:null};function ho(e){"function"===typeof e&&(e={class:e});var t={},n=nt(e,po,{},t);return{superType:n.type,class:n.class,options:t}}function vo(e,t){var n=fo(e),r=fo(t.overrides.views),i=ao(n,r);return vt(i,(function(e){return go(e,r,t)}))}function go(e,t,n){var r=e.overrides.duration||e.defaults.duration||n.dynamicOverrides.duration||n.overrides.duration,i=null,o="",s="",a={};if(r&&(i=be(r),i)){var l=Me(i,!we(r));o=l.unit,1===l.value&&(s=o,a=t[o]?t[o].options:{})}var c=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[s]?n[s]:void 0};return{type:e.type,class:e.class,duration:i,durationUnit:o,singleUnit:s,options:ct({},ai,e.defaults,n.dirDefaults,n.localeDefaults,n.overrides,a,e.overrides,n.dynamicOverrides),buttonTextOverride:c(n.dynamicOverrides)||c(n.overrides)||e.overrides.buttonText,buttonTextDefault:c(n.localeDefaults)||c(n.dirDefaults)||e.defaults.buttonText||c(ai)||e.type}}var yo=function(e){function t(t){var n=e.call(this)||this;return n._renderLayout=yr(n.renderLayout,n.unrenderLayout),n._updateTitle=yr(n.updateTitle,null,[n._renderLayout]),n._updateActiveButton=yr(n.updateActiveButton,null,[n._renderLayout]),n._updateToday=yr(n.updateToday,null,[n._renderLayout]),n._updatePrev=yr(n.updatePrev,null,[n._renderLayout]),n._updateNext=yr(n.updateNext,null,[n._renderLayout]),n.el=o("div",{className:"fc-toolbar "+t}),n}return lt(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this._renderLayout.unrender(),h(this.el)},t.prototype.render=function(e){this._renderLayout(e.layout),this._updateTitle(e.title),this._updateActiveButton(e.activeButton),this._updateToday(e.isTodayEnabled),this._updatePrev(e.isPrevEnabled),this._updateNext(e.isNextEnabled)},t.prototype.renderLayout=function(e){var t=this.el;this.viewsWithButtons=[],u(t,this.renderSection("left",e.left)),u(t,this.renderSection("center",e.center)),u(t,this.renderSection("right",e.right))},t.prototype.unrenderLayout=function(){this.el.innerHTML=""},t.prototype.renderSection=function(e,t){var n=this,r=this.context,i=r.theme,a=r.calendar,l=a.optionsManager,c=a.viewSpecs,d=o("div",{className:"fc-"+e}),f=l.computed.customButtons||{},p=l.overrides.buttonText||{},h=l.computed.buttonText||{};return t&&t.split(" ").forEach((function(e,t){var r,o=[],l=!0;if(e.split(",").forEach((function(e,t){var r,u,d,v,g,y,m,b,S;"title"===e?(o.push(s("<h2>&nbsp;</h2>")),l=!1):((r=f[e])?(d=function(e){r.click&&r.click.call(b,e)},(v=i.getCustomButtonIconClass(r))||(v=i.getIconClass(e))||(g=r.text)):(u=c[e])?(n.viewsWithButtons.push(e),d=function(){a.changeView(e)},(g=u.buttonTextOverride)||(v=i.getIconClass(e))||(g=u.buttonTextDefault)):a[e]&&(d=function(){a[e]()},(g=p[e])||(v=i.getIconClass(e))||(g=h[e])),d&&(m=["fc-"+e+"-button",i.getClass("button")],g?(y=Zn(g),S=""):v&&(y="<span class='"+v+"'></span>",S=' aria-label="'+e+'"'),b=s('<button type="button" class="'+m.join(" ")+'"'+S+">"+y+"</button>"),b.addEventListener("click",d),o.push(b)))})),o.length>1){r=document.createElement("div");var v=i.getClass("buttonGroup");l&&v&&r.classList.add(v),u(r,o),d.appendChild(r)}else u(d,o)})),d},t.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},t.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},t.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},t.prototype.updateTitle=function(e){b(this.el,"h2").forEach((function(t){t.innerText=e}))},t.prototype.updateActiveButton=function(e){var t=this.context.theme,n=t.getClass("buttonActive");b(this.el,"button").forEach((function(t){e&&t.classList.contains("fc-"+e+"-button")?t.classList.add(n):t.classList.remove(n)}))},t.prototype.toggleButtonEnabled=function(e,t){b(this.el,".fc-"+e+"-button").forEach((function(e){e.disabled=!t}))},t}(Lr),mo=function(e){function t(t){var n=e.call(this)||this;return n.elClassNames=[],n.renderSkeleton=yr(n._renderSkeleton,n._unrenderSkeleton),n.renderToolbars=yr(n._renderToolbars,n._unrenderToolbars,[n.renderSkeleton]),n.buildComponentContext=zt(Eo),n.buildViewPropTransformers=zt(wo),n.el=t,n.computeTitle=zt(bo),n.parseBusinessHours=zt((function(e){return vr(e,n.context.calendar)})),n}return lt(t,e),t.prototype.render=function(e,t){this.freezeHeight();var n=this.computeTitle(e.dateProfile,e.viewSpec.options);this.renderSkeleton(t),this.renderToolbars(e.viewSpec,e.dateProfile,e.currentDate,n),this.renderView(e,n),this.updateSize(),this.thawHeight()},t.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),e.prototype.destroy.call(this)},t.prototype._renderSkeleton=function(e){this.updateElClassNames(e),d(this.el,this.contentEl=o("div",{className:"fc-view-container"}));for(var t=e.calendar,n=0,r=t.pluginSystem.hooks.viewContainerModifiers;n<r.length;n++){var i=r[n];i(this.contentEl,t)}},t.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),h(this.contentEl),this.removeElClassNames()},t.prototype.removeElClassNames=function(){for(var e=this.el.classList,t=0,n=this.elClassNames;t<n.length;t++){var r=n[t];e.remove(r)}this.elClassNames=[]},t.prototype.updateElClassNames=function(e){this.removeElClassNames();var t=e.theme,n=e.options;this.elClassNames=["fc","fc-"+n.dir,t.getClass("widget")];for(var r=this.el.classList,i=0,o=this.elClassNames;i<o.length;i++){var s=o[i];r.add(s)}},t.prototype._renderToolbars=function(e,t,n,r){var i=this,o=i.context,s=i.header,a=i.footer,l=o.options,c=o.calendar,f=l.header,p=l.footer,h=this.props.dateProfileGenerator,v=c.getNow(),g=h.build(v),y=h.buildPrev(t,n),m=h.buildNext(t,n),b={title:r,activeButton:e.type,isTodayEnabled:g.isValid&&!Nt(t.currentRange,v),isPrevEnabled:y.isValid,isNextEnabled:m.isValid};f?(s||(s=this.header=new yo("fc-header-toolbar"),d(this.el,s.el)),s.receiveProps(ct({layout:f},b),o)):s&&(s.destroy(),s=this.header=null),p?(a||(a=this.footer=new yo("fc-footer-toolbar"),u(this.el,a.el)),a.receiveProps(ct({layout:p},b),o)):a&&(a.destroy(),a=this.footer=null)},t.prototype._unrenderToolbars=function(){this.header&&(this.header.destroy(),this.header=null),this.footer&&(this.footer.destroy(),this.footer=null)},t.prototype.renderView=function(e,t){var n=this.view,r=this.context,i=r.calendar,o=r.options,s=e.viewSpec,a=e.dateProfileGenerator;n&&n.viewSpec===s||(n&&n.destroy(),n=this.view=new s["class"](s,this.contentEl),this.savedScroll&&(n.addScroll(this.savedScroll,!0),this.savedScroll=null)),n.title=t;for(var l={dateProfileGenerator:a,dateProfile:e.dateProfile,businessHours:this.parseBusinessHours(s.options.businessHours),eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize},c=this.buildViewPropTransformers(i.pluginSystem.hooks.viewPropsTransformers),u=0,d=c;u<d.length;u++){var f=d[u];ct(l,f.transform(l,s,e,o))}n.receiveProps(l,this.buildComponentContext(this.context,s,n))},t.prototype.updateSize=function(e){void 0===e&&(e=!1);var t=this.view;t&&((e||null==this.isHeightAuto)&&this.computeHeightVars(),t.updateSize(e,this.viewHeight,this.isHeightAuto),t.updateNowIndicator(),t.popScroll(e))},t.prototype.computeHeightVars=function(){var e=this.context.calendar,t=e.opt("height"),n=e.opt("contentHeight");if(this.isHeightAuto="auto"===t||"auto"===n,"number"===typeof n)this.viewHeight=n;else if("function"===typeof n)this.viewHeight=n();else if("number"===typeof t)this.viewHeight=t-this.queryToolbarsHeight();else if("function"===typeof t)this.viewHeight=t()-this.queryToolbarsHeight();else if("parent"===t){var r=this.el.parentNode;this.viewHeight=r.getBoundingClientRect().height-this.queryToolbarsHeight()}else this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(e.opt("aspectRatio"),.5))},t.prototype.queryToolbarsHeight=function(){var e=0;return this.header&&(e+=L(this.header.el)),this.footer&&(e+=L(this.footer.el)),e},t.prototype.freezeHeight=function(){w(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},t.prototype.thawHeight=function(){w(this.el,{height:"",overflow:""})},t}(Lr);function bo(e,t){var n;return n=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,this.context.dateEnv.formatRange(n.start,n.end,an(t.titleFormat||So(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function So(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=re(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}function Eo(e,t,n){return e.extend(t.options,n)}function wo(e){return e.map((function(e){return new e}))}var Do=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}();function To(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}function Co(e){var t;return t={},t[e.component.uid]=e,t}var Oo={},Ro=function(e){function t(t){var n=e.call(this,t)||this;n.handleSegClick=function(e,t){var r=n.component,i=r.context,o=i.calendar,s=i.view,a=bn(t);if(a&&r.isValidSegDownEl(e.target)){var l=y(e.target,".fc-has-url"),c=l?l.querySelector("a[href]").href:"";o.publiclyTrigger("eventClick",[{el:t,event:new hn(r.context.calendar,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:s}]),c&&!e.defaultPrevented&&(window.location.href=c)}};var r=t.component;return n.destroy=V(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,n.handleSegClick),n}return lt(t,e),t}(Do),xo=function(e){function t(t){var n=e.call(this,t)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){bn(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var r=t.component;return n.removeHoverListeners=F(r.el,r.fgSegSelector+","+r.bgSegSelector,n.handleSegEnter,n.handleSegLeave),r.context.calendar.on("eventElRemove",n.handleEventElRemove),n}return lt(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,o=i.calendar,s=i.view,a=bn(n);t&&!r.isValidSegDownEl(t.target)||o.publiclyTrigger(e,[{el:n,event:new hn(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:s}])},t}(Do),Io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lt(t,e),t}(_r);Io.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Io.prototype.baseIconClass="fc-icon",Io.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"},Io.prototype.iconOverrideOption="buttonIcons",Io.prototype.iconOverrideCustomButtonOption="icon",Io.prototype.iconOverridePrefix="fc-icon-";var ko=function(){function e(e,t){var n=this;this.buildComponentContext=zt(jo),this.parseRawLocales=zt(hi),this.buildLocale=zt(vi),this.buildDateEnv=zt(Mo),this.buildTheme=zt(Po),this.buildEventUiSingleBase=zt(this._buildEventUiSingleBase),this.buildSelectionConfig=zt(this._buildSelectionConfig),this.buildEventUiBySource=Ut(Ho,mt),this.buildEventUiBases=zt(No),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=zt(_o),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new bi(t||{}),this.pluginSystem=new Vr,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map((function(e){return new e(n)}))}return e.prototype.addPluginInputs=function(e){for(var t=fi(e),n=0,r=t;n<r.length;n++){var i=r[n];this.pluginSystem.add(i)}},Object.defineProperty(e.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){this.component?this.requestRerender():(this.component=new mo(this.el),this.renderableEventStore=Ot(),this.bindHandlers(),this.executeRender())},e.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(var e=0,t=this.calendarInteractions;e<t.length;e++){var n=t[e];n.destroy()}this.publiclyTrigger("_destroyed")}},e.prototype.bindHandlers=function(){var e=this;this.removeNavLinkListener=V(this.el,"click","a[data-goto]",(function(t,n){var r=n.getAttribute("data-goto");r=r?JSON.parse(r):{};var i=e.dateEnv,o=i.createMarker(r.date),s=r.type,a=e.viewOpt("navLink"+Xe(s)+"Click");"function"===typeof a?a(i.toDate(o),t):("string"===typeof a&&(s=a),e.zoomTo(o,s))})),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=tt(this.windowResize.bind(this),this.opt("windowResizeDelay")))},e.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},e.prototype.hydrate=function(){var e=this;this.state=this.buildInitialState();var t=this.opt("eventSources")||[],n=this.opt("events"),r=[];n&&t.unshift(n);for(var i=0,o=t;i<o.length;i++){var s=o[i],a=ki(s,this);a&&r.push(a)}this.batchRendering((function(){e.dispatch({type:"INIT"}),e.dispatch({type:"ADD_EVENT_SOURCES",sources:r}),e.dispatch({type:"SET_VIEW_TYPE",viewType:e.opt("defaultView")||e.pluginSystem.hooks.defaultView})}))},e.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:Ot(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},e.prototype.dispatch=function(e){if(this.actionQueue.push(e),!this.isReducing){this.isReducing=!0;var t=this.state;while(this.actionQueue.length)this.state=this.reduce(this.state,this.actionQueue.shift(),this);var n=this.state;this.isReducing=!1,!t.loadingLevel&&n.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!n.loadingLevel&&this.publiclyTrigger("loading",[!1]);var r=this.component&&this.component.view;t.eventStore!==n.eventStore&&t.eventStore&&(this.isEventsUpdated=!0),t.dateProfile!==n.dateProfile&&(t.dateProfile&&r&&this.publiclyTrigger("datesDestroy",[{view:r,el:r.el}]),this.isDatesUpdated=!0),t.viewType!==n.viewType&&(t.viewType&&r&&this.publiclyTrigger("viewSkeletonDestroy",[{view:r,el:r.el}]),this.isViewUpdated=!0),this.requestRerender()}},e.prototype.reduce=function(e,t,n){return Gi(e,t,n)},e.prototype.requestRerender=function(){this.needsRerender=!0,this.delayedRerender()},e.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},e.prototype.batchRendering=function(e){this.renderingPauseDepth++,e(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},e.prototype.executeRender=function(){this.needsRerender=!1,this.isRendering=!0,this.renderComponent(),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},e.prototype.renderComponent=function(){var e=this,t=e.state,n=e.component,r=t.viewType,i=this.viewSpecs[r];if(!i)throw new Error('View type "'+r+'" is not valid');var o=this.renderableEventStore=t.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:t.eventStore,s=this.buildEventUiSingleBase(i.options),a=this.buildEventUiBySource(t.eventSources),l=this.eventUiBases=this.buildEventUiBases(o.defs,s,a);n.receiveProps(ct({},t,{viewSpec:i,dateProfileGenerator:this.dateProfileGenerators[r],dateProfile:t.dateProfile,eventStore:o,eventUiBases:l,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed)),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:n.view,el:n.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:n.view,el:n.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},e.prototype.setOption=function(e,t){var n;this.mutateOptions((n={},n[e]=t,n),[],!0)},e.prototype.getOption=function(e){return this.optionsManager.computed[e]},e.prototype.opt=function(e){return this.optionsManager.computed[e]},e.prototype.viewOpt=function(e){return this.viewOpts()[e]},e.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},e.prototype.mutateOptions=function(e,t,n,r){var i=this,o=this.pluginSystem.hooks.optionChangeHandlers,s={},a={},l=this.dateEnv,c=!1,u=!1,d=Boolean(t.length);for(var f in e)o[f]?a[f]=e[f]:s[f]=e[f];for(var p in s)/^(height|contentHeight|aspectRatio)$/.test(p)?u=!0:/^(defaultDate|defaultView)$/.test(p)||(d=!0,"timeZone"===p&&(c=!0));this.optionsManager.mutate(s,t,n),d&&this.handleOptions(this.optionsManager.computed),this.batchRendering((function(){if(d?(c&&i.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:l}),i.dispatch({type:"SET_VIEW_TYPE",viewType:i.state.viewType})):u&&i.updateSize(),r)for(var e in a)o[e](a[e],i,r)}))},e.prototype.handleOptions=function(e){var t=this,n=this.pluginSystem.hooks;this.defaultAllDayEventDuration=be(e.defaultAllDayEventDuration),this.defaultTimedEventDuration=be(e.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(e.rerenderDelay),this.theme=this.buildTheme(e);var r=this.parseRawLocales(e.locales);this.availableRawLocales=r.map;var i=this.buildLocale(e.locale||r.defaultCode,r.map);this.dateEnv=this.buildDateEnv(i,e.timeZone,n.namedTimeZonedImpl,e.firstDay,e.weekNumberCalculation,e.weekLabel,n.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(e),this.viewSpecs=vo(n.views,this.optionsManager),this.dateProfileGenerators=vt(this.viewSpecs,(function(e){return new e.class.prototype.dateProfileGeneratorClass(e,t)}))},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},e.prototype._buildSelectionConfig=function(e){return er("select",e,this)},e.prototype._buildEventUiSingleBase=function(e){return e.editable&&(e=ct({},e,{eventEditable:!0})),er("event",e,this)},e.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},e.prototype.publiclyTrigger=function(e,t){var n=this.opt(e);if(this.triggerWith(e,this,t),n)return n.apply(this,t)},e.prototype.publiclyTriggerAfterSizing=function(e,t){var n=this.afterSizingTriggers;(n[e]||(n[e]=[])).push(t)},e.prototype.releaseAfterSizingTriggers=function(){var e=this.afterSizingTriggers;for(var t in e)for(var n=0,r=e[t];n<r.length;n++){var i=r[n];this.publiclyTrigger(t,i)}this.afterSizingTriggers={}},e.prototype.isValidViewType=function(e){return Boolean(this.viewSpecs[e])},e.prototype.changeView=function(e,t){var n=null;t&&(t.start&&t.end?(this.optionsManager.mutate({visibleRange:t},[]),this.handleOptions(this.optionsManager.computed)):n=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:e,dateMarker:n})},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"SET_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"SET_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.component,i=[];for(var o in r.header&&i.push.apply(i,r.header.viewsWithButtons),r.footer&&i.push.apply(i,r.footer.viewsWithButtons),this.viewSpecs)i.push(o);for(t=0;t<i.length;t++)if(n=this.viewSpecs[i[t]],n&&n.singleUnit===e)return n},e.prototype.getInitialDate=function(){var e=this.opt("defaultDate");return null!=e?this.dateEnv.createMarker(e):this.getNow()},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},e.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},e.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},e.prototype.gotoDate=function(e){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=be(e);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},e.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},e.prototype.formatDate=function(e,t){var n=this.dateEnv;return n.format(n.createMarker(e),an(t))},e.prototype.formatRange=function(e,t,n){var r=this.dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),an(n,this.opt("defaultRangeSeparator")),n)},e.prototype.formatIso=function(e,t){var n=this.dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.windowResize=function(e){!this.isHandlingWindowResize&&this.component&&e.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},e.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},e.prototype.registerInteractiveComponent=function(e,t){var n=To(e,t),r=[Ro,xo],i=r.concat(this.pluginSystem.hooks.componentInteractions),o=i.map((function(e){return new e(n)}));this.interactionsStore[e.uid]=o,Oo[e.uid]=n},e.prototype.unregisterInteractiveComponent=function(e){for(var t=0,n=this.interactionsStore[e.uid];t<n.length;t++){var r=n[t];r.destroy()}delete this.interactionsStore[e.uid],delete Oo[e.uid]},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=eo(n,this.dateEnv,be({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),this.triggerDateSelect(r))},e.prototype.unselect=function(e){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(e))},e.prototype.triggerDateSelect=function(e,t){var n=ct({},this.buildDateSpanApi(e),{jsEvent:t?t.origEvent:null,view:this.view});this.publiclyTrigger("select",[n])},e.prototype.triggerDateUnselect=function(e){this.publiclyTrigger("unselect",[{jsEvent:e?e.origEvent:null,view:this.view}])},e.prototype.triggerDateClick=function(e,t,n,r){var i=ct({},this.buildDatePointApi(e),{dayEl:t,jsEvent:r,view:n});this.publiclyTrigger("dateClick",[i])},e.prototype.buildDatePointApi=function(e){for(var t={},n=0,r=this.pluginSystem.hooks.datePointTransforms;n<r.length;n++){var i=r[n];ct(t,i(e,this))}return ct(t,oo(e,this.dateEnv)),t},e.prototype.buildDateSpanApi=function(e){for(var t={},n=0,r=this.pluginSystem.hooks.dateSpanTransforms;n<r.length;n++){var i=r[n];ct(t,i(e,this))}return ct(t,io(e,this.dateEnv)),t},e.prototype.getNow=function(){var e=this.opt("now");return"function"===typeof e&&(e=e()),null==e?this.dateEnv.createNowMarker():this.dateEnv.createMarker(e)},e.prototype.getDefaultEventEnd=function(e,t){var n=t;return e?(n=ie(n),n=this.dateEnv.add(n,this.defaultAllDayEventDuration)):n=this.dateEnv.add(n,this.defaultTimedEventDuration),n},e.prototype.addEvent=function(e,t){if(e instanceof hn){var n=e._def,r=e._instance;return this.state.eventStore.defs[n.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:St({def:n,instance:r})}),e}var i;if(t instanceof pn)i=t.internalEventSource.sourceId;else if(null!=t){var o=this.getEventSourceById(t);if(!o)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=o.internalEventSource.sourceId}var s=ar(e,i,this);return s?(this.dispatch({type:"ADD_EVENTS",eventStore:St(s)}),new hn(this,s.def,s.def.recurringDef?null:s.instance)):null},e.prototype.getEventById=function(e){var t=this.state.eventStore,n=t.defs,r=t.instances;for(var i in e=String(e),n){var o=n[i];if(o.publicId===e){if(o.recurringDef)return new hn(this,o,null);for(var s in r){var a=r[s];if(a.defId===o.defId)return new hn(this,o,a)}}}return null},e.prototype.getEvents=function(){var e=this.state.eventStore,t=e.defs,n=e.instances,r=[];for(var i in n){var o=n[i],s=t[o.defId];r.push(new hn(this,s,o))}return r},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},e.prototype.getEventSources=function(){var e=this.state.eventSources,t=[];for(var n in e)t.push(new pn(this,e[n]));return t},e.prototype.getEventSourceById=function(e){var t=this.state.eventSources;for(var n in e=String(e),t)if(t[n].publicId===e)return new pn(this,t[n]);return null},e.prototype.addEventSource=function(e){if(e instanceof pn)return this.state.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var t=ki(e,this);return t?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new pn(this,t)):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=be(e);t&&this.component.view.scrollToDuration(t)},e}();function jo(e,t,n){return new Nr(this,e,t,n,null)}function Mo(e,t,n,r,i,o,s){return new Oi({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:n,locale:e,weekNumberCalculation:i,firstDay:r,weekLabel:o,cmdFormatter:s})}function Po(e){var t=this.pluginSystem.hooks.themeClasses[e.themeSystem]||Io;return new t(e)}function _o(e){var t=this.tryRerender.bind(this);return null!=e&&(t=tt(t,e)),t}function Ho(e){return vt(e,(function(e){return e.ui}))}function No(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}Or.mixInto(ko);var Lo=function(e){function t(t,n){var r=e.call(this,o("div",{className:"fc-view fc-"+t.type+"-view"}))||this;return r.renderDatesMem=yr(r.renderDatesWrap,r.unrenderDatesWrap),r.renderBusinessHoursMem=yr(r.renderBusinessHours,r.unrenderBusinessHours,[r.renderDatesMem]),r.renderDateSelectionMem=yr(r.renderDateSelectionWrap,r.unrenderDateSelectionWrap,[r.renderDatesMem]),r.renderEventsMem=yr(r.renderEvents,r.unrenderEvents,[r.renderDatesMem]),r.renderEventSelectionMem=yr(r.renderEventSelectionWrap,r.unrenderEventSelectionWrap,[r.renderEventsMem]),r.renderEventDragMem=yr(r.renderEventDragWrap,r.unrenderEventDragWrap,[r.renderDatesMem]),r.renderEventResizeMem=yr(r.renderEventResizeWrap,r.unrenderEventResizeWrap,[r.renderDatesMem]),r.viewSpec=t,r.type=t.type,n.appendChild(r.el),r.initialize(),r}return lt(t,e),t.prototype.initialize=function(){},Object.defineProperty(t.prototype,"activeStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),t.prototype.render=function(e,t){this.renderDatesMem(e.dateProfile),this.renderBusinessHoursMem(e.businessHours),this.renderDateSelectionMem(e.dateSelection),this.renderEventsMem(e.eventStore),this.renderEventSelectionMem(e.eventSelection),this.renderEventDragMem(e.eventDrag),this.renderEventResizeMem(e.eventResize)},t.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderDatesMem.unrender()},t.prototype.updateSize=function(e,t,n){var r=this.context.calendar;e&&this.addScroll(this.queryScroll()),(e||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(e,t,n)},t.prototype.updateBaseSize=function(e,t,n){},t.prototype.renderDatesWrap=function(e){this.renderDates(e),this.addScroll({duration:be(this.context.options.scrollTime)})},t.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},t.prototype.renderDates=function(e){},t.prototype.unrenderDates=function(){},t.prototype.renderBusinessHours=function(e){},t.prototype.unrenderBusinessHours=function(){},t.prototype.renderDateSelectionWrap=function(e){e&&this.renderDateSelection(e)},t.prototype.unrenderDateSelectionWrap=function(e){e&&this.unrenderDateSelection(e)},t.prototype.renderDateSelection=function(e){},t.prototype.unrenderDateSelection=function(e){},t.prototype.renderEvents=function(e){},t.prototype.unrenderEvents=function(){},t.prototype.sliceEvents=function(e,t){var n=this.props;return vn(e,n.eventUiBases,n.dateProfile.activeRange,t?this.context.nextDayThreshold:null).fg},t.prototype.renderEventSelectionWrap=function(e){e&&this.renderEventSelection(e)},t.prototype.unrenderEventSelectionWrap=function(e){e&&this.unrenderEventSelection(e)},t.prototype.renderEventSelection=function(e){},t.prototype.unrenderEventSelection=function(e){},t.prototype.renderEventDragWrap=function(e){e&&this.renderEventDrag(e)},t.prototype.unrenderEventDragWrap=function(e){e&&this.unrenderEventDrag(e)},t.prototype.renderEventDrag=function(e){},t.prototype.unrenderEventDrag=function(e){},t.prototype.renderEventResizeWrap=function(e){e&&this.renderEventResize(e)},t.prototype.unrenderEventResizeWrap=function(e){e&&this.unrenderEventResize(e)},t.prototype.renderEventResize=function(e){},t.prototype.unrenderEventResize=function(e){},t.prototype.startNowIndicator=function(e,t){var n,r,i,o=this,s=this.context,a=s.calendar,l=s.dateEnv,c=s.options;c.nowIndicator&&!this.initialNowDate&&(n=this.getNowIndicatorUnit(e,t),n&&(r=this.updateNowIndicator.bind(this),this.initialNowDate=a.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),i=l.add(l.startOf(this.initialNowDate,n),be(1,n)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout((function(){o.nowIndicatorTimeoutID=null,r(),i="second"===n?1e3:6e4,o.nowIndicatorIntervalID=setInterval(r,i)}),i)))},t.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(X(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},t.prototype.stopNowIndicator=function(){this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},t.prototype.getNowIndicatorUnit=function(e,t){},t.prototype.renderNowIndicator=function(e){},t.prototype.unrenderNowIndicator=function(){},t.prototype.addScroll=function(e,t){t&&(e.isForced=t),ct(this.queuedScroll||(this.queuedScroll={}),e)},t.prototype.popScroll=function(e){this.applyQueuedScroll(e),this.queuedScroll=null},t.prototype.applyQueuedScroll=function(e){this.queuedScroll&&this.applyScroll(this.queuedScroll,e)},t.prototype.queryScroll=function(){var e={};return this.props.dateProfile&&ct(e,this.queryDateScroll()),e},t.prototype.applyScroll=function(e,t){var n=e.duration,r=e.isForced;null==n||r||(delete e.duration,this.props.dateProfile&&ct(e,this.computeDateScroll(n))),this.props.dateProfile&&this.applyDateScroll(e)},t.prototype.computeDateScroll=function(e){return{}},t.prototype.queryDateScroll=function(){return{}},t.prototype.applyDateScroll=function(e){},t.prototype.scrollToDuration=function(e){this.applyScroll({duration:e},!1)},t}(zr);Or.mixInto(Lo),Lo.prototype.usesMinMaxTime=!1,Lo.prototype.dateProfileGeneratorClass=Vi;var Ao=function(){function e(){this.segs=[],this.isSizeDirty=!1}return e.prototype.renderSegs=function(e,t,n){this.context=e,this.rangeUpdated(),t=this.renderSegEls(t,n),this.segs=t,this.attachSegs(t,n),this.isSizeDirty=!0,wn(this.context,this.segs,Boolean(n))},e.prototype.unrender=function(e,t,n){Dn(this.context,this.segs,Boolean(n)),this.detachSegs(this.segs),this.segs=[]},e.prototype.rangeUpdated=function(){var e,t,n=this.context.options;this.eventTimeFormat=an(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),e=n.displayEventTime,null==e&&(e=this.computeDisplayEventTime()),t=n.displayEventEnd,null==t&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},e.prototype.renderSegEls=function(e,t){var n,r="";if(e.length){for(n=0;n<e.length;n++)r+=this.renderSegHtml(e[n],t);a(r).forEach((function(t,n){var r=e[n];t&&(r.el=t)})),e=yn(this.context,e,Boolean(t))}return e},e.prototype.getSegClasses=function(e,t,n,r){var i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(e.eventRange.ui.classNames);return t&&i.push("fc-draggable"),n&&i.push("fc-resizable"),r&&(i.push("fc-mirror"),r.isDragging&&i.push("fc-dragging"),r.isResizing&&i.push("fc-resizing")),i},e.prototype.getTimeText=function(e,t,n){var r=e.def,i=e.instance;return this._getTimeText(i.range.start,r.hasEnd?i.range.end:null,r.allDay,t,n,i.forcedStartTzo,i.forcedEndTzo)},e.prototype._getTimeText=function(e,t,n,r,i,o,s){var a=this.context.dateEnv;return null==r&&(r=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&t?a.formatRange(e,t,r,{forcedStartTzo:o,forcedEndTzo:s}):a.format(e,r,{forcedTzo:o}):""},e.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},e.prototype.computeDisplayEventTime=function(){return!0},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.getSkinCss=function(e){return{"background-color":e.backgroundColor,"border-color":e.borderColor,color:e.textColor}},e.prototype.sortEventSegs=function(e){var t=this.context.eventOrderSpecs,n=e.map(zo);return n.sort((function(e,n){return qe(e,n,t)})),n.map((function(e){return e._seg}))},e.prototype.computeSizes=function(e){(e||this.isSizeDirty)&&this.computeSegSizes(this.segs)},e.prototype.assignSizes=function(e){(e||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e.prototype.hideByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")}},e.prototype.showByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")}},e.prototype.selectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t],i=r.eventRange.instance;i&&i.instanceId===e&&r.el&&r.el.classList.add("fc-selected")}},e.prototype.unselectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];r.el&&r.el.classList.remove("fc-selected")}},e}();function zo(e){var t=e.eventRange.def,n=e.eventRange.instance.range,r=n.start?n.start.valueOf():0,i=n.end?n.end.valueOf():0;return ct({},t.extendedProps,t,{id:t.publicId,start:r,end:i,duration:i-r,allDay:Number(t.allDay),_seg:e})}var Uo=function(){function e(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}return e.prototype.getSegsByType=function(e){return this.segsByType[e]||[]},e.prototype.renderSegs=function(e,t,n){var r;this.context=t;var i=this.renderSegEls(e,n),o=this.attachSegs(e,i);o&&(r=this.containerElsByType[e]||(this.containerElsByType[e]=[])).push.apply(r,o),this.segsByType[e]=i,"bgEvent"===e&&wn(t,i,!1),this.dirtySizeFlags[e]=!0},e.prototype.unrender=function(e,t){var n=this.segsByType[e];n&&("bgEvent"===e&&Dn(t,n,!1),this.detachSegs(e,n))},e.prototype.renderSegEls=function(e,t){var n,r=this,i="";if(t.length){for(n=0;n<t.length;n++)i+=this.renderSegHtml(e,t[n]);a(i).forEach((function(e,n){var r=t[n];e&&(r.el=e)})),"bgEvent"===e&&(t=yn(this.context,t,!1)),t=t.filter((function(e){return m(e.el,r.fillSegTag)}))}return t},e.prototype.renderSegHtml=function(e,t){var n=null,r=[];return"highlight"!==e&&"businessHours"!==e&&(n={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==e&&(r=r.concat(t.eventRange.ui.classNames)),"businessHours"===e?r.push("fc-bgevent"):r.push("fc-"+e.toLowerCase()),"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(n?' style="'+Xn(n)+'"':"")+"></"+this.fillSegTag+">"},e.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(h),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}(),Bo=(function(){function e(e){this.timeZoneName=e}}(),function(){function e(e){this.emitter=new Or}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}());var Vo={startTime:be,duration:be,create:Boolean,sourceId:String},Fo={create:!0};function Go(e){var t={},n=nt(e,Vo,Fo,t);return n.leftoverProps=t,n}function Wo(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function qo(e,t,n,r,i,o,s,a){var l,c=o.dateEnv,u=o.theme,d=o.options,f=Nt(t.activeRange,e),p=["fc-day-header",u.getClass("widgetHeader")];return l="function"===typeof d.columnHeaderHtml?d.columnHeaderHtml(c.toDate(e)):"function"===typeof d.columnHeaderText?Zn(d.columnHeaderText(c.toDate(e))):Zn(c.format(e,i)),n?p=p.concat(Dr(e,t,o,!0)):p.push("fc-"+q[e.getUTCDay()]),'<th class="'+p.join(" ")+'"'+(f&&n?' data-date="'+c.formatIso(e,{omitTime:!0})+'"':"")+(s>1?' colspan="'+s+'"':"")+(a?" "+a:"")+">"+(f?Er(d,c,{date:e,forceOff:!n||1===r},l):l)+"</th>"}var Yo=function(e){function t(t){var n=e.call(this)||this;return n.renderSkeleton=yr(n._renderSkeleton,n._unrenderSkeleton),n.parentEl=t,n}return lt(t,e),t.prototype.render=function(e,t){var n=e.dates,r=e.datesRepDistinctDays,i=[];this.renderSkeleton(t),e.renderIntroHtml&&i.push(e.renderIntroHtml());for(var o=an(t.options.columnHeaderFormat||Wo(r,n.length)),s=0,a=n;s<a.length;s++){var l=a[s];i.push(qo(l,e.dateProfile,r,n.length,o,t))}t.isRtl&&i.reverse(),this.thead.innerHTML="<tr>"+i.join("")+"</tr>"},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(e){var t=e.theme,n=this.parentEl;n.innerHTML="",n.appendChild(this.el=s('<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead></thead></table></div>')),this.thead=this.el.querySelector("thead")},t.prototype._unrenderSkeleton=function(){h(this.el)},t}(Lr),Zo=function(){function e(e,t){var n=e.start,r=e.end,i=[],o=[],s=-1;while(n<r)t.isHiddenDay(n)?i.push(s+.5):(s++,i.push(s),o.push(n)),n=Z(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(Z(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(Q(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Xo=function(){function e(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length;n++)if(o[n].getUTCDay()===r)break;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++){for(var n=[],r=0;r<this.colCnt;r++)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){return{date:this.daySeries.dates[e*this.colCnt+t]}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t++)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){var i=n.firstIndex,o=n.lastIndex,s=i;while(s<=o){var a=Math.floor(s/t),l=Math.min((a+1)*t,o+1);r.push({row:a,firstCol:s%t,lastCol:(l-1)%t,isStart:n.isStart&&s===i,isEnd:n.isEnd&&l-1===o}),s=l}}return r},e}(),$o=function(){function e(){this.sliceBusinessHours=zt(this._sliceBusinessHours),this.sliceDateSelection=zt(this._sliceDateSpan),this.sliceEventStore=zt(this._sliceEventStore),this.sliceEventDrag=zt(this._sliceInteraction),this.sliceEventResize=zt(this._sliceInteraction)}return e.prototype.sliceProps=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];var a=e.eventUiBases,l=this.sliceEventStore.apply(this,[e.eventStore,a,t,n,i].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,a,i].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,n,r,i].concat(o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,a,t,n,i].concat(o)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,a,t,n,i].concat(o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,[{range:{start:e,end:X(e,1)},allDay:!1},{},t].concat(n))},e.prototype._sliceBusinessHours=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];return e?this._sliceEventStore.apply(this,[Et(e,Qo(t,Boolean(n)),r),{},t,n,i].concat(o)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(e){var a=vn(e,t,Qo(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,i,o),fg:this.sliceEventRanges(a.fg,i,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(!e)return null;var a=vn(e.mutatedEvents,t,Qo(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,i,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent,sourceSeg:e.origSeg}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(var o=so(e,t,n.context.calendar),s=this.sliceRange.apply(this,[e.range].concat(r)),a=0,l=s;a<l.length;a++){var c=l[a];c.component=n,c.eventRange=o}return s},e.prototype.sliceEventRanges=function(e,t,n){for(var r=[],i=0,o=e;i<o.length;i++){var s=o[i];r.push.apply(r,this.sliceEventRange(s,t,n))}return r},e.prototype.sliceEventRange=function(e,t,n){for(var r=this.sliceRange.apply(this,[e.range].concat(n)),i=0,o=r;i<o.length;i++){var s=o[i];s.component=t,s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return r},e}();function Qo(e,t){var n=e.activeRange;return t?n:{start:X(n.start,e.minTime.milliseconds),end:X(n.end,e.maxTime.milliseconds-864e5)}}},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):"undefined"!==typeof t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):"undefined"!==typeof e[i]&&(n[i]=e[i])})),r.forEach(s,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}));var a=i.concat(o).concat(s),l=Object.keys(t).filter((function(e){return-1===a.indexOf(e)}));return r.forEach(l,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])})),n}},"4d64":function(e,t,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),s=function(e){return function(t,n,s){var a,l=r(t),c=i(l.length),u=o(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"50c4":function(e,t,n){var r=n("a691"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),s=n("2444");function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){a(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return a(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),i=n("241c"),o=n("7418"),s=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=o.f;return n?t.concat(n(e)):t}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),s=n("7418"),a=n("d1e7"),l=n("7b0b"),c=n("44ad"),u=Object.assign,d=Object.defineProperty;e.exports=!u||i((function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=i}))?function(e,t){var n=l(e),i=arguments.length,u=1,d=s.f,f=a.f;while(i>u){var p,h=c(arguments[u++]),v=d?o(h).concat(d(h)):o(h),g=v.length,y=0;while(g>y)p=v[y++],r&&!f.call(h,p)||(n[p]=h[p])}return n}:u},"65f0":function(e,t,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),s=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[s],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"694b":function(e,t,n){"use strict";var r=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var s,a,l,c=r(t),u=r(n);if(c&&u){if(a=t.length,a!=n.length)return!1;for(s=a;0!==s--;)if(!e(t[s],n[s]))return!1;return!0}if(c!=u)return!1;var d=t instanceof Date,f=n instanceof Date;if(d!=f)return!1;if(d&&f)return t.getTime()==n.getTime();var p=t instanceof RegExp,h=n instanceof RegExp;if(p!=h)return!1;if(p&&h)return t.toString()==n.toString();var v=i(t);if(a=v.length,a!==i(n).length)return!1;for(s=a;0!==s--;)if(!o.call(n,v[s]))return!1;for(s=a;0!==s--;)if(l=v[s],!e(t[l],n[l]))return!1;return!0}return t!==t&&n!==n}},"69f3":function(e,t,n){var r,i,o,s=n("7f9a"),a=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),d=n("f772"),f=n("d012"),p=a.WeakMap,h=function(e){return o(e)?i(e):r(e,{})},v=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(s){var g=new p,y=g.get,m=g.has,b=g.set;r=function(e,t){return b.call(g,e,t),t},i=function(e){return y.call(g,e)||{}},o=function(e){return m.call(g,e)}}else{var S=d("state");f[S]=!0,r=function(e,t){return c(e,S,t),t},i=function(e){return u(e,S)?e[S]:{}},o=function(e){return u(e,S)}}e.exports={set:r,get:i,has:o,enforce:h,getterFor:v}},"6dc0":function(e,t,n){"use strict";e.exports=function(e){var t=/(\b)(on\w+)=|javascript|(<\s*)(\/*)script/gi;return t.test(e)}},"6eeb":function(e,t,n){var r=n("da84"),i=n("9112"),o=n("5135"),s=n("ce4e"),a=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!f&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},"6ef4":function(e,t,n){},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),i=n("5135"),o=n("e538"),s=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||s(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,i=n("825a"),o=n("37e8"),s=n("7839"),a=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d=">",f="<",p="prototype",h="script",v=u("IE_PROTO"),g=function(){},y=function(e){return f+h+d+e+f+"/"+h+d},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},S=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}S=r?m(r):b();var e=s.length;while(e--)delete S[p][s[e]];return S()};a[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[p]=i(e),n=new g,g[p]=null,n[v]=e):n=S(),void 0===t?n:o(n,t)}},"7db0":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),s=n("ae40"),a="find",l=!0,c=s(a);a in[]&&Array(1)[a]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!c},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7f9a":function(e,t,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8925:function(e,t,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"8bbf":function(t,n){t.exports=e},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"94ca":function(e,t,n){var r=n("d039"),i=/#|\.prototype\./,o=function(e,t){var n=a[s(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},"9bf2":function(e,t,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),s=n("c04e"),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(o(e),t=s(t,!0),o(n),i)try{return a(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},a30b:function(e,t,n){},a4d3:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),s=n("c430"),a=n("83ab"),l=n("4930"),c=n("fdbf"),u=n("d039"),d=n("5135"),f=n("e8b5"),p=n("861d"),h=n("825a"),v=n("7b0b"),g=n("fc6a"),y=n("c04e"),m=n("5c6c"),b=n("7c73"),S=n("df75"),E=n("241c"),w=n("057f"),D=n("7418"),T=n("06cf"),C=n("9bf2"),O=n("d1e7"),R=n("9112"),x=n("6eeb"),I=n("5692"),k=n("f772"),j=n("d012"),M=n("90e3"),P=n("b622"),_=n("e538"),H=n("746f"),N=n("d44e"),L=n("69f3"),A=n("b727").forEach,z=k("hidden"),U="Symbol",B="prototype",V=P("toPrimitive"),F=L.set,G=L.getterFor(U),W=Object[B],q=i.Symbol,Y=o("JSON","stringify"),Z=T.f,X=C.f,$=w.f,Q=O.f,K=I("symbols"),J=I("op-symbols"),ee=I("string-to-symbol-registry"),te=I("symbol-to-string-registry"),ne=I("wks"),re=i.QObject,ie=!re||!re[B]||!re[B].findChild,oe=a&&u((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Z(W,t);r&&delete W[t],X(e,t,n),r&&e!==W&&X(W,t,r)}:X,se=function(e,t){var n=K[e]=b(q[B]);return F(n,{type:U,tag:e,description:t}),a||(n.description=t),n},ae=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},le=function(e,t,n){e===W&&le(J,t,n),h(e);var r=y(t,!0);return h(n),d(K,r)?(n.enumerable?(d(e,z)&&e[z][r]&&(e[z][r]=!1),n=b(n,{enumerable:m(0,!1)})):(d(e,z)||X(e,z,m(1,{})),e[z][r]=!0),oe(e,r,n)):X(e,r,n)},ce=function(e,t){h(e);var n=g(t),r=S(n).concat(he(n));return A(r,(function(t){a&&!de.call(n,t)||le(e,t,n[t])})),e},ue=function(e,t){return void 0===t?b(e):ce(b(e),t)},de=function(e){var t=y(e,!0),n=Q.call(this,t);return!(this===W&&d(K,t)&&!d(J,t))&&(!(n||!d(this,t)||!d(K,t)||d(this,z)&&this[z][t])||n)},fe=function(e,t){var n=g(e),r=y(t,!0);if(n!==W||!d(K,r)||d(J,r)){var i=Z(n,r);return!i||!d(K,r)||d(n,z)&&n[z][r]||(i.enumerable=!0),i}},pe=function(e){var t=$(g(e)),n=[];return A(t,(function(e){d(K,e)||d(j,e)||n.push(e)})),n},he=function(e){var t=e===W,n=$(t?J:g(e)),r=[];return A(n,(function(e){!d(K,e)||t&&!d(W,e)||r.push(K[e])})),r};if(l||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function(e){this===W&&n.call(J,e),d(this,z)&&d(this[z],t)&&(this[z][t]=!1),oe(this,t,m(1,e))};return a&&ie&&oe(W,t,{configurable:!0,set:n}),se(t,e)},x(q[B],"toString",(function(){return G(this).tag})),x(q,"withoutSetter",(function(e){return se(M(e),e)})),O.f=de,C.f=le,T.f=fe,E.f=w.f=pe,D.f=he,_.f=function(e){return se(P(e),e)},a&&(X(q[B],"description",{configurable:!0,get:function(){return G(this).description}}),s||x(W,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),A(S(ne),(function(e){H(e)})),r({target:U,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!a},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),r({target:"Object",stat:!0,forced:u((function(){D.f(1)}))},{getOwnPropertySymbols:function(e){return D.f(v(e))}}),Y){var ve=!l||u((function(){var e=q();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));r({target:"JSON",stat:!0,forced:ve},{stringify:function(e,t,n){var r,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!ae(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),i[1]=t,Y.apply(null,i)}})}q[B][V]||R(q[B],V,q[B].valueOf),N(q,U),j[z]=!0},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},ae40:function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("5135"),s=Object.defineProperty,a={},l=function(e){throw e};e.exports=function(e,t){if(o(a,e))return a[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,u=o(t,0)?t[0]:l,d=o(t,1)?t[1]:void 0;return a[e]=!!n&&!i((function(){if(c&&!r)return!0;var e={length:-1};c?s(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)}))}},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),s=n("83b9"),a=n("c345"),l=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,u){var d=e.data,f=e.headers;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password||"";f.Authorization="Basic "+btoa(h+":"+v)}var g=s(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?p.response:p.responseText,o={data:r,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};i(t,u,o),p=null}},p.onabort=function(){p&&(u(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){u(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(c(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n("7aac"),m=(e.withCredentials||l(g))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;m&&(f[e.xsrfHeaderName]=m)}if("setRequestHeader"in p&&r.forEach(f,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),u(e),p=null)})),void 0===d&&(d=null),p.send(d)}))}},b622:function(e,t,n){var r=n("da84"),i=n("5692"),o=n("5135"),s=n("90e3"),a=n("4930"),l=n("fdbf"),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(a&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},b727:function(e,t,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),s=n("50c4"),a=n("65f0"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=5==e||d;return function(p,h,v,g){for(var y,m,b=o(p),S=i(b),E=r(h,v,3),w=s(S.length),D=0,T=g||a,C=t?T(p,w):n?T(p,0):void 0;w>D;D++)if((f||D in S)&&(y=S[D],m=E(y,D,b),e))if(t)C[D]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return D;case 2:l.call(C,y)}else if(u)return!1;return d?-1:c||u?u:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},bc3a:function(e,t,n){e.exports=n("cee4")},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},c345:function(e,t,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c381:function(e,t,n){},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c430:function(e,t){e.exports=!1},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===i.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function d(e){return"string"===typeof e}function f(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function h(e){return"[object Date]"===i.call(e)}function v(e){return"[object File]"===i.call(e)}function g(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function m(e){return p(e)&&y(e.pipe)}function b(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function S(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function D(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=D(e[n],t):e[n]=t}for(var n=0,r=arguments.length;n<r;n++)w(arguments[n],t);return e}function T(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=T(e[n],t):e[n]="object"===typeof t?T({},t):t}for(var n=0,r=arguments.length;n<r;n++)w(arguments[n],t);return e}function C(e,t,n){return w(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:u,isString:d,isNumber:f,isObject:p,isUndefined:s,isDate:h,isFile:v,isBlob:g,isFunction:y,isStream:m,isURLSearchParams:b,isStandardBrowserEnv:E,forEach:w,merge:D,deepMerge:T,extend:C,trim:S}},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",s=r[o]||i(o,{});e.exports=s},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca84:function(e,t,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,s=n("d012");e.exports=function(e,t){var n,a=i(e),l=0,c=[];for(n in a)!r(s,n)&&r(a,n)&&c.push(n);while(t.length>l)r(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),o=r.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},cca6:function(e,t,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},ce4e:function(e,t,n){var r=n("da84"),i=n("9112");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=l(a);c.Axios=o,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),e.exports=c,e.exports.default=c},ceee:function(e,t,n){"use strict";var r=n("a30b"),i=n.n(r);i.a},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("428f"),i=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d44e:function(e,t,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),s=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,s)&&r(e,s,{configurable:!0,value:t})}},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dc09:function(e,t,n){"use strict";(function(e){var r=n("694b"),i=n.n(r),o=n("4990");function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var a=Object.prototype.hasOwnProperty;function l(e){return Array.isArray(e)?e.map(l):e instanceof Date?new Date(e.valueOf()):"object"===s(e)&&e?c(e,l):e}function c(e,t){var n={};for(var r in e)a.call(e,r)&&(n[r]=t(e[r],r));return n}var u={header:{},footer:{},customButtons:{},buttonIcons:{},themeSystem:{},bootstrapFontAwesome:{},firstDay:{},dir:{},weekends:{},hiddenDays:{},fixedWeekCount:{},weekNumbers:{},weekNumbersWithinDays:{},weekNumberCalculation:{},businessHours:{},showNonCurrentDates:{},height:{},contentHeight:{},aspectRatio:{},handleWindowResize:{},windowResizeDelay:{},eventLimit:{},eventLimitClick:{},timeZone:{},now:{},defaultView:{},allDaySlot:{},allDayText:{},slotDuration:{},slotLabelFormat:{},slotLabelInterval:{},snapDuration:{},scrollTime:{},minTime:{},maxTime:{},slotEventOverlap:{},listDayFormat:{},listDayAltFormat:{},noEventsMessage:{},defaultDate:{},nowIndicator:{},visibleRange:{},validRange:{},dateIncrement:{},dateAlignment:{},duration:{},dayCount:{},locales:{},locale:{},eventTimeFormat:{},columnHeader:{},columnHeaderFormat:{},columnHeaderText:{},columnHeaderHtml:{},titleFormat:{},weekLabel:{},displayEventTime:{},displayEventEnd:{},eventLimitText:{},dayPopoverFormat:{},navLinks:{},navLinkDayClick:{},navLinkWeekClick:{},selectable:{},selectMirror:{},unselectAuto:{},unselectCancel:{},defaultAllDayEventDuration:{},defaultTimedEventDuration:{},cmdFormatter:{},defaultRangeSeparator:{},selectConstraint:{},selectOverlap:{},selectAllow:{},editable:{},eventStartEditable:{},eventDurationEditable:{},eventConstraint:{},eventOverlap:{},eventAllow:{},eventClassName:{},eventClassNames:{},eventBackgroundColor:{},eventBorderColor:{},eventTextColor:{},eventColor:{},events:{},eventSources:{},allDayDefault:{},startParam:{},endParam:{},lazyFetching:{},nextDayThreshold:{},eventOrder:{},rerenderDelay:{},dragRevertDuration:{},dragScroll:{},longPressDelay:{},eventLongPressDelay:{},droppable:{},dropAccept:{},eventDataTransform:{},allDayMaintainDuration:{},eventResizableFromStart:{},timeGridEventMinHeight:{},allDayHtml:{},eventDragMinDistance:{},eventResourceEditable:{},eventSourceFailure:{},eventSourceSuccess:{},forceEventDuration:{},progressiveEventRendering:{},selectLongPressDelay:{},selectMinDistance:{},timeZoneParam:{},titleRangeSeparator:{},buttonText:{},views:{},plugins:{},schedulerLicenseKey:{},resources:{},resourceLabelText:{},resourceOrder:{},filterResourcesWithEvents:{},resourceText:{},resourceGroupField:{},resourceGroupText:{},resourceAreaWidth:{},resourceColumns:{},resourcesInitiallyExpanded:{},slotWidth:{},datesAboveResources:{},googleCalendarApiKey:{},refetchResourcesOnNavigate:{},datesRender:{},datesDestroy:{},dayRender:{},eventRender:{},eventDestroy:{},viewSkeletonRender:{},viewSkeletonDestroy:{},resourceRender:{}},d={header:!0,footer:!0,events:!0,eventSources:!0,resources:!0},f=["windowResize","dateClick","eventClick","eventMouseEnter","eventMouseLeave","select","unselect","loading","eventPositioned","_eventsPositioned","eventDragStart","eventDragStop","eventDrop","eventResizeStart","eventResizeStop","eventResize","drop","eventReceive","eventLeave","_destroyed","datesRender","datesDestroy","dayRender","eventRender","eventDestroy","viewSkeletonRender","viewSkeletonDestroy","resourceRender"],p={datesRender:!0,datesDestroy:!0,dayRender:!0,eventRender:!0,eventDestroy:!0,viewSkeletonRender:!0,viewSkeletonDestroy:!0,resourceRender:!0},h={props:u,data:function(){return{renderId:0,deepCopies:{}}},render:function(e){return e("div",{attrs:{"data-fc-render-id":this.renderId}})},mounted:function(){g(this.$listeners),this.$options.calendar=new o["a"](this.$el,this.buildCalendarOptions()),this.$options.calendar.render()},beforeUpdate:function(){this.renderDirty()},beforeDestroy:function(){this.$options.calendar.destroy()},watch:c(u,v),methods:{buildCalendarOptions:function(){var e=this,t={},n=!0,r=!1,i=void 0;try{for(var o,s=function(){var n=o.value;t[n]=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.$emit.apply(e,[n].concat(r))}},a=f[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)s()}catch(h){r=!0,i=h}finally{try{n||null==a["return"]||a["return"]()}finally{if(r)throw i}}for(var c in u){var p=this[c];void 0!==p&&(d[c]&&(p=l(p),this.deepCopies[c]=p),t[c]=p)}return t},recordDirtyOption:function(e,t){(this.$options.dirtyOptions||(this.$options.dirtyOptions={}))[e]=t,this.renderId++},renderDirty:function(){var e=this.$options.dirtyOptions;e&&(this.$options.dirtyOptions=null,this.$options.calendar.mutateOptions(e,[],!1,i.a))},getApi:function(){return this.$options.calendar}}};function v(e,t){return d[t]?{deep:!0,handler:function(e){var n=this.deepCopies[t];i()(e,n)||(e=l(e),this.deepCopies[t]=e,this.recordDirtyOption(t,e))}}:function(e){this.recordDirtyOption(t,e)}}function g(e){for(var t in e)p[t]&&console.warn("Use of "+t+" as an event is deprecated. Please convert to a prop.")}var y,m=!1;function b(e){m||(m=!0,e.component("FullCalendar",h))}"undefined"!==typeof window?y=window.Vue:"undefined"!==typeof e&&(y=e.Vue),y&&y.use({install:b}),t["a"]=h}).call(this,n("c8ba"))},df75:function(e,t,n){var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,r="/"===s.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),s="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&s&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,l=0;l<s;l++)if(i[l]!==o[l]){a=l;break}var c=[];for(l=a;l<i.length;l++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),s=n("5135"),a=n("861d"),l=n("9bf2").f,c=n("e893"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(f,u);var p=f.prototype=u.prototype;p.constructor=f;var h=p.toString,v="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=h.call(e);if(s(d,e))return"";var n=v?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},e538:function(e,t,n){var r=n("b622");t.f=r},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e893:function(e,t,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),s=n("9bf2");e.exports=function(e,t){for(var n=i(t),a=s.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||a(e,u,l(t,u))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},f4f4:function(e,t,n){},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f772:function(e,t,n){var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"calendar"}},[e.showCalendar?n("Fullcalendar",{attrs:{id:"calendar",plugins:e.calendarPlugins,header:{left:"title",center:"dayGridMonth,timeGridWeek,timeGridDay,listWeek",right:"prev today next"},buttonText:{today:"Aujourd'hui",month:"Mois",week:"Semaine",day:"Jour",list:"Liste"},events:e.calendarEvents,selectable:!0,editable:!0},on:{dateClick:e.handleDateClick,eventRender:e.eventRender,eventClick:e.updateEvent}}):e._e(),e.showmodal?n("div",{staticClass:"Model"},[n("form",{on:{submit:function(t){return e.submitEvent()}}},[n("strong",[e._v("Title:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.Title,expression:"Title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:e.Title},on:{input:function(t){t.target.composing||(e.Title=t.target.value)}}}),n("strong",[e._v("Start:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.Start,expression:"Start"}],staticClass:"form-control",attrs:{type:"datetime-local"},domProps:{value:e.Start},on:{input:function(t){t.target.composing||(e.Start=t.target.value)}}}),n("strong",[e._v("End:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.End,expression:"End"}],staticClass:"form-control",attrs:{type:"datetime-local"},domProps:{value:e.End},on:{input:function(t){t.target.composing||(e.End=t.target.value)}}}),n("strong",[e._v("Description:")]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.Description,expression:"Description"}],staticClass:"form-control",attrs:{required:""},domProps:{value:e.Description},on:{input:function(t){t.target.composing||(e.Description=t.target.value)}}}),n("button",{staticClass:"btn_btn"},[e._v("Valider")]),n("button",{staticClass:"btn_btn",on:{click:function(t){return e.cancel()}}},[e._v("Annuler")])])]):e._e(),e.putmodal?n("div",{staticClass:"Model"},[n("div",[n("strong",[e._v("Title:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.evput.title,expression:"evput.title"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.evput.title},on:{input:function(t){t.target.composing||e.$set(e.evput,"title",t.target.value)}}}),n("strong",[e._v("Start:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.evput.start,expression:"evput.start"}],staticClass:"form-control",attrs:{type:"datetime-local"},domProps:{value:e.evput.start},on:{input:function(t){t.target.composing||e.$set(e.evput,"start",t.target.value)}}}),n("strong",[e._v("End:")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.evput.end,expression:"evput.end"}],staticClass:"form-control",attrs:{type:"datetime-local"},domProps:{value:e.evput.end},on:{input:function(t){t.target.composing||e.$set(e.evput,"end",t.target.value)}}}),n("strong",[e._v("Description:")]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.evput.description,expression:"evput.description"}],staticClass:"form-control",domProps:{value:e.evput.description},on:{input:function(t){t.target.composing||e.$set(e.evput,"description",t.target.value)}}}),n("button",{staticClass:"btn_btn",on:{click:function(t){return e.updateEventSubmit(e.evput)}}},[e._v("Confirmer")]),n("button",{staticClass:"btn_btn",on:{click:function(t){return e.cancelput()}}},[e._v("Annuler")])])]):e._e(),n("b-alert",{class:{alertTransform:!0,alertAfter:e.alertAfter},attrs:{show:e.isNotificationOpen,variant:"success",dismissible:""}},[e._v("Bienvenu Dans Votre Calendrier")]),e.removeQuestion?n("div",{staticClass:"Model_Remove"},[n("p",{staticClass:"QuestionRemove"},[e._v("Voulez-vous Supprimer Cette Evenement ?")]),n("br"),n("button",{staticClass:"btn_btn_Remove",on:{click:function(t){return e.sureRemove(e.key)}}},[e._v("Oui")]),n("button",{staticClass:"btn_btn_Remove",on:{click:function(t){return e.cancelRemove()}}},[e._v("Annuler")])]):e._e()],1)},o=[],s=(n("a4d3"),n("e01a"),n("7db0"),n("cca6"),n("dc09")),a=n("4990"),l=function(e,t){return l=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])},l(e,t)};function c(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.buildRenderRange=function(t,n,r){var i,o=this.dateEnv,s=e.prototype.buildRenderRange.call(this,t,n,r),l=s.start,c=s.end;if(/^(year|month)$/.test(n)&&(l=o.startOfWeek(l),i=o.startOfWeek(c),i.valueOf()!==c.valueOf()&&(c=Object(a["w"])(i,1))),this.options.monthMode&&this.options.fixedWeekCount){var u=Math.ceil(Object(a["ab"])(l,c));c=Object(a["w"])(c,6-u)}return{start:l,end:c}},t}(a["c"]),f=function(){function e(e){var t=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(e){t.el&&!t.el.contains(e.target)&&t.hide()},this.options=e}return e.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},e.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},e.prototype.render=function(){var e=this,t=this.options,n=this.el=Object(a["R"])("div",{className:"fc-popover "+(t.className||""),style:{top:"0",left:"0"}});"function"===typeof t.content&&t.content(n),t.parentEl.appendChild(n),Object(a["Cb"])(n,"click",".fc-close",(function(t){e.hide()})),t.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},e.prototype.destroy=function(){this.hide(),this.el&&(Object(a["Qb"])(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},e.prototype.position=function(){var e,t,n=this.options,r=this.el,i=r.getBoundingClientRect(),o=Object(a["N"])(r.offsetParent),s=Object(a["I"])(n.parentEl);e=n.top||0,t=void 0!==n.left?n.left:void 0!==n.right?n.right-i.width:0,e=Math.min(e,s.bottom-i.height-this.margin),e=Math.max(e,s.top+this.margin),t=Math.min(t,s.right-i.width-this.margin),t=Math.max(t,s.left+this.margin),Object(a["B"])(r,{top:e-o.top,left:t-o.left})},e.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.renderSegHtml=function(e,t){var n,r,i=this.context,o=e.eventRange,s=o.def,l=o.ui,c=s.allDay,u=Object(a["J"])(i,s,l),d=c&&e.isStart&&Object(a["L"])(i,s,l),f=c&&e.isEnd&&Object(a["K"])(i,s,l),p=this.getSegClasses(e,u,d||f,t),h=Object(a["W"])(this.getSkinCss(l)),v="";return p.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getTimeText(o),n&&(v='<span class="fc-time">'+Object(a["sb"])(n)+"</span>")),r='<span class="fc-title">'+(Object(a["sb"])(s.title||"")||"&nbsp;")+"</span>",'<a class="'+p.join(" ")+'"'+(s.url?' href="'+Object(a["sb"])(s.url)+'"':"")+(h?' style="'+h+'"':"")+'><div class="fc-content">'+("rtl"===i.options.dir?r+" "+v:v+" "+r)+"</div>"+(d?'<div class="fc-resizer fc-start-resizer"></div>':"")+(f?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},t.prototype.computeDisplayEventEnd=function(){return!1},t}(a["k"]),h=function(e){function t(t){var n=e.call(this)||this;return n.dayGrid=t,n}return c(t,e),t.prototype.attachSegs=function(e,t){var n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach((function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(n[t].tbodyEl)})),t||this.dayGrid.removeSegPopover()},t.prototype.detachSegs=function(){var e,t=this.rowStructs||[];while(e=t.pop())Object(a["Qb"])(e.tbodyEl);this.rowStructs=null},t.prototype.renderSegRows=function(e){var t,n,r=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)r.push(this.renderSegRow(n,t[n]));return r},t.prototype.renderSegRow=function(e,t){var n,r,i,o,s,l,c,u=this.context.isRtl,d=this.dayGrid,f=d.colCnt,p=this.buildSegLevels(t),h=Math.max(1,p.length),v=document.createElement("tbody"),g=[],y=[],m=[];function b(e){while(i<e)c=(m[n-1]||[])[i],c?c.rowSpan=(c.rowSpan||1)+1:(c=document.createElement("td"),o.appendChild(c)),y[n][i]=c,m[n][i]=c,i++}for(n=0;n<h;n++){if(r=p[n],i=0,o=document.createElement("tr"),g.push([]),y.push([]),m.push([]),r)for(s=0;s<r.length;s++){l=r[s];var S=u?f-1-l.lastCol:l.firstCol,E=u?f-1-l.firstCol:l.lastCol;b(S),c=Object(a["R"])("td",{className:"fc-event-container"},l.el),S!==E?c.colSpan=E-S+1:m[n][i]=c;while(i<=E)y[n][i]=c,g[n][i]=l,i++;o.appendChild(c)}b(f);var w=d.renderProps.renderIntroHtml();w&&(u?Object(a["z"])(o,w):Object(a["Lb"])(o,w)),v.appendChild(o)}return{row:e,tbodyEl:v,cellMatrix:y,segMatrix:g,segLevels:p,segs:t}},t.prototype.buildSegLevels=function(e){var t,n,r,i=this.context.isRtl,o=this.dayGrid.colCnt,s=[];for(e=this.sortEventSegs(e),t=0;t<e.length;t++){for(n=e[t],r=0;r<s.length;r++)if(!v(n,s[r]))break;n.level=r,n.leftCol=i?o-1-n.lastCol:n.firstCol,n.rightCol=i?o-1-n.firstCol:n.lastCol,(s[r]||(s[r]=[])).push(n)}for(r=0;r<s.length;r++)s[r].sort(g);return s},t.prototype.groupSegRows=function(e){var t,n=[];for(t=0;t<this.dayGrid.rowCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].row].push(e[t]);return n},t.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},t}(p);function v(e,t){var n,r;for(n=0;n<t.length;n++)if(r=t[n],r.firstCol<=e.lastCol&&r.lastCol>=e.firstCol)return!0;return!1}function g(e,t){return e.leftCol-t.leftCol}var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.attachSegs=function(e,t){var n=t.sourceSeg,r=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach((function(e,t){var i,o,s=Object(a["tb"])('<div class="fc-mirror-skeleton"><table></table></div>');n&&n.row===t?i=n.el:(i=e.querySelector(".fc-content-skeleton tbody"),i||(i=e.querySelector(".fc-content-skeleton table"))),o=i.getBoundingClientRect().top-e.getBoundingClientRect().top,s.style.top=o+"px",s.querySelector("table").appendChild(r[t].tbodyEl),e.appendChild(s)}))},t}(h),m='<td style="pointer-events:none"></td>',b=function(e){function t(t){var n=e.call(this)||this;return n.fillSegTag="td",n.dayGrid=t,n}return c(t,e),t.prototype.renderSegs=function(t,n,r){"bgEvent"===t&&(r=r.filter((function(e){return e.eventRange.def.allDay}))),e.prototype.renderSegs.call(this,t,n,r)},t.prototype.attachSegs=function(e,t){var n,r,i,o=[];for(n=0;n<t.length;n++)r=t[n],i=this.renderFillRow(e,r),this.dayGrid.rowEls[r.row].appendChild(i),o.push(i);return o},t.prototype.renderFillRow=function(e,t){var n,r,i,o=this.dayGrid,s=this.context.isRtl,l=o.colCnt,c=s?l-1-t.lastCol:t.firstCol,u=s?l-1-t.firstCol:t.lastCol,d=c,f=u+1;n="businessHours"===e?"bgevent":e.toLowerCase(),r=Object(a["tb"])('<div class="fc-'+n+'-skeleton"><table><tr></tr></table></div>'),i=r.getElementsByTagName("tr")[0],d>0&&Object(a["z"])(i,new Array(d+1).join(m)),t.el.colSpan=f-d,i.appendChild(t.el),f<l&&Object(a["z"])(i,new Array(l-f+1).join(m));var p=o.renderProps.renderIntroHtml();return p&&(s?Object(a["z"])(i,p):Object(a["Lb"])(i,p)),r},t}(a["l"]),S=function(e){function t(t){var n=e.call(this,t)||this,r=n.eventRenderer=new E(n),i=n.renderFrame=Object(a["Gb"])(n._renderFrame);return n.renderFgEvents=Object(a["Gb"])(r.renderSegs.bind(r),r.unrender.bind(r),[i]),n.renderEventSelection=Object(a["Gb"])(r.selectByInstanceId.bind(r),r.unselectByInstanceId.bind(r),[n.renderFgEvents]),n.renderEventDrag=Object(a["Gb"])(r.hideByHash.bind(r),r.showByHash.bind(r),[i]),n.renderEventResize=Object(a["Gb"])(r.hideByHash.bind(r),r.showByHash.bind(r),[i]),n}return c(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},t.prototype.render=function(e,t){this.renderFrame(e.date),this.renderFgEvents(t,e.fgSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDragInstances),this.renderEventResize(e.eventResizeInstances)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype._renderFrame=function(e){var t=this.context,n=t.theme,r=t.dateEnv,i=t.options,o=r.format(e,Object(a["U"])(i.dayPopoverFormat));this.el.innerHTML='<div class="fc-header '+n.getClass("popoverHeader")+'"><span class="fc-title">'+Object(a["sb"])(o)+'</span><span class="fc-close '+n.getIconClass("close")+'"></span></div><div class="fc-body '+n.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>',this.segContainerEl=this.el.querySelector(".fc-event-container")},t.prototype.queryHit=function(e,t,n,r){var i=this.props.date;if(e<n&&t<r)return{component:this,dateSpan:{allDay:!0,range:{start:i,end:Object(a["u"])(i,1)}},dayEl:this.el,rect:{left:0,top:0,right:n,bottom:r},layer:1}},t}(a["b"]),E=function(e){function t(t){var n=e.call(this)||this;return n.dayTile=t,n}return c(t,e),t.prototype.attachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.dayTile.segContainerEl.appendChild(r.el)}},t.prototype.detachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];Object(a["Qb"])(r.el)}},t}(p),w=function(){function e(e){this.context=e}return e.prototype.renderHtml=function(e){var t=[];e.renderIntroHtml&&t.push(e.renderIntroHtml());for(var n=0,r=e.cells;n<r.length;n++){var i=r[n];t.push(D(i.date,e.dateProfile,this.context,i.htmlAttrs))}return e.cells.length||t.push('<td class="fc-day '+this.context.theme.getClass("widgetContent")+'"></td>'),"rtl"===this.context.options.dir&&t.reverse(),"<tr>"+t.join("")+"</tr>"},e}();function D(e,t,n,r){var i=n.dateEnv,o=n.theme,s=Object(a["Ob"])(t.activeRange,e),l=Object(a["mb"])(e,t,n);return l.unshift("fc-day",o.getClass("widgetContent")),'<td class="'+l.join(" ")+'"'+(s?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+(r?" "+r:"")+"></td>"}var T=Object(a["U"])({day:"numeric"}),C=Object(a["U"])({week:"numeric"}),O=function(e){function t(t,n){var r=e.call(this,t)||this;r.bottomCoordPadding=0,r.isCellSizesDirty=!1,r.renderProps=n;var i=r.eventRenderer=new h(r),o=r.fillRenderer=new b(r);r.mirrorRenderer=new y(r);var s=r.renderCells=Object(a["Gb"])(r._renderCells,r._unrenderCells);return r.renderBusinessHours=Object(a["Gb"])(o.renderSegs.bind(o,"businessHours"),o.unrender.bind(o,"businessHours"),[s]),r.renderDateSelection=Object(a["Gb"])(o.renderSegs.bind(o,"highlight"),o.unrender.bind(o,"highlight"),[s]),r.renderBgEvents=Object(a["Gb"])(o.renderSegs.bind(o,"bgEvent"),o.unrender.bind(o,"bgEvent"),[s]),r.renderFgEvents=Object(a["Gb"])(i.renderSegs.bind(i),i.unrender.bind(i),[s]),r.renderEventSelection=Object(a["Gb"])(i.selectByInstanceId.bind(i),i.unselectByInstanceId.bind(i),[r.renderFgEvents]),r.renderEventDrag=Object(a["Gb"])(r._renderEventDrag,r._unrenderEventDrag,[s]),r.renderEventResize=Object(a["Gb"])(r._renderEventResize,r._unrenderEventResize,[s]),r}return c(t,e),t.prototype.render=function(e,t){var n=e.cells;this.rowCnt=n.length,this.colCnt=n[0].length,this.renderCells(n,e.isRigid),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(t,e.dateSelectionSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderCells.unrender()},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date,r=Object(a["u"])(n,1);return{start:n,end:r}},t.prototype.updateSegPopoverTile=function(e,t){var n=this.props;this.segPopoverTile.receiveProps({date:e||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:n.eventSelection,eventDragInstances:n.eventDrag?n.eventDrag.affectedInstances:null,eventResizeInstances:n.eventResize?n.eventResize.affectedInstances:null},this.context)},t.prototype._renderCells=function(e,t){var n,r,i=this.context,o=i.calendar,s=i.view,l=i.isRtl,c=i.dateEnv,u=this,d=u.rowCnt,f=u.colCnt,p="";for(n=0;n<d;n++)p+=this.renderDayRowHtml(n,t);for(this.el.innerHTML=p,this.rowEls=Object(a["ib"])(this.el,".fc-row"),this.cellEls=Object(a["ib"])(this.el,".fc-day, .fc-disabled-day"),l&&this.cellEls.reverse(),this.rowPositions=new a["n"](this.el,this.rowEls,!1,!0),this.colPositions=new a["n"](this.el,this.cellEls.slice(0,f),!0,!1),n=0;n<d;n++)for(r=0;r<f;r++)o.publiclyTrigger("dayRender",[{date:c.toDate(e[n][r].date),el:this.getCellEl(n,r),view:s}]);this.isCellSizesDirty=!0},t.prototype._unrenderCells=function(){this.removeSegPopover()},t.prototype.renderDayRowHtml=function(e,t){var n=this.context.theme,r=["fc-row","fc-week",n.getClass("dayRow")];t&&r.push("fc-rigid");var i=new w(this.context);return'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(e){var t=this.context.isRtl,n=this.renderProps.renderNumberIntroHtml(e,this);return"<tr>"+(t?"":n)+this.renderNumberCellsHtml(e)+(t?n:"")+"</tr>"},t.prototype.renderNumberCellsHtml=function(e){var t,n,r=[];for(t=0;t<this.colCnt;t++)n=this.props.cells[e][t].date,r.push(this.renderNumberCellHtml(n));return this.context.isRtl&&r.reverse(),r.join("")},t.prototype.renderNumberCellHtml=function(e){var t,n,r=this.context,i=r.dateEnv,o=r.options,s="",l=Object(a["Ob"])(this.props.dateProfile.activeRange,e),c=this.getIsDayNumbersVisible()&&l;return c||this.renderProps.cellWeekNumbersVisible?(t=Object(a["mb"])(e,this.props.dateProfile,this.context),t.unshift("fc-day-top"),this.renderProps.cellWeekNumbersVisible&&(n=i.weekDow),s+='<td class="'+t.join(" ")+'"'+(l?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+">",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===n&&(s+=Object(a["D"])(o,i,{date:e,type:"week"},{class:"fc-week-number"},i.format(e,C))),c&&(s+=Object(a["D"])(o,i,e,{class:"fc-day-number"},i.format(e,T))),s+="</td>",s):"<td></td>"},t.prototype.updateSize=function(e){var t=this.context.calendar,n=this,r=n.fillRenderer,i=n.eventRenderer,o=n.mirrorRenderer;(e||this.isCellSizesDirty||t.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),r.computeSizes(e),i.computeSizes(e),o.computeSizes(e),r.assignSizes(e),i.assignSizes(e),o.assignSizes(e)},t.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},t.prototype.buildColPositions=function(){this.colPositions.build()},t.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.positionToHit=function(e,t){var n=this,r=n.colPositions,i=n.rowPositions,o=r.leftToIndex(e),s=i.topToIndex(t);if(null!=s&&null!=o)return{row:s,col:o,dateSpan:{range:this.getCellRange(s,o),allDay:!0},dayEl:this.getCellEl(s,o),relativeRect:{left:r.lefts[o],right:r.rights[o],top:i.tops[s],bottom:i.bottoms[s]}}},t.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},t.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs))},t.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},t.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(e){var t,n,r=this.eventRenderer.rowStructs||[];for(t=0;t<r.length;t++)this.unlimitRow(t),n=!!e&&("number"===typeof e?e:this.computeRowLevelLimit(t)),!1!==n&&this.limitRow(t,n)},t.prototype.computeRowLevelLimit=function(e){var t,n,r=this.rowEls[e],i=r.getBoundingClientRect().bottom,o=Object(a["hb"])(this.eventRenderer.rowStructs[e].tbodyEl);for(t=0;t<o.length;t++)if(n=o[t],n.classList.remove("fc-limited"),n.getBoundingClientRect().bottom>i)return t;return!1},t.prototype.limitRow=function(e,t){var n,r,i,o,s,l,c,u,d,f,p,h,v,g,y,m=this,b=this.colCnt,S=this.context.isRtl,E=this.eventRenderer.rowStructs[e],w=[],D=0,T=function(n){while(D<n)l=m.getCellSegs(e,D,t),l.length&&(d=r[t-1][D],y=m.renderMoreLink(e,D,l),g=Object(a["R"])("div",null,y),d.appendChild(g),w.push(g)),D++};if(t&&t<E.segLevels.length){for(n=E.segLevels[t-1],r=E.cellMatrix,i=Object(a["hb"])(E.tbodyEl).slice(t),i.forEach((function(e){e.classList.add("fc-limited")})),o=0;o<n.length;o++){s=n[o];var C=S?b-1-s.lastCol:s.firstCol,O=S?b-1-s.firstCol:s.lastCol;T(C),u=[],c=0;while(D<=O)l=this.getCellSegs(e,D,t),u.push(l),c+=l.length,D++;if(c){for(d=r[t-1][C],f=d.rowSpan||1,p=[],h=0;h<u.length;h++)v=Object(a["R"])("td",{className:"fc-more-cell",rowSpan:f}),l=u[h],y=this.renderMoreLink(e,C+h,[s].concat(l)),g=Object(a["R"])("div",null,y),v.appendChild(g),p.push(v),w.push(v);d.classList.add("fc-limited"),Object(a["ub"])(d,p),i.push(d)}}T(this.colCnt),E.moreEls=w,E.limitedEls=i}},t.prototype.unlimitRow=function(e){var t=this.eventRenderer.rowStructs[e];t.moreEls&&(t.moreEls.forEach(a["Qb"]),t.moreEls=null),t.limitedEls&&(t.limitedEls.forEach((function(e){e.classList.remove("fc-limited")})),t.limitedEls=null)},t.prototype.renderMoreLink=function(e,t,n){var r=this,i=this.context,o=i.calendar,s=i.view,l=i.dateEnv,c=i.options,u=i.isRtl,d=Object(a["R"])("a",{className:"fc-more"});return d.innerText=this.getMoreLinkText(n.length),d.addEventListener("click",(function(i){var a=c.eventLimitClick,d=u?r.colCnt-t-1:t,f=r.props.cells[e][d].date,p=i.currentTarget,h=r.getCellEl(e,t),v=r.getCellSegs(e,t),g=r.resliceDaySegs(v,f),y=r.resliceDaySegs(n,f);"function"===typeof a&&(a=o.publiclyTrigger("eventLimitClick",[{date:l.toDate(f),allDay:!0,dayEl:h,moreEl:p,segs:g,hiddenSegs:y,jsEvent:i,view:s}])),"popover"===a?r.showSegPopover(e,t,p,g):"string"===typeof a&&o.zoomTo(f,a)})),d},t.prototype.showSegPopover=function(e,t,n,r){var i,o,s=this,l=this.context,c=l.calendar,u=l.view,d=l.theme,p=l.isRtl,h=p?this.colCnt-t-1:t,v=n.parentNode;i=1===this.rowCnt?u.el:this.rowEls[e],o={className:"fc-more-popover "+d.getClass("popover"),parentEl:u.el,top:Object(a["N"])(i).top,autoHide:!0,content:function(t){s.segPopoverTile=new S(t),s.updateSegPopoverTile(s.props.cells[e][h].date,r)},hide:function(){s.segPopoverTile.destroy(),s.segPopoverTile=null,s.segPopover.destroy(),s.segPopover=null}},p?o.right=Object(a["N"])(v).right+1:o.left=Object(a["N"])(v).left-1,this.segPopover=new f(o),this.segPopover.show(),c.releaseAfterSizingTriggers()},t.prototype.resliceDaySegs=function(e,t){for(var n=t,r=Object(a["u"])(n,1),i={start:n,end:r},o=[],s=0,l=e;s<l.length;s++){var c=l[s],d=c.eventRange,f=d.range,p=Object(a["xb"])(f,i);p&&o.push(u({},c,{eventRange:{def:d.def,ui:u({},d.ui,{durationEditable:!1}),instance:d.instance,range:p},isStart:c.isStart&&p.start.valueOf()===f.start.valueOf(),isEnd:c.isEnd&&p.end.valueOf()===f.end.valueOf()}))}return o},t.prototype.getMoreLinkText=function(e){var t=this.context.options.eventLimitText;return"function"===typeof t?t(e):"+"+e+" "+t},t.prototype.getCellSegs=function(e,t,n){var r,i=this.eventRenderer.rowStructs[e].segMatrix,o=n||0,s=[];while(o<i.length)r=i[o][t],r&&s.push(r),o++;return s},t}(a["b"]),R=Object(a["U"])({week:"numeric"}),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processOptions=Object(a["Fb"])(t._processOptions),t.renderSkeleton=Object(a["Gb"])(t._renderSkeleton,t._unrenderSkeleton),t.renderHeadIntroHtml=function(){var e=t.context,n=e.theme,r=e.options;return t.colWeekNumbersVisible?'<th class="fc-week-number '+n.getClass("widgetHeader")+'" '+t.weekNumberStyleAttr()+"><span>"+Object(a["sb"])(r.weekLabel)+"</span></th>":""},t.renderDayGridNumberIntroHtml=function(e,n){var r=t.context,i=r.options,o=r.dateEnv,s=n.props.cells[e][0].date;return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+Object(a["D"])(i,o,{date:s,type:"week",forceOff:1===n.colCnt},o.format(s,R))+"</td>":""},t.renderDayGridBgIntroHtml=function(){var e=t.context.theme;return t.colWeekNumbersVisible?'<td class="fc-week-number '+e.getClass("widgetContent")+'" '+t.weekNumberStyleAttr()+"></td>":""},t.renderDayGridIntroHtml=function(){return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"></td>":""},t}return c(t,e),t.prototype._processOptions=function(e){e.weekNumbers?e.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},t.prototype.render=function(t,n){e.prototype.render.call(this,t,n),this.processOptions(n.options),this.renderSkeleton(n)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(e){this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new a["o"]("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-day-grid-container");var n=Object(a["R"])("div",{className:"fc-day-grid"});t.appendChild(n),this.dayGrid=new O(n,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},t.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},t.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var e=this.context.options.eventLimit;return e&&"number"!==typeof e},t.prototype.updateSize=function(t,n,r){e.prototype.updateSize.call(this,t,n,r),this.dayGrid.updateSize(t)},t.prototype.updateBaseSize=function(e,t,n){var r,i,o=this.dayGrid,s=this.context.options.eventLimit,l=this.header?this.header.el:null;o.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=Object(a["Eb"])(Object(a["ib"])(this.el,".fc-week-number"))),this.scroller.clear(),l&&Object(a["Ub"])(l),o.removeSegPopover(),s&&"number"===typeof s&&o.limitRows(s),r=this.computeScrollerHeight(t),this.setGridHeight(r,n),s&&"number"!==typeof s&&o.limitRows(s),n||(this.scroller.setHeight(r),i=this.scroller.getScrollbarWidths(),(i.left||i.right)&&(l&&Object(a["H"])(l,i),r=this.computeScrollerHeight(t),this.scroller.setHeight(r)),this.scroller.lockOverflow(i))):n||(r=this.computeScrollerHeight(t),this.scroller.setHeight(r))},t.prototype.computeScrollerHeight=function(e){return e-Object(a["Tb"])(this.el,this.scroller.el)},t.prototype.setGridHeight=function(e,t){this.context.options.monthMode?(t&&(e*=this.dayGrid.rowCnt/6),Object(a["cb"])(this.dayGrid.rowEls,e,!t)):t?Object(a["Vb"])(this.dayGrid.rowEls):Object(a["cb"])(this.dayGrid.rowEls,e,!0)},t.prototype.computeDateScroll=function(e){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},t}(a["s"]);x.prototype.dateProfileGeneratorClass=d;var I=function(e){function t(t){var n=e.call(this,t.el)||this;return n.slicer=new k,n.dayGrid=t,n}return c(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype.render=function(e,t){var n=this.dayGrid,r=e.dateProfile,i=e.dayTable;n.receiveProps(u({},this.slicer.sliceProps(e,r,e.nextDayThreshold,t.calendar,n,i),{dateProfile:r,cells:i.cells,isRigid:e.isRigid}),t)},t.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},t.prototype.queryHit=function(e,t){var n=this.dayGrid.positionToHit(e,t);if(n)return{component:this.dayGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},t}(a["b"]),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(a["q"]),j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTable=Object(a["Fb"])(M),t}return c(t,e),t.prototype.render=function(t,n){e.prototype.render.call(this,t,n);var r=this.props.dateProfile,i=this.dayTable=this.buildDayTable(r,t.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:r,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},n),this.simpleDayGrid.receiveProps({dateProfile:r,dayTable:i,businessHours:t.businessHours,dateSelection:t.dateSelection,eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},n)},t.prototype._renderSkeleton=function(t){e.prototype._renderSkeleton.call(this,t),t.options.columnHeader&&(this.header=new a["d"](this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new I(this.dayGrid)},t.prototype._unrenderSkeleton=function(){e.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},t}(x);function M(e,t){var n=new a["e"](e.renderRange,t);return new a["f"](n,/year|month|week/.test(e.currentRangeUnit))}var P=Object(a["V"])({defaultView:"dayGridMonth",views:{dayGrid:j,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),_=P,H=function(e,t){return H=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])},H(e,t)};function N(e,t){function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},L.apply(this,arguments)},A=function(e){function t(t){var n=e.call(this)||this;return n.timeGrid=t,n}return N(t,e),t.prototype.renderSegs=function(t,n,r){e.prototype.renderSegs.call(this,t,n,r),this.fullTimeFormat=Object(a["U"])({hour:"numeric",minute:"2-digit",separator:this.context.options.defaultRangeSeparator})},t.prototype.attachSegs=function(e,t){for(var n=this.timeGrid.groupSegsByCol(e),r=0;r<n.length;r++)n[r]=this.sortEventSegs(n[r]);this.segsByCol=n,this.timeGrid.attachSegsByCol(n,this.timeGrid.fgContainerEls)},t.prototype.detachSegs=function(e){e.forEach((function(e){Object(a["Qb"])(e.el)})),this.segsByCol=null},t.prototype.computeSegSizes=function(e){var t=this,n=t.timeGrid,r=t.segsByCol,i=n.colCnt;if(n.computeSegVerticals(e),r)for(var o=0;o<i;o++)this.computeSegHorizontals(r[o])},t.prototype.assignSegSizes=function(e){var t=this,n=t.timeGrid,r=t.segsByCol,i=n.colCnt;if(n.assignSegVerticals(e),r)for(var o=0;o<i;o++)this.assignSegCss(r[o])},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:!1}},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.renderSegHtml=function(e,t){var n,r,i,o=e.eventRange,s=o.def,l=o.ui,c=s.allDay,u=Object(a["J"])(this.context,s,l),d=e.isStart&&Object(a["L"])(this.context,s,l),f=e.isEnd&&Object(a["K"])(this.context,s,l),p=this.getSegClasses(e,u,d||f,t),h=Object(a["W"])(this.getSkinCss(l));if(p.unshift("fc-time-grid-event"),Object(a["Bb"])(o.range)){if(e.isStart||e.isEnd){var v=e.start,g=e.end;n=this._getTimeText(v,g,c),r=this._getTimeText(v,g,c,this.fullTimeFormat),i=this._getTimeText(v,g,c,null,!1)}}else n=this.getTimeText(o),r=this.getTimeText(o,this.fullTimeFormat),i=this.getTimeText(o,null,!1);return'<a class="'+p.join(" ")+'"'+(s.url?' href="'+Object(a["sb"])(s.url)+'"':"")+(h?' style="'+h+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+Object(a["sb"])(i)+'" data-full="'+Object(a["sb"])(r)+'"><span>'+Object(a["sb"])(n)+"</span></div>":"")+(s.title?'<div class="fc-title">'+Object(a["sb"])(s.title)+"</div>":"")+"</div>"+(f?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},t.prototype.computeSegHorizontals=function(e){var t,n,r;if(t=z(e),U(t),n=t[0]){for(r=0;r<n.length;r++)B(n[r]);for(r=0;r<n.length;r++)this.computeSegForwardBack(n[r],0,0)}},t.prototype.computeSegForwardBack=function(e,t,n){var r,i=e.forwardSegs;if(void 0===e.forwardCoord)for(i.length?(this.sortForwardSegs(i),this.computeSegForwardBack(i[0],t+1,n),e.forwardCoord=i[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-n)/(t+1),r=0;r<i.length;r++)this.computeSegForwardBack(i[r],0,e.forwardCoord)},t.prototype.sortForwardSegs=function(e){var t=e.map(G),n=[{field:"forwardPressure",order:-1},{field:"backwardCoord",order:1}].concat(this.context.eventOrderSpecs);return t.sort((function(e,t){return Object(a["F"])(e,t,n)})),t.map((function(e){return e._seg}))},t.prototype.assignSegCss=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];Object(a["B"])(r.el,this.generateSegCss(r)),r.level>0&&r.el.classList.add("fc-time-grid-event-inset"),r.eventRange.def.title&&r.bottom-r.top<30&&r.el.classList.add("fc-short")}},t.prototype.generateSegCss=function(e){var t,n,r=this.context.options.slotEventOverlap,i=e.backwardCoord,o=e.forwardCoord,s=this.timeGrid.generateSegVerticalCss(e),a=this.context.isRtl;return r&&(o=Math.min(1,i+2*(o-i))),a?(t=1-o,n=i):(t=i,n=1-o),s.zIndex=e.level+1,s.left=100*t+"%",s.right=100*n+"%",r&&e.forwardPressure&&(s[a?"marginLeft":"marginRight"]=20),s},t}(a["k"]);function z(e){var t,n,r,i=[];for(t=0;t<e.length;t++){for(n=e[t],r=0;r<i.length;r++)if(!V(n,i[r]).length)break;n.level=r,(i[r]||(i[r]=[])).push(n)}return i}function U(e){var t,n,r,i,o;for(t=0;t<e.length;t++)for(n=e[t],r=0;r<n.length;r++)for(i=n[r],i.forwardSegs=[],o=t+1;o<e.length;o++)V(i,e[o],i.forwardSegs)}function B(e){var t,n,r=e.forwardSegs,i=0;if(void 0===e.forwardPressure){for(t=0;t<r.length;t++)n=r[t],B(n),i=Math.max(i,1+n.forwardPressure);e.forwardPressure=i}}function V(e,t,n){void 0===n&&(n=[]);for(var r=0;r<t.length;r++)F(e,t[r])&&n.push(t[r]);return n}function F(e,t){return e.bottom>t.top&&e.top<t.bottom}function G(e){var t=Object(a["E"])(e);return t.forwardPressure=e.forwardPressure,t.backwardCoord=e.backwardCoord,t}var W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.attachSegs=function(e,t){this.segsByCol=this.timeGrid.groupSegsByCol(e),this.timeGrid.attachSegsByCol(this.segsByCol,this.timeGrid.mirrorContainerEls),this.sourceSeg=t.sourceSeg},t.prototype.generateSegCss=function(t){var n=e.prototype.generateSegCss.call(this,t),r=this.sourceSeg;if(r&&r.col===t.col){var i=e.prototype.generateSegCss.call(this,r);n.left=i.left,n.right=i.right,n.marginLeft=i.marginLeft,n.marginRight=i.marginRight}return n},t}(A),q=function(e){function t(t){var n=e.call(this)||this;return n.timeGrid=t,n}return N(t,e),t.prototype.attachSegs=function(e,t){var n,r=this.timeGrid;return"bgEvent"===e?n=r.bgContainerEls:"businessHours"===e?n=r.businessContainerEls:"highlight"===e&&(n=r.highlightContainerEls),r.attachSegsByCol(r.groupSegsByCol(t),n),t.map((function(e){return e.el}))},t.prototype.computeSegSizes=function(e){this.timeGrid.computeSegVerticals(e)},t.prototype.assignSegSizes=function(e){this.timeGrid.assignSegVerticals(e)},t}(a["l"]),Y=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],Z=function(e){function t(t,n){var r=e.call(this,t)||this;r.isSlatSizesDirty=!1,r.isColSizesDirty=!1,r.processOptions=Object(a["Fb"])(r._processOptions),r.renderSkeleton=Object(a["Gb"])(r._renderSkeleton),r.renderSlats=Object(a["Gb"])(r._renderSlats,null,[r.renderSkeleton]),r.renderColumns=Object(a["Gb"])(r._renderColumns,r._unrenderColumns,[r.renderSkeleton]),r.renderProps=n;var i=r.renderColumns,o=r.eventRenderer=new A(r),s=r.fillRenderer=new q(r);return r.mirrorRenderer=new W(r),r.renderBusinessHours=Object(a["Gb"])(s.renderSegs.bind(s,"businessHours"),s.unrender.bind(s,"businessHours"),[i]),r.renderDateSelection=Object(a["Gb"])(r._renderDateSelection,r._unrenderDateSelection,[i]),r.renderFgEvents=Object(a["Gb"])(o.renderSegs.bind(o),o.unrender.bind(o),[i]),r.renderBgEvents=Object(a["Gb"])(s.renderSegs.bind(s,"bgEvent"),s.unrender.bind(s,"bgEvent"),[i]),r.renderEventSelection=Object(a["Gb"])(o.selectByInstanceId.bind(o),o.unselectByInstanceId.bind(o),[r.renderFgEvents]),r.renderEventDrag=Object(a["Gb"])(r._renderEventDrag,r._unrenderEventDrag,[i]),r.renderEventResize=Object(a["Gb"])(r._renderEventResize,r._unrenderEventResize,[i]),r}return N(t,e),t.prototype._processOptions=function(e){var t,n,r=e.slotDuration,i=e.snapDuration;r=Object(a["Q"])(r),i=i?Object(a["Q"])(i):r,t=Object(a["Xb"])(r,i),null===t&&(i=r,t=1),this.slotDuration=r,this.snapDuration=i,this.snapsPerSlot=t,n=e.slotLabelFormat,Array.isArray(n)&&(n=n[n.length-1]),this.labelFormat=Object(a["U"])(n||{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),n=e.slotLabelInterval,this.labelInterval=n?Object(a["Q"])(n):this.computeLabelInterval(r)},t.prototype.computeLabelInterval=function(e){var t,n,r;for(t=Y.length-1;t>=0;t--)if(n=Object(a["Q"])(Y[t]),r=Object(a["Xb"])(n,e),null!==r&&r>1)return n;return e},t.prototype.render=function(e,t){this.processOptions(t.options);var n=e.cells;this.colCnt=n.length,this.renderSkeleton(t.theme),this.renderSlats(e.dateProfile),this.renderColumns(e.cells,e.dateProfile),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(e.dateSelectionSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSlats.unrender(),this.renderColumns.unrender(),this.renderSkeleton.unrender()},t.prototype.updateSize=function(e){var t=this,n=t.fillRenderer,r=t.eventRenderer,i=t.mirrorRenderer;(e||this.isSlatSizesDirty)&&(this.buildSlatPositions(),this.isSlatSizesDirty=!1),(e||this.isColSizesDirty)&&(this.buildColPositions(),this.isColSizesDirty=!1),n.computeSizes(e),r.computeSizes(e),i.computeSizes(e),n.assignSizes(e),r.assignSizes(e),i.assignSizes(e)},t.prototype._renderSkeleton=function(e){var t=this.el;t.innerHTML='<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+e.getClass("widgetHeader")+'" style="display:none" />',this.rootBgContainerEl=t.querySelector(".fc-bg"),this.slatContainerEl=t.querySelector(".fc-slats"),this.bottomRuleEl=t.querySelector(".fc-divider")},t.prototype._renderSlats=function(e){var t=this.context.theme;this.slatContainerEl.innerHTML='<table class="'+t.getClass("tableGrid")+'">'+this.renderSlatRowHtml(e)+"</table>",this.slatEls=Object(a["ib"])(this.slatContainerEl,"tr"),this.slatPositions=new a["n"](this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},t.prototype.renderSlatRowHtml=function(e){var t,n,r,i=this.context,o=i.dateEnv,s=i.theme,l=i.isRtl,c="",u=Object(a["Sb"])(e.renderRange.start),d=e.minTime,f=Object(a["Q"])(0);while(Object(a["C"])(d)<Object(a["C"])(e.maxTime))t=o.add(u,d),n=null!==Object(a["Xb"])(f,this.labelInterval),r='<td class="fc-axis fc-time '+s.getClass("widgetContent")+'">'+(n?"<span>"+Object(a["sb"])(o.format(t,this.labelFormat))+"</span>":"")+"</td>",c+='<tr data-time="'+Object(a["jb"])(t)+'"'+(n?"":' class="fc-minor"')+">"+(l?"":r)+'<td class="'+s.getClass("widgetContent")+'"></td>'+(l?r:"")+"</tr>",d=Object(a["v"])(d,this.slotDuration),f=Object(a["v"])(f,this.slotDuration);return c},t.prototype._renderColumns=function(e,t){var n=this.context,r=n.calendar,i=n.view,o=n.isRtl,s=n.theme,l=n.dateEnv,c=new w(this.context);this.rootBgContainerEl.innerHTML='<table class="'+s.getClass("tableGrid")+'">'+c.renderHtml({cells:e,dateProfile:t,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"</table>",this.colEls=Object(a["ib"])(this.el,".fc-day, .fc-disabled-day");for(var u=0;u<this.colCnt;u++)r.publiclyTrigger("dayRender",[{date:l.toDate(e[u].date),el:this.colEls[u],view:i}]);o&&this.colEls.reverse(),this.colPositions=new a["n"](this.el,this.colEls,!0,!1),this.renderContentSkeleton(),this.isColSizesDirty=!0},t.prototype._unrenderColumns=function(){this.unrenderContentSkeleton()},t.prototype.renderContentSkeleton=function(){var e,t=this.context.isRtl,n=[];n.push(this.renderProps.renderIntroHtml());for(var r=0;r<this.colCnt;r++)n.push('<td><div class="fc-content-col"><div class="fc-event-container fc-mirror-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>');t&&n.reverse(),e=this.contentSkeletonEl=Object(a["tb"])('<div class="fc-content-skeleton"><table><tr>'+n.join("")+"</tr></table></div>"),this.colContainerEls=Object(a["ib"])(e,".fc-content-col"),this.mirrorContainerEls=Object(a["ib"])(e,".fc-mirror-container"),this.fgContainerEls=Object(a["ib"])(e,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=Object(a["ib"])(e,".fc-bgevent-container"),this.highlightContainerEls=Object(a["ib"])(e,".fc-highlight-container"),this.businessContainerEls=Object(a["ib"])(e,".fc-business-container"),t&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(e)},t.prototype.unrenderContentSkeleton=function(){Object(a["Qb"])(this.contentSkeletonEl)},t.prototype.groupSegsByCol=function(e){var t,n=[];for(t=0;t<this.colCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].col].push(e[t]);return n},t.prototype.attachSegsByCol=function(e,t){var n,r,i;for(n=0;n<this.colCnt;n++)for(r=e[n],i=0;i<r.length;i++)t[n].appendChild(r[i].el)},t.prototype.getNowIndicatorUnit=function(){return"minute"},t.prototype.renderNowIndicator=function(e,t){if(this.colContainerEls){var n,r=this.computeDateTop(t),i=[];for(n=0;n<e.length;n++){var o=Object(a["R"])("div",{className:"fc-now-indicator fc-now-indicator-line"});o.style.top=r+"px",this.colContainerEls[e[n].col].appendChild(o),i.push(o)}if(e.length>0){var s=Object(a["R"])("div",{className:"fc-now-indicator fc-now-indicator-arrow"});s.style.top=r+"px",this.contentSkeletonEl.appendChild(s),i.push(s)}this.nowIndicatorEls=i}},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.forEach(a["Qb"]),this.nowIndicatorEls=null)},t.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.getBoundingClientRect().height},t.prototype.computeDateTop=function(e,t){return t||(t=Object(a["Sb"])(e)),this.computeTimeTop(Object(a["Q"])(e.valueOf()-t.valueOf()))},t.prototype.computeTimeTop=function(e){var t,n,r=this.slatEls.length,i=this.props.dateProfile,o=(e.milliseconds-Object(a["C"])(i.minTime))/Object(a["C"])(this.slotDuration);return o=Math.max(0,o),o=Math.min(r,o),t=Math.floor(o),t=Math.min(t,r-1),n=o-t,this.slatPositions.tops[t]+this.slatPositions.getHeight(t)*n},t.prototype.computeSegVerticals=function(e){var t,n,r,i=this.context.options,o=i.timeGridEventMinHeight;for(t=0;t<e.length;t++)n=e[t],r=this.props.cells[n.col].date,n.top=this.computeDateTop(n.start,r),n.bottom=Math.max(n.top+o,this.computeDateTop(n.end,r))},t.prototype.assignSegVerticals=function(e){var t,n;for(t=0;t<e.length;t++)n=e[t],Object(a["B"])(n.el,this.generateSegVerticalCss(n))},t.prototype.generateSegVerticalCss=function(e){return{top:e.top,bottom:-e.bottom}},t.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildSlatPositions()},t.prototype.buildColPositions=function(){this.colPositions.build()},t.prototype.buildSlatPositions=function(){this.slatPositions.build()},t.prototype.positionToHit=function(e,t){var n=this.context.dateEnv,r=this,i=r.snapsPerSlot,o=r.slatPositions,s=r.colPositions,l=s.leftToIndex(e),c=o.topToIndex(t);if(null!=l&&null!=c){var u=o.tops[c],d=o.getHeight(c),f=(t-u)/d,p=Math.floor(f*i),h=c*i+p,v=this.props.cells[l].date,g=Object(a["v"])(this.props.dateProfile.minTime,Object(a["Hb"])(this.snapDuration,h)),y=n.add(v,g),m=n.add(y,this.snapDuration);return{col:l,dateSpan:{range:{start:y,end:m},allDay:!1},dayEl:this.colEls[l],relativeRect:{left:s.lefts[l],right:s.rights[l],top:u,bottom:u+d}}}},t.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),e.isEvent?this.mirrorRenderer.renderSegs(this.context,e.segs,{isDragging:!0,sourceSeg:e.sourceSeg}):this.fillRenderer.renderSegs("highlight",this.context,e.segs))},t.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),e.isEvent?this.mirrorRenderer.unrender(this.context,e.segs,{isDragging:!0,sourceSeg:e.sourceSeg}):this.fillRenderer.unrender("highlight",this.context))},t.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype._renderDateSelection=function(e){e&&(this.context.options.selectMirror?this.mirrorRenderer.renderSegs(this.context,e,{isSelecting:!0}):this.fillRenderer.renderSegs("highlight",this.context,e))},t.prototype._unrenderDateSelection=function(e){e&&(this.context.options.selectMirror?this.mirrorRenderer.unrender(this.context,e,{isSelecting:!0}):this.fillRenderer.unrender("highlight",this.context))},t}(a["b"]),X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?Object(a["rb"])(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(a["r"]),$=5,Q=Object(a["U"])({week:"short"}),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitter=new X,t.renderSkeleton=Object(a["Gb"])(t._renderSkeleton,t._unrenderSkeleton),t.renderHeadIntroHtml=function(){var e,n=t.context,r=n.theme,i=n.dateEnv,o=n.options,s=t.props.dateProfile.renderRange,l=Object(a["Y"])(s.start,s.end);return o.weekNumbers?(e=i.format(s.start,Q),'<th class="fc-axis fc-week-number '+r.getClass("widgetHeader")+'" '+t.axisStyleAttr()+">"+Object(a["D"])(o,i,{date:s.start,type:"week",forceOff:l>1},Object(a["sb"])(e))+"</th>"):'<th class="fc-axis '+r.getClass("widgetHeader")+'" '+t.axisStyleAttr()+"></th>"},t.renderTimeGridBgIntroHtml=function(){var e=t.context.theme;return'<td class="fc-axis '+e.getClass("widgetContent")+'" '+t.axisStyleAttr()+"></td>"},t.renderTimeGridIntroHtml=function(){return'<td class="fc-axis" '+t.axisStyleAttr()+"></td>"},t.renderDayGridBgIntroHtml=function(){var e=t.context,n=e.theme,r=e.options;return'<td class="fc-axis '+n.getClass("widgetContent")+'" '+t.axisStyleAttr()+"><span>"+Object(a["kb"])(r)+"</span></td>"},t.renderDayGridIntroHtml=function(){return'<td class="fc-axis" '+t.axisStyleAttr()+"></td>"},t}return N(t,e),t.prototype.render=function(t,n){e.prototype.render.call(this,t,n),this.renderSkeleton(n)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(e){this.el.classList.add("fc-timeGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new a["o"]("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-time-grid-container");var n=Object(a["R"])("div",{className:"fc-time-grid"});if(t.appendChild(n),this.timeGrid=new Z(n,{renderBgIntroHtml:this.renderTimeGridBgIntroHtml,renderIntroHtml:this.renderTimeGridIntroHtml}),e.options.allDaySlot){this.dayGrid=new O(this.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:this.renderDayGridIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1});var r=this.el.querySelector(".fc-divider");this.dayGrid.bottomCoordPadding=r.getBoundingClientRect().height}},t.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-timeGrid-view"),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'">'+(n.allDaySlot?'<div class="fc-day-grid"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'" />':"")+"</td></tr></tbody></table>"},t.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},t.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},t.prototype.updateSize=function(t,n,r){e.prototype.updateSize.call(this,t,n,r),this.timeGrid.updateSize(t),this.dayGrid&&this.dayGrid.updateSize(t)},t.prototype.updateBaseSize=function(e,t,n){var r,i,o,s=this;if(this.axisWidth=Object(a["Eb"])(Object(a["ib"])(this.el,".fc-axis")),this.timeGrid.colEls){var l=Object(a["ib"])(this.el,".fc-row").filter((function(e){return!s.scroller.el.contains(e)}));this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),l.forEach(a["Ub"]),this.dayGrid&&(this.dayGrid.removeSegPopover(),r=this.context.options.eventLimit,r&&"number"!==typeof r&&(r=$),r&&this.dayGrid.limitRows(r)),n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(l.forEach((function(e){Object(a["H"])(e,o)})),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<i&&(this.timeGrid.bottomRuleEl.style.display=""))}else n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i))},t.prototype.computeScrollerHeight=function(e){return e-Object(a["Tb"])(this.el,this.scroller.el)},t.prototype.computeDateScroll=function(e){var t=this.timeGrid.computeTimeTop(e);return t=Math.ceil(t),t&&t++,{top:t}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},t.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},t}(a["s"]);K.prototype.usesMinMaxTime=!0;var J=function(e){function t(t){var n=e.call(this,t.el)||this;return n.buildDayRanges=Object(a["Fb"])(ee),n.slicer=new te,n.timeGrid=t,n}return N(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.timeGrid.el})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype.render=function(e,t){var n=this.context.dateEnv,r=e.dateProfile,i=e.dayTable,o=this.dayRanges=this.buildDayRanges(i,r,n);this.timeGrid.receiveProps(L({},this.slicer.sliceProps(e,r,null,t.calendar,this.timeGrid,o),{dateProfile:r,cells:i.cells[0]}),t)},t.prototype.renderNowIndicator=function(e){this.timeGrid.renderNowIndicator(this.slicer.sliceNowDate(e,this.timeGrid,this.dayRanges),e)},t.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches()},t.prototype.queryHit=function(e,t){var n=this.timeGrid.positionToHit(e,t);if(n)return{component:this.timeGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},t}(a["b"]);function ee(e,t,n){for(var r=[],i=0,o=e.headerDates;i<o.length;i++){var s=o[i];r.push({start:n.add(s,t.minTime),end:n.add(s,t.maxTime)})}return r}var te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r++){var i=Object(a["xb"])(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n},t}(a["q"]),ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTable=Object(a["Fb"])(re),t}return N(t,e),t.prototype.render=function(t,n){e.prototype.render.call(this,t,n);var r=this.props,i=r.dateProfile,o=r.dateProfileGenerator,s=n.nextDayThreshold,a=this.buildDayTable(i,o),l=this.splitter.splitProps(t);this.header&&this.header.receiveProps({dateProfile:i,dates:a.headerDates,datesRepDistinctDays:!0,renderIntroHtml:this.renderHeadIntroHtml},n),this.simpleTimeGrid.receiveProps(L({},l["timed"],{dateProfile:i,dayTable:a}),n),this.simpleDayGrid&&this.simpleDayGrid.receiveProps(L({},l["allDay"],{dateProfile:i,dayTable:a,nextDayThreshold:s,isRigid:!1}),n),this.startNowIndicator(i,o)},t.prototype._renderSkeleton=function(t){e.prototype._renderSkeleton.call(this,t),t.options.columnHeader&&(this.header=new a["d"](this.el.querySelector(".fc-head-container"))),this.simpleTimeGrid=new J(this.timeGrid),this.dayGrid&&(this.simpleDayGrid=new I(this.dayGrid))},t.prototype._unrenderSkeleton=function(){e.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleTimeGrid.destroy(),this.simpleDayGrid&&this.simpleDayGrid.destroy()},t.prototype.renderNowIndicator=function(e){this.simpleTimeGrid.renderNowIndicator(e)},t}(K);function re(e,t){var n=new a["e"](e.renderRange,t);return new a["f"](n,!1)}var ie=Object(a["V"])({defaultView:"timeGridWeek",views:{timeGrid:{class:ne,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),oe=ie,se=function(e,t){return se=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])},se(e,t)};function ae(e,t){function n(){this.constructor=e}se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var le=function(){return le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},le.apply(this,arguments)};a["O"].touchMouseIgnoreWait=500;var ce=0,ue=0,de=!1,fe=function(){function e(e){var t=this;this.subjectEl=null,this.downEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&pe(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,he()}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new a["i"],e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),ve()}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),ge()},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Object(a["db"])(n,this.handleSelector))&&(this.subjectEl=t,this.downEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){de=!1,this.isDragging=!1,this.subjectEl=null,this.downEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?Object(a["db"])(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return ce||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(de=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,i=e.touches,o=0,s=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,s=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:o,deltaY:s}},e}();function pe(e){return 0===e.button&&!e.ctrlKey}function he(){ce++,setTimeout((function(){ce--}),a["O"].touchMouseIgnoreWait)}function ve(){ue++||window.addEventListener("touchmove",ye,{passive:!1})}function ge(){--ue||window.removeEventListener("touchmove",ye,{passive:!1})}function ye(e){de&&e.preventDefault()}var me=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",Object(a["B"])(n,{left:r.left,top:r.top}),Object(a["Wb"])(n,(function(){n.style.transition="",e()}))},e.prototype.cleanup=function(){this.mirrorEl&&(Object(a["Qb"])(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&Object(a["B"])(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.classList.add("fc-unselectable"),t.classList.add("fc-dragging"),Object(a["B"])(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),be=function(e){function t(t,n){var r=e.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return ae(t,e),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(a["p"]),Se=function(e){function t(t,n){return e.call(this,new a["h"](t),n)||this}return ae(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return Object(a["M"])(this.scrollController.el)},t}(be),Ee=function(e){function t(t){return e.call(this,new a["t"],t)||this}return ae(t,e),t.prototype.getEventTarget=function(){return window},t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(be),we="function"===typeof performance?performance.now:Date.now,De=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=we();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t){this.isEnabled&&(this.scrollCaches=this.buildCaches(),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,i=null===this.pointerScreenY?0:r-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(we()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){var n=t[e];n.destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,i=r-e.distance,o=i*i/(r*r)*this.maxVelocity*t,s=1;switch(e.name){case"left":s=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*s);break;case"top":s=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*s);break}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,i=0,o=this.scrollCaches;i<o.length;i++){var s=o[i],a=s.clientRect,l=e-a.left,c=a.right-e,u=t-a.top,d=a.bottom-t;l>=0&&c>=0&&u>=0&&d>=0&&(u<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>u)&&(r={scrollCache:s,name:"top",distance:u}),d<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:s,name:"bottom",distance:d}),l<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:s,name:"left",distance:l}),c<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"right",distance:c}))}return r},e.prototype.buildCaches=function(){return this.queryScrollEls().map((function(e){return e===window?new Ee(!1):new Se(e,!1)}))},e.prototype.queryScrollEls=function(){for(var e=[],t=0,n=this.scrollQuery;t<n.length;t++){var r=n[t];"object"===typeof r?e.push(r):e.push.apply(e,Array.prototype.slice.call(document.querySelectorAll(r)))}return e},e}(),Te=function(e){function t(t){var n=e.call(this,t)||this;n.delay=null,n.minDistance=0,n.touchScrollAllowed=!0,n.mirrorNeedsRevert=!1,n.isInteracting=!1,n.isDragging=!1,n.isDelayEnded=!1,n.isDistanceSurpassed=!1,n.delayTimeoutId=null,n.onPointerDown=function(e){n.isDragging||(n.isInteracting=!0,n.isDelayEnded=!1,n.isDistanceSurpassed=!1,Object(a["Nb"])(document.body),Object(a["Mb"])(document.body),e.isTouch||e.origEvent.preventDefault(),n.emitter.trigger("pointerdown",e),n.pointer.shouldIgnoreMove||(n.mirror.setIsVisible(!1),n.mirror.start(e.subjectEl,e.pageX,e.pageY),n.startDelay(e),n.minDistance||n.handleDistanceSurpassed(e)))},n.onPointerMove=function(e){if(n.isInteracting){if(n.emitter.trigger("pointermove",e),!n.isDistanceSurpassed){var t=n.minDistance,r=void 0,i=e.deltaX,o=e.deltaY;r=i*i+o*o,r>=t*t&&n.handleDistanceSurpassed(e)}n.isDragging&&("scroll"!==e.origEvent.type&&(n.mirror.handleMove(e.pageX,e.pageY),n.autoScroller.handleMove(e.pageX,e.pageY)),n.emitter.trigger("dragmove",e))}},n.onPointerUp=function(e){n.isInteracting&&(n.isInteracting=!1,Object(a["y"])(document.body),Object(a["x"])(document.body),n.emitter.trigger("pointerup",e),n.isDragging&&(n.autoScroller.stop(),n.tryStopDrag(e)),n.delayTimeoutId&&(clearTimeout(n.delayTimeoutId),n.delayTimeoutId=null))};var r=n.pointer=new fe(t);return r.emitter.on("pointerdown",n.onPointerDown),r.emitter.on("pointermove",n.onPointerMove),r.emitter.on("pointerup",n.onPointerUp),n.mirror=new me,n.autoScroller=new De,n}return ae(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.startDelay=function(e){var t=this;"number"===typeof this.delay?this.delayTimeoutId=setTimeout((function(){t.delayTimeoutId=null,t.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(a["g"]),Ce=function(){function e(e){this.origRect=Object(a["N"])(e),this.scrollCaches=Object(a["lb"])(e).map((function(e){return new Se(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++){var n=t[e];n.destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n={left:e,top:t},r=0,i=this.scrollCaches;r<i.length;r++){var o=i[r];if(!Oe(o.getEventTarget())&&!Object(a["Kb"])(n,o.clientRect))return!1}return!0},e}();function Oe(e){var t=e.tagName;return"HTML"===t||"BODY"===t}var Re=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new a["i"]}return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl;i!==document&&(t=Object(a["N"])(i),r=Object(a["P"])(r,t));var o=this.initialHit=this.queryHitForOffset(r.left,r.top);if(o){if(this.useSubjectCenter&&t){var s=Object(a["yb"])(t,o.rect);s&&(r=Object(a["ob"])(s))}this.coordAdjust=Object(a["Z"])(r,n)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&xe(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=Object(a["Db"])(this.droppableStore,(function(e){return e.component.buildPositionCaches(),new Ce(e.el)}))},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this,r=n.droppableStore,i=n.offsetTrackers,o=null;for(var s in r){var l=r[s].component,c=i[s];if(c.isWithinClipping(e,t)){var u=c.computeLeft(),d=c.computeTop(),f=e-u,p=t-d,h=c.origRect,v=h.right-h.left,g=h.bottom-h.top;if(f>=0&&f<v&&p>=0&&p<g){var y=l.queryHit(f,p,v,g);!y||l.props.dateProfile&&!Object(a["Pb"])(l.props.dateProfile.activeRange,y.dateSpan.range)||o&&!(y.layer>o.layer)||(y.rect.left+=u,y.rect.right+=u,y.rect.top+=d,y.rect.bottom+=d,o=y)}}}return o},e}();function xe(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Object(a["zb"])(e.dateSpan,t.dateSpan)}var Ie=function(e){function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging;t.setIgnoreMove(!n.component.isValidDateDownEl(t.pointer.downEl))},n.handleDragEnd=function(e){var t=n.component,r=t.context,i=r.calendar,o=r.view,s=n.dragging.pointer;if(!s.wasTouchScroll){var a=n.hitDragging,l=a.initialHit,c=a.finalHit;l&&c&&xe(l,c)&&i.triggerDateClick(l.dateSpan,l.dayEl,o,e.origEvent)}};var r=t.component;n.dragging=new Te(r.el),n.dragging.autoScroller.isEnabled=!1;var i=n.hitDragging=new Re(n.dragging,Object(a["wb"])(t));return i.emitter.on("pointerdown",n.handlePointerDown),i.emitter.on("dragend",n.handleDragEnd),n}return ae(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(a["m"]),ke=function(e){function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,i=t.dragging,o=r.context.options,s=o.selectable&&r.isValidDateDownEl(e.origEvent.target);i.setIgnoreMove(!s),i.delay=e.isTouch?je(r):null},n.handleDragStart=function(e){n.component.context.calendar.unselect(e)},n.handleHitUpdate=function(e,t){var r=n.component.context.calendar,i=null,o=!1;e&&(i=Me(n.hitDragging.initialHit,e,r.pluginSystem.hooks.dateSelectionTransformers),i&&n.component.isDateSelectionValid(i)||(o=!0,i=null)),i?r.dispatch({type:"SELECT_DATES",selection:i}):t||r.dispatch({type:"UNSELECT_DATES"}),o?Object(a["bb"])():Object(a["fb"])(),t||(n.dragSelection=i)},n.handlePointerUp=function(e){n.dragSelection&&(n.component.context.calendar.triggerDateSelect(n.dragSelection,e),n.dragSelection=null)};var r=t.component,i=r.context.options,o=n.dragging=new Te(r.el);o.touchScrollAllowed=!1,o.minDistance=i.selectMinDistance||0,o.autoScroller.isEnabled=i.dragScroll;var s=n.hitDragging=new Re(n.dragging,Object(a["wb"])(t));return s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("pointerup",n.handlePointerUp),n}return ae(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(a["m"]);function je(e){var t=e.context.options,n=t.selectLongPressDelay;return null==n&&(n=t.longPressDelay),n}function Me(e,t,n){var r=e.dateSpan,i=t.dateSpan,o=[r.range.start,r.range.end,i.range.start,i.range.end];o.sort(a["G"]);for(var s={},l=0,c=n;l<c.length;l++){var u=c[l],d=u(e,t);if(!1===d)return null;d&&le(s,d)}return s.range={start:o[0],end:o[3]},s.allDay=r.allDay,s}var Pe=function(e){function t(n){var r=e.call(this,n)||this;r.subjectSeg=null,r.isDragging=!1,r.eventRange=null,r.relevantEvents=null,r.receivingCalendar=null,r.validMutation=null,r.mutatedRelevantEvents=null,r.handlePointerDown=function(e){var t=e.origEvent.target,n=r,i=n.component,o=n.dragging,s=o.mirror,l=i.context.options,c=i.context.calendar,u=r.subjectSeg=Object(a["nb"])(e.subjectEl),d=r.eventRange=u.eventRange,f=d.instance.instanceId;r.relevantEvents=Object(a["pb"])(c.state.eventStore,f),o.minDistance=e.isTouch?0:l.eventDragMinDistance,o.delay=e.isTouch&&f!==i.props.eventSelection?He(i):null,s.parentNode=c.el,s.revertDuration=l.dragRevertDuration;var p=i.isValidSegDownEl(t)&&!Object(a["db"])(t,".fc-resizer");o.setIgnoreMove(!p),r.isDragging=p&&e.subjectEl.classList.contains("fc-draggable")},r.handleDragStart=function(e){var t=r.component.context,n=t.calendar,i=r.eventRange,o=i.instance.instanceId;e.isTouch?o!==r.component.props.eventSelection&&n.dispatch({type:"SELECT_EVENT",eventInstanceId:o}):n.dispatch({type:"UNSELECT_EVENT"}),r.isDragging&&(n.unselect(e),n.publiclyTrigger("eventDragStart",[{el:r.subjectSeg.el,event:new a["j"](n,i.def,i.instance),jsEvent:e.origEvent,view:t.view}]))},r.handleHitUpdate=function(e,t){if(r.isDragging){var n=r.relevantEvents,i=r.hitDragging.initialHit,o=r.component.context.calendar,s=null,l=null,c=null,u=!1,d={affectedEvents:n,mutatedEvents:Object(a["S"])(),isEvent:!0,origSeg:r.subjectSeg};if(e){var f=e.component;s=f.context.calendar;var p=f.context.options;o===s||p.editable&&p.droppable?(l=_e(i,e,s.pluginSystem.hooks.eventDragMutationMassagers),l&&(c=Object(a["A"])(n,s.eventUiBases,l,s),d.mutatedEvents=c,f.isInteractionValid(d)||(u=!0,l=null,c=null,d.mutatedEvents=Object(a["S"])()))):s=null}r.displayDrag(s,d),u?Object(a["bb"])():Object(a["fb"])(),t||(o===s&&xe(i,e)&&(l=null),r.dragging.setMirrorNeedsRevert(!l),r.dragging.setMirrorIsVisible(!e||!document.querySelector(".fc-mirror")),r.receivingCalendar=s,r.validMutation=l,r.mutatedRelevantEvents=c)}},r.handlePointerUp=function(){r.isDragging||r.cleanup()},r.handleDragEnd=function(e){if(r.isDragging){var t=r.component.context,n=t.calendar,i=t.view,o=r,s=o.receivingCalendar,l=o.validMutation,c=r.eventRange.def,u=r.eventRange.instance,d=new a["j"](n,c,u),f=r.relevantEvents,p=r.mutatedRelevantEvents,h=r.hitDragging.finalHit;if(r.clearDrag(),n.publiclyTrigger("eventDragStop",[{el:r.subjectSeg.el,event:d,jsEvent:e.origEvent,view:i}]),l){if(s===n){n.dispatch({type:"MERGE_EVENTS",eventStore:p});for(var v={},g=0,y=n.pluginSystem.hooks.eventDropTransformers;g<y.length;g++){var m=y[g];le(v,m(l,n))}var b=le({},v,{el:e.subjectEl,delta:l.datesDelta,oldEvent:d,event:new a["j"](n,p.defs[c.defId],u?p.instances[u.instanceId]:null),revert:function(){n.dispatch({type:"MERGE_EVENTS",eventStore:f})},jsEvent:e.origEvent,view:i});n.publiclyTrigger("eventDrop",[b])}else if(s){n.publiclyTrigger("eventLeave",[{draggedEl:e.subjectEl,event:d,view:i}]),n.dispatch({type:"REMOVE_EVENT_INSTANCES",instances:r.mutatedRelevantEvents.instances}),s.dispatch({type:"MERGE_EVENTS",eventStore:r.mutatedRelevantEvents}),e.isTouch&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId});var S=le({},s.buildDatePointApi(h.dateSpan),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:h.component});s.publiclyTrigger("drop",[S]),s.publiclyTrigger("eventReceive",[{draggedEl:e.subjectEl,event:new a["j"](s,p.defs[c.defId],p.instances[u.instanceId]),view:h.component}])}}else n.publiclyTrigger("_noEventDrop")}r.cleanup()};var i=r.component,o=i.context.options,s=r.dragging=new Te(i.el);s.pointer.selector=t.SELECTOR,s.touchScrollAllowed=!1,s.autoScroller.isEnabled=o.dragScroll;var l=r.hitDragging=new Re(r.dragging,a["vb"]);return l.useSubjectCenter=n.useEventCenter,l.emitter.on("pointerdown",r.handlePointerDown),l.emitter.on("dragstart",r.handleDragStart),l.emitter.on("hitupdate",r.handleHitUpdate),l.emitter.on("pointerup",r.handlePointerUp),l.emitter.on("dragend",r.handleDragEnd),r}return ae(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context.calendar,r=this.receivingCalendar;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:Object(a["S"])(),isEvent:!0,origSeg:t.origSeg}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context.calendar,t=this.receivingCalendar;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingCalendar=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=".fc-draggable, .fc-resizable",t}(a["m"]);function _e(e,t,n){var r=e.dateSpan,i=t.dateSpan,o=r.range.start,s=i.range.start,l={};r.allDay!==i.allDay&&(l.allDay=i.allDay,l.hasEnd=t.component.context.options.allDayMaintainDuration,i.allDay&&(o=Object(a["Sb"])(o)));var c=Object(a["X"])(o,s,e.component.context.dateEnv,e.component===t.component?e.component.largeUnit:null);c.milliseconds&&(l.allDay=!1);for(var u={datesDelta:c,standardProps:l},d=0,f=n;d<f.length;d++){var p=f[d];p(u,e,t)}return u}function He(e){var t=e.context.options,n=t.eventLongPressDelay;return null==n&&(n=t.longPressDelay),n}var Ne=function(e){function t(t){var n=e.call(this,t)||this;n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,r=n.querySeg(e),i=n.eventRange=r.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==i.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,r=t.calendar,i=t.view,o=n.eventRange;n.relevantEvents=Object(a["pb"])(r.state.eventStore,n.eventRange.instance.instanceId),n.draggingSeg=n.querySeg(e),r.unselect(),r.publiclyTrigger("eventResizeStart",[{el:n.draggingSeg.el,event:new a["j"](r,o.def,o.instance),jsEvent:e.origEvent,view:i}])},n.handleHitUpdate=function(e,t,r){var i=n.component.context.calendar,o=n.relevantEvents,s=n.hitDragging.initialHit,l=n.eventRange.instance,c=null,u=null,d=!1,f={affectedEvents:o,mutatedEvents:Object(a["S"])(),isEvent:!0,origSeg:n.draggingSeg};e&&(c=Le(s,e,r.subjectEl.classList.contains("fc-start-resizer"),l.range,i.pluginSystem.hooks.eventResizeJoinTransforms)),c&&(u=Object(a["A"])(o,i.eventUiBases,c,i),f.mutatedEvents=u,n.component.isInteractionValid(f)||(d=!0,c=null,u=null,f.mutatedEvents=null)),u?i.dispatch({type:"SET_EVENT_RESIZE",state:f}):i.dispatch({type:"UNSET_EVENT_RESIZE"}),d?Object(a["bb"])():Object(a["fb"])(),t||(c&&xe(s,e)&&(c=null),n.validMutation=c,n.mutatedRelevantEvents=u)},n.handleDragEnd=function(e){var t=n.component.context,r=t.calendar,i=t.view,o=n.eventRange.def,s=n.eventRange.instance,l=new a["j"](r,o,s),c=n.relevantEvents,u=n.mutatedRelevantEvents;r.publiclyTrigger("eventResizeStop",[{el:n.draggingSeg.el,event:l,jsEvent:e.origEvent,view:i}]),n.validMutation?(r.dispatch({type:"MERGE_EVENTS",eventStore:u}),r.publiclyTrigger("eventResize",[{el:n.draggingSeg.el,startDelta:n.validMutation.startDelta||Object(a["Q"])(0),endDelta:n.validMutation.endDelta||Object(a["Q"])(0),prevEvent:l,event:new a["j"](r,u.defs[o.defId],s?u.instances[s.instanceId]:null),revert:function(){r.dispatch({type:"MERGE_EVENTS",eventStore:c})},jsEvent:e.origEvent,view:i}])):r.publiclyTrigger("_noEventResize"),n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=t.component,i=n.dragging=new Te(r.el);i.pointer.selector=".fc-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.context.options.dragScroll;var o=n.hitDragging=new Re(n.dragging,Object(a["wb"])(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragstart",n.handleDragStart),o.emitter.on("hitupdate",n.handleHitUpdate),o.emitter.on("dragend",n.handleDragEnd),n}return ae(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySeg=function(e){return Object(a["nb"])(Object(a["db"])(e.subjectEl,this.component.fgSegSelector))},t}(a["m"]);function Le(e,t,n,r,i){for(var o=e.component.context.dateEnv,s=e.dateSpan.range.start,l=t.dateSpan.range.start,c=Object(a["X"])(s,l,o,e.component.largeUnit),u={},d=0,f=i;d<f.length;d++){var p=f[d],h=p(e,t);if(!1===h)return null;h&&le(u,h)}if(n){if(o.add(r.start,c)<r.end)return u.startDelta=c,u}else if(o.add(r.end,c)>r.start)return u.endDelta=c,u;return null}var Ae=function(){function e(e){var t=this;this.isRecentPointerDateSelect=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerUp=function(e){var n=t,r=n.calendar,i=n.documentPointer,o=r.state;if(!i.wasTouchScroll){if(o.dateSelection&&!t.isRecentPointerDateSelect){var s=r.viewOpt("unselectAuto"),l=r.viewOpt("unselectCancel");!s||s&&Object(a["db"])(i.downEl,l)||r.unselect(e)}o.eventSelection&&!Object(a["db"])(i.downEl,Pe.SELECTOR)&&r.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1},this.calendar=e;var n=this.documentPointer=new fe(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerup",this.onDocumentPointerUp),e.on("select",this.onSelect)}return e.prototype.destroy=function(){this.calendar.off("select",this.onSelect),this.documentPointer.destroy()},e}(),ze=function(){function e(e,t){var n=this;this.receivingCalendar=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,r){var i=n.hitDragging.dragging,o=null,s=null,l=!1,c={affectedEvents:Object(a["S"])(),mutatedEvents:Object(a["S"])(),isEvent:n.dragMeta.create,origSeg:null};e&&(o=e.component.context.calendar,n.canDropElOnCalendar(r.subjectEl,o)&&(s=Ue(e.dateSpan,n.dragMeta,o),c.mutatedEvents=Object(a["gb"])(s),l=!Object(a["Ab"])(c,o),l&&(c.mutatedEvents=Object(a["S"])(),s=null))),n.displayDrag(o,c),i.setMirrorIsVisible(t||!s||!document.querySelector(".fc-mirror")),l?Object(a["bb"])():Object(a["fb"])(),t||(i.setMirrorNeedsRevert(!s),n.receivingCalendar=o,n.droppableEvent=s)},this.handleDragEnd=function(e){var t=n,r=t.receivingCalendar,i=t.droppableEvent;if(n.clearDrag(),r&&i){var o=n.hitDragging.finalHit,s=o.component.context.view,l=n.dragMeta,c=le({},r.buildDatePointApi(o.dateSpan),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:s});r.publiclyTrigger("drop",[c]),l.create&&(r.dispatch({type:"MERGE_EVENTS",eventStore:Object(a["gb"])(i)}),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:i.instance.instanceId}),r.publiclyTrigger("eventReceive",[{draggedEl:e.subjectEl,event:new a["j"](r,i.def,i.instance),view:s}]))}n.receivingCalendar=null,n.droppableEvent=null};var r=this.hitDragging=new Re(e,a["vb"]);r.requireInitial=!1,r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"===typeof this.suppliedDragMeta?Object(a["Ib"])(this.suppliedDragMeta):"function"===typeof this.suppliedDragMeta?Object(a["Ib"])(this.suppliedDragMeta(e)):Be(e)},e.prototype.displayDrag=function(e,t){var n=this.receivingCalendar;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){this.receivingCalendar&&this.receivingCalendar.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.canDropElOnCalendar=function(e,t){var n=t.opt("dropAccept");return"function"===typeof n?n(e):"string"!==typeof n||!n||Boolean(Object(a["eb"])(e,n))},e}();function Ue(e,t,n){for(var r=le({},t.leftoverProps),i=0,o=n.pluginSystem.hooks.externalDefTransforms;i<o.length;i++){var s=o[i];le(r,s(e,t))}var l=Object(a["Jb"])(r,t.sourceId,e.allDay,n.opt("forceEventDuration")||Boolean(t.duration),n),c=e.range.start;e.allDay&&t.startTime&&(c=n.dateEnv.add(c,t.startTime));var u=t.duration?n.dateEnv.add(c,t.duration):n.getDefaultEventEnd(e.allDay,c),d=Object(a["T"])(l.defId,{start:c,end:u});return{def:l,instance:d}}function Be(e){var t=Ve(e,"event"),n=t?JSON.parse(t):{create:!1};return Object(a["Ib"])(n)}function Ve(e,t){var n=a["O"].dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}a["O"].dataAttrPrefix="";(function(){function e(e,t){var n=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,r=n.settings,i=r.minDistance,o=r.longPressDelay;t.minDistance=null!=i?i:e.isTouch?0:a["qb"].eventDragMinDistance,t.delay=e.isTouch?null!=o?o:a["qb"].longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-selected")},this.settings=t;var r=this.dragging=new Te(e);r.touchScrollAllowed=!1,null!=t.itemSelector&&(r.pointer.selector=t.itemSelector),null!=t.appendTo&&(r.mirror.parentNode=t.appendTo),r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),new ze(r,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}})();var Fe=function(e){function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new fe(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}return ae(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(a["g"]),Ge=(function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};var r=this.dragging=new Fe(n);"string"===typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"===typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new ze(r,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}}(),Object(a["V"])({componentInteractions:[Ie,ke,Pe,Ne],calendarInteractions:[Ae],elementDraggingImpl:Te})),We=Ge,qe=function(e,t){return qe=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])},qe(e,t)};function Ye(e,t){function n(){this.constructor=e}qe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ze=function(e){function t(t){var n=e.call(this)||this;return n.listView=t,n}return Ye(t,e),t.prototype.attachSegs=function(e){e.length?this.listView.renderSegList(e):this.listView.renderEmptyMessage()},t.prototype.detachSegs=function(){},t.prototype.renderSegHtml=function(e){var t,n=this.context,r=n.theme,i=n.options,o=e.eventRange,s=o.def,l=o.instance,c=o.ui,u=s.url,d=["fc-list-item"].concat(c.classNames),f=c.backgroundColor;return t=s.allDay?Object(a["kb"])(i):Object(a["Bb"])(o.range)?e.isStart?Object(a["sb"])(this._getTimeText(l.range.start,e.end,!1)):e.isEnd?Object(a["sb"])(this._getTimeText(e.start,l.range.end,!1)):Object(a["kb"])(i):Object(a["sb"])(this.getTimeText(o)),u&&d.push("fc-has-url"),'<tr class="'+d.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+r.getClass("widgetContent")+'">'+(t||"")+"</td>":"")+'<td class="fc-list-item-marker '+r.getClass("widgetContent")+'"><span class="fc-event-dot"'+(f?' style="background-color:'+f+'"':"")+'></span></td><td class="fc-list-item-title '+r.getClass("widgetContent")+'"><a'+(u?' href="'+Object(a["sb"])(u)+'"':"")+">"+Object(a["sb"])(s.title||"")+"</a></td></tr>"},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:"short"}},t}(a["k"]),Xe=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.computeDateVars=Object(a["Fb"])($e),r.eventStoreToSegs=Object(a["Fb"])(r._eventStoreToSegs),r.renderSkeleton=Object(a["Gb"])(r._renderSkeleton,r._unrenderSkeleton);var i=r.eventRenderer=new Ze(r);return r.renderContent=Object(a["Gb"])(i.renderSegs.bind(i),i.unrender.bind(i),[r.renderSkeleton]),r}return Ye(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el})},t.prototype.render=function(t,n){e.prototype.render.call(this,t,n);var r=this.computeDateVars(t.dateProfile),i=r.dayDates,o=r.dayRanges;this.dayDates=i,this.renderSkeleton(n),this.renderContent(n,this.eventStoreToSegs(t.eventStore,t.eventUiBases,o))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender(),this.renderContent.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype._renderSkeleton=function(e){var t=e.theme;this.el.classList.add("fc-list-view");for(var n=(t.getClass("listView")||"").split(" "),r=0,i=n;r<i.length;r++){var o=i[r];o&&this.el.classList.add(o)}this.scroller=new a["o"]("hidden","auto"),this.el.appendChild(this.scroller.el),this.contentEl=this.scroller.el},t.prototype._unrenderSkeleton=function(){this.scroller.destroy()},t.prototype.updateSize=function(t,n,r){e.prototype.updateSize.call(this,t,n,r),this.eventRenderer.computeSizes(t),this.eventRenderer.assignSizes(t),this.scroller.clear(),r||this.scroller.setHeight(this.computeScrollerHeight(n))},t.prototype.computeScrollerHeight=function(e){return e-Object(a["Tb"])(this.el,this.scroller.el)},t.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(Object(a["Rb"])(e,t,this.props.dateProfile.activeRange,this.context.nextDayThreshold).fg,n)},t.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];n.push.apply(n,this.eventRangeToSegs(o,t))}return n},t.prototype.eventRangeToSegs=function(e,t){var n,r,i,o=this.context,s=o.dateEnv,l=o.nextDayThreshold,c=e.range,u=e.def.allDay,d=[];for(n=0;n<t.length;n++)if(r=Object(a["xb"])(c,t[n]),r&&(i={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===c.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===c.end.valueOf(),dayIndex:n},d.push(i),!i.isEnd&&!u&&n+1<t.length&&c.end<s.add(t[n+1].start,l))){i.end=c.end,i.isEnd=!0;break}return d},t.prototype.renderEmptyMessage=function(){this.contentEl.innerHTML='<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+Object(a["sb"])(this.context.options.noEventsMessage)+"</div></div></div>"},t.prototype.renderSegList=function(e){var t,n,r,i=this.context.theme,o=this.groupSegsByDay(e),s=Object(a["tb"])('<table class="fc-list-table '+i.getClass("tableList")+'"><tbody></tbody></table>'),l=s.querySelector("tbody");for(t=0;t<o.length;t++)if(n=o[t],n)for(l.appendChild(this.buildDayHeaderRow(this.dayDates[t])),n=this.eventRenderer.sortEventSegs(n),r=0;r<n.length;r++)l.appendChild(n[r].el);this.contentEl.innerHTML="",this.contentEl.appendChild(s)},t.prototype.groupSegsByDay=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r},t.prototype.buildDayHeaderRow=function(e){var t=this.context,n=t.theme,r=t.dateEnv,i=t.options,o=Object(a["U"])(i.listDayFormat),s=Object(a["U"])(i.listDayAltFormat);return Object(a["R"])("tr",{className:"fc-list-heading","data-date":r.formatIso(e,{omitTime:!0})},'<td class="'+(n.getClass("tableListHeading")||n.getClass("widgetHeader"))+'" colspan="3">'+(o?Object(a["D"])(i,r,e,{class:"fc-list-heading-main"},Object(a["sb"])(r.format(e,o))):"")+(s?Object(a["D"])(i,r,e,{class:"fc-list-heading-alt"},Object(a["sb"])(r.format(e,s))):"")+"</td>")},t}(a["s"]);function $e(e){var t=Object(a["Sb"])(e.renderRange.start),n=e.renderRange.end,r=[],i=[];while(t<n)r.push(t),i.push({start:t,end:Object(a["u"])(t,1)}),t=Object(a["u"])(t,1);return{dayDates:r,dayRanges:i}}Xe.prototype.fgSegSelector=".fc-list-item";var Qe=Object(a["V"])({views:{list:{class:Xe,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDayAltFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDayAltFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDayAltFormat:{weekday:"long"}}}}),Ke=Qe,Je=n("bc3a"),et=n.n(Je),tt=n("8bbf"),nt=n.n(tt);n("c381"),n("f4f4"),n("6ef4");var rt={data:function(){return{calendarPlugins:[_,oe,We,Ke],showCalendar:!1,showmodal:!1,putmodal:!1,evput:null,alertAfter:!1,isNotificationOpen:!0,removeQuestion:!1,Title:"",Start:"",End:"",Description:"",key:null,calendarEvents:[]}},created:function(){var e=this;this.get(),setTimeout((function(){e.fixAlert()}),500)},methods:{sureRemove:function(e){var t=this;et.a.delete("http://localhost:52865/api/values/"+e).then((function(){t.cancelput(),t.cancelRemove(),t.get()}))},showremovemodal:function(){this.removeQuestion=!0,this.showmodal=!1},cancelRemove:function(){this.removeQuestion=!1},closeNotification:function(){nt.a.set(this,"isNotificationOpen",!1)},fixAlert:function(){nt.a.set(this,"alertAfter",!0)},get:function(){var e=this;e.showCalendar=!1,et.a.get("http://localhost:52865/api/values/").then((function(t){e.calendarEvents=Object.assign([],t.data),e.cancelput(),e.showCalendar=!0})).catch((function(e){window.console.log("Error: ",e)}))},cancel:function(){this.showmodal=!1},cancelput:function(){this.putmodal=!1},submitEvent:function(){var e=this;et.a.post("http://localhost:52865/api/values/",{Title:this.Title,Start:this.Start,End:this.End,Description:this.Description}).then((function(t){e.cancelRemove(),window.console.log("resss",t)}))},handleDateClick:function(){this.showmodal=!0,this.removeQuestion=!1},updateEvent:function(e){this.putmodal=!0,this.evput=Object.assign({},this.calendarEvents.find((function(t){return t.id==e.event.id}))),window.console.log("eventput-eventput",event)},updateEventSubmit:function(e){var t=this,n=e.id;et.a.put("http://localhost:52865/api/values/"+n,{Id:n,Title:e.title,Start:e.start,End:e.end,Description:e.description}).then((function(e){t.cancelput(),window.console.log("resultat",e),t.get()}))},eventRender:function(e){var t=this,n=document.createElement("button");n.appendChild(document.createTextNode("x")),n.addEventListener("click",(function(){t.key=e.event.id,t.showremovemodal()})),e.el.appendChild(n)}},name:"naxxumhrcalander",components:{Fullcalendar:s["a"]},props:{msg:String}},it=rt;n("ceee");function ot(e,t,n,r,i,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var st=ot(it,i,o,!1,null,"5c44c3ca",null),at=st.exports,lt={install:function(e){e.component("naxxumhrcalander",at)}};t["default"]=lt},fc6a:function(e,t,n){var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
//# sourceMappingURL=naxxumhr-calander.umd.min.js.map