primevue
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primevue) [![Join the chat at https://gitter.im/primefaces/primevu
21 lines (19 loc) • 169 kB
JavaScript
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["fullcalendar"]=t():e["fullcalendar"]=t()})("undefined"!==typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),o=n("5ca1"),i=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",g=function(){return this};e.exports=function(e,t,n,m,y,b,w){c(n,t,m);var E,S,T,D=function(e){if(!d&&e in I)return I[e];switch(e){case h:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",k=y==v,R=!1,I=e.prototype,C=I[f]||I[p]||y&&I[y],M=C||D(y),O=y?k?D("entries"):M:void 0,_="Array"==t&&I.entries||C;if(_&&(T=u(_.call(new e)),T!==Object.prototype&&T.next&&(l(T,x,!0),r||"function"==typeof T[f]||a(T,f,g))),k&&C&&C.name!==v&&(R=!0,M=function(){return C.call(this)}),r&&!w||!d&&!R&&I[f]||a(I,f,M),s[t]=M,s[x]=g,y)if(E={values:k?M:D(v),keys:b?M:D(h),entries:O},w)for(S in E)S in I||i(I,S,E[S]);else o(o.P+o.F*(d||R),t,E);return E}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0d58":function(e,t,n){var r=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return r(e,o)}},"11e9":function(e,t,n){var r=n("52a7"),o=n("4630"),i=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),l=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?l:function(e,t){if(e=i(e),t=a(t,!0),c)try{return l(e,t)}catch(n){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,a=i(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),o=n("e53d").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"21cd":function(e,t,n){var r=n("915b");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("499e").default;o("79959421",r,!0,{sourceMap:!1,shadowMode:!1})},"230e":function(e,t,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},2350:function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"===typeof btoa){var i=r(o),a=o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"});return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function r(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return"/*# "+n+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"===typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"===typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2aba":function(e,t,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),c="toString",l=(""+s).split(c);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[a]||s.call(this)})},"2aeb":function(e,t,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=n("230e")("iframe"),r=i.length,o="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),l=e.F;while(r--)delete l[c][i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i,s=e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"318f":function(e,t,n){"use strict";var r=n("21cd"),o=n.n(r);o.a},"32e9":function(e,t,n){var r=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"35e8":function(e,t,n){var r=n("d9f6"),o=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),o=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),o=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),o=n("0d58");n("5eda")("keys",function(){return function(e){return o(r(e))}})},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],s=i[1],c=i[2],l=i[3],u={id:e+":"+o,css:s,media:c,sourceMap:l};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}n.r(t),n.d(t,"default",function(){return h});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,l=!1,u=function(){},f=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){l=n,f=o||{};var a=r(e,t);return v(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o],c=i[s.id];c.refs--,n.push(c)}t?(a=r(e,t),v(a)):a=[];for(o=0;o<n.length;o++){c=n[o];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete i[c.id]}}}}function v(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(m(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(m(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function m(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(p){var o=c++;r=s||(s=g()),t=b.bind(null,r,o,!1),n=b.bind(null,r,o,!0)}else r=g(),t=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function w(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),f.ssrId&&e.setAttribute(d,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"573d":function(e,t,n){
/*!
FullCalendar Core Package v4.0.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
(function(e,n){n(t)})(0,function(e){"use strict";var t={className:!0,colSpan:!0,rowSpan:!0},n={"<tr":"tbody","<td":"tr"};function r(e,n,r){var o=document.createElement(e);if(n)for(var i in n)"style"===i?E(o,n[i]):t[i]?o[i]=n[i]:o.setAttribute(i,n[i]);return"string"===typeof r?o.innerHTML=r:null!=r&&c(o,r),o}function o(e){e=e.trim();var t=document.createElement(s(e));return t.innerHTML=e,t.firstChild}function i(e){return Array.prototype.slice.call(a(e))}function a(e){e=e.trim();var t=document.createElement(s(e));return t.innerHTML=e,t.childNodes}function s(e){return n[e.substr(0,3)]||"div"}function c(e,t){for(var n=f(t),r=0;r<n.length;r++)e.appendChild(n[r])}function l(e,t){for(var n=f(t),r=e.firstChild||null,o=0;o<n.length;o++)e.insertBefore(n[o],r)}function u(e,t){for(var n=f(t),r=e.nextSibling||null,o=0;o<n.length;o++)e.parentNode.insertBefore(n[o],r)}function f(e){var t;return t="string"===typeof e?i(e):e instanceof Node?[e]:Array.prototype.slice.call(e),t}function d(e){e.parentNode&&e.parentNode.removeChild(e)}var p=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,h=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(g(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function v(e,t){return h.call(e,t)}function g(e,t){return p.call(e,t)}function m(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o++)for(var i=n[o].querySelectorAll(t),a=0;a<i.length;a++)r.push(i[a]);return r}function y(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o++)for(var i=n[o].children,a=0;a<i.length;a++){var s=i[a];t&&!g(s,t)||r.push(s)}return r}function b(e,t,n){n?e.classList.add(t):e.classList.remove(t)}var w=/(top|left|right|bottom|width|height)$/i;function E(e,t){for(var n in t)S(e,n,t[n])}function S(e,t,n){null==n?e.style[t]="":"number"===typeof n&&w.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 D(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 x(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function k(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 I(e,t){return{left:e.left-t.left,top:e.top-t.top}}var C=null;function M(){return null===C&&(C=O()),C}function O(){var e=r("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 d(e),n}function _(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,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=_(e.offsetWidth-e.clientWidth-r-o),c=_(e.offsetHeight-e.clientHeight-i-a),l={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return M()&&"rtl"===n.direction?l.scrollbarLeft=s:l.scrollbarRight=s,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function z(e,t){void 0===t&&(t=!1);var n=H(e),r=P(e,t),o={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&&(o.left+=r.paddingLeft,o.right-=r.paddingRight,o.top+=r.paddingTop,o.bottom-=r.paddingBottom),o}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){var t=window.getComputedStyle(e);return e.getBoundingClientRect().height+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function U(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 A(e){return U(e).map(function(e){return z(e)}).concat(N()).reduce(function(e,t){return D(e,t)||t})}function B(e){e.preventDefault()}function V(e,t,n,r){function o(e){var t=v(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}function j(e,t,n,r){var o;return V(e,"mouseover",t,function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}})}var F=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function W(e,t){var n=function(r){t(r),F.forEach(function(t){e.removeEventListener(t,n)})};F.forEach(function(t){e.addEventListener(t,n)})}var Z=["sun","mon","tue","wed","thu","fri","sat"];function Y(e,t){var n=de(e);return n[2]+=7*t,pe(n)}function G(e,t){var n=de(e);return n[2]+=t,pe(n)}function q(e,t){var n=de(e);return n[6]+=t,pe(n)}function X(e,t){return $(e,t)/7}function $(e,t){return(t.valueOf()-e.valueOf())/864e5}function J(e,t){return(t.valueOf()-e.valueOf())/36e5}function K(e,t){return(t.valueOf()-e.valueOf())/6e4}function Q(e,t){return(t.valueOf()-e.valueOf())/1e3}function ee(e,t){var n=re(e),r=re(t);return{years:0,months:0,days:Math.round($(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function te(e,t){var n=ne(e,t);return null!==n&&n%7===0?n/7:null}function ne(e,t){return ve(e)===ve(t)?Math.round($(e,t)):null}function re(e){return pe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function oe(e){return pe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function ie(e){return pe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function ae(e){return pe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function se(e,t,n){var r=e.getUTCFullYear(),o=ce(e,r,t,n);if(o<1)return ce(e,r-1,t,n);var i=ce(e,r+1,t,n);return i>=1?Math.min(o,i):o}function ce(e,t,n,r){var o=pe([t,0,1+le(t,n,r)]),i=re(e),a=Math.round($(o,i));return Math.floor(a/7)+1}function le(e,t,n){var r=7+t-n,o=(7+pe([e,0,r]).getUTCDay()-t)%7;return-o+r-1}function ue(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 de(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function pe(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function he(e){return!isNaN(e.valueOf())}function ve(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var ge=["years","months","days","milliseconds"],me=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ye(e,t){var n;return"string"===typeof e?be(e):"object"===typeof e&&e?we(e):"number"===typeof e?we((n={},n[t||"milliseconds"]=e,n)):null}function be(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 we(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*Ee(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 Ee(e){return e.weeks||e.week||0}function Se(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function Te(e){return 0===e.years&&0===e.months&&1===e.days&&0===e.milliseconds}function De(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function xe(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function ke(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Re(e){return Ce(e)/365}function Ie(e){return Ce(e)/30}function Ce(e){return _e(e)/864e5}function Me(e){return _e(e)/6e4}function Oe(e){return _e(e)/1e3}function _e(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Pe(e,t){for(var n=null,r=0;r<ge.length;r++){var o=ge[r];if(t[o]){var i=e[o]/t[o];if(!et(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function ze(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 He(e,t){t.left&&E(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&E(e,{borderRightWidth:1,marginRight:t.right-1})}function Ne(e){E(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})}function Le(){document.body.classList.add("fc-not-allowed")}function Ue(){document.body.classList.remove("fc-not-allowed")}function Ae(e,t,n){var r=Math.floor(t/e.length),o=Math.floor(t-r*(e.length-1)),i=[],a=[],s=[],c=0;Be(e),e.forEach(function(t,n){var l=n===e.length-1?o:r,u=L(t);u<l?(i.push(t),a.push(u),s.push(t.offsetHeight)):c+=u}),n&&(t-=c,r=Math.floor(t/i.length),o=Math.floor(t-r*(i.length-1))),i.forEach(function(e,t){var n=t===i.length-1?o:r,c=a[t],l=s[t],u=n-(c-l);c<n&&(e.style.height=u+"px")})}function Be(e){e.forEach(function(e){e.style.height=""})}function Ve(e){var t=0;return e.forEach(function(e){var n=e.firstChild;if(n instanceof HTMLElement){var r=n.offsetWidth;r>t&&(t=r)}}),t++,e.forEach(function(e){e.style.width=t+"px"}),t}function je(e,t){var n={position:"relative",left:-1};E(e,n),E(t,n);var r=e.offsetHeight-t.offsetHeight,o={position:"",left:""};return E(e,o),E(t,o),r}function Fe(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",B)}function We(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",B)}function Ze(e){e.addEventListener("contextmenu",B)}function Ye(e){e.removeEventListener("contextmenu",B)}function Ge(e){var t,n,r=[],o=[];for("string"===typeof e?o=e.split(/\s*,\s*/):"function"===typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t++)n=o[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,o;for(r=0;r<n.length;r++)if(o=Xe(e,t,n[r]),o)return o;return 0}function Xe(e,t,n){return n.func?n.func(e,t):$e(e[n.field],t[n.field])*(n.order||1)}function $e(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 Je(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ke(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function Qe(e,t){return e-t}function et(e){return e%1===0}function tt(e,t,n){if("function"===typeof e&&(e=[e]),e){var r=void 0,o=void 0;for(r=0;r<e.length;r++)o=e[r].apply(t,n)||o;return o}}function nt(){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 rt(e,t){var n,r,o,i,a,s=function(){var c=(new Date).valueOf()-i;c<t?n=setTimeout(s,t-c):(n=null,a=e.apply(o,r),o=r=null)};return function(){return o=this,r=arguments,i=(new Date).valueOf(),n||(n=setTimeout(s,t)),a}}function ot(e,t,n,r){void 0===n&&(n={});var o={};for(var i in t){var a=t[i];void 0!==e[i]?a===Function?o[i]="function"===typeof e[i]?e[i]:null:o[i]=a?a(e[i]):e[i]:void 0!==n[i]?o[i]=n[i]:a===String?o[i]="":a&&a!==Number&&a!==Boolean&&a!==Function?o[i]=a(null):o[i]=null}if(r)for(var i in e)void 0===t[i]&&(r[i]=e[i]);return o}function it(e){return Array.isArray(e)?Array.prototype.slice.call(e):e}function at(e){var t=Math.floor($(e.start,e.end))||1,n=re(e.start),r=G(n,t);return{start:n,end:r}}function st(e,t){void 0===t&&(t=ye(0));var n=null,r=null;if(e.end){r=re(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=_e(t)&&(r=G(r,1))}return e.start&&(n=re(e.start),r&&r<=n&&(r=G(n,1))),{start:n,end:r}}function ct(e){var t=st(e);return $(t.start,t.end)>1}function lt(e,t,n,r){return"year"===r?ye(n.diffWholeYears(e,t),"year"):"month"===r?ye(n.diffWholeMonths(e,t),"month"):ee(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 ut=function(e,t){return ut=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])},ut(e,t)};function ft(e,t){function n(){this.constructor=e}ut(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var dt=function(){return dt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dt.apply(this,arguments)};function pt(e,t,n,r,o){for(var i=0;i<r.length;i++){var a={},s=r[i].parse(e,a,n);if(s){var c=a.allDay;return delete a.allDay,null==c&&(c=t,null==c&&(c=s.allDayGuess,null==c&&(c=!1))),dt(o,a),{allDay:c,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function ht(e,t,n,r){var o=r[e.recurringDef.typeId],i=o.expand(e.recurringDef.typeData,t,n);return e.allDay&&(i=i.map(re)),i}function vt(e,t){var n,r,o,i,a,s,c={};if(t)for(n=0;n<t.length;n++){for(r=t[n],o=[],i=e.length-1;i>=0;i--)if(a=e[i][r],"object"===typeof a&&a)o.unshift(a);else if(void 0!==a){c[r]=a;break}o.length&&(c[r]=vt(o))}for(n=e.length-1;n>=0;n--)for(r in s=e[n],s)r in c||(c[r]=s[r]);return c}function gt(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function mt(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function yt(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}function bt(e){var t=[];for(var n in e)t.push(e[n]);return t}function wt(e,t,n,r){for(var o=Rt(),i=0,a=e;i<a.length;i++){var s=a[i],c=ir(s,t,n,r);c&&Et(c,o)}return o}function Et(e,t){return void 0===t&&(t=Rt()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function St(e,t,n){var r=n.dateEnv,o=e.defs,i=e.instances;for(var a in i=gt(i,function(e){return!o[e.defId].recurringDef}),o){var s=o[a];if(s.recurringDef){var c=ht(s,t,n.dateEnv,n.pluginSystem.hooks.recurringTypes),l=s.recurringDef.duration;l||(l=s.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(var u=0,f=c;u<f.length;u++){var d=f[u],p=sr(a,{start:d,end:r.add(d,l)});i[p.instanceId]=p}}}return{defs:o,instances:i}}function Tt(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=Ct(e,function(e){return Dt(r,e)});return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return Rt()}function Dt(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function xt(e,t,n){var r=n.opt("eventDataTransform"),o=t?t.eventDataTransform:null;return o&&(e=kt(e,o)),r&&(e=kt(e,r)),e}function kt(e,t){var n;if(t){n=[];for(var r=0,o=e;r<o.length;r++){var i=o[r],a=t(i);a?n.push(a):null==a&&n.push(i)}}else n=e;return n}function Rt(){return{defs:{},instances:{}}}function It(e,t){return{defs:dt({},e.defs,t.defs),instances:dt({},e.instances,t.instances)}}function Ct(e,t){var n=gt(e.defs,t),r=gt(e.instances,function(e){return n[e.defId]});return{defs:n,instances:r}}function Mt(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 Ot(e,t){var n,r,o=[],i=t.start;for(e.sort(_t),n=0;n<e.length;n++)r=e[n],r.start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function _t(e,t){return e.start.valueOf()-t.start.valueOf()}function Pt(e,t){var n=e.start,r=e.end,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function zt(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 Ht(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Nt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Lt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Ut(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=0,r=0;while(r<e.length)e[r]===t?(e.splice(r,1),n++):r++;return n}function Bt(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 Vt(e){var t,n;return function(){return t&&Bt(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}function jt(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 Ft={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Wt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Zt=/\s*([ap])\.?m\.?/i,Yt=/,/g,Gt=/\s+/g,qt=/\u200e/g,Xt=/UTC|GMT/,$t=function(){function e(e){var t={},n={},r=0;for(var o in e)o in Ft?(n[o]=e[o],r=Math.max(Ft[o],r)):(t[o]=e[o],o in Wt&&(r=Math.max(Wt[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Vt(Jt)}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,o=r.standardDateProps,i=r.extendedSettings,a=rn(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var s=a;!(s>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(s=1);var c=this.format(e,n),l=this.format(t,n);if(c===l)return c;var u=on(o,s),f=Jt(u,i,n),d=f(e),p=f(t),h=an(c,d,l,p),v=i.separator||"";return h?h.before+d+v+p+h.after:c+v+l},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 Jt(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return dn(e.timeZoneOffset)}:0===r&&t.week?function(e){return nn(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:Kt(e,t,n)}function Kt(e,t,n){e=dt({},e),t=dt({},t),Qt(e,t),e.timeZone="UTC";var r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var i=dt({},e);delete i.minute,r=new Intl.DateTimeFormat(n.locale.codes,i)}return function(i){var a,s=i.marker;a=r&&!s.getUTCMinutes()?r:o;var c=a.format(s);return en(c,i,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 en(e,t,n,r,o){return e=e.replace(qt,""),"short"===n.timeZoneName&&(e=tn(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":dn(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(Yt,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(Zt,"").trim():"narrow"===r.meridiem?e=e.replace(Zt,function(e,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace(Zt,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace(Zt,function(e){return e.toLocaleLowerCase()})),e=e.replace(Gt," "),e=e.trim(),e}function tn(e,t){var n=!1;return e=e.replace(Xt,function(){return n=!0,t}),n||(e+=" "+t),e}function nn(e,t,n,r){var o=[];return"narrow"===r?o.push(t):"short"===r&&o.push(t," "),o.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&o.reverse(),o.join("")}function rn(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:ve(e)!==ve(t)?1:0}function on(e,t){var n={};for(var r in e)r in Wt&&!(Wt[r]<=t)||(n[r]=e[r]);return n}function an(e,t,n,r){var o=0;while(o<e.length){var i=e.indexOf(t,o);if(-1===i)break;var a=e.substr(0,i);o=i+t.length;var s=e.substr(o),c=0;while(c<n.length){var l=n.indexOf(r,c);if(-1===l)break;var u=n.substr(0,l);c=l+r.length;var f=n.substr(c);if(a===u&&s===f)return{before:a,after:s}}}return null}var sn=function(){function e(e,t){this.cmdStr=e,this.separator=t}return e.prototype.format=function(e,t){return t.cmdFormatter(this.cmdStr,pn(e,null,t,this.separator))},e.prototype.formatRange=function(e,t,n){return n.cmdFormatter(this.cmdStr,pn(e,t,n,this.separator))},e}(),cn=function(){function e(e){this.func=e}return e.prototype.format=function(e,t){return this.func(pn(e,null,t))},e.prototype.formatRange=function(e,t,n){return this.func(pn(e,t,n))},e}();function ln(e,t){return"object"===typeof e&&e?("string"===typeof t&&(e=dt({separator:t},e)),new $t(e)):"string"===typeof e?new sn(e,t):"function"===typeof e?new cn(e):void 0}function un(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",dn(t,!0)))),r}function fn(e){return Ke(e.getUTCHours(),2)+":"+Ke(e.getUTCMinutes(),2)+":"+Ke(e.getUTCSeconds(),2)}function dn(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+Ke(o,2)+":"+Ke(i,2):"GMT"+n+o+(i?":"+Ke(i,2):"")}function pn(e,t,n,r){var o=hn(e,n.calendarSystem),i=t?hn(t,n.calendarSystem):null;return{date:o,start:o,end:i,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function hn(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 vn=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}(),gn=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 rr);else if(e in nr)"function"===typeof nr[e]&&(t=nr[e](t)),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in $n){var o=void 0;"function"===typeof $n[e]&&(t=$n[e](t)),"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:(r={},r[e]=t,o=r),this.mutate({standardProps:{ui:o}})}},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 o=this._instance.range,i=lt(o.start,r,n,t.granularity),a=null;if(t.maintainDuration){var s=lt(o.start,o.end,n,t.granularity),c=lt(r,o.end,n,t.granularity);a=xe(s,c)}this.mutate({startDelta:i,endDelta:a})}},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 o=lt(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o=this._calendar.dateEnv,i={allDay:n.allDay},a=o.createMarker(e);if(a&&(null==t||(r=o.createMarker(t),r))&&this._instance){var s=this._instance.range;!0===n.allDay&&(s=at(s));var c=lt(s.start,a,o,n.granularity);if(r){var l=lt(s.end,r,o,n.granularity);this.mutate({startDelta:c,endDelta:l,standardProps:i})}else i.hasEnd=!1,this.mutate({startDelta:c,standardProps:i})}},e.prototype.moveStart=function(e){var t=ye(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=ye(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=ye(e);t&&this.mutate({startDelta:t,endDelta: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=ln(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 vn(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 mn(e,t,n,r){var o={},i={},a={},s=[],c=[],l=Sn(e.defs,t);for(var u in e.defs){var f=e.defs[u];"inverse-background"===f.rendering&&(f.groupId?(o[f.groupId]=[],a[f.groupId]||(a[f.groupId]=f)):i[u]=[])}for(var d in e.instances){var p=e.instances[d],h=(f=e.defs[p.defId],l[f.defId]),v=p.range,g=!f.allDay&&r?st(v,r):v,m=Pt(g,n);m&&("inverse-background"===f.rendering?f.groupId?o[f.groupId].push(m):i[p.defId].push(m):("background"===f.rendering?s:c).push({def:f,ui:h,instance:p,range:m,isStart:g.start&&g.start.valueOf()===m.start.valueOf(),isEnd:g.end&&g.end.valueOf()===m.end.valueOf()}))}for(var y in o)for(var b=o[y],w=Ot(b,n),E=0,S=w;E<S.length;E++){var T=S[E];f=a[y],h=l[f.defId];s.push({def:f,ui:h,instance:null,range:T,isStart:!1,isEnd:!1})}for(var u in i){b=i[u],w=Ot(b,n);for(var D=0,x=w;D<x.length;D++){T=x[D];s.push({def:e.defs[u],ui:l[u],instance:null,range:T,isStart:!1,isEnd:!1})}}return{bg:s,fg:c}}function yn(e){return"background"===e.rendering||"inverse-background"===e.rendering}function bn(e,t,n){e.hasPublicHandlers("eventRender")&&(t=t.filter(function(t){var r=e.publiclyTrigger("eventRender",[{event:new gn(e.calendar,t.eventRange.def,t.eventRange.instance),isMirror:n,isStart:t.isStart,isEnd:t.isEnd,el:t.el,view:e}]);return!1!==r&&(r&&!0!==r&&(t.el=r),!0)}));for(var r=0,o=t;r<o.length;r++){var i=o[r];wn(i.el,i)}return t}function wn(e,t){e.fcSeg=t}function En(e){return e.fcSeg||null}function Sn(e,t){return mt(e,function(e){return Tn(e,t)})}function Tn(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),er(n)}function Dn(e,t,n,r){var o=Sn(e.defs,t),i=Rt();for(var a in e.defs){var s=e.defs[a];i.defs[a]=xn(s,o[a],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(var c in e.instances){var l=e.instances[c];s=i.defs[l.defId];i.instances[c]=Rn(l,s,o[l.defId],n,r)}return i}function xn(e,t,n,r,o){var i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&kn(t.startEditable?n.startDelta:null,n.endDelta||null)&&(i.hasEnd=!0);var a=dt({},e,i,{ui:dt({},e.ui,i.ui)});n.extendedProps&&(a.extendedProps=dt({},a.extendedProps,n.extendedProps));for(var s=0,c=r;s<c.length;s++){var l=c[s];l(a,n,o)}return!a.hasEnd&&o.opt("forceEventDuration")&&(a.hasEnd=!0),a}function kn(e,t){return e&&!_e(e)&&(e=null),t&&!_e(t)&&(t=null),!(!e&&!t)&&(Boolean(e)!==Boolean(t)||!Se(e,t))}function Rn(e,t,n,r,o){var i=o.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,c=dt({},e);return a&&(c.range=at(c.range)),r.startDelta&&n.startEditable&&(c.range={start:i.add(c.range.start,r.startDelta),end:c.range.end}),s?c.range={start:c.range.start,end:o.getDefaultEventEnd(t.allDay,c.range.start)}:!r.endDelta||!n.durationEditable&&kn(n.startEditable?r.startDelta:null,r.endDelta)||(c.range={start:c.range.start,end:i.add(c.range.end,r.endDelta)}),t.allDay&&(c.range={start:re(c.range.start),end:re(c.range.end)}),c.range.end<c.range.start&&(c.range.end=o.getDefaultEventEnd(t.allDay,c.range.start)),c}function In(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return Cn(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return Mn(e,t.eventStore,r?r.activeRange:null,o);case"MERGE_EVENTS":return It(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?St(e,r.activeRange,o):e;case"CHANGE_TIMEZONE":return On(e,t.oldDateEnv,o.dateEnv);case"MUTATE_EVENTS":return _n(e,t.instanceId,t.mutation,t.fromApi,o);case"REMOVE_EVENT_INSTANCES":return zn(e,t.instances);case"REMOVE_EVENT_DEF":return Ct(e,function(e){return e.defId!==t.defId});case"REMOVE_EVENT_SOURCE":return Pn(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ct(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return Rt();case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:return e}}function Cn(e,t,n,r,o,i){if(t&&n===t.latestFetchId){var a=wt(xt(o,t,i),t.sourceId,i);return r&&(a=St(a,r,i)),It(Pn(e,t.sourceId),a)}return e}function Mn(e,t,n,r){return n&&(t=St(t,n,r)),It(e,t)}function On(e,t,n){var r=e.defs,o=mt(e.instances,function(e){var o=r[e.defId];return o.allDay||o.recurringDef?e:dt({},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:o}}function _n(e,t,n,r,o){var i=Tt(e,t),a=r?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:o.eventUiBases;return i=Dn(i,a,n,o),It(e,i)}function Pn(e,t){return Ct(e,function(e){return e.sourceId!==t})}function zn(e,t){return{defs:e.defs,instances:gt(e.instances,function(e){return!t[e.instanceId]})}}function Hn(e,t){return Ln({eventDrag:e},t)}function Nn(e,t){return Ln({dateSelection:e},t)}function Ln(e,t){var n=t.view,r=dt({businessHours:n?n.props.businessHours:Rt(),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&&!An(e,t,n,r))&&!(e.dateSelection&&!Bn(e,t,n,r))}function An(e,t,n,r){var o=e.eventDrag,i=o.mutatedEvents,a=i.defs,s=i.instances,c=Sn(a,o.isEvent?e.eventUiBases:{"":t.selectionConfig});r&&(c=mt(c,r));var l=zn(e.eventStore,o.affectedEvents.instances),u=l.defs,f=l.instances,d=Sn(u,e.eventUiBases);for(var p in s){var h=s[p],v=h.range,g=c[h.defId],m=a[h.defId];if(!Vn(g.constraints,v,l,e.businessHours,t))return!1;var y=t.opt("eventOverlap");for(var b in"function"!==typeof y&&(y=null),f){var w=f[b];if(Ht(v,w.range)){var E=d[w.defId].overlap;if(!1===E&&o.isEvent)return!1;if(!1===g.overlap)return!1;if(y&&!y(new gn(t,u[w.defId],w),new gn(t,m,h)))return!1}}for(var S=0,T=g.allows;S<T.length;S++){var D=T[S],x=dt({},n,{range:h.range,allDay:m.allDay}),k=e.eventStore.defs[m.defId],R=e.eventStore.instances[p],I=void 0;if(I=k?new gn(t,k,R):new gn(t,m),!D(t.buildDateSpanApi(x),I))return!1}}return!0}function Bn(e,t,n,r){var o=e.eventStore,i=o.defs,a=o.instances,s=e.dateSelection,c=s.range,l=t.selectionConfig;if(r&&(l=r(l)),!Vn(l.constraints,c,o,e.businessHours,t))return!1;var u=t.opt("selectOverlap");for(var f in"function"!==typeof u&&(u=null),a){var d=a[f];if(Ht(c,d.range)){if(!1===l.overlap)return!1;if(u&&!u(new gn(t,i[d.defId],d)))return!1}}for(var p=0,h=l.allows;p<h.length;p++){var v=h[p],g=dt({},n,s);if(!v(t.buildDateSpanApi(g),null))return!1}return!0}function Vn(e,t,n,r,o){for(var i=0,a=e;i<a.length;i++){var s=a[i];if(!Wn(jn(s,t,n,r,o),t))return!1}return!0}function jn(e,t,n,r,o){return"businessHours"===e?Fn(St(r,t,o)):"string"===typeof e?Fn(Ct(n,function(t){return t.groupId===e})):"object"===typeof e&&e?Fn(St(e,t,o)):[]}function Fn(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Wn(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(Nt(o,t))return!0}return!1}function Zn(e,t){return Array.isArray(e)?wt(e,"",t,!0):"object"===typeof e&&e?wt([e],"",t,!0):null!=e?String(e):null}function Yn(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function Gn(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function qn(e){var t=[];for(var n in e){var r=e[n];null!=r&&t.push(n+'="'+Yn(r)+'"')}return t.join(" ")}function Xn(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}var $n={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:Xn,classNames:Xn,color:String,backgroundColor:String,borderColor:String,textColor:String};function Jn(e,t,n){var r=ot(e,$n,{},n),o=Zn(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=o?[o]:[],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 Kn(e,t,n,r){var o={},i={};for(var a in $n){var s=e+Je(a);o[a]=t[s],i[s]=!0}if("event"===e&&(o.editable=t.editable),r)for(var a in t)i[a]||(r[a]=t[a]);return Jn(o,n)}var Qn={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function er(e){return e.reduce(tr,Qn)}function tr(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 nr={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},rr={start:null,date:null,end:null,allDay:null},or=0;function ir(e,t,n,r){var o=fr(t,n),i={},a=pt(e,o,n.dateEnv,n.pluginSystem.hooks.recurringTypes,i);if(a){var s=ar(i,t,a.allDay,Boolean(a.duration),n);return s.recurringDef={typeId:a.typeId,typeData:a.typeData,duration:a.duration},{def:s,instance:null}}var c={},l=cr(e,o,n,c,r);if(l){s=ar(c,t,l.allDay,l.hasEnd,n);var u=sr(s.defId,l.range,l.forcedStartTzo,l.forcedEndTzo);return{def:s,instance:u}}return null}function ar(e,t,n,r,o){var i={},a=ur(e,o,i);a.defId=String(or++),a.sourceId=t,a.allDay=n,a.hasEnd=r;for(var s=0,c=o.pluginSystem.hooks.eventDefParsers;s<c.length;s++){var l=c[s],u={};l(a,i,u),i=u}return a.extendedProps=dt(i,a.extendedProps||{}),Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function sr(e,t,n,r){return{instanceId:String(or++),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function cr(e,t,n,r,o){var i,a,s=lr(e,r),c=s.allDay,l=null,u=!1,f=null;if(i=n.dateEnv.createMarkerMeta(s.start),i)l=i.marker;else if(!o)return null;return null!=s.end&&(a=n.