calander
Version:
``` npm install ```
21 lines (19 loc) • 272 kB
JavaScript
(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["calander"]=t(require("vue")):e["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,