-
Notifications
You must be signed in to change notification settings - Fork 0
/
year.html
154 lines (133 loc) · 110 KB
/
year.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<!-- saved from url=(0049)http://epsy.ldtp.net/fullcalendar/demos/year.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<!-- <link href="./year_files/fullcalendar.print.css" rel="stylesheet" media="print"> -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<style>
.fc-bgevent,.fc-highlight{opacity:.3;filter:alpha(opacity=30)}.fc-button-group,.fc-icon{display:inline-block}.fc-day-grid .fc-row,.fc-row .fc-bg{z-index:1}.fc table,.fc-scroller>*{width:100%}.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}.fc th,.fc-basic-view .fc-week-number,.fc-toolbar{text-align:center}body .fc{font-size:1em}.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed hr,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-popover .fc-header,.fc-unthemed hr{background:#eee}.fc-unthemed .fc-popover .fc-header .fc-close{color:#666}.fc-unthemed .fc-today{background:#fcf8e3}.fc-highlight{background:#bce8f1}.fc-bgevent{background:#8fdf82}.fc-nonbusiness{background:#ccc}.fc-icon{font-size:2em;line-height:.5em;height:.5em;font-family:"Courier New",Courier,monospace}.fc-icon-left-single-arrow:after{content:"\02039";font-weight:700}.fc-icon-right-single-arrow:after{content:"\0203A";font-weight:700}.fc-icon-left-double-arrow:after{content:"\000AB"}.fc-icon-right-double-arrow:after{content:"\000BB"}.fc-icon-x:after{content:"\000D7"}.fc button{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;height:2.1em;padding:0 .6em;font-size:1em;white-space:nowrap;cursor:pointer}.fc button::-moz-focus-inner{margin:0;padding:0}.fc-state-default{border:1px solid;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.fc-state-default.fc-corner-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.fc-state-default.fc-corner-right{border-top-right-radius:4px;border-bottom-right-radius:4px}.fc button .fc-icon{position:relative;top:.05em;margin:0 .1em}.fc-state-active,.fc-state-disabled,.fc-state-down,.fc-state-hover{color:#333;background-color:#e6e6e6}.fc-state-hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.fc-state-active,.fc-state-down{background-color:#ccc;background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.fc-state-disabled{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);box-shadow:none}.fc-event.fc-draggable,.fc-event[href],.fc-popover .fc-header .fc-close{cursor:pointer}.fc .fc-button-group>*{float:left;margin:0 0 0 -1px}.fc .fc-button-group>:first-child{margin-left:0}.fc-popover{position:absolute;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc-popover .fc-header{padding:2px 4px}.fc-popover .fc-header .fc-title{margin:0 2px}.fc-ltr .fc-popover .fc-header .fc-title,.fc-rtl .fc-popover .fc-header .fc-close{float:left}.fc-ltr .fc-popover .fc-header .fc-close,.fc-rtl .fc-popover .fc-header .fc-title{float:right}.fc-unthemed .fc-popover{border-width:1px;border-style:solid}.fc-unthemed .fc-popover .fc-header .fc-close{font-size:25px;margin-top:4px}.fc-popover>.ui-widget-header+.ui-widget-content{border-top:0}.fc hr{height:0;margin:0;padding:0 0 2px;border-style:solid;border-width:1px 0}.fc-bg table,.fc-row .fc-bgevent-skeleton table,.fc-row .fc-highlight-skeleton table{height:100%}.fc-clear{clear:both}.fc-bg,.fc-bgevent-skeleton,.fc-helper-skeleton,.fc-highlight-skeleton{position:absolute;top:0;left:0;right:0}.fc-event,.fc-row,.fc-scroller>*{position:relative}.fc-bg{bottom:0}.fc table{table-layout:fixed;border-collapse:collapse;border-spacing:0;font-size:1em}.fc td,.fc th{border-style:solid;border-width:1px;padding:0;vertical-align:top}.fc td.fc-today{border-style:double}.fc .fc-row{border-style:solid;border-width:0}.fc-row table{border-left:0 hidden transparent;border-right:0 hidden transparent;border-bottom:0 hidden transparent}.fc-row:first-child table{border-top:0 hidden transparent}.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc-row .fc-bgevent-skeleton td,.fc-row .fc-highlight-skeleton td{border-color:transparent}.fc-row .fc-bgevent-skeleton{z-index:2}.fc-row .fc-highlight-skeleton{z-index:3}.fc-row .fc-content-skeleton{position:relative;z-index:4;padding-bottom:2px}.fc-row .fc-helper-skeleton{z-index:5}.fc-row .fc-content-skeleton td,.fc-row .fc-helper-skeleton td{background:0 0;border-color:transparent;border-bottom:0}.fc-row .fc-content-skeleton tbody td,.fc-row .fc-helper-skeleton tbody td{border-top:0}.fc-scroller{overflow-y:scroll;overflow-x:hidden}.fc-row.fc-rigid,.fc-scroller>*{overflow:hidden}.fc-event{display:block;font-size:.85em;line-height:1.3;border-radius:3px;border:1px solid #3a87ad;background-color:#3a87ad;font-weight:400}.fc-event,.fc-event:hover,.ui-widget .fc-event{color:#fff;text-decoration:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-day-grid-event{margin:1px 2px 0;padding:0 1px}.fc-ltr .fc-day-grid-event.fc-not-start,.fc-rtl .fc-day-grid-event.fc-not-end{margin-left:0;border-left-width:0;padding-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-ltr .fc-day-grid-event.fc-not-end,.fc-rtl .fc-day-grid-event.fc-not-start{margin-right:0;border-right-width:0;padding-right:1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-day-grid-event>.fc-content{white-space:nowrap;overflow:hidden}.fc-day-grid-event .fc-time{font-weight:700}.fc-day-grid-event .fc-resizer{position:absolute;top:0;bottom:0;width:7px}.fc-ltr .fc-day-grid-event .fc-resizer{right:-3px;cursor:e-resize}.fc-rtl .fc-day-grid-event .fc-resizer{left:-3px;cursor:w-resize}a.fc-more{margin:1px 3px;font-size:.85em;cursor:pointer;text-decoration:none}a.fc-more:hover{text-decoration:underline}.fc-limited{display:none}.fc-more-popover{z-index:2;width:220px}.fc-more-popover .fc-event-container{padding:10px}.fc-toolbar{margin-bottom:1em}.fc-toolbar .fc-left{float:left}.fc-toolbar .fc-right{float:right}.fc-toolbar .fc-center{display:inline-block}.fc .fc-toolbar>*>*{float:left;margin-left:.75em}.fc .fc-toolbar>*>:first-child{margin-left:0}.fc-toolbar h2{margin:0}.fc-toolbar button{position:relative}.fc-toolbar .fc-state-hover,.fc-toolbar .ui-state-hover{z-index:2}.fc-toolbar .fc-state-down{z-index:3}.fc-toolbar .fc-state-active,.fc-toolbar .ui-state-active{z-index:4}.fc-toolbar button:focus{z-index:5}.fc-view-container *,.fc-view-container :after,.fc-view-container :before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fc-view,.fc-view>table{position:relative;z-index:1}.fc-basicDay-view .fc-content-skeleton,.fc-basicWeek-view .fc-content-skeleton{padding-top:1px;padding-bottom:1em}.fc-basic-view tbody .fc-row{min-height:4em}.fc-row.fc-rigid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-basic-view .fc-day-number,.fc-basic-view .fc-week-number{padding:0 2px}.fc-basic-view td.fc-day-number,.fc-basic-view td.fc-week-number span{padding-top:2px;padding-bottom:2px}.fc-basic-view .fc-week-number span{display:inline-block;min-width:1.25em}.fc-ltr .fc-basic-view .fc-day-number{text-align:right}.fc-rtl .fc-basic-view .fc-day-number{text-align:left}.fc-day-number.fc-other-month{opacity:.3;filter:alpha(opacity=30)}.fc-year-main-table{border-spacing:5px}.fc td.fc-year-month-border,.fc td.fc-year-month-separator,.fc td.fc-year-monthly-td{border-color:transparent}.fc-year-view .fc-row .fc-bg table,.fc-year-view .fc-row table.fc-year-month-header{border-left:1px solid #ddd;border-right:1px solid #ddd}.fc-year-monthly-td{text-align:center}.fc-year-month-border.fc-first,.fc-year-month-border.fc-last{width:0;max-width:8px}.fc-year-month-separator{width:8px}.fc-year-monthly-name{margin-top:16px;line-height:24px}.fc-year-monthly-name.fc-first{margin-top:0}.fc-year-monthly-name a{color:#000;font-size:1.2em;font-weight:700;text-decoration:none}.fc-year-view .fc-row.fc-last .fc-bg table{border-bottom:1px solid #ddd}.fc-year-view .fc-day-header.ui-widget-header,.fc-year-view .fc-week-number-head.ui-widget-header{border-bottom-width:2px}.fc-year-view .fc-rigid.fc-row{overflow:inherit}.fc-year-view .fc-day-grid .fc-row{min-height:42px}.fc-year-view table{font-size:.9em}.fc-ltr .fc-year-view .fc-day-number{text-align:right}.fc-year-view td.fc-day-number{padding:0 2px}.fc-year-view th.fc-week-number-head{font-size:.85em;font-weight:400}.fc-year-view .fc-week-number-head{max-width:22px;overflow-x:hidden;vertical-align:middle}.fc-year-view td.fc-week-number{text-align:center;border-left-width:1px;border-left-style:solid;font-size:.92em;font-weight:400;padding-left:2px}.fc-year-view .fc-event{font-size:.76em;line-height:1.15;text-align:left;border-radius:2px}.fc-year-view .fc-event-inner{white-space:nowrap;text-overflow:ellipsis}.fc-year-view .fc-time{display:none}.fc-agenda-view .fc-day-grid{position:relative;z-index:2}.fc-agenda-view .fc-day-grid .fc-row{min-height:3em}.fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton{padding-top:1px;padding-bottom:1em}.fc .fc-axis{vertical-align:middle;padding:0 4px;white-space:nowrap}.fc-ltr .fc-axis{text-align:right}.fc-rtl .fc-axis{text-align:left}.ui-widget td.fc-axis{font-weight:400}.fc-time-grid,.fc-time-grid-container{position:relative;z-index:1}.fc-time-grid{min-height:100%}.fc-time-grid table{border:0 hidden transparent}.fc-time-grid>.fc-bg{z-index:1}.fc-time-grid .fc-slats,.fc-time-grid>hr{position:relative;z-index:2}.fc-time-grid .fc-bgevent-skeleton,.fc-time-grid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-time-grid .fc-bgevent-skeleton{z-index:3}.fc-time-grid .fc-highlight-skeleton{z-index:4}.fc-time-grid .fc-content-skeleton{z-index:5}.fc-time-grid .fc-helper-skeleton{z-index:6}.fc-slats td{height:1.5em;border-bottom:0}.fc-slats .fc-minor td{border-top-style:dotted}.fc-slats .ui-widget-content{background:0 0}.fc-time-grid .fc-highlight-container{position:relative}.fc-time-grid .fc-highlight{position:absolute;left:0;right:0}.fc-time-grid .fc-bgevent-container,.fc-time-grid .fc-event-container{position:relative}.fc-ltr .fc-time-grid .fc-event-container{margin:0 2.5% 0 2px}.fc-rtl .fc-time-grid .fc-event-container{margin:0 2px 0 2.5%}.fc-time-grid .fc-bgevent,.fc-time-grid .fc-event{position:absolute;z-index:1}.fc-time-grid .fc-bgevent{left:0;right:0}.fc-time-grid-event.fc-not-start{border-top-width:0;padding-top:1px;border-top-left-radius:0;border-top-right-radius:0}.fc-time-grid-event.fc-not-end{border-bottom-width:0;padding-bottom:1px;border-bottom-left-radius:0;border-bottom-right-radius:0}.fc-time-grid-event{overflow:hidden}.fc-time-grid-event>.fc-content{position:relative;z-index:2}.fc-time-grid-event .fc-time,.fc-time-grid-event .fc-title{padding:0 1px}.fc-time-grid-event .fc-time{font-size:.85em;white-space:nowrap}.fc-time-grid-event .fc-bg{z-index:1;background:#fff;opacity:.25;filter:alpha(opacity=25)}.fc-time-grid-event.fc-short .fc-content{white-space:nowrap}.fc-time-grid-event.fc-short .fc-time,.fc-time-grid-event.fc-short .fc-title{display:inline-block;vertical-align:top}.fc-time-grid-event.fc-short .fc-time span{display:none}.fc-time-grid-event.fc-short .fc-time:before{content:attr(data-start)}.fc-time-grid-event.fc-short .fc-time:after{content:"\000A0-\000A0"}.fc-time-grid-event.fc-short .fc-title{font-size:.85em;padding:0}.fc-time-grid-event .fc-resizer{position:absolute;z-index:3;left:0;right:0;bottom:0;height:8px;overflow:hidden;line-height:8px;font-size:11px;font-family:monospace;text-align:center;cursor:s-resize}.fc-time-grid-event .fc-resizer:after{content:"="}
</style>
<script>
!function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)}(function(t,e){function n(t){i(St,t)}function i(e){function n(n,s){t.isPlainObject(s)&&t.isPlainObject(e[n])&&!r(n)?e[n]=i({},e[n],s):void 0!==s&&(e[n]=s)}for(var s=1;s<arguments.length;s++)t.each(arguments[s],n);return e}function r(t){return/(Time|Duration)$/.test(t)}function s(t){var n=e.localeData||e.langData;return n.call(e,t)||n.call(e,"en")}function o(t,e){e.left&&t.css({"border-left-width":1,"margin-left":e.left-1}),e.right&&t.css({"border-right-width":1,"margin-right":e.right-1})}function a(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function l(){t("body").addClass("fc-not-allowed")}function d(){t("body").removeClass("fc-not-allowed")}function u(e,n,i){var r=Math.floor(n/e.length),s=Math.floor(n-r*(e.length-1)),o=[],a=[],l=[],d=0;c(e),e.each(function(n,i){var u=n===e.length-1?s:r,c=t(i).outerHeight(!0);u>c?(o.push(i),a.push(c),l.push(t(i).height())):d+=c}),i&&(n-=d,r=Math.floor(n/o.length),s=Math.floor(n-r*(o.length-1))),t(o).each(function(e,n){var i=e===o.length-1?s:r,d=a[e],u=l[e],c=i-(d-u);i>d&&t(n).height(c)})}function c(t){t.height("")}function h(e){var n=0;return e.find("> *").each(function(e,i){var r=t(i).outerWidth();r>n&&(n=r)}),n++,e.width(n),n}function f(t,e){return t.height(e).addClass("fc-scroller"),t[0].scrollHeight-1>t[0].clientHeight?!0:(g(t),!1)}function g(t){t.height("").removeClass("fc-scroller")}function p(e){var n=e.css("position"),i=e.parents().filter(function(){var e=t(this);return/(auto|scroll)/.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&i.length?i:t(e[0].ownerDocument||document)}function m(t){var e=t.offset().left,n=e+t.width(),i=t.children(),r=i.offset().left,s=r+i.outerWidth();return{left:r-e,right:n-s}}function v(t){return 1==t.which&&!t.ctrlKey}function y(t,e){var n,i,r,s,o=t.start,a=t.end,l=e.start,d=e.end;return a>l&&d>o?(o>=l?(n=o.clone(),r=!0):(n=l.clone(),r=!1),d>=a?(i=a.clone(),s=!0):(i=d.clone(),s=!1),{start:n,end:i,isStart:r,isEnd:s}):void 0}function w(t,e){if(t=t||{},void 0!==t[e])return t[e];for(var n,i=e.split(/(?=[A-Z])/),r=i.length-1;r>=0;r--)if(n=t[i[r].toLowerCase()],void 0!==n)return n;return t["default"]}function b(t,n){return e.duration({days:t.clone().stripTime().diff(n.clone().stripTime(),"days"),ms:t.time()-n.time()})}function S(t,n){return e.duration({days:t.clone().stripTime().diff(n.clone().stripTime(),"days")})}function E(t,e){var n,i,r;for(n=0;n<Nt.length&&(i=Nt[n],r=C(i,t,e),!(r>=1&&L(r)));n++);return i}function C(t,n,i){return null!=i?i.diff(n,t,!0):e.isDuration(n)?n.as(t):n.end.diff(n.start,t,!0)}function D(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function T(t){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t)}function k(t){var e=function(){};return e.prototype=t,new e}function H(t,e){for(var n in t)M(t,n)&&(e[n]=t[n])}function x(t,e){var n,i,r=["constructor","toString","valueOf"];for(n=0;n<r.length;n++)i=r[n],t[i]!==Object.prototype[i]&&(e[i]=t[i])}function M(t,e){return Vt.call(t,e)}function R(e){return/undefined|null|boolean|number|string/.test(t.type(e))}function F(e,n,i){if(t.isFunction(e)&&(e=[e]),e){var r,s;for(r=0;r<e.length;r++)s=e[r].apply(n,i)||s;return s}}function G(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}function N(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function V(t){return t.replace(/&.*?;/g,"")}function Y(t){return t.charAt(0).toUpperCase()+t.slice(1)}function z(t,e){return t-e}function L(t){return t%1===0}function _(t,e){var n,i,r,s,o=function(){var a=+new Date-s;e>a&&a>0?n=setTimeout(o,e-a):(n=null,t.apply(r,i),n||(r=i=null))};return function(){r=this,i=arguments,s=+new Date,n||(n=setTimeout(o,e))}}function P(n,i,r){var s,o,a,l,d=n[0],u=1==n.length&&"string"==typeof d;return e.isMoment(d)?(l=e.apply(null,n),O(d,l)):D(d)||void 0===d?l=e.apply(null,n):(s=!1,o=!1,u?Yt.test(d)?(d+="-01",n=[d],s=!0,o=!0):(a=zt.exec(d))&&(s=!a[5],o=!0):t.isArray(d)&&(o=!0),l=i||s?e.utc.apply(e,n):e.apply(null,n),s?(l._ambigTime=!0,l._ambigZone=!0):r&&(o?l._ambigZone=!0:u&&l.zone(d))),l._fullCalendar=!0,l}function A(t,n){var i,r,s=!1,o=!1,a=t.length,l=[];for(i=0;a>i;i++)r=t[i],e.isMoment(r)||(r=Dt.moment.parseZone(r)),s=s||r._ambigTime,o=o||r._ambigZone,l.push(r);for(i=0;a>i;i++)r=l[i],n||!s||r._ambigTime?o&&!r._ambigZone&&(l[i]=r.clone().stripZone()):l[i]=r.clone().stripTime();return l}function O(t,e){t._ambigTime?e._ambigTime=!0:e._ambigTime&&(e._ambigTime=!1),t._ambigZone?e._ambigZone=!0:e._ambigZone&&(e._ambigZone=!1)}function B(t,e){t.year(e[0]||0).month(e[1]||0).date(e[2]||0).hours(e[3]||0).minutes(e[4]||0).seconds(e[5]||0).milliseconds(e[6]||0)}function W(t,e){return _t.format.call(t,e)}function I(t,e){return Z(t,q(e))}function Z(t,e){var n,i="";for(n=0;n<e.length;n++)i+=j(t,e[n]);return i}function j(t,e){var n,i;return"string"==typeof e?e:(n=e.token)?Pt[n]?Pt[n](t):W(t,n):e.maybe&&(i=Z(t,e.maybe),i.match(/[1-9]/))?i:""}function X(t,e,n,i,r){var s;return t=Dt.moment.parseZone(t),e=Dt.moment.parseZone(e),s=(t.localeData||t.lang).call(t),n=s.longDateFormat(n)||n,i=i||" - ",U(t,e,q(n),i,r)}function U(t,e,n,i,r){var s,o,a,l,d="",u="",c="",h="",f="";for(o=0;o<n.length&&(s=$(t,e,n[o]),s!==!1);o++)d+=s;for(a=n.length-1;a>o&&(s=$(t,e,n[a]),s!==!1);a--)u=s+u;for(l=o;a>=l;l++)c+=j(t,n[l]),h+=j(e,n[l]);return(c||h)&&(f=r?h+i+c:c+i+h),d+f+u}function $(t,e,n){var i,r;return"string"==typeof n?n:(i=n.token)&&(r=At[i.charAt(0)],r&&t.isSame(e,r))?W(t,i):!1}function q(t){return t in Ot?Ot[t]:Ot[t]=K(t)}function K(t){for(var e,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LT|(\w)\4*o?)|([^\w\[\(]+)/g;e=i.exec(t);)e[1]?n.push(e[1]):e[2]?n.push({maybe:K(e[2])}):e[3]?n.push({token:e[3]}):e[5]&&n.push(e[5]);return n}function Q(){}function J(t,e){return t||e?t&&e?t.grid===e.grid&&t.row===e.row&&t.col===e.col:!1:!0}function tt(t){var e=nt(t);return"background"===e||"inverse-background"===e}function et(t){return"inverse-background"===nt(t)}function nt(t){return G((t.source||{}).rendering,t.rendering)}function it(t){var e,n,i={};for(e=0;e<t.length;e++)n=t[e],(i[n._id]||(i[n._id]=[])).push(n);return i}function rt(t,e){return t.eventStartMS-e.eventStartMS}function st(t,e){return t.eventStartMS-e.eventStartMS||e.eventDurationMS-t.eventDurationMS||e.event.allDay-t.event.allDay||(t.event.title||"").localeCompare(e.event.title)}function ot(n){var i,r,s,o,a=Dt.dataAttrPrefix;return a&&(a+="-"),i=n.data(a+"event")||null,i&&(i="object"==typeof i?t.extend({},i):{},r=i.start,null==r&&(r=i.time),s=i.duration,o=i.stick,delete i.start,delete i.time,delete i.duration,delete i.stick),null==r&&(r=n.data(a+"start")),null==r&&(r=n.data(a+"time")),null==s&&(s=n.data(a+"duration")),null==o&&(o=n.data(a+"stick")),r=null!=r?e.duration(r):null,s=null!=s?e.duration(s):null,o=Boolean(o),{eventProps:i,startTime:r,duration:s,stick:o}}function at(t,e){var n,i;for(n=0;n<e.length;n++)if(i=e[n],i.leftCol<=t.rightCol&&i.rightCol>=t.leftCol)return!0;return!1}function lt(t,e){return t.leftCol-e.leftCol}function dt(t){var e,n,i;if(t.sort(st),e=ut(t),ct(e),n=e[0]){for(i=0;i<n.length;i++)ht(n[i]);for(i=0;i<n.length;i++)ft(n[i],0,0)}}function ut(t){var e,n,i,r=[];for(e=0;e<t.length;e++){for(n=t[e],i=0;i<r.length&>(n,r[i]).length;i++);n.level=i,(r[i]||(r[i]=[])).push(n)}return r}function ct(t){var e,n,i,r,s;for(e=0;e<t.length;e++)for(n=t[e],i=0;i<n.length;i++)for(r=n[i],r.forwardSegs=[],s=e+1;s<t.length;s++)gt(r,t[s],r.forwardSegs)}function ht(t){var e,n,i=t.forwardSegs,r=0;if(void 0===t.forwardPressure){for(e=0;e<i.length;e++)n=i[e],ht(n),r=Math.max(r,1+n.forwardPressure);t.forwardPressure=r}}function ft(t,e,n){var i,r=t.forwardSegs;if(void 0===t.forwardCoord)for(r.length?(r.sort(mt),ft(r[0],e+1,n),t.forwardCoord=r[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-n)/(e+1),i=0;i<r.length;i++)ft(r[i],0,t.forwardCoord)}function gt(t,e,n){n=n||[];for(var i=0;i<e.length;i++)pt(t,e[i])&&n.push(e[i]);return n}function pt(t,e){return t.bottom>e.top&&t.top<e.bottom}function mt(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||st(t,e)}function vt(n,r){function o(t){return(t.locale||t.lang).call(t,Q.lang).humanize()}function a(t){it?u()&&(v(),c(t)):l()}function l(){rt=Q.theme?"ui":"fc",n.addClass("fc"),Q.isRTL?n.addClass("fc-rtl"):n.addClass("fc-ltr"),Q.theme?n.addClass("ui-widget"):n.addClass("fc-unthemed"),it=t("<div class='fc-view-container'/>").prependTo(n),et=new yt(q,Q),nt=et.render(),nt&&n.prepend(nt),c(Q.defaultView),Q.handleWindowResize&&(at=_(w,Q.windowResizeDelay),t(window).resize(at))}function d(){st&&st.destroyView(),et.destroy(),it.remove(),n.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),t(window).unbind("resize",at)}function u(){return n.is(":visible")}function c(e){ft++,st&&e&&st.type!==e&&(et.deactivateButton(st.type),I(),st.start&&st.destroyView(),st.el.remove(),st=null),!st&&e&&(st=h(e),st.el=t("<div class='fc-view fc-"+e+"-view' />").appendTo(it),et.activateButton(e)),st&&(lt=st.massageCurrentDate(lt),st.start&<.isWithin(st.intervalStart,st.intervalEnd)||u()&&(I(),st.start&&st.destroyView(),st.setDate(lt),st.renderView(),Z(),M(),R(),D())),Z(),ft--}function h(t){var e=f(t);return new e["class"](q,e.options,t)}function f(n){function i(e){"function"==typeof e?s=e:"object"==typeof e&&t.extend(r,e)}var r,s,a,l,d,u=Q.defaultButtonText||{},c=Q.buttonText||{},h=Q.views||{},f=n,g=[],p=!1;if(ht[n])return ht[n];for(;f&&!s;)r={},i(Tt[f]),i(h[f]),g.unshift(r),f=r.type;return g.unshift({}),r=t.extend.apply(t,g),s?(a=r.duration||s.duration,a&&(a=e.duration(a),l=E(a),p=1===a.as(l)),p&&h[l]&&(r=t.extend({},h[l],r)),d=c[n]||(p?c[l]:null)||u[n]||(p?u[l]:null)||r.buttonText||s.buttonText||(a?o(a):null)||n,ht[n]={"class":s,options:r,buttonText:d}):void 0}function g(t){return Boolean(f(t))}function p(t){var e=f(t);return e?e.buttonText:void 0}function m(t){return u()?(t&&y(),ft++,st.updateSize(!0),ft--,!0):void 0}function v(){u()&&y()}function y(){ot="number"==typeof Q.contentHeight?Q.contentHeight:"number"==typeof Q.height?Q.height-(nt?nt.outerHeight(!0):0):Math.round(it.width()/Math.max(Q.aspectRatio,.5))}function w(t){!ft&&t.target===window&&st.start&&m(!0)&&st.trigger("windowResize",ct)}function b(){C(),T()}function S(){u()&&(I(),st.destroyViewEvents(),st.renderViewEvents(gt),Z())}function C(){I(),st.destroyViewEvents(),Z()}function D(){!Q.lazyFetching||dt(st.start,st.end)?T():S()}function T(){ut(st.start,st.end)}function H(t){gt=t,S()}function x(){S()}function M(){et.updateTitle(st.title)}function R(){var t=q.getNow();t.isWithin(st.intervalStart,st.intervalEnd)?et.disableButton("today"):et.enableButton("today")}function F(t,e){t=q.moment(t),e=e?q.moment(e):t.hasTime()?t.clone().add(q.defaultTimedEventDuration):t.clone().add(q.defaultAllDayEventDuration),st.select({start:t,end:e})}function G(){st&&st.unselect()}function N(){lt=st.computePrevDate(lt),c()}function V(){lt=st.computeNextDate(lt),c()}function z(){lt.add(-1,"years"),c()}function L(){lt.add(1,"years"),c()}function P(){lt=q.getNow(),c()}function A(t){lt=q.moment(t),c()}function O(t){lt.add(e.duration(t)),c()}function B(t,e){var n,i;e&&g(e)||(e=e||"day",n=et.getViewsWithButtons().join(" "),i=n.match(new RegExp("\\w+"+Y(e))),i||(i=n.match(/\w+Day/)),e=i?i[0]:"agendaDay"),lt=t,c(e)}function W(){return lt.clone()}function I(){it.css({width:"100%",height:it.height(),overflow:"hidden"})}function Z(){it.css({width:"",height:"",overflow:""})}function j(){return q}function X(){return st}function U(t,e){return void 0===e?Q[t]:void(("height"==t||"contentHeight"==t||"aspectRatio"==t)&&(Q[t]=e,m(!0)))}function $(t,e){return Q[t]?Q[t].apply(e||ct,Array.prototype.slice.call(arguments,2)):void 0}var q=this;r=r||{};var K,Q=i({},St,r);K=Q.lang in kt?kt[Q.lang]:kt[St.lang],K&&(Q=i({},St,K,r)),Q.isRTL&&(Q=i({},St,Ct,K||{},r)),q.options=Q,q.render=a,q.destroy=d,q.refetchEvents=b,q.reportEvents=H,q.reportEventChange=x,q.rerenderEvents=S,q.changeView=c,q.select=F,q.unselect=G,q.prev=N,q.next=V,q.prevYear=z,q.nextYear=L,q.today=P,q.gotoDate=A,q.incrementDate=O,q.zoomTo=B,q.getDate=W,q.getCalendar=j,q.getView=X,q.option=U,q.trigger=$,q.isValidViewType=g,q.getViewButtonText=p;var J=k(s(Q.lang));if(Q.monthNames&&(J._months=Q.monthNames),Q.monthNamesShort&&(J._monthsShort=Q.monthNamesShort),Q.dayNames&&(J._weekdays=Q.dayNames),Q.dayNamesShort&&(J._weekdaysShort=Q.dayNamesShort),null!=Q.firstDay){var tt=k(J._week);tt.dow=Q.firstDay,J._week=tt}q.defaultAllDayEventDuration=e.duration(Q.defaultAllDayEventDuration),q.defaultTimedEventDuration=e.duration(Q.defaultTimedEventDuration),q.moment=function(){var t;return"local"===Q.timezone?(t=Dt.moment.apply(null,arguments),t.hasTime()&&t.local()):t="UTC"===Q.timezone?Dt.moment.utc.apply(null,arguments):Dt.moment.parseZone.apply(null,arguments),"_locale"in t?t._locale=J:t._lang=J,t},q.getIsAmbigTimezone=function(){return"local"!==Q.timezone&&"UTC"!==Q.timezone},q.rezoneDate=function(t){return q.moment(t.toArray())},q.getNow=function(){var t=Q.now;return"function"==typeof t&&(t=t()),q.moment(t)},q.calculateWeekNumber=function(t){var e=Q.weekNumberCalculation;return"function"==typeof e?e(t):"local"===e?t.week():"ISO"===e.toUpperCase()?t.isoWeek():void 0},q.getEventEnd=function(t){return t.end?t.end.clone():q.getDefaultEventEnd(t.allDay,t.start)},q.getDefaultEventEnd=function(t,e){var n=e.clone();return t?n.stripTime().add(q.defaultAllDayEventDuration):n.add(q.defaultTimedEventDuration),q.getIsAmbigTimezone()&&n.stripZone(),n},wt.call(q,Q);var et,nt,it,rt,st,ot,at,lt,dt=q.isFetchNeeded,ut=q.fetchEvents,ct=n[0],ht={},ft=0,gt=[];lt=null!=Q.defaultDate?q.moment(Q.defaultDate):q.getNow(),q.getSuggestedViewHeight=function(){return void 0===ot&&v(),ot},q.isHeightAuto=function(){return"auto"===Q.contentHeight||"auto"===Q.height}}function yt(e,n){function i(){var e=n.header;return f=n.theme?"ui":"fc",e?g=t("<div class='fc-toolbar'/>").append(s("left")).append(s("right")).append(s("center")).append('<div class="fc-clear"/>'):void 0}function r(){g.remove()}function s(i){var r=t('<div class="fc-'+i+'"/>'),s=n.header[i];return s&&t.each(s.split(" "),function(i){var s,o=t(),a=!0;t.each(this.split(","),function(i,r){var s,l,d,u,c,h,g,m,v;"title"==r?(o=o.add(t("<h2> </h2>")),a=!1):(e[r]?s=function(){e[r]()}:e.isValidViewType(r)&&(s=function(){e.changeView(r)},p.push(r),c=e.getViewButtonText(r)),s&&(l=w(n.themeButtonIcons,r),d=w(n.buttonIcons,r),u=w(n.defaultButtonText,r),h=w(n.buttonText,r),g=c||h?N(c||h):l&&n.theme?"<span class='ui-icon ui-icon-"+l+"'></span>":d&&!n.theme?"<span class='fc-icon fc-icon-"+d+"'></span>":N(u||r),m=["fc-"+r+"-button",f+"-button",f+"-state-default"],v=t('<button type="button" class="'+m.join(" ")+'">'+g+"</button>").click(function(){v.hasClass(f+"-state-disabled")||(s(),(v.hasClass(f+"-state-active")||v.hasClass(f+"-state-disabled"))&&v.removeClass(f+"-state-hover"))}).mousedown(function(){v.not("."+f+"-state-active").not("."+f+"-state-disabled").addClass(f+"-state-down")}).mouseup(function(){v.removeClass(f+"-state-down")}).hover(function(){v.not("."+f+"-state-active").not("."+f+"-state-disabled").addClass(f+"-state-hover")},function(){v.removeClass(f+"-state-hover").removeClass(f+"-state-down")}),o=o.add(v)))}),a&&o.first().addClass(f+"-corner-left").end().last().addClass(f+"-corner-right").end(),o.length>1?(s=t("<div/>"),a&&s.addClass("fc-button-group"),s.append(o),r.append(s)):r.append(o)}),r}function o(t){g.find("h2").text(t)}function a(t){g.find(".fc-"+t+"-button").addClass(f+"-state-active")}function l(t){g.find(".fc-"+t+"-button").removeClass(f+"-state-active")}function d(t){g.find(".fc-"+t+"-button").attr("disabled","disabled").addClass(f+"-state-disabled")}function u(t){g.find(".fc-"+t+"-button").removeAttr("disabled").removeClass(f+"-state-disabled")}function c(){return p}var h=this;h.render=i,h.destroy=r,h.updateTitle=o,h.activateButton=a,h.deactivateButton=l,h.disableButton=d,h.enableButton=u,h.getViewsWithButtons=c;var f,g=t(),p=[]}function wt(n){function i(t,e){return!B||t.clone().stripZone()<B.clone().stripZone()||e.clone().stripZone()>W.clone().stripZone()}function r(t,e){B=t,W=e,Q=[];var n=++$,i=U.length;q=i;for(var r=0;i>r;r++)s(U[r],n)}function s(e,n){o(e,function(i){var r,s,o,a=t.isArray(e.events);if(n==$){if(i)for(r=0;r<i.length;r++)s=i[r],o=a?s:E(s,e),o&&Q.push.apply(Q,H(o));q--,q||j(Q)}})}function o(e,i){var r,s,a=Dt.sourceFetchers;for(r=0;r<a.length;r++){if(s=a[r].call(O,e,B.clone(),W.clone(),n.timezone,i),s===!0)return;if("object"==typeof s)return void o(s,i)}var l=e.events;if(l)t.isFunction(l)?(y(),l.call(O,B.clone(),W.clone(),n.timezone,function(t){i(t),w()})):t.isArray(l)?i(l):i();else{var d=e.url;if(d){var u,c=e.success,h=e.error,f=e.complete;u=t.isFunction(e.data)?e.data():e.data;var g=t.extend({},u||{}),p=G(e.startParam,n.startParam),m=G(e.endParam,n.endParam),v=G(e.timezoneParam,n.timezoneParam);p&&(g[p]=B.format()),m&&(g[m]=W.format()),n.timezone&&"local"!=n.timezone&&(g[v]=n.timezone),y(),t.ajax(t.extend({},Qt,e,{data:g,success:function(e){e=e||[];var n=F(c,this,arguments);t.isArray(n)&&(e=n),i(e)},error:function(){F(h,this,arguments),i()},complete:function(){F(f,this,arguments),w()}}))}else i()}}function a(t){var e=l(t);e&&(U.push(e),q++,s(e,$))}function l(e){var n,i,r=Dt.sourceNormalizers;if(t.isFunction(e)||t.isArray(e)?n={events:e}:"string"==typeof e?n={url:e}:"object"==typeof e&&(n=t.extend({},e)),n){for(n.className?"string"==typeof n.className&&(n.className=n.className.split(/\s+/)):n.className=[],t.isArray(n.events)&&(n.origArray=n.events,n.events=t.map(n.events,function(t){return E(t,n)})),i=0;i<r.length;i++)r[i].call(O,n);return n}}function d(e){U=t.grep(U,function(t){return!u(t,e)}),Q=t.grep(Q,function(t){return!u(t.source,e)}),j(Q)}function u(t,e){return t&&e&&c(t)==c(e)}function c(t){return("object"==typeof t?t.origArray||t.googleCalendarId||t.url||t.events:null)||t}function h(t){t.start=O.moment(t.start),t.end?t.end=O.moment(t.end):t.end=null,x(t,f(t)),j(Q)}function f(e){var n={};return t.each(e,function(t,e){g(t)&&void 0!==e&&R(e)&&(n[t]=e)}),n}function g(t){return!/^_|^(id|allDay|start|end)$/.test(t)}function p(t,e){var n,i,r,s=E(t);if(s){for(n=H(s),i=0;i<n.length;i++)r=n[i],r.source||(e&&(X.events.push(r),r.source=X),Q.push(r));return j(Q),n}return[]}function m(e){var n,i;for(null==e?e=function(){return!0}:t.isFunction(e)||(n=e+"",e=function(t){return t._id==n}),Q=t.grep(Q,e,!0),i=0;i<U.length;i++)t.isArray(U[i].events)&&(U[i].events=t.grep(U[i].events,e,!0));j(Q)}function v(e){return t.isFunction(e)?t.grep(Q,e):null!=e?(e+="",t.grep(Q,function(t){return t._id==e})):Q}function y(){K++||I("loading",null,!0,Z())}function w(){--K||I("loading",null,!1,Z())}function E(i,r){var s,o,a,l={};if(n.eventDataTransform&&(i=n.eventDataTransform(i)),r&&r.eventDataTransform&&(i=r.eventDataTransform(i)),t.extend(l,i),r&&(l.source=r),l._id=i._id||(void 0===i.id?"_fc"+Jt++:i.id+""),i.className?"string"==typeof i.className?l.className=i.className.split(/\s+/):l.className=i.className:l.className=[],s=i.start||i.date,o=i.end,T(s)&&(s=e.duration(s)),T(o)&&(o=e.duration(o)),i.dow||e.isDuration(s)||e.isDuration(o))l.start=s?e.duration(s):null,l.end=o?e.duration(o):null,l._recurring=!0;else{if(s&&(s=O.moment(s),!s.isValid()))return!1;o&&(o=O.moment(o),o.isValid()||(o=null)),a=i.allDay,void 0===a&&(a=G(r?r.allDayDefault:void 0,n.allDayDefault)),C(s,o,a,l)}return l}function C(t,e,n,i){i.start=t,i.end=e,i.allDay=n,D(i),bt(i)}function D(t){null==t.allDay&&(t.allDay=!(t.start.hasTime()||t.end&&t.end.hasTime())),t.allDay?(t.start.stripTime(),t.end&&t.end.stripTime()):(t.start.hasTime()||(t.start=O.rezoneDate(t.start)),t.end&&!t.end.hasTime()&&(t.end=O.rezoneDate(t.end))),t.end&&!t.end.isAfter(t.start)&&(t.end=null),t.end||(n.forceEventDuration?t.end=O.getDefaultEventEnd(t.allDay,t.start):t.end=null)}function k(t){var e;return t.end||(e=t.allDay,null==e&&(e=!t.start.hasTime()),t={start:t.start,end:O.getDefaultEventEnd(e,t.start)}),t}function H(e,n,i){var r,s,o,a,l,d,u,c,h,f=[];if(n=n||B,i=i||W,e)if(e._recurring){if(s=e.dow)for(r={},o=0;o<s.length;o++)r[s[o]]=!0;for(a=n.clone().stripTime();a.isBefore(i);)(!r||r[a.day()])&&(l=e.start,d=e.end,u=a.clone(),c=null,l&&(u=u.time(l)),d&&(c=a.clone().time(d)),h=t.extend({},e),C(u,c,!l&&!d,h),f.push(h)),a.add(1,"days")}else f.push(e);return f}function x(e,n){var i,r,s,o,a={};return n=n||{},n.start||(n.start=e.start.clone()),void 0===n.end&&(n.end=e.end?e.end.clone():null),null==n.allDay&&(n.allDay=e.allDay),D(n),i=null!==e._end&&null===n.end,r=n.allDay?S(n.start,e._start):b(n.start,e._start),!i&&n.end&&(s=b(n.end,n.start).subtract(b(e._end||O.getDefaultEventEnd(e._allDay,e._start),e._start))),t.each(n,function(t,e){g(t)&&void 0!==e&&(a[t]=e)}),o=M(v(e._id),i,n.allDay,r,s,a),{dateDelta:r,durationDelta:s,undo:o}}function M(e,n,i,r,s,o){var a=O.getIsAmbigTimezone(),l=[];return r&&!r.valueOf()&&(r=null),s&&!s.valueOf()&&(s=null),t.each(e,function(e,d){var u,c;u={start:d.start.clone(),end:d.end?d.end.clone():null,allDay:d.allDay},t.each(o,function(t){u[t]=d[t]}),c={start:d._start,end:d._end,allDay:d._allDay},n&&(c.end=null),c.allDay=i,D(c),r&&(c.start.add(r),c.end&&c.end.add(r)),s&&(c.end||(c.end=O.getDefaultEventEnd(c.allDay,c.start)),c.end.add(s)),a&&!c.allDay&&(r||s)&&(c.start.stripZone(),c.end&&c.end.stripZone()),t.extend(d,o,c),bt(d),l.push(function(){t.extend(d,u),bt(d)})}),function(){for(var t=0;t<l.length;t++)l[t]()}}function N(){var e,i=n.businessHours,r={className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},s=O.getView();return i&&(e="object"==typeof i?t.extend({},r,i):r),e?H(E(e),s.start,s.end):[]}function V(t,e){var i=e.source||{},r=G(e.constraint,i.constraint,n.eventConstraint),s=G(e.overlap,i.overlap,n.eventOverlap);return t=k(t),L(t,r,s,e)}function Y(t){return L(t,n.selectConstraint,n.selectOverlap)}function z(e,n){var i,r;return n&&(i=t.extend({},n,e),r=H(E(i))[0]),r?V(e,r):(e=k(e),Y(e))}function L(t,e,n,i){var r,s,o,a,l;if(t={start:t.start.clone().stripZone(),end:t.end.clone().stripZone()},null!=e){for(r=_(e),s=!1,o=0;o<r.length;o++)if(P(r[o],t)){s=!0;break}if(!s)return!1}for(o=0;o<Q.length;o++)if(a=Q[o],(!i||i._id!==a._id)&&A(a,t)){if(n===!1)return!1;if("function"==typeof n&&!n(a,i))return!1;if(i){if(l=G(a.overlap,(a.source||{}).overlap),l===!1)return!1;if("function"==typeof l&&!l(i,a))return!1}}return!0}function _(t){return"businessHours"===t?N():"object"==typeof t?H(E(t)):v(t)}function P(t,e){var n=t.start.clone().stripZone(),i=O.getEventEnd(t).stripZone();return e.start>=n&&e.end<=i}function A(t,e){var n=t.start.clone().stripZone(),i=O.getEventEnd(t).stripZone();return e.start<i&&e.end>n}var O=this;O.isFetchNeeded=i,O.fetchEvents=r,O.addEventSource=a,O.removeEventSource=d,O.updateEvent=h,O.renderEvent=p,O.removeEvents=m,O.clientEvents=v,O.mutateEvent=x,O.normalizeEventDateProps=D,O.ensureVisibleEventRange=k;var B,W,I=O.trigger,Z=O.getView,j=O.reportEvents,X={events:[]},U=[X],$=0,q=0,K=0,Q=[];t.each((n.events?[n.events]:[]).concat(n.eventSources||[]),function(t,e){var n=l(e);n&&U.push(n)}),O.getBusinessHoursEvents=N,O.isEventRangeAllowed=V,O.isSelectionRangeAllowed=Y,O.isExternalDropRangeAllowed=z}function bt(t){t._allDay=t.allDay,t._start=t.start.clone(),t._end=t.end?t.end.clone():null}var St={titleRangeSeparator:" — ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,minDate:null,maxDate:null,firstDay:0,yearTitleFormat:"YYYY",yearFormat:"YYYY",isRTL:!1,defaultButtonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",today:"today",year:"year",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},Et={dayPopoverFormat:"dddd, MMMM D"},Ct={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}},Dt=t.fullCalendar={version:"2.2.7"},Tt=Dt.views={};t.fn.fullCalendar=function(e){var n=Array.prototype.slice.call(arguments,1),i=this;return this.each(function(r,s){var o,a=t(s),l=a.data("fullCalendar");"string"==typeof e?l&&t.isFunction(l[e])&&(o=l[e].apply(l,n),r||(i=o),"destroy"===e&&a.removeData("fullCalendar")):l||(l=new vt(a,e),a.data("fullCalendar",l),l.render())}),i};var kt=Dt.langs={};Dt.datepickerLang=function(e,n,i){var r=kt[e]||(kt[e]={});r.isRTL=i.isRTL,r.weekNumberTitle=i.weekHeader,t.each(Ht,function(t,e){r[t]=e(i)}),t.datepicker&&(t.datepicker.regional[n]=t.datepicker.regional[e]=i,t.datepicker.regional.en=t.datepicker.regional[""],t.datepicker.setDefaults(i))},Dt.lang=function(e,n){var r,o;r=kt[e]||(kt[e]={}),n&&i(r,n),o=s(e),t.each(xt,function(t,e){void 0===r[t]&&(r[t]=e(o,r))}),St.lang=e};var Ht={defaultButtonText:function(t){return{prev:V(t.prevText),next:V(t.nextText),today:V(t.currentText)}},monthYearFormat:function(t){return t.showMonthAfterYear?"YYYY["+t.yearSuffix+"] MMMM":"MMMM YYYY["+t.yearSuffix+"]"}},xt={dayOfMonthFormat:function(t,e){var n=t.longDateFormat("l");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),e.isRTL?n+=" ddd":n="ddd "+n,n},smallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},noMeridiemTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"")}};Dt.lang("en",Et),Dt.intersectionToSeg=y,Dt.applyAll=F,Dt.debounce=_;var Mt,Rt,Ft,Gt=["sun","mon","tue","wed","thu","fri","sat"],Nt=["year","month","week","day","hour","minute","second","millisecond"],Vt={}.hasOwnProperty,Yt=/^\s*\d{4}-\d\d$/,zt=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,Lt=e.fn,_t=t.extend({},Lt);Dt.moment=function(){return P(arguments)},Dt.moment.utc=function(){var t=P(arguments,!0);return t.hasTime()&&t.utc(),t},Dt.moment.parseZone=function(){return P(arguments,!0,!0)},Lt.clone=function(){var t=_t.clone.apply(this,arguments);return O(this,t),this._fullCalendar&&(t._fullCalendar=!0),t},Lt.time=function(t){if(!this._fullCalendar)return _t.time.apply(this,arguments);if(null==t)return e.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,e.isDuration(t)||e.isMoment(t)||(t=e.duration(t));var n=0;return e.isDuration(t)&&(n=24*Math.floor(t.asDays())),this.hours(n+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},Lt.stripTime=function(){var t;return this._ambigTime||(t=this.toArray(),this.utc(),Rt(this,t.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},Lt.hasTime=function(){return!this._ambigTime},Lt.stripZone=function(){var t,e;return this._ambigZone||(t=this.toArray(),e=this._ambigTime,this.utc(),Rt(this,t),this._ambigTime=e||!1,this._ambigZone=!0),this},Lt.hasZone=function(){return!this._ambigZone},Lt.local=function(){var t=this.toArray(),e=this._ambigZone;return _t.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,e&&Ft(this,t),this},Lt.utc=function(){return _t.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},t.each(["zone","utcOffset"],function(t,e){_t[e]&&(Lt[e]=function(t){return null!=t&&(this._ambigTime=!1,this._ambigZone=!1),_t[e].apply(this,arguments)})}),Lt.format=function(){return this._fullCalendar&&arguments[0]?I(this,arguments[0]):this._ambigTime?W(this,"YYYY-MM-DD"):this._ambigZone?W(this,"YYYY-MM-DD[T]HH:mm:ss"):_t.format.apply(this,arguments)},Lt.toISOString=function(){return this._ambigTime?W(this,"YYYY-MM-DD"):this._ambigZone?W(this,"YYYY-MM-DD[T]HH:mm:ss"):_t.toISOString.apply(this,arguments)},Lt.isWithin=function(t,e){var n=A([this,t,e]);return n[0]>=n[1]&&n[0]<n[2]},Lt.isSame=function(t,e){var n;return this._fullCalendar?e?(n=A([this,t],!0),_t.isSame.call(n[0],n[1],e)):(t=Dt.moment.parseZone(t),_t.isSame.call(this,t)&&Boolean(this._ambigTime)===Boolean(t._ambigTime)&&Boolean(this._ambigZone)===Boolean(t._ambigZone)):_t.isSame.apply(this,arguments)},t.each(["isBefore","isAfter"],function(t,e){Lt[e]=function(t,n){var i;return this._fullCalendar?(i=A([this,t]),_t[e].call(i[0],i[1],n)):_t[e].apply(this,arguments)}}),Mt="_d"in e()&&"updateOffset"in e,Rt=Mt?function(t,n){t._d.setTime(Date.UTC.apply(Date,n)),e.updateOffset(t,!1)}:B,Ft=Mt?function(t,n){t._d.setTime(+new Date(n[0]||0,n[1]||0,n[2]||0,n[3]||0,n[4]||0,n[5]||0,n[6]||0)),e.updateOffset(t,!1)}:B;var Pt={t:function(t){return W(t,"a").charAt(0)},T:function(t){return W(t,"A").charAt(0)}};Dt.formatRange=X;var At={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Ot={};Dt.Class=Q,Q.extend=function(t){var e,n=this;return t=t||{},M(t,"constructor")&&(e=t.constructor),"function"!=typeof e&&(e=t.constructor=function(){n.apply(this,arguments)}),e.prototype=k(n.prototype),H(t,e.prototype),x(t,e.prototype),H(n,e),e},Q.mixin=function(t){H(t.prototype||t,this.prototype)};var Bt=Q.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(t){this.options=t||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var e=this,n=this.options;this.el=t('<div class="fc-popover"/>').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl),this.el.on("click",".fc-close",function(){e.hide()}),n.autoHide&&t(document).on("mousedown",this.documentMousedownProxy=t.proxy(this,"documentMousedown"))},documentMousedown:function(e){this.el&&!t(e.target).closest(this.el).length&&this.hide()},destroy:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),t(document).off("mousedown",this.documentMousedownProxy)},position:function(){var e,n,i,r,s,o=this.options,a=this.el.offsetParent().offset(),l=this.el.outerWidth(),d=this.el.outerHeight(),u=t(window),c=p(this.el);r=o.top||0,s=void 0!==o.left?o.left:void 0!==o.right?o.right-l:0,c.is(window)||c.is(document)?(c=u,e=0,n=0):(i=c.offset(),e=i.top,n=i.left),e+=u.scrollTop(),n+=u.scrollLeft(),o.viewportConstrain!==!1&&(r=Math.min(r,e+c.outerHeight()-d-this.margin),r=Math.max(r,e+this.margin),s=Math.min(s,n+c.outerWidth()-l-this.margin),s=Math.max(s,n+this.margin)),this.el.css({top:r-a.top,left:s-a.left})},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))}}),Wt=Q.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,minX:null,maxX:null,minY:null,maxY:null,constructor:function(t){this.grid=t},build:function(){this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.rowCoords=null,this.colCoords=null},getCell:function(e,n){var i,r,s=this.rowCoords,o=this.colCoords,a=null,l=null,d=null,u=this.inBounds(e,n);
if(!u&&"year"==this.grid.view.name)return t.each(this.grid.view.dayGrids,function(t,i){var r=i.coordMap;return r.computeBounds(),r.inBounds(e,n)?(r.build(),d=r.getCell(e,n),!1):void 0}),d;for(i=0;i<s.length;i++)if(r=s[i],n>=r.top&&n<r.bottom){a=i;break}for(i=0;i<o.length;i++)if(r=o[i],e>=r.left&&e<r.right){l=i;break}return null!==a&&null!==l?(d=this.grid.getCell(a,l),d.grid=this.grid,d):null},computeBounds:function(){var t;this.containerEl&&(t=this.containerEl.offset(),this.minX=t.left,this.maxX=t.left+this.containerEl.outerWidth(),this.minY=t.top,this.maxY=t.top+this.containerEl.outerHeight())},inBounds:function(t,e){return this.containerEl?t>=this.minX&&t<this.maxX&&e>=this.minY&&e<this.maxY:!0}}),It=Q.extend({coordMaps:null,constructor:function(t){this.coordMaps=t},build:function(){var t,e=this.coordMaps;for(t=0;t<e.length;t++)e[t].build()},getCell:function(t,e){var n,i=this.coordMaps,r=null;for(n=0;n<i.length&&!r;n++)r=i[n].getCell(t,e);return r},clear:function(){var t,e=this.coordMaps;for(t=0;t<e.length;t++)e[t].clear()}}),Zt=Q.extend({coordMap:null,options:null,isListening:!1,isDragging:!1,origCell:null,cell:null,mouseX0:null,mouseY0:null,mousemoveProxy:null,mouseupProxy:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(t,e){this.coordMap=t,this.options=e||{}},mousedown:function(t){v(t)&&(t.preventDefault(),this.startListening(t),this.options.distance||this.startDrag(t))},startListening:function(e){var n,i;this.isListening||(e&&this.options.scroll&&(n=p(t(e.target)),n.is(window)||n.is(document)||(this.scrollEl=n,this.scrollHandlerProxy=_(t.proxy(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),this.computeCoords(),e&&(i=this.getCell(e),this.origCell=i,this.mouseX0=e.pageX,this.mouseY0=e.pageY),t(document).on("mousemove",this.mousemoveProxy=t.proxy(this,"mousemove")).on("mouseup",this.mouseupProxy=t.proxy(this,"mouseup")).on("selectstart",this.preventDefault),this.isListening=!0,this.trigger("listenStart",e))},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},mousemove:function(t){var e,n;this.isDragging||(e=this.options.distance||1,n=Math.pow(t.pageX-this.mouseX0,2)+Math.pow(t.pageY-this.mouseY0,2),n>=e*e&&this.startDrag(t)),this.isDragging&&this.drag(t)},startDrag:function(t){var e;this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.trigger("dragStart",t),e=this.getCell(t),e&&this.cellOver(e))},drag:function(t){var e;this.isDragging&&(e=this.getCell(t),J(e,this.cell)||(this.cell&&this.cellOut(),e&&this.cellOver(e)),this.dragScroll(t))},cellOver:function(t){this.cell=t,this.trigger("cellOver",t,J(t,this.origCell))},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cell=null)},mouseup:function(t){this.stopDrag(t),this.stopListening(t)},stopDrag:function(t){this.isDragging&&(this.stopScrolling(),this.trigger("dragStop",t),this.isDragging=!1)},stopListening:function(e){this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),t(document).off("mousemove",this.mousemoveProxy).off("mouseup",this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.trigger("listenStop",e),this.origCell=this.cell=null,this.coordMap.clear())},getCell:function(t){return this.coordMap.getCell(t.pageX,t.pageY)},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(t){t.preventDefault()},computeScrollBounds:function(){var t,e=this.scrollEl;e&&(t=e.offset(),this.scrollBounds={top:t.top,left:t.left,bottom:t.top+e.outerHeight(),right:t.left+e.outerWidth()})},dragScroll:function(t){var e,n,i,r,s=this.scrollSensitivity,o=this.scrollBounds,a=0,l=0;o&&(e=(s-(t.pageY-o.top))/s,n=(s-(o.bottom-t.pageY))/s,i=(s-(t.pageX-o.left))/s,r=(s-(o.right-t.pageX))/s,e>=0&&1>=e?a=e*this.scrollSpeed*-1:n>=0&&1>=n&&(a=n*this.scrollSpeed),i>=0&&1>=i?l=i*this.scrollSpeed*-1:r>=0&&1>=r&&(l=r*this.scrollSpeed)),this.setScrollVel(a,l)},setScrollVel:function(e,n){this.scrollTopVel=e,this.scrollLeftVel=n,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(t.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var t=this.scrollEl;this.scrollTopVel<0?t.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&t.scrollTop()+t[0].clientHeight>=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&t.scrollLeft()+t[0].clientWidth>=t[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.computeCoords())},scrollHandler:function(){this.scrollIntervalId||this.computeCoords()}}),jt=Q.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(e,n){this.options=n=n||{},this.sourceEl=e,this.parentEl=n.parentEl?t(n.parentEl):e.parent()},start:function(e){this.isFollowing||(this.isFollowing=!0,this.mouseY0=e.pageY,this.mouseX0=e.pageX,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),t(document).on("mousemove",this.mousemoveProxy=t.proxy(this,"mousemove")))},stop:function(e,n){function i(){this.isAnimating=!1,r.destroyEl(),this.top0=this.left0=null,n&&n()}var r=this,s=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,t(document).off("mousemove",this.mousemoveProxy),e&&s&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:s,complete:i})):i())},getEl:function(){var t=this.el;return t||(this.sourceEl.width(),t=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),t},destroyEl:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var t,e;this.getEl(),null===this.top0&&(this.sourceEl.width(),t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(t){this.topDelta=t.pageY-this.mouseY0,this.leftDelta=t.pageX-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),Xt=Q.extend({view:null,isRTL:null,cellHtml:"<td/>",constructor:function(t){this.view=t,this.isRTL=t.opt("isRTL")},rowHtml:function(t,e){var n,i,r=this.getHtmlRenderer("cell",t),s="";for(e=e||0,n=0;n<this.colCnt;n++)i=this.getCell(e,n),s+=r(i);return s=this.bookendCells(s,t,e),"<tr>"+s+"</tr>"},bookendCells:function(t,e,n){var i=this.getHtmlRenderer("intro",e)(n||0,this),r=this.getHtmlRenderer("outro",e)(n||0,this),s=this.isRTL?r:i,o=this.isRTL?i:r;return"string"==typeof t?s+t+o:t.prepend(s).append(o)},getHtmlRenderer:function(t,e){var n,i,r,s,o=this.view;return n=t+"Html",e&&(i=e+Y(t)+"Html"),i&&(s=o[i])?r=o:i&&(s=this[i])?r=this:(s=o[n])?r=o:(s=this[n])&&(r=this),"function"==typeof s?function(){return s.apply(r,arguments)||""}:function(){return s||""}}}),Ut=Dt.Grid=Xt.extend({start:null,end:null,rowCnt:0,colCnt:0,rowData:null,colData:null,el:null,coordMap:null,elsByFill:null,documentDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventEnd:null,constructor:function(){Xt.apply(this,arguments),this.coordMap=new Wt(this),this.elsByFill={},this.documentDragStartProxy=t.proxy(this,"documentDragStart")},render:function(){this.bindHandlers()},destroy:function(){this.unbindHandlers()},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventEnd:function(){return!1},setRange:function(t){var e=this.view;this.start=t.start.clone(),this.end=t.end.clone(),this.rowData=[],this.colData=[],this.updateCells(),this.colHeadFormat=e.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=e.opt("timeFormat")||this.computeEventTimeFormat(),this.displayEventEnd=e.opt("displayEventEnd"),null==this.displayEventEnd&&(this.displayEventEnd=this.computeDisplayEventEnd())},updateCells:function(){},rangeToSegs:function(t){},getCell:function(e,n){var i;return null==n&&("number"==typeof e?(n=e%this.colCnt,e=Math.floor(e/this.colCnt)):(n=e.col,e=e.row)),i={row:e,col:n},t.extend(i,this.getRowData(e),this.getColData(n)),t.extend(i,this.computeCellRange(i)),i},computeCellRange:function(t){},getRowData:function(t){return this.rowData[t]||{}},getColData:function(t){return this.colData[t]||{}},getRowEl:function(t){},getColEl:function(t){},getCellDayEl:function(t){return this.getColEl(t.col)||this.getRowEl(t.row)},computeRowCoords:function(){var t,e,n,i=[];for(t=0;t<this.rowCnt;t++)e=this.getRowEl(t),n={top:e.offset().top},t>0&&(i[t-1].bottom=n.top),i.push(n);return n.bottom=n.top+e.outerHeight(),i},computeColCoords:function(){var t,e,n,i=[];for(t=0;t<this.colCnt;t++)e=this.getColEl(t),n={left:e.offset().left},t>0&&(i[t-1].right=n.left),i.push(n);return n.right=n.left+e.outerWidth(),i},bindHandlers:function(){var e=this;this.el.on("mousedown",function(n){t(n.target).is(".fc-event-container *, .fc-more")||t(n.target).closest(".fc-popover").length||e.dayMousedown(n)}),this.bindSegHandlers(),t(document).on("dragstart",this.documentDragStartProxy)},unbindHandlers:function(){t(document).off("dragstart",this.documentDragStartProxy)},dayMousedown:function(t){var e,n,i=this,r=this.view,s=r.opt("selectable"),o=new Zt(this.coordMap,{scroll:r.opt("dragScroll"),dragStart:function(){r.unselect()},cellOver:function(t,r){var a=o.origCell;a&&(e=r?t:null,s&&(n=i.computeSelection(a,t),n?i.renderSelection(n):l()))},cellOut:function(t){e=null,n=null,i.destroySelection(),d()},listenStop:function(t){e&&r.trigger("dayClick",i.getCellDayEl(e),e.start,t),n&&r.reportSelection(n,t),d()}});o.mousedown(t)},renderRangeHelper:function(t,e){var n;n=e?k(e.event):{},n.start=t.start.clone(),n.end=t.end?t.end.clone():null,n.allDay=null,this.view.calendar.normalizeEventDateProps(n),n.className=(n.className||[]).concat("fc-helper"),e||(n.editable=!1),this.renderHelper(n,e)},renderHelper:function(t,e){},destroyHelper:function(){},renderSelection:function(t){"year"!=this.view.name||t.rendered||(this.view.destroySelection(),t.rendered=!0,this.view.renderSelection(t,this)),this.renderHighlight(t)},destroySelection:function(){this.destroyHighlight()},computeSelection:function(t,e){var n,i=[t.start,t.end,e.start,e.end];return i.sort(z),n={start:i[0].clone(),end:i[3].clone()},this.view.calendar.isSelectionRangeAllowed(n)?n:null},renderHighlight:function(t){this.renderFill("highlight",this.rangeToSegs(t))},destroyHighlight:function(){this.destroyFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(t,e){},destroyFill:function(t){var e=this.elsByFill[t];e&&(e.remove(),delete this.elsByFill[t])},renderFillSegEls:function(e,n){var i,r=this,s=this[e+"SegEl"],o="",a=[];if(n.length){for(i=0;i<n.length;i++)o+=this.fillSegHtml(e,n[i]);t(o).each(function(e,i){var o=n[e],l=t(i);s&&(l=s.call(r,o,l)),l&&(l=t(l),l.is(r.fillSegTag)&&(o.el=l,a.push(o)))})}return a},fillSegTag:"div",fillSegHtml:function(t,e){var n=this[t+"SegClasses"],i=this[t+"SegStyles"],r=n?n.call(this,e):[],s=i?i.call(this,e):"";return"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(s?' style="'+s+'"':"")+" />"},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(t){var e=this.view,n=t.start;return'<th class="fc-day-header '+e.widgetHeaderClass+" fc-"+Gt[n.day()]+'">'+N(n.format(this.colHeadFormat))+"</th>"},bgCellHtml:function(t){var e=this.view,n=t.start,i=this.getDayClasses(n);return i.unshift("fc-day",e.widgetContentClass),'<td class="'+i.join(" ")+'" data-date="'+n.format("YYYY-MM-DD")+'"></td>'},getDayClasses:function(t){var e=this.view,n=e.calendar.getNow().stripTime(),i=["fc-"+Gt[t.day()]];return"month"===e.name&&t.month()!=e.intervalStart.month()&&i.push("fc-other-month"),t.isSame(n,"day")?i.push("fc-today",e.highlightStateClass):n>t?i.push("fc-past"):i.push("fc-future"),i}});Ut.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,segs:null,renderEvents:function(t){var e,n,i=this.eventsToSegs(t),r=[],s=[];for(e=0;e<i.length;e++)n=i[e],tt(n.event)?r.push(n):s.push(n);r=this.renderBgSegs(r)||r,s=this.renderFgSegs(s)||s,this.segs=r.concat(s)},destroyEvents:function(){this.triggerSegMouseout(),this.destroyFgSegs(),this.destroyBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(t){},destroyFgSegs:function(){},renderFgSegEls:function(e,n){var i,r=this.view,s="",o=[];if(e.length){for(i=0;i<e.length;i++)s+=this.fgSegHtml(e[i],n);t(s).each(function(n,i){var s=e[n],a=r.resolveEventEl(s.event,t(i));a&&(a.data("fc-seg",s),s.el=a,o.push(s))})}return o},fgSegHtml:function(t,e){},renderBgSegs:function(t){return this.renderFill("bgEvent",t)},destroyBgSegs:function(){this.destroyFill("bgEvent")},bgEventSegEl:function(t,e){return this.view.resolveEventEl(t.event,e)},bgEventSegClasses:function(t){var e=t.event,n=e.source||{};return["fc-bgevent"].concat(e.className,n.className||[])},bgEventSegStyles:function(t){var e=this.view,n=t.event,i=n.source||{},r=n.color,s=i.color,o=e.opt("eventColor"),a=n.backgroundColor||r||i.backgroundColor||s||e.opt("eventBackgroundColor")||o;return a?"background-color:"+a:""},businessHoursSegClasses:function(t){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){var e=this,n=this.view;t.each({mouseenter:function(t,n){e.triggerSegMouseover(t,n)},mouseleave:function(t,n){e.triggerSegMouseout(t,n)},click:function(t,e){return n.trigger("eventClick",this,t.event,e)},mousedown:function(i,r){t(r.target).is(".fc-resizer")&&n.isEventResizable(i.event)?e.segResizeMousedown(i,r):n.isEventDraggable(i.event)&&e.segDragMousedown(i,r)}},function(n,i){e.el.on(n,".fc-event-container > *",function(n){var r=t(this).data("fc-seg");return!r||e.isDraggingSeg||e.isResizingSeg?void 0:i.call(this,r,n)})})},triggerSegMouseover:function(t,e){this.mousedOverSeg||(this.mousedOverSeg=t,this.view.trigger("eventMouseover",t.el[0],t.event,e))},triggerSegMouseout:function(t,e){e=e||{},this.mousedOverSeg&&(t=t||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",t.el[0],t.event,e))},segDragMousedown:function(e,n){var i,r=this,s=this.view,o=e.el,a=e.event;if("year"==s.name){var u=t(o).closest("td.fc-year-monthly-td"),c=u.closest("table").find(".fc-year-monthly-td"),h=c.index(u);s.dayGrid=s.dayGrids[h]}var f=new jt(e.el,{parentEl:s.el,opacity:s.opt("dragOpacity"),revertDuration:s.opt("dragRevertDuration"),zIndex:2}),g=new Zt(s.coordMap,{distance:5,scroll:s.opt("dragScroll"),listenStart:function(t){f.hide(),f.start(t)},dragStart:function(t){r.triggerSegMouseout(e,t),r.isDraggingSeg=!0,s.hideEvent(a),s.trigger("eventDragStart",o[0],a,t,{})},cellOver:function(t,n){var o=e.cell||g.origCell;i=r.computeEventDrop(o,t,a),i?(s.renderDrag(i,e)?f.hide():f.show(),n&&(i=null)):(f.show(),l())},cellOut:function(){i=null,s.destroyDrag(),f.show(),d()},dragStop:function(t){f.stop(!i,function(){r.isDraggingSeg=!1,s.destroyDrag(),s.showEvent(a),s.trigger("eventDragStop",o[0],a,t,{}),i&&s.reportEventDrop(a,i,o,t)}),d()},listenStop:function(){f.stop()}});g.mousedown(n)},computeEventDrop:function(t,e,n){var i,r,s,o,a,l=t.start,d=e.start;return l.hasTime()===d.hasTime()?(i=b(d,l),r=n.start.clone().add(i),s=null===n.end?null:n.end.clone().add(i),o=n.allDay):(r=d.clone(),s=null,o=!d.hasTime()),a={start:r,end:s,allDay:o},this.view.calendar.isEventRangeAllowed(a,n)?a:null},documentDragStart:function(e,n){var i,r,s=this.view;s.opt("droppable")&&(i=t(e.target),r=s.opt("dropAccept"),(t.isFunction(r)?r.call(i[0],i):i.is(r))&&this.startExternalDrag(i,e,n))},startExternalDrag:function(e,n,i){var r,s,o=this,a=ot(e);r=new Zt(this.coordMap,{cellOver:function(t){s=o.computeExternalDrop(t,a),s?o.renderDrag(s):l()},cellOut:function(){s=null,o.destroyDrag(),d()}}),t(document).one("dragstop",function(t,n){o.destroyDrag(),d(),s&&o.view.reportExternalDrop(a,s,e,t,n)}),r.startDrag(n)},computeExternalDrop:function(t,e){var n={start:t.start.clone(),end:null};return e.startTime&&!n.start.hasTime()&&n.start.time(e.startTime),e.duration&&(n.end=n.start.clone().add(e.duration)),this.view.calendar.isExternalDropRangeAllowed(n,e.eventProps)?n:null},renderDrag:function(t,e){},destroyDrag:function(){},segResizeMousedown:function(e,n){function i(){o.destroyEventResize(),a.showEvent(h),d()}var r,s,o=this,a=this.view,u=a.calendar,c=e.el,h=e.event,f=h.start,g=u.getEventEnd(h);s=new Zt(this.coordMap,{distance:5,scroll:a.opt("dragScroll"),dragStart:function(t){o.triggerSegMouseout(e,t),o.isResizingSeg=!0,a.trigger("eventResizeStart",c[0],h,t,{})},cellOver:function(n){r=n.end,r.isAfter(f)||(r=f.clone().add(b(n.end,n.start))),r.isSame(g)?r=null:u.isEventRangeAllowed({start:f,end:r},h)?(o.renderEventResize({start:f,end:r},e),"year"==a.name&&t.each(a.dayGrids,function(t,n){n!==o&&(n.destroyEventResize(),n.renderEventResize({start:f,end:r},e))}),a.hideEvent(h)):(r=null,l())},cellOut:function(){r=null,i()},dragStop:function(t){o.isResizingSeg=!1,i(),a.trigger("eventResizeStop",c[0],h,t,{}),r&&a.reportEventResize(h,r,c,t)}}),s.mousedown(n)},renderEventResize:function(t,e){},destroyEventResize:function(){},getEventTimeText:function(t,e){return e=e||this.eventTimeFormat,t.end&&this.displayEventEnd?this.view.formatRange(t,e):t.start.format(e)},getSegClasses:function(t,e,n){var i=t.event,r=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(i.className,i.source?i.source.className:[]);return e&&r.push("fc-draggable"),n&&r.push("fc-resizable"),r},getEventSkinCss:function(t){var e=this.view,n=t.source||{},i=t.color,r=n.color,s=e.opt("eventColor"),o=t.backgroundColor||i||n.backgroundColor||r||e.opt("eventBackgroundColor")||s,a=t.borderColor||i||n.borderColor||r||e.opt("eventBorderColor")||s,l=t.textColor||n.textColor||e.opt("eventTextColor"),d=[];return o&&d.push("background-color:"+o),a&&d.push("border-color:"+a),l&&d.push("color:"+l),d.join(";")},eventsToSegs:function(t,e){var n,i=this.eventsToRanges(t),r=[];for(n=0;n<i.length;n++)r.push.apply(r,this.eventRangeToSegs(i[n],e));return r},eventsToRanges:function(e){var n=this,i=it(e),r=[];return t.each(i,function(t,e){e.length&&r.push.apply(r,et(e[0])?n.eventsToInverseRanges(e):n.eventsToNormalRanges(e))}),r},eventsToNormalRanges:function(t){var e,n,i,r,s=this.view.calendar,o=[];for(e=0;e<t.length;e++)n=t[e],i=n.start.clone().stripZone(),r=s.getEventEnd(n).stripZone(),o.push({event:n,start:i,end:r,eventStartMS:+i,eventDurationMS:r-i});return o},eventsToInverseRanges:function(t){var e,n,i=this.view,r=i.start.clone().stripZone(),s=i.end.clone().stripZone(),o=this.eventsToNormalRanges(t),a=[],l=t[0],d=r;for(o.sort(rt),e=0;e<o.length;e++)n=o[e],n.start>d&&a.push({event:l,start:d,end:n.start}),d=n.end;return s>d&&a.push({event:l,start:d,end:s}),a},eventRangeToSegs:function(t,e){var n,i,r;for(n=e?e(t):this.rangeToSegs(t),i=0;i<n.length;i++)r=n[i],r.event=t.event,r.eventStartMS=t.eventStartMS,r.eventDurationMS=t.eventDurationMS;return n}}),Dt.compareSegs=st,Dt.dataAttrPrefix="";var $t=Ut.extend({numbersVisible:!1,bottomCoordPadding:0,breakOnWeeks:null,cellDates:null,dayToCellOffsets:null,rowEls:null,dayEls:null,helperEls:null,render:function(t){var e,n,i,r=this.view,s=this.rowCnt,o=this.colCnt,a=s*o,l="";for(e=0;s>e;e++)l+=this.dayRowHtml(e,t);for(this.el.html(l),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),n=0;a>n;n++)i=this.getCell(n),r.trigger("dayRender",null,i.start,this.dayEls.eq(n));Ut.prototype.render.call(this)},destroy:function(){this.destroySegPopover(),Ut.prototype.destroy.call(this)},dayRowHtml:function(t,e){var n=this.view,i=["fc-row","fc-week",n.widgetContentClass];return e&&i.push("fc-rigid"),'<div class="'+i.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",t)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(t){return this.bgCellHtml(t)},computeColHeadFormat:function(){return this.rowCnt>1?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},updateCells:function(){var t,e,n,i;if(this.updateCellDates(),t=this.cellDates,this.breakOnWeeks){for(e=t[0].day(),i=1;i<t.length&&t[i].day()!=e;i++);n=Math.ceil(t.length/i)}else n=1,i=t.length;this.rowCnt=n,this.colCnt=i},updateCellDates:function(){for(var t=this.view,e=this.start.clone(),n=[],i=-1,r=[];e.isBefore(this.end);)t.isHiddenDay(e)?r.push(i+.5):(i++,r.push(i),n.push(e.clone())),e.add(1,"days");this.cellDates=n,this.dayToCellOffsets=r},computeCellRange:function(t){var e=this.colCnt,n=t.row*e+(this.isRTL?e-t.col-1:t.col),i=this.cellDates[n].clone(),r=i.clone().add(1,"day");return{start:i,end:r}},getRowEl:function(t){return this.rowEls.eq(t)},getColEl:function(t){return this.dayEls.eq(t)},getCellDayEl:function(t){return this.dayEls.eq(t.row*this.colCnt+t.col)},computeRowCoords:function(){var t=Ut.prototype.computeRowCoords.call(this);return t[t.length-1].bottom+=this.bottomCoordPadding,t},rangeToSegs:function(t){var e,n,i,r,s,o,a,l,d,u,c=this.isRTL,h=this.rowCnt,f=this.colCnt,g=[];for(t=this.view.computeDayRange(t),e=this.dateToCellOffset(t.start),n=this.dateToCellOffset(t.end.subtract(1,"days")),i=0;h>i;i++)r=i*f,s=r+f-1,l=Math.max(r,e),d=Math.min(s,n),l=Math.ceil(l),d=Math.floor(d),d>=l&&(o=l===e,a=d===n,l-=r,d-=r,u={row:i,isStart:o,isEnd:a},c?(u.leftCol=f-d-1,u.rightCol=f-l-1):(u.leftCol=l,u.rightCol=d),g.push(u));return g},dateToCellOffset:function(t){var e=this.dayToCellOffsets,n=t.diff(this.start,"days");return 0>n?e[0]-1:n>=e.length?e[e.length-1]+1:e[n]},renderDrag:function(t,e){var n;return this.renderHighlight(this.view.calendar.ensureVisibleEventRange(t)),e&&!e.el.closest(this.view.el).length?(this.renderRangeHelper(t,e),n=this.view.opt("dragOpacity"),void 0!==n&&this.helperEls.css("opacity",n),!0):void 0},destroyDrag:function(){this.destroyHighlight(),this.destroyHelper()},renderEventResize:function(t,e){this.renderHighlight(t),this.renderRangeHelper(t,e)},destroyEventResize:function(){this.destroyHighlight(),this.destroyHelper()},renderHelper:function(e,n){var i,r=[],s=this.eventsToSegs([e]);s=this.renderFgSegEls(s),i=this.renderSegRows(s),this.rowEls.each(function(e,s){var o,a=t(s),l=t('<div class="fc-helper-skeleton"><table/></div>');o=n&&n.row===e?n.el.position().top:a.find(".fc-content-skeleton tbody").position().top,l.css("top",o).find("table").append(i[e].tbodyEl),a.append(l),r.push(l[0])}),this.helperEls=t(r)},destroyHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(e,n){var i,r,s,o=[];for(n=this.renderFillSegEls(e,n),i=0;i<n.length;i++)r=n[i],s=this.renderFillRow(e,r),this.rowEls.eq(r.row).append(s),o.push(s[0]);return this.elsByFill[e]=t(o),n},renderFillRow:function(e,n){var i,r,s=this.colCnt,o=n.leftCol,a=n.rightCol+1;return i=t('<div class="fc-'+e.toLowerCase()+'-skeleton"><table><tr/></table></div>'),r=i.find("tr"),o>0&&r.append('<td colspan="'+o+'"/>'),r.append(n.el.attr("colspan",a-o)),s>a&&r.append('<td colspan="'+(s-a)+'"/>'),this.bookendCells(r,e),i}});$t.mixin({rowStructs:null,destroyEvents:function(){this.destroySegPopover(),Ut.prototype.destroyEvents.apply(this,arguments)},getEventSegs:function(){return Ut.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(e){var n=t.grep(e,function(t){return t.event.allDay});return Ut.prototype.renderBgSegs.call(this,n)},renderFgSegs:function(e){var n;return e=this.renderFgSegEls(e),n=this.rowStructs=this.renderSegRows(e),this.rowEls.each(function(e,i){e<n.length&&t(i).find(".fc-content-skeleton > table").append(n[e].tbodyEl)}),e},destroyFgSegs:function(){for(var t,e=this.rowStructs||[];t=e.pop();)t.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(t){var e,n,i=[];for(e=this.groupSegRows(t),n=0;n<e.length;n++)i.push(this.renderSegRow(n,e[n]));return i},fgSegHtml:function(t,e){var n,i=this.view,r=t.event,s=i.isEventDraggable(r),o=!e&&r.allDay&&t.isEnd&&i.isEventResizable(r),a=this.getSegClasses(t,s,o),l=this.getEventSkinCss(r),d="";return a.unshift("fc-day-grid-event"),!r.allDay&&t.isStart&&(d='<span class="fc-time">'+N(this.getEventTimeText(r))+"</span>"),n='<span class="fc-title">'+(N(r.title||"")||" ")+"</span>",'<a class="'+a.join(" ")+'"'+(r.url?' href="'+N(r.url)+'"':"")+(l?' style="'+l+'"':"")+'><div class="fc-content">'+(this.isRTL?n+" "+d:d+" "+n)+"</div>"+(o?'<div class="fc-resizer"/>':"")+"</a>"},renderSegRow:function(e,n){function i(e){for(;e>o;)u=(v[r-1]||[])[o],u?u.attr("rowspan",parseInt(u.attr("rowspan")||1,10)+1):(u=t("<td/>"),a.append(u)),m[r][o]=u,v[r][o]=u,o++}var r,s,o,a,l,d,u,c=this.colCnt,h=this.buildSegLevels(n),f=Math.max(1,h.length),g=t("<tbody/>"),p=[],m=[],v=[];for(r=0;f>r;r++){if(s=h[r],o=0,a=t("<tr/>"),p.push([]),m.push([]),v.push([]),s)for(l=0;l<s.length;l++){for(d=s[l],i(d.leftCol),u=t('<td class="fc-event-container"/>').append(d.el),d.leftCol!=d.rightCol?u.attr("colspan",d.rightCol-d.leftCol+1):v[r][o]=u;o<=d.rightCol;)m[r][o]=u,p[r][o]=d,o++;a.append(u)}i(c),this.bookendCells(a,"eventSkeleton"),g.append(a)}return{row:e,tbodyEl:g,cellMatrix:m,segMatrix:p,segLevels:h,segs:n}},buildSegLevels:function(t){var e,n,i,r=[];for(t.sort(st),e=0;e<t.length;e++){for(n=t[e],i=0;i<r.length&&at(n,r[i]);i++);n.level=i,(r[i]||(r[i]=[])).push(n)}for(i=0;i<r.length;i++)r[i].sort(lt);return r},groupSegRows:function(t){var e,n=[];for(e=0;e<this.rowCnt;e++)n.push([]);for(e=0;e<t.length;e++)n[t[e].row].push(t[e]);return n}}),$t.mixin({segPopover:null,popoverSegs:null,destroySegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(t){var e,n,i=this.rowStructs||[];for(e=0;e<i.length;e++)this.unlimitRow(e),n=t?"number"==typeof t?t:this.computeRowLevelLimit(e):!1,n!==!1&&this.limitRow(e,n)},computeRowLevelLimit:function(t){var e,n,i=this.rowEls.eq(t),r=i.height(),s=this.rowStructs[t].tbodyEl.children();for(e=0;e<s.length;e++)if(n=s.eq(e).removeClass("fc-limited"),n.position().top+n.outerHeight()>r)return e;return!1},limitRow:function(e,n){function i(i){for(;i>C;)r=b.getCell(e,C),u=b.getCellSegs(r,n),u.length&&(f=o[n-1][C],w=b.renderMoreLink(r,u),y=t("<div/>").append(w),f.append(y),E.push(y[0])),C++}var r,s,o,a,l,d,u,c,h,f,g,p,m,v,y,w,b=this,S=this.rowStructs[e],E=[],C=0;if(n&&n<S.segLevels.length){for(s=S.segLevels[n-1],o=S.cellMatrix,a=S.tbodyEl.children().slice(n).addClass("fc-limited").get(),l=0;l<s.length;l++){for(d=s[l],i(d.leftCol),h=[],c=0;C<=d.rightCol;)r=this.getCell(e,C),u=this.getCellSegs(r,n),h.push(u),c+=u.length,C++;if(c){for(f=o[n-1][d.leftCol],g=f.attr("rowspan")||1,p=[],m=0;m<h.length;m++)v=t('<td class="fc-more-cell"/>').attr("rowspan",g),u=h[m],r=this.getCell(e,d.leftCol+m),w=this.renderMoreLink(r,[d].concat(u)),y=t("<div/>").append(w),v.append(y),p.push(v[0]),E.push(v[0]);f.addClass("fc-limited").after(t(p)),a.push(f[0])}}i(this.colCnt),S.moreEls=t(E),S.limitedEls=t(a)}},unlimitRow:function(t){var e=this.rowStructs[t];e.moreEls&&(e.moreEls.remove(),e.moreEls=null),e.limitedEls&&(e.limitedEls.removeClass("fc-limited"),e.limitedEls=null)},renderMoreLink:function(e,n){var i=this,r=this.view;return t('<a class="fc-more"/>').text(this.getMoreLinkText(n.length)).on("click",function(s){var o=r.opt("eventLimitClick"),a=e.start,l=t(this),d=i.getCellDayEl(e),u=i.getCellSegs(e),c=i.resliceDaySegs(u,a),h=i.resliceDaySegs(n,a);"function"==typeof o&&(o=r.trigger("eventLimitClick",null,{date:a,dayEl:d,moreEl:l,segs:c,hiddenSegs:h},s)),"popover"===o?i.showSegPopover(e,l,c):"string"==typeof o&&r.calendar.zoomTo(a,o)})},showSegPopover:function(t,e,n){var i,r,s=this,o=this.view,a=e.parent();i=1==this.rowCnt?o.el:this.rowEls.eq(t.row),r={className:"fc-more-popover",content:this.renderSegPopoverContent(t,n),parentEl:this.el,top:i.offset().top,autoHide:!0,viewportConstrain:o.opt("popoverViewportConstrain"),hide:function(){s.segPopover.destroy(),s.segPopover=null,s.popoverSegs=null}},this.isRTL?r.right=a.offset().left+a.outerWidth()+1:r.left=a.offset().left-1,this.segPopover=new Bt(r),this.segPopover.show()},renderSegPopoverContent:function(e,n){var i,r=this.view,s=r.opt("theme"),o=e.start.format(r.opt("dayPopoverFormat")),a=t('<div class="fc-header '+r.widgetHeaderClass+'"><span class="fc-close '+(s?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+N(o)+'</span><div class="fc-clear"/></div><div class="fc-body '+r.widgetContentClass+'"><div class="fc-event-container"></div></div>'),l=a.find(".fc-event-container");for(n=this.renderFgSegEls(n,!0),this.popoverSegs=n,i=0;i<n.length;i++)n[i].cell=e,l.append(n[i].el);return a},resliceDaySegs:function(e,n){var i=t.map(e,function(t){return t.event}),r=n.clone().stripTime(),s=r.clone().add(1,"days"),o={start:r,end:s};return e=this.eventsToSegs(i,function(t){var e=y(t,o);return e?[e]:[]}),e.sort(st),e},getMoreLinkText:function(t){var e=this.view.opt("eventLimitText");return"function"==typeof e?e(t):"+"+t+" "+e},getCellSegs:function(t,e){for(var n,i=this.rowStructs[t.row].segMatrix,r=e||0,s=[];r<i.length;)n=i[r][t.col],n&&s.push(n),r++;return s}});var qt=Ut.extend({slotDuration:null,snapDuration:null,minTime:null,maxTime:null,axisFormat:null,dayEls:null,slatEls:null,slatTops:null,helperEl:null,businessHourSegs:null,constructor:function(){Ut.apply(this,arguments),this.processOptions()},render:function(){this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr"),this.computeSlatTops(),this.renderBusinessHours(),Ut.prototype.render.call(this)},renderBusinessHours:function(){var t=this.view.calendar.getBusinessHoursEvents();this.businessHourSegs=this.renderFill("businessHours",this.eventsToSegs(t),"bgevent")},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(t){return this.bgCellHtml(t)},slatRowHtml:function(){for(var t,n,i,r=this.view,s=this.isRTL,o="",a=this.slotDuration.asMinutes()%15===0,l=e.duration(+this.minTime);l<this.maxTime;)t=this.start.clone().time(l),n=t.minutes(),i='<td class="fc-axis fc-time '+r.widgetContentClass+'" '+r.axisStyleAttr()+">"+(a&&n?"":"<span>"+N(t.format(this.axisFormat))+"</span>")+"</td>",o+="<tr "+(n?'class="fc-minor"':"")+">"+(s?"":i)+'<td class="'+r.widgetContentClass+'"/>'+(s?i:"")+"</tr>",l.add(this.slotDuration);return o},processOptions:function(){var t=this.view,n=t.opt("slotDuration"),i=t.opt("snapDuration");n=e.duration(n),i=i?e.duration(i):n,this.slotDuration=n,this.snapDuration=i,this.minTime=e.duration(t.opt("minTime")),this.maxTime=e.duration(t.opt("maxTime")),this.axisFormat=t.opt("axisFormat")||t.opt("smallTimeFormat");
},computeColHeadFormat:function(){return this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},updateCells:function(){var t,e=this.view,n=[];for(t=this.start.clone();t.isBefore(this.end);)n.push({day:t.clone()}),t.add(1,"day"),t=e.skipHiddenDays(t);this.isRTL&&n.reverse(),this.colData=n,this.colCnt=n.length,this.rowCnt=Math.ceil((this.maxTime-this.minTime)/this.snapDuration)},computeCellRange:function(t){var e=this.computeSnapTime(t.row),n=this.view.calendar.rezoneDate(t.day).time(e),i=n.clone().add(this.snapDuration);return{start:n,end:i}},getColEl:function(t){return this.dayEls.eq(t)},computeSnapTime:function(t){return e.duration(this.minTime+this.snapDuration*t)},rangeToSegs:function(t){var e,n,i,r,s=this.colCnt,o=[];for(t={start:t.start.clone().stripZone(),end:t.end.clone().stripZone()},n=0;s>n;n++)i=this.colData[n].day,r={start:i.clone().time(this.minTime),end:i.clone().time(this.maxTime)},e=y(t,r),e&&(e.col=n,o.push(e));return o},resize:function(){this.computeSlatTops(),this.updateSegVerticals()},computeRowCoords:function(){var t,e,n=this.el.offset().top,i=[];for(t=0;t<this.rowCnt;t++)e={top:n+this.computeTimeTop(this.computeSnapTime(t))},t>0&&(i[t-1].bottom=e.top),i.push(e);return e.bottom=e.top+this.computeTimeTop(this.computeSnapTime(t)),i},computeDateTop:function(t,n){return this.computeTimeTop(e.duration(t.clone().stripZone()-n.clone().stripTime()))},computeTimeTop:function(t){var e,n,i,r,s=(t-this.minTime)/this.slotDuration;return s=Math.max(0,s),s=Math.min(this.slatEls.length,s),e=Math.floor(s),n=s-e,i=this.slatTops[e],n?(r=this.slatTops[e+1],i+(r-i)*n):i},computeSlatTops:function(){var e,n=[];this.slatEls.each(function(i,r){e=t(r).position().top,n.push(e)}),n.push(e+this.slatEls.last().outerHeight()),this.slatTops=n},renderDrag:function(t,e){var n;return e?(this.renderRangeHelper(t,e),n=this.view.opt("dragOpacity"),void 0!==n&&this.helperEl.css("opacity",n),!0):void this.renderHighlight(this.view.calendar.ensureVisibleEventRange(t))},destroyDrag:function(){this.destroyHelper(),this.destroyHighlight()},renderEventResize:function(t,e){this.renderRangeHelper(t,e)},destroyEventResize:function(){this.destroyHelper()},renderHelper:function(e,n){var i,r,s,o,a=this.eventsToSegs([e]);for(a=this.renderFgSegEls(a),i=this.renderSegTable(a),r=0;r<a.length;r++)s=a[r],n&&n.col===s.col&&(o=n.el,s.el.css({left:o.css("left"),right:o.css("right"),"margin-left":o.css("margin-left"),"margin-right":o.css("margin-right")}));this.helperEl=t('<div class="fc-helper-skeleton"/>').append(i).appendTo(this.el)},destroyHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(t){this.view.opt("selectHelper")?this.renderRangeHelper(t):this.renderHighlight(t)},destroySelection:function(){this.destroyHelper(),this.destroyHighlight()},renderFill:function(e,n,i){var r,s,o,a,l,d,u,c,h,f;if(n.length){for(n=this.renderFillSegEls(e,n),r=this.groupSegCols(n),i=i||e.toLowerCase(),s=t('<div class="fc-'+i+'-skeleton"><table><tr/></table></div>'),o=s.find("tr"),a=0;a<r.length;a++)if(l=r[a],d=t("<td/>").appendTo(o),l.length)for(u=t('<div class="fc-'+i+'-container"/>').appendTo(d),c=this.colData[a].day,h=0;h<l.length;h++)f=l[h],u.append(f.el.css({top:this.computeDateTop(f.start,c),bottom:-this.computeDateTop(f.end,c)}));this.bookendCells(o,e),this.el.append(s),this.elsByFill[e]=s}return n}});qt.mixin({eventSkeletonEl:null,renderFgSegs:function(e){return e=this.renderFgSegEls(e),this.el.append(this.eventSkeletonEl=t('<div class="fc-content-skeleton"/>').append(this.renderSegTable(e))),e},destroyFgSegs:function(t){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(e){var n,i,r,s,o,a,l=t("<table><tr/></table>"),d=l.find("tr");for(n=this.groupSegCols(e),this.computeSegVerticals(e),s=0;s<n.length;s++){for(o=n[s],dt(o),a=t('<div class="fc-event-container"/>'),i=0;i<o.length;i++)r=o[i],r.el.css(this.generateSegPositionCss(r)),r.bottom-r.top<30&&r.el.addClass("fc-short"),a.append(r.el);d.append(t("<td/>").append(a))}return this.bookendCells(d,"eventSkeleton"),l},updateSegVerticals:function(){var t,e=(this.segs||[]).concat(this.businessHourSegs||[]);for(this.computeSegVerticals(e),t=0;t<e.length;t++)e[t].el.css(this.generateSegVerticalCss(e[t]))},computeSegVerticals:function(t){var e,n;for(e=0;e<t.length;e++)n=t[e],n.top=this.computeDateTop(n.start,n.start),n.bottom=this.computeDateTop(n.end,n.start)},fgSegHtml:function(t,e){var n,i,r,s=this.view,o=t.event,a=s.isEventDraggable(o),l=!e&&t.isEnd&&s.isEventResizable(o),d=this.getSegClasses(t,a,l),u=this.getEventSkinCss(o);return d.unshift("fc-time-grid-event"),s.isMultiDayEvent(o)?(t.isStart||t.isEnd)&&(n=this.getEventTimeText(t),i=this.getEventTimeText(t,"LT"),r=this.getEventTimeText({start:t.start})):(n=this.getEventTimeText(o),i=this.getEventTimeText(o,"LT"),r=this.getEventTimeText({start:o.start})),'<a class="'+d.join(" ")+'"'+(o.url?' href="'+N(o.url)+'"':"")+(u?' style="'+u+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+N(r)+'" data-full="'+N(i)+'"><span>'+N(n)+"</span></div>":"")+(o.title?'<div class="fc-title">'+N(o.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(l?'<div class="fc-resizer"/>':"")+"</a>"},generateSegPositionCss:function(t){var e,n,i=this.view.opt("slotEventOverlap"),r=t.backwardCoord,s=t.forwardCoord,o=this.generateSegVerticalCss(t);return i&&(s=Math.min(1,r+2*(s-r))),this.isRTL?(e=1-s,n=r):(e=r,n=1-s),o.zIndex=t.level+1,o.left=100*e+"%",o.right=100*n+"%",i&&t.forwardPressure&&(o[this.isRTL?"marginLeft":"marginRight"]=20),o},generateSegVerticalCss:function(t){return{top:t.top,bottom:-t.bottom}},groupSegCols:function(t){var e,n=[];for(e=0;e<this.colCnt;e++)n.push([]);for(e=0;e<t.length;e++)n[t[e].col].push(t[e]);return n}});var Kt=Dt.View=Q.extend({type:null,name:null,title:null,calendar:null,options:null,coordMap:null,el:null,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isSelected:!1,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,constructor:function(n,i,r){this.calendar=n,this.options=i,this.type=this.name=r,this.nextDayThreshold=e.duration(this.opt("nextDayThreshold")),this.initTheming(),this.initHiddenDays(),this.documentMousedownProxy=t.proxy(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(e){var n;return n=this.options[e],void 0!==n?n:(n=this.calendar.options[e],t.isPlainObject(n)&&!r(e)?w(n,this.type):n)},trigger:function(t,e){var n=this.calendar;return n.trigger.apply(n,[t,e||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(t){this.setRange(this.computeRange(t))},setRange:function(e){t.extend(this,e),this.updateTitle()},computeRange:function(t){var n,i,r=e.duration(this.opt("duration")||this.constructor.duration||{days:1}),s=E(r),o=t.clone().startOf(s),a=o.clone().add(r);return/year|month|week|day/.test(s)?(o.stripTime(),a.stripTime()):(o.hasTime()||(o=this.calendar.rezoneDate(o)),a.hasTime()||(a=this.calendar.rezoneDate(a))),n=o.clone(),n=this.skipHiddenDays(n),i=a.clone(),i=this.skipHiddenDays(i,-1,!0),{intervalDuration:r,intervalUnit:s,intervalStart:o,intervalEnd:a,start:n,end:i}},computePrevDate:function(t){return this.massageCurrentDate(t.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(t){return this.massageCurrentDate(t.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(t,n){return this.intervalDuration<=e.duration({days:1})&&this.isHiddenDay(t)&&(t=this.skipHiddenDays(t,n),t.startOf("day")),t},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(t,e,n){var i=t.end;return i.hasTime()||(i=i.clone().subtract(1)),X(t.start,i,e,n,this.opt("isRTL"))},renderView:function(){this.render(),this.updateSize(),this.initializeScroll(),this.trigger("viewRender",this,this,this.el),t(document).on("mousedown",this.documentMousedownProxy)},render:function(){},destroyView:function(){this.unselect(),this.destroyViewEvents(),this.destroy(),this.trigger("viewDestroy",this,this,this.el),t(document).off("mousedown",this.documentMousedownProxy)},destroy:function(){this.el.empty()},initTheming:function(){var t=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=t+"-widget-header",this.widgetContentClass=t+"-widget-content",this.highlightStateClass=t+"-state-highlight"},updateSize:function(t){t&&this.recordScroll(),this.updateHeight(),this.updateWidth()},updateWidth:function(){},updateHeight:function(){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(t,e){},computeScrollerHeight:function(t,e){var n,i;return e=e||this.scrollerEl,n=this.el.add(e),n.css({position:"relative",left:-1}),i=this.el.outerHeight()-e.height(),n.css({position:"",left:""}),t-i},initializeScroll:function(){},recordScroll:function(){this.scrollerEl&&(this.scrollTop=this.scrollerEl.scrollTop())},restoreScroll:function(){null!==this.scrollTop&&this.scrollerEl.scrollTop(this.scrollTop)},renderViewEvents:function(t){this.renderEvents(t),this.eventSegEach(function(t){this.trigger("eventAfterRender",t.event,t.event,t.el)}),this.trigger("eventAfterAllRender")},renderEvents:function(){},destroyViewEvents:function(){this.eventSegEach(function(t){this.trigger("eventDestroy",t.event,t.event,t.el)}),this.destroyEvents()},destroyEvents:function(){},resolveEventEl:function(e,n){var i=this.trigger("eventRender",e,e,n);return i===!1?n=null:i&&i!==!0&&(n=t(i)),n},showEvent:function(t){this.eventSegEach(function(t){t.el.css("visibility","")},t)},hideEvent:function(t){this.eventSegEach(function(t){t.el.css("visibility","hidden")},t)},eventSegEach:function(t,e){var n,i=this.getEventSegs();for(n=0;n<i.length;n++)e&&i[n].event._id!==e._id||t.call(this,i[n])},getEventSegs:function(){return[]},isEventDraggable:function(t){var e=t.source||{};return G(t.startEditable,e.startEditable,this.opt("eventStartEditable"),t.editable,e.editable,this.opt("editable"))},reportEventDrop:function(t,e,n,i){var r=this.calendar,s=r.mutateEvent(t,e),o=function(){s.undo(),r.reportEventChange()};this.triggerEventDrop(t,s.dateDelta,o,n,i),r.reportEventChange()},triggerEventDrop:function(t,e,n,i,r){this.trigger("eventDrop",i[0],t,e,n,r,{})},reportExternalDrop:function(e,n,i,r,s){var o,a,l=e.eventProps;l&&(o=t.extend({},l,n),a=this.calendar.renderEvent(o,e.stick)[0]),this.triggerExternalDrop(a,n,i,r,s)},triggerExternalDrop:function(t,e,n,i,r){this.trigger("drop",n[0],e.start,i,r),t&&this.trigger("eventReceive",null,t)},renderDrag:function(t,e){},destroyDrag:function(){},isEventResizable:function(t){var e=t.source||{};return G(t.durationEditable,e.durationEditable,this.opt("eventDurationEditable"),t.editable,e.editable,this.opt("editable"))},reportEventResize:function(t,e,n,i){var r=this.calendar,s=r.mutateEvent(t,{end:e}),o=function(){s.undo(),r.reportEventChange()};this.triggerEventResize(t,s.durationDelta,o,n,i),r.reportEventChange()},triggerEventResize:function(t,e,n,i,r){this.trigger("eventResize",i[0],t,e,n,r,{})},select:function(t,e){this.unselect(e),this.renderSelection(t),this.reportSelection(t,e)},renderSelection:function(t){},reportSelection:function(t,e){this.isSelected=!0,this.trigger("select",null,t.start,t.end,e)},unselect:function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection(),this.trigger("unselect",null,t))},destroySelection:function(){},documentMousedown:function(e){var n;this.isSelected&&this.opt("unselectAuto")&&v(e)&&(n=this.opt("unselectCancel"),n&&t(e.target).closest(n).length||this.unselect(e))},initHiddenDays:function(){var e,n=this.opt("hiddenDays")||[],i=[],r=0;for(this.opt("weekends")===!1&&n.push(0,6),e=0;7>e;e++)(i[e]=-1!==t.inArray(e,n))||r++;if(!r)throw"invalid hiddenDays";this.isHiddenDayHash=i},isHiddenDay:function(t){return e.isMoment(t)&&(t=t.day()),this.isHiddenDayHash[t]},skipHiddenDays:function(t,e,n){var i=t.clone();for(e=e||1;this.isHiddenDayHash[(i.day()+(n?e:0)+7)%7];)i.add(e,"days");return i},computeDayRange:function(t){var e,n=t.start.clone().stripTime(),i=t.end,r=null;return i&&(r=i.clone().stripTime(),e=+i.time(),e&&e>=this.nextDayThreshold&&r.add(1,"days")),(!i||n>=r)&&(r=n.clone().add(1,"days")),{start:n,end:r}},isMultiDayEvent:function(t){var e=this.computeDayRange(t);return e.end.diff(e.start,"days")>1}});Dt.sourceNormalizers=[],Dt.sourceFetchers=[];var Qt={dataType:"json",cache:!1},Jt=1,te=Tt.basic=Kt.extend({dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,initialize:function(){this.dayGrid=new $t(this),this.coordMap=this.dayGrid.coordMap},setRange:function(t){Kt.prototype.setRange.call(this,t),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(t)},computeRange:function(t){var e=Kt.prototype.computeRange.call(this,t);return/year|month/.test(e.intervalUnit)&&(e.start.startOf("week"),e.start=this.skipHiddenDays(e.start),e.end.weekday()&&(e.end.add(1,"week").startOf("week"),e.end=this.skipHiddenDays(e.end,-1,!0))),e},render:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows())},destroy:function(){this.dayGrid.destroy(),Kt.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.weekNumbersVisible?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+N(this.opt("weekNumberTitle"))+"</span></th>":void 0},numberIntroHtml:function(t){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.calendar.calculateWeekNumber(this.dayGrid.getCell(t,0).start)+"</span></td>":void 0},dayIntroHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":void 0},introHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":void 0},numberCellHtml:function(t){var e,n=t.start;return this.dayNumbersVisible?(e=this.dayGrid.getDayClasses(n),e.unshift("fc-day-number"),'<td class="'+e.join(" ")+'" data-date="'+n.format()+'">'+n.date()+"</td>"):"<td/>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=h(this.el.find(".fc-week-number")))},setHeight:function(t,e){var n,i=this.opt("eventLimit");g(this.scrollerEl),a(this.headRowEl),this.dayGrid.destroySegPopover(),i&&"number"==typeof i&&this.dayGrid.limitRows(i),n=this.computeScrollerHeight(t),this.setGridHeight(n,e),i&&"number"!=typeof i&&this.dayGrid.limitRows(i),!e&&f(this.scrollerEl,n)&&(o(this.headRowEl,m(this.scrollerEl)),n=this.computeScrollerHeight(t),this.scrollerEl.height(n),this.restoreScroll())},setGridHeight:function(t,e){e?c(this.dayGrid.rowEls):u(this.dayGrid.rowEls,t,!0)},renderEvents:function(t){this.dayGrid.renderEvents(t),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},destroyEvents:function(){this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(t,e){return this.dayGrid.renderDrag(t,e)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(t){this.dayGrid.renderSelection(t)},destroySelection:function(){this.dayGrid.destroySelection()}});n({fixedWeekCount:!0});var ee=Tt.month=te.extend({computeRange:function(t){var e,n=te.prototype.computeRange.call(this,t);return this.isFixedWeeks()&&(e=Math.ceil(n.end.diff(n.start,"weeks",!0)),n.end.add(6-e,"weeks")),n},setGridHeight:function(t,e){e=e||"variable"===this.opt("weekMode"),e&&(t*=this.rowCnt/6),u(this.dayGrid.rowEls,t,!e)},isFixedWeeks:function(){var t=this.opt("weekMode");return t?"fixed"===t:this.opt("fixedWeekCount")}});ee.duration={months:1},Tt.basicWeek={type:"basic",duration:{weeks:1}},Tt.basicDay={type:"basic",duration:{days:1}},n({allDaySlot:!0,allDayText:"all-day",scrollTime:"06:00:00",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0});var ne=5;Tt.agenda=Kt.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new qt(this),this.opt("allDaySlot")?(this.dayGrid=new $t(this),this.coordMap=new It([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(t){Kt.prototype.setRange.call(this,t),this.timeGrid.setRange(t),this.dayGrid&&this.dayGrid.setRange(t)},render:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.containerEl=this.scrollerEl,this.timeGrid.el=this.el.find(".fc-time-grid"),this.timeGrid.render(),this.bottomRuleEl=t('<hr class="'+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},destroy:function(){this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),Kt.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="'+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){var t,e,n,i;return this.opt("weekNumbers")?(t=this.timeGrid.getCell(0).start,e=this.calendar.calculateWeekNumber(t),n=this.opt("weekNumberTitle"),i=this.opt("isRTL")?e+n:n+e,'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+N(i)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||N(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(t){t&&this.timeGrid.resize(),Kt.prototype.updateSize.call(this,t)},updateWidth:function(){this.axisWidth=h(this.el.find(".fc-axis"))},setHeight:function(t,e){var n,i;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),g(this.scrollerEl),a(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.destroySegPopover(),n=this.opt("eventLimit"),n&&"number"!=typeof n&&(n=ne),n&&this.dayGrid.limitRows(n)),e||(i=this.computeScrollerHeight(t),f(this.scrollerEl,i)?(o(this.noScrollRowEls,m(this.scrollerEl)),i=this.computeScrollerHeight(t),this.scrollerEl.height(i),this.restoreScroll()):(this.scrollerEl.height(i).css("overflow","hidden"),this.bottomRuleEl.show()))},initializeScroll:function(){function t(){n.scrollerEl.scrollTop(r)}var n=this,i=e.duration(this.opt("scrollTime")),r=this.timeGrid.computeTimeTop(i);r=Math.ceil(r),r&&r++,t(),setTimeout(t,0)},renderEvents:function(t){var e,n,i=[],r=[],s=[];for(n=0;n<t.length;n++)t[n].allDay?i.push(t[n]):r.push(t[n]);e=this.timeGrid.renderEvents(r),this.dayGrid&&(s=this.dayGrid.renderEvents(i)),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},destroyEvents:function(){this.recordScroll(),this.timeGrid.destroyEvents(),this.dayGrid&&this.dayGrid.destroyEvents()},renderDrag:function(t,e){return t.start.hasTime()?this.timeGrid.renderDrag(t,e):this.dayGrid?this.dayGrid.renderDrag(t,e):void 0},destroyDrag:function(){this.timeGrid.destroyDrag(),this.dayGrid&&this.dayGrid.destroyDrag()},renderSelection:function(t){t.start.hasTime()||t.end.hasTime()?this.timeGrid.renderSelection(t):this.dayGrid&&this.dayGrid.renderSelection(t)},destroySelection:function(){this.timeGrid.destroySelection(),this.dayGrid&&this.dayGrid.destroySelection()}}),Tt.agendaWeek={type:"agenda",duration:{weeks:1}},Tt.agendaDay={type:"agenda",duration:{days:1}},n({yearColumns:2,fixedWeekCount:5}),Tt.year=Kt.extend({dayNumbersVisible:!0,weekNumbersVisible:!1,weekNumberWidth:null,table:null,body:null,bodyRows:null,subTables:null,bodyCells:null,daySegmentContainer:null,colCnt:null,rowCnt:null,dayGrids:[],rtl:null,dis:null,dit:null,firstDay:null,firstMonth:null,lastMonth:null,yearColumns:2,nbMonths:null,hiddenMonths:[],nwe:null,tm:null,colFormat:null,dayGrid:null,coordMap:null,otherMonthDays:[],rowsForMonth:[],initialize:function(){this.updateOptions(),this.dayGrid=new $t(this),this.dayGrids[0]=this.dayGrid,this.coordMap=this.dayGrid.coordMap},updateOptions:function(){this.rtl=this.opt("isRTL"),this.rtl?(this.dis=-1,this.dit=this.colCnt-1):(this.dis=1,this.dit=0),this.firstDay=parseInt(this.opt("firstDay"),10),this.firstMonth=parseInt(this.opt("firstMonth"),10)||0,this.lastMonth=this.opt("lastMonth")||this.firstMonth+12,this.hiddenMonths=this.opt("hiddenMonths")||[],this.yearColumns=parseInt(this.opt("yearColumns"),10)||2,this.colFormat=this.opt("columnFormat"),this.weekNumbersVisible=this.opt("weekNumbers"),this.nwe=this.opt("weekends")?0:1,this.tm=this.opt("theme")?"ui":"fc",this.nbMonths=this.lastMonth-this.firstMonth,this.lastMonth=this.lastMonth%12,this.lang=this.opt("lang")},computeTitle:function(){if(null!==this.opt("yearTitleFormat")){var t=this.intervalStart.locale(this.lang).format(this.opt("yearTitleFormat")),e=this.intervalStart.clone().add(this.nbMonths-1,"months");return e.year()!=this.intervalStart.year()&&(t+=this.intervalEnd.format(" - YYYY")),t}return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},render:function(t){var e=Math.floor(this.intervalStart.month()/this.nbMonths)*this.nbMonths;!e&&this.firstMonth>0&&!this.opt("lastMonth")&&(e=(this.firstMonth+e)%12),this.intervalStart=Dt.moment([this.intervalStart.year(),e,1]),this.intervalEnd=this.intervalStart.clone().add(this.nbMonths,"months").add(-15,"minutes"),this.start=this.intervalStart.clone(),this.start=this.skipHiddenDays(this.start),this.start.startOf("week"),this.start=this.skipHiddenDays(this.start),this.end=this.intervalEnd.clone(),this.end=this.skipHiddenDays(this.end,-1,!0),this.end.add((7-this.end.weekday())%7,"days"),this.end=this.skipHiddenDays(this.end,-1,!0);var n=parseInt(this.opt("yearColumns"),10),i=this.opt("weekends")?7:5;this.renderYear(n,i,!0)},renderYear:function(t,e,n){this.colCnt=e;var i=!this.table;i||(this.destroyEvents(),this.table.remove()),this.buildSkeleton(this.yearColumns,n),this.buildDayGrids(),this.updateCells()},setRange:function(t){Kt.prototype.setRange.call(this,t)},computeRange:function(t){this.constructor.duration={months:this.nbMonths||12};var e=Kt.prototype.computeRange.call(this,t);return/year|month/.test(e.intervalUnit)&&(e.start.startOf("week"),e.start=this.skipHiddenDays(e.start),e.end.weekday()&&(e.end.add(1,"week").startOf("week"),e.end=this.skipHiddenDays(e.end,-1,!0))),e},buildSkeleton:function(e,n){var i,r,s,o,a=0,l=0,d=this.intervalStart.year(),u=this.tm+"-widget-header",c=[];for(this.rowCnt=0,r=0;7>r;r++)c[r]=Dt.moment([2013,11,1+r]).locale(this.lang).format("ddd");for(o='<table class="fc-year-main-table fc-border-separate" style="width:100%;"><tr>',o+='<td class="fc-year-month-border fc-first"></td>',r=0;r<this.nbMonths;r++){var h=this.intervalStart.month()+r,f=-1!=t.inArray(h%12,this.hiddenMonths),g=f?"display:none;":"",p=Dt.moment([d+h/12,h%12,1]).locale(this.lang),m=Y(p.format("MMMM")),v=p.format("YYYYMM");for(s=p.year(),this.firstMonth+this.nbMonths>12&&(m=m+" "+s),r%e===0&&r>0&&!f&&(l++,o+='<td class="fc-year-month-border fc-last"></td></tr><tr><td class="fc-year-month-border fc-first"></td>'),e>r%e&&r%e>0&&!f&&(o+='<td class="fc-year-month-separator"></td>'),o+='<td class="fc-year-monthly-td" style="'+g+'">',o+='<div class="fc-year-monthly-name'+(0===l?" fc-first":"")+'"><a name="'+v+'" data-year="'+s+'" data-month="'+h+'" href="#">'+N(m)+"</a></div>",o+='<div class="fc-row '+u+'">',o+='<table class="fc-year-month-header"><thead><tr class="fc-year-week-days">',o+=this.headIntroHtml(),i=this.firstDay;i<this.colCnt+this.firstDay;i++)o+='<th class="fc-day-header fc-year-weekly-head fc-'+Gt[i%7]+" "+u+'">'+c[i%7]+"</th>";o+="</tr><tr></tr></thead></table>",o+="</div>",o+='<div class="fc-day-grid-container"><div class="fc-day-grid">',o+="</div></div>",o+='<div class="fc-year-monthly-footer"></div>',o+="</td>",f&&a++}o+='<td class="fc-year-month-border fc-last"></td>',o+="</tr></table>",this.table=t(o).appendTo(this.el),this.bodyRows=this.table.find(".fc-day-grid .fc-week"),this.bodyCells=this.bodyRows.find("td.fc-day"),this.bodyFirstCells=this.bodyCells.filter(":first-child"),this.subTables=this.table.find("td.fc-year-monthly-td"),this.head=this.table.find("thead"),this.head.find("tr.fc-year-week-days th.fc-year-weekly-head:first").addClass("fc-first"),this.head.find("tr.fc-year-week-days th.fc-year-weekly-head:last").addClass("fc-last"),this.table.find(".fc-year-monthly-name a").click(this.calendar,function(e){e.data.changeView("month"),e.data.gotoDate([t(this).attr("data-year"),t(this).attr("data-month"),1])}),this.dayBind(this.bodyCells),this.daySegmentContainer=t('<div style="position:absolute;z-index:8;top:0;left:0;"/>').appendTo(this.table)},buildDayGrids:function(){for(var e=this,n=[],i=0;i<this.nbMonths;i++)n.push(i+this.intervalStart.month());var r=e.intervalStart.clone().add(7,"days");e.dayGrids=[],t.each(n,function(t,n){var i=new $t(e),s=e.tableByOffset(t),o=r.clone().add(t,"months");i.headRowEl=s.find(".fc-row:first"),i.scrollerEl=s.find(".fc-day-grid-container"),i.coordMap.containerEl=i.scrollerEl,i.el=s.find(".fc-day-grid"),i.offset=t,i.rowData=[],i.colData=[];var a=e.computeMonthRange(o);i.start=a.start,i.end=a.end,i.breakOnWeeks=!0,i.updateCells(),e.dayNumbersVisible=i.rowCnt>1,i.numbersVisible=e.dayNumbersVisible||e.weekNumbersVisible,$t.prototype.render.call(i,e.hasRigidRows()),e.dayGrids.push(i)}),e.dayGrid=e.dayGrids[0],e.coordMap=e.dayGrid.coordMap},isFixedWeeks:function(){var t=this.opt("weekMode");return t?"fixed"===t:this.opt("fixedWeekCount")},computeMonthRange:function(t){this.constructor.duration={months:1};var e=Kt.prototype.computeRange.call(this,t);if(/year|month/.test(e.intervalUnit)){e.start.startOf("week"),e.start=this.skipHiddenDays(e.start),e.end.weekday()&&(e.end.add(1,"week").startOf("week"),e.end=this.skipHiddenDays(e.end,-1,!0));var n=Math.ceil(e.end.diff(e.start,"weeks",!0));5===this.isFixedWeeks()?4==n&&e.end.add(1,"weeks"):this.isFixedWeeks()&&6>=n&&e.end.add(6-n,"weeks")}return e},destroy:function(){t.each(this.dayGrids,function(t,e){e.destroy()}),Kt.prototype.destroy.call(this)},updateCells:function(){var e=this;this.subTables.find(".fc-week:first").addClass("fc-first"),this.subTables.find(".fc-week:last").addClass("fc-last"),this.subTables.find(".fc-bg").find("td.fc-day:last").addClass("fc-last"),this.subTables.each(function(n,i){e.curYear||(e.curYear=e.intervalStart);var r=e.curYear.clone(),s=(n+e.intervalStart.month())%12;r=e.dayGrids[n].start;var o=0;t(i).find(".fc-bg").find("td.fc-day:first").addClass("fc-first"),e.otherMonthDays[s]=[0,0,0,0],t(i).find(".fc-content-skeleton tr").each(function(i,a){0===i&&e.dateInMonth(r,s)&&(e.otherMonthDays[s][2]=r.date()-1),t(a).find("td").not(".fc-week-number").each(function(a,l){var d=t(l);r=e.dayGrids[n].cellDates[a+i*e.colCnt],e.dateInMonth(r,s)?o=r:(d.addClass("fc-other-month"),r.month()==(s+11)%12?(e.otherMonthDays[s][0]++,d.addClass("fc-prev-month")):(e.otherMonthDays[s][1]++,d.addClass("fc-next-month")))})});var a=e.daysInMonth(e.curYear.year(),s+1)-o;e.otherMonthDays[s][3]=a}),e.bodyRows.filter(".fc-year-have-event").removeClass("fc-year-have-event")},headIntroHtml:function(){return this.weekNumbersVisible?'<th class="fc-week-number-head '+this.widgetHeaderClass+'"><span>'+N(this.opt("weekNumberTitle"))+"</span></th>":""},numberIntroHtml:function(t,e){return this.weekNumbersVisible?(e=e||this.dayGrid,'<td class="fc-week-number" '+this.weekNumberStyleAttr("")+"><span>"+this.calendar.calculateWeekNumber(e.getCell(t,0).start)+"</span></td>"):""},dayIntroHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr("")+"></td>":""},introHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr("")+"></td>":""},weekNumberStyleAttr:function(){var t="";return null!==this.weekNumberWidth&&(t='style="width:'+this.weekNumberWidth+'px;"'),t},numberCellHtml:function(t){if(!this.dayNumbersVisible)return"<td/>";var e=t.start,n=this.dayGrid.getDayClasses(e);return n.unshift("fc-day-number"),'<td class="'+n.join(" ")+'" data-date="'+e.format()+'">'+e.date()+"</td>"},hasRigidRows:function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},cellsForMonth:function(t){return this.rowsForMonth[t]*(this.nwe?5:7)},addDays:function(t,e){t.add(e,"days")},skipWeekend:function(t,e,n){for(e=e||1;!t.day()||n&&1==t.day()||!n&&6==t.day();)this.addDays(t,e);return t},daysInMonth:function(t,e){return Dt.moment([t,e,0]).date()},dateInMonth:function(t,e){return t.month()==e%12},rowToGridOffset:function(t){for(var e=0,n=this.firstMonth;n<this.lastMonth;n++)if(e+=this.rowsForMonth[n],e>t)return n-this.firstMonth;return-1},rowToGridRow:function(t){for(var e=0,n=this.firstMonth;n<this.lastMonth;n++)if(e+=this.rowsForMonth[n],e>t)return t-(e-this.rowsForMonth[n]);return-1},tableByOffset:function(e){return t(this.subTables[e])},setGridHeight:function(e,n,i){return"undefined"!=typeof i?void(n?c(i.rowEls):u(i.rowEls,e,!0)):void t.each(this.dayGrids,function(t,i){n?c(i.rowEls):u(i.rowEls,e,!0)})},computeScrollerHeight:function(t,e){var n,i;e=e||this.scrollerEl;var r=e.closest(".fc-year-monthly-td");return n=r.add(e),n.css({position:"relative",left:-1}),i=r.outerHeight()-e.height(),n.css({position:"",left:""}),t-i},setHeight:function(e,n){var i,r=this,s=this.opt("eventLimit");t.each(this.dayGrids,function(t,l){l.el.length>0&&(g(l.scrollerEl),a(l.headRowEl),l.destroySegPopover(),s&&"number"==typeof s&&l.limitRows(s),i||(i=r.computeScrollerHeight(e,l.scrollerEl)),r.setGridHeight(i,n,l),s&&"number"!=typeof s&&l.limitRows(s),!n&&f(l.scrollerEl,i)&&(o(l.headRowEl,m(l.scrollerEl)),
i=r.computeScrollerHeight(e,l.scrollerEl),l.scrollerEl.height(i),r.restoreScroll()))})},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=h(this.el.find(".fc-week-number")),this.weekNumberWidth&&this.el.find(".fc-week-number-head").width(this.weekNumberWidth+2))},updateHeight:function(){var t=this.calendar;if(this.yearColumns>0){var e=t.getSuggestedViewHeight()*(1.1/(.01+this.yearColumns));this.setHeight(e,t.isHeightAuto())}},dayBind:function(t){t.click(this.dayClick)},dayClick:function(e){if(!this.opt("selectable")){var n=this.className.match(/fc\-day\-(\d+)\-(\d+)\-(\d+)/),i=new Date(n[1],n[2]-1,n[3]);t.trigger("dayClick",this,Dt.moment(i),!0,e)}},renderEvents:function(e){t.each(this.dayGrids,function(t,n){n.renderEvents(e)}),this.updateHeight()},getEventSegs:function(){var e=[];return t.each(this.dayGrids,function(t,n){for(var i=n.getEventSegs(),r=0;r<i.length;r++)e.push(i[r])}),e},destroyEvents:function(){this.recordScroll(),t.each(this.dayGrids,function(t,e){e.destroyEvents()})},renderDrag:function(e,n){var i=!1;return t.each(this.dayGrids,function(t,i){i.renderDrag(e,n)}),i},destroyDrag:function(){t.each(this.dayGrids,function(t,e){e.destroyDrag()})},renderSelection:function(e,n){t.each(this.dayGrids,function(t,i){i!==n&&(i.start<=e.end||i.end>=e.start)&&i.renderSelection(e)})},destroySelection:function(){t.each(this.dayGrids,function(t,e){e.destroySelection()})}})});
$(document).ready(function() {
var Money = function(amount) {
this.amount = amount;
}
Money.prototype.valueOf = function() {
return Math.round(this.amount*100)/100;
}
Money.prototype.toString = function() {
var amount = this.valueOf().toString();
var pad = Math.abs((amount.split('.')[1] || '').length - 2);
if(pad === 1) {amount += '0'}
else if (pad === 2) {amount += '.00'}
return amount
}
Date.prototype.formatPretty = function() {
return this.getFullYear() + '-' + ((this.getMonth()+1) < 10? '0': '') + (this.getMonth()+1) + '-' + ((this.getDate()) < 10? '0': '') + this.getDate();
}
Date.prototype.addDays = function(days) {
var dat = new Date(this.valueOf());
dat.setDate(dat.getDate() + days);
return dat;
}
var startDate = new Date(2016, 0, 1);
function generateEvents() {
var start = 0.01;
var total = 0;
var events = [];
for (var i=1; i<367; i++){
total += start * i;
events.push({
title: (new Money(start * i)).toString(),
start: startDate.addDays(i-1).formatPretty(),
end: startDate.addDays(i-1).formatPretty(),
color: 'green'
});
events.push({
title: (new Money(total)).toString(),
start: startDate.addDays(i-1).formatPretty(),
end: startDate.addDays(i-1).formatPretty(),
color: 'blue'
});
}
return events;
}
var ignoreWeek = false;
var lastDate = null;
var currentMonth = null;
$('#calendar').fullCalendar({
header: {
center: 'title'
},
eventRender: function (event, element, view) {
if(ignoreWeek && event.start.weekday() != 0){
return false
} else if (ignoreWeek && event.start.weekday() == 0) {
ignoreWeek = false;
currentMonth += 1;
}
if(lastDate) {
if (currentMonth -1 == event.start.month()) {
return false;
}
else if (event.start.month() == 4 && event.start.date() == 1){}
else if (currentMonth != event.start.month()) {
ignoreWeek = true;
return false;
}
}
currentMonth = event.start.month();
lastDate = event.start;
},
eventAfterAllRender: function(){
$('html, body').animate({
scrollTop: $($('.fc-state-highlight')[0]).offset().top - 300
});
},
disableDragging: true,
defaultDate: '2016-01-12',
defaultView: 'year',
yearColumns: 1,
selectable: false,
firstDay: 0,
editable: false,
eventLimit: true, // allow "more" link when too many events
events: generateEvents()
});
});
</script>
<style>
body {
margin: 40px 10px;
padding: 0;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
font-size: 14px;
}
.fc-left, .fc-right {
display: none;
}
@media print {
/*.fc-year-monthly-name:first-child {
page-break-before: auto;
}*/
.fc-year-monthly-name {
page-break-before: always;
}
}
.fc-row.fc-week {
height: 70px !important;
}
#calendar {
max-width: 1280px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="calendar"></div>
</body></html>