|
|
/*! * FullCalendar v3.1.0 * Docs & License: http://fullcalendar.io/
* (c) 2016 Adam Shaw */ (function(n){typeof define=="function"&&define.amd?define(["jquery","moment"],n):typeof exports=="object"?module.exports=n(require("jquery"),require("moment")):n(jQuery,moment)})(function(n,t){function tt(n){return fi(n,ki)}function di(n,t){t.left&&n.css({"border-left-width":1,"margin-left":t.left-1});t.right&&n.css({"border-right-width":1,"margin-right":t.right-1})}function gi(n){n.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function ot(){n("body").addClass("fc-not-allowed")}function st(){n("body").removeClass("fc-not-allowed")}function nr(t,i,r){var u=Math.floor(i/t.length),e=Math.floor(i-u*(t.length-1)),f=[],o=[],s=[],h=0;tr(t);t.each(function(i,r){var l=i===t.length-1?e:u,c=n(r).outerHeight(!0);c<l?(f.push(r),o.push(c),s.push(n(r).height())):h+=c});r&&(i-=h,u=Math.floor(i/f.length),e=Math.floor(i-u*(f.length-1)));n(f).each(function(t,i){var r=t===f.length-1?e:u,h=o[t],c=s[t],l=r-(h-c);h<r&&n(i).height(l)})}function tr(n){n.height("")}function ir(t){var i=0;return t.find("> *").each(function(t,r){var u=n(r).outerWidth();u>i&&(i=u)}),i++,t.width(i),i}function dt(n,t){var i=n.add(t),r;return i.css({position:"relative",left:-1}),r=n.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),r}function gt(t){var r=t.css("position"),i=t.parents().filter(function(){var t=n(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return r==="fixed"||!i.length?n(t[0].ownerDocument||document):i}function ni(n,t){var i=n.offset(),r=i.left-(t?t.left:0),u=i.top-(t?t.top:0);return{left:r,right:r+n.outerWidth(),top:u,bottom:u+n.outerHeight()}}function rr(n,t){var i=n.offset(),r=ti(n),u=i.left+nt(n,"border-left-width")+r.left-(t?t.left:0),f=i.top+nt(n,"border-top-width")+r.top-(t?t.top:0);return{left:u,right:u+n[0].clientWidth,top:f,bottom:f+n[0].clientHeight}}function tf(n,t){var i=n.offset(),r=i.left+nt(n,"border-left-width")+nt(n,"padding-left")-(t?t.left:0),u=i.top+nt(n,"border-top-width")+nt(n,"padding-top")-(t?t.top:0);return{left:r,right:r+n.width(),top:u,bottom:u+n.height()}}function ti(n){var i=n.innerWidth()-n[0].clientWidth,t={left:0,right:0,top:0,bottom:n.innerHeight()-n[0].clientHeight};return rf()&&n.css("direction")=="rtl"?t.left=i:t.right=i,t}function rf(){return ht===null&&(ht=uf()),ht}function uf(){var t=n("<div><div/><\/div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),i=t.children(),r=i.offset().left>t.offset().left;return t.remove(),r}function nt(n,t){return parseFloat(n.css(t))||0}function ur(n){return n.which==1&&!n.ctrlKey}function a(n){if(n.pageX!==undefined)return n.pageX;var t=n.originalEvent.touches;if(t)return t[0].pageX}function v(n){if(n.pageY!==undefined)return n.pageY;var t=n.originalEvent.touches;if(t)return t[0].pageY}function fr(n){return/^touch/.test(n.type)}function ff(n){n.addClass("fc-unselectable").on("selectstart",ct)}function ct(n){n.preventDefault()}function ef(n){return window.addEventListener?(window.addEventListener("scroll",n,!0),!0):!1}function of(n){return window.removeEventListener?(window.removeEventListener("scroll",n,!0),!0):!1}function er(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom?i:!1}function sf(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}}function hf(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function cf(n,t){return{left:n.left-t.left,top:n.top-t.top}}function or(t){var f=[],r=[],u,i;for(typeof t=="string"?r=t.split(/\s*,\s*/):typeof t=="function"?r=[t]:n.isArray(t)&&(r=t),u=0;u<r.length;u++)i=r[u],typeof i=="string"?f.push(i.charAt(0)=="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&f.push({func:i});return f}function sr(n,t,i){for(var u,r=0;r<i.length;r++)if(u=hr(n,t,i[r]),u)return u;return 0}function hr(n,t,i){return i.func?i.func(n,t):cr(n[i.field],t[i.field])*(i.order||1)}function cr(t,i
|