if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",(function(){n=!0}));return setTimeout((function(){n||t(i).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})}))}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.3.5",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){o.detach().trigger("closed.bs.alert").remove()}var r=t(this),s=r.attr("data-target");s||(s=(s=r.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,""));var o=t(s);e&&e.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var i=t.fn.alert;t.fn.alert=function(e){return this.each((function(){var i=t(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof e&&r[e].call(i)}))},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.button"),s="object"==typeof e&&e;r||i.data("bs.button",r=new n(this,s)),"toggle"==e?r.toggle():e&&r.setState(e)}))}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.5",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",s=i.data();e+="Text",null==s.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy((function(){i[r](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))}),this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(n){var i=t(n.target);i.hasClass("btn")||(i=i.closest(".btn")),e.call(i,"toggle"),t(n.target).is('input[type="radio"]')||t(n.target).is('input[type="checkbox"]')||n.preventDefault()})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))}))}(jQuery),function(t){"use strict";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.carousel"),s=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),o="string"==typeof e?e:s.slide;r||i.data("bs.carousel",r=new n(this,s)),"number"==typeof e?r.to(e):o?r[o]():s.interval&&r.pause().cycle()}))}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.5",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",(function(){e.to(t)})):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(e,i){var r=this.$element.find(".item.active"),s=i||this.getItemForDirection(e,r),o=this.interval,a="next"==e?"left":"right",l=this;if(s.hasClass("active"))return this.sliding=!1;var u=s[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(s)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:u,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,r.addClass(a),s.addClass(a),r.one("bsTransitionEnd",(function(){s.removeClass([e,a].join(" ")).addClass("active"),r.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger(h)}),0)})).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(h)),o&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i,r=t(this),s=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var o=t.extend({},s.data(),r.data()),a=r.attr("data-slide-to");a&&(o.interval=!1),e.call(s,o),a&&s.data("bs.carousel").to(a),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",(function(){t('[data-ride="carousel"]').each((function(){var n=t(this);e.call(n,n.data())}))}))}(jQuery),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each((function(){var n=t(this),r=n.data("bs.collapse"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),r||n.data("bs.collapse",r=new i(this,s)),"string"==typeof e&&r[e]()}))}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.5",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"),e&&e.transitioning))){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[o](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)}),this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var s=e(r),o=s.data("bs.collapse")?"toggle":r.data();n.call(s,o)}))}(jQuery),function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(i).remove(),t(r).each((function(){var i=t(this),r=e(i),s={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target)||(r.trigger(n=t.Event("hide.bs.dropdown",s)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger("hidden.bs.dropdown",s))))})))}var i=".dropdown-backdrop",r='[data-toggle="dropdown"]',s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.5",s.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var s=e(r),o=s.hasClass("open");if(n(),!o){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(s.trigger(i=t.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},s.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var s=e(i),o=s.hasClass("open");if(!o&&27!=n.which||o&&27==n.which)return 27==n.which&&s.find(r).trigger("focus"),i.trigger("click");var a=s.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<a.length-1&&l++,~l||(l=0),a.eq(l).trigger("focus")}}}};var o=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new s(this)),"string"==typeof e&&i[e].call(n)}))},t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=o,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})).on("click.bs.dropdown.data-api",r,s.prototype.toggle).on("keydown.bs.dropdown.data-api",r,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,i){return this.each((function(){var r=t(this),s=r.data("bs.modal"),o=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);s||r.data("bs.modal",s=new n(this,o)),"string"==typeof e?s[e](i):o.show&&s.show(i)}))}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};n.VERSION="3.3.5",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){i.$element.one("mouseup.dismiss.bs.modal",(function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$dialog.one("bsTransitionEnd",(function(){i.$element.trigger("focus").trigger(s)})).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(s)})))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")}))},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy((function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))}),this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(n){var i=t(this),r=i.attr("href"),s=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),o=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},s.data(),i.data());i.is("a")&&n.preventDefault(),s.one("show.bs.modal",(function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){i.is(":visible")&&i.trigger("focus")}))})),e.call(s,o,this)}))}(jQuery),function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};e.VERSION="3.3.5",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),s=r.length;s--;){var o=r[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,(function(t,i){n[t]!=i&&(e[t]=i)})),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)):n.show())},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)):n.hide())},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var r=this,s=this.tip(),o=this.getUID(this.type);this.setContent(),s.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&s.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);u&&(a=a.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=s[0].offsetWidth,h=s[0].offsetHeight;if(u){var f=a,p=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+h>p.bottom?"top":"top"==a&&c.top-h<p.top?"bottom":"right"==a&&c.right+d>p.width?"left":"left"==a&&c.left-d<p.left?"right":a,s.removeClass(f).addClass(a)}var m=this.getCalculatedOffset(a,c,d,h);this.applyPlacement(m,a);var g=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",g).emulateTransitionEnd(e.TRANSITION_DURATION):g()}},e.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,s=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top+=o,e.left+=a,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=s&&(e.top=e.top+s-u);var c=this.getViewportAdjustedDelta(n,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(n),h=d?2*c.left-r+l:2*c.top-s+u,f=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][f],d)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){function i(){"in"!=r.hoverState&&s.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),n&&n()}var r=this,s=t(this.$tip),o=t.Event("hide.bs."+this.type);return this.$element.trigger(o),o.isDefaultPrevented()?void 0:(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(e.TRANSITION_DURATION):i(),this.hoverState=null,this)},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var s=i?{top:0,left:0}:e.offset(),o={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,o,a,s)},e.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var s=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-s-o.scroll,l=e.top+s-o.scroll+i;a<o.top?r.top=o.top-a:l>o.top+o.height&&(r.top=o.top+o.height-l)}else{var u=e.left-s,c=e.left+s+n;u<o.left?r.left=o.left-u:c>o.right&&(r.left=o.left+o.width-c)}return r},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null}))};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each((function(){var i=t(this),r=i.data("bs.tooltip"),s="object"==typeof n&&n;(r||!/destroy|hide/.test(n))&&(r||i.data("bs.tooltip",r=new e(this,s)),"string"==typeof n&&r[n]())}))},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.5",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each((function(){var i=t(this),r=i.data("bs.popover"),s="object"==typeof n&&n;(r||!/destroy|hide/.test(n))&&(r||i.data("bs.popover",r=new e(this,s)),"string"==typeof n&&r[n]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var i=t(this),r=i.data("bs.scrollspy"),s="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,s)),"string"==typeof n&&r[n]()}))}e.VERSION="3.3.5",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var e=t(this),r=e.data("target")||e.attr("href"),s=/^#./.test(r)&&t(r);return s&&s.length&&s.is(":visible")&&[[s[n]().top+i,r]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){e.offsets.push(this[0]),e.targets.push(this[1])}))},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,s=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return o!=(t=s[s.length-1])&&this.activate(t);if(o&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)o!=s[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(s[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",(function(){t('[data-spy="scroll"]').each((function(){var e=t(this);n.call(e,e.data())}))}))}(jQuery),function(t){"use strict";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()}))}var n=function(e){this.element=t(e)};n.VERSION="3.3.5",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),s=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(s),e.trigger(o),!o.isDefaultPrevented()&&!s.isDefaultPrevented()){var a=t(i);this.activate(e.closest("li"),n),this.activate(a,a.parent(),(function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}}},n.prototype.activate=function(e,i,r){function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var o=i.find("> .active"),a=r&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(t){"use strict";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.affix"),s="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,s)),"string"==typeof e&&r[e]()}))}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.5",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),s=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return n>r&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=s.top)&&"bottom":!(t-i>=r+o)&&"bottom";var a=null==this.affixed,l=a?r:s.top;return null!=n&&n>=r?"top":null!=i&&l+(a?o:e)>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,s=i.bottom,o=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(s=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof s&&(s=i.bottom(this.$element));var a=this.getState(o,e,r,s);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-e-s})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)}))}))}(jQuery),jQuery(document).ready((function(t){var e=t(".navbar-main"),n=e.offset().top,i=t(window);i.scroll((function(){i.scrollTop()>=n&&t(".navbar-default").hasClass("navbar-main")?(e.removeClass("navbar-fixed-top").addClass("navbar-fixed-top"),t("body").css("padding-top","70px")):(e.removeClass("navbar-fixed-top"),t("body").css("padding-top","0px"))}))})),jQuery(document).ready((function(){jQuery("#about_banner").flexslider({animation:"slide",controlNav:!0,animationSpeed:600,slideshowSpeed:5e3,easing:"swing",directionNav:!0,prevText:"",nextText:"",pauseOnAction:!1,touch:!0,start:function(){jQuery(".flex-active-slide .about_caption").addClass("show")},before:function(){jQuery(".flex-active-slide .about_caption").removeClass("show")},after:function(t){jQuery(".flex-active-slide .about_caption").addClass("show")}}),jQuery("#single_banner").flexslider({animation:"slide",controlNav:!0,animationSpeed:600,slideshowSpeed:5e3,easing:"swing",directionNav:!1,prevText:"",nextText:"",pauseOnAction:!1,touch:!0}),document.documentElement.clientWidth<992&&jQuery(".carousal_section").flexslider({animation:"slide",controlNav:!0,animationSpeed:600,slideshowSpeed:5e3,easing:"swing",directionNav:!1,prevText:"",nextText:"",pauseOnAction:!1,touch:!0,minItems:1,maxItems:1,move:1,animationLoop:!0,direction:"horizontal",reverse:!1}),jQuery(".carousal_section").flexslider({animation:"slide",controlNav:!0,animationSpeed:600,slideshowSpeed:5e3,easing:"swing",directionNav:!1,prevText:"",nextText:"",pauseOnAction:!1,touch:!0,itemWidth:475,minItems:1,maxItems:2,move:1,animationLoop:!0,direction:"horizontal",reverse:!1}),function(){var t=$(window),e={vars:{}};function n(){return window.innerWidth<600?2:window.innerWidth<800?3:window.innerWidth<900?4:5}t.load((function(){$(".flexslider").flexslider({animation:"slide",animationLoop:!1,itemWidth:228,itemMargin:0,prevText:"",nextText:"",minItems:n(),maxItems:n()})})),t.resize((function(){var t=n();e.vars.minItems=t,e.vars.maxItems=t}))}(),$('[data-toggle="tooltip"]').tooltip(),$("#guiest_id1").selectbox(),$("#guiest_id2").selectbox(),$(".option-select").selectbox(),$(".videoLeft img").click((function(){video='<iframe width="550" height="368" src="'+$(this).attr("data-video")+'"></iframe>',$(this).replaceWith(video)})),$(".admission_video img").click((function(){video='<iframe width="769" height="454" src="'+$(this).attr("data-video")+'"></iframe>',$(this).replaceWith(video)})),$(".popup-gallery").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",closeBtnInside:!1,gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(t){return t.el.attr("title")+""}}}),(new WOW).init(),jQuery(document).ready((function(t){t("span.timer").counterUp({delay:5,time:2e3})}))})),function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):"object"==typeof exports?module.exports=t(require("jquery"),require("moment")):t(jQuery,moment)}((function(t,e){function n(t){return P(t,xt)}function i(e){var n,i={views:e.views||{}};return t.each(e,(function(e,r){"views"!=e&&(t.isPlainObject(r)&&!/(time|duration|interval)$/i.test(e)&&-1==t.inArray(e,xt)?(n=null,t.each(r,(function(t,r){/^(month|week|day|default|basic(Week|Day)?|agenda(Week|Day)?)$/.test(t)?(i.views[t]||(i.views[t]={}),i.views[t][e]=r):(n||(n={}),n[t]=r)})),n&&(i[e]=n)):i[e]=r)})),i}function r(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 s(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function o(){t("body").addClass("fc-not-allowed")}function a(){t("body").removeClass("fc-not-allowed")}function l(e,n,i){var r=Math.floor(n/e.length),s=Math.floor(n-r*(e.length-1)),o=[],a=[],l=[],c=0;u(e),e.each((function(n,i){var u=n===e.length-1?s:r,d=t(i).outerHeight(!0);u>d?(o.push(i),a.push(d),l.push(t(i).height())):c+=d})),i&&(n-=c,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,u=a[e],c=i-(u-l[e]);i>u&&t(n).height(c)}))}function u(t){t.height("")}function c(e){var n=0;return e.find("> span").each((function(e,i){var r=t(i).outerWidth();r>n&&(n=r)})),n++,e.width(n),n}function d(t,e){return t.height(e).addClass("fc-scroller"),t[0].scrollHeight-1>t[0].clientHeight||(h(t),!1)}function h(t){t.height("").removeClass("fc-scroller")}function f(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 p(t){var e=t.offset();return{left:e.left,right:e.left+t.outerWidth(),top:e.top,bottom:e.top+t.outerHeight()}}function m(t){var e=t.offset(),n=g(t),i=e.left+y(t,"border-left-width")+n.left,r=e.top+y(t,"border-top-width")+n.top;return{left:i,right:i+t[0].clientWidth,top:r,bottom:r+t[0].clientHeight}}function g(t){var e=t.innerWidth()-t[0].clientWidth,n={left:0,right:0,top:0,bottom:t.innerHeight()-t[0].clientHeight};return null===_t&&(_t=v()),_t&&"rtl"==t.css("direction")?n.left=e:n.right=e,n}function v(){var e=t("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),n=e.children().offset().left>e.offset().left;return e.remove(),n}function y(t,e){return parseFloat(t.css(e))||0}function w(t){return 1==t.which&&!t.ctrlKey}function b(t,e){var n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function S(e){var n,i,r=[],s=[];for("string"==typeof e?s=e.split(/\s*,\s*/):"function"==typeof e?s=[e]:t.isArray(e)&&(s=e),n=0;n<s.length;n++)"string"==typeof(i=s[n])?r.push("-"==i.charAt(0)?{field:i.substring(1),order:-1}:{field:i,order:1}):"function"==typeof i&&r.push({func:i});return r}function C(t,e,n){var i,r;for(i=0;i<n.length;i++)if(r=T(t,e,n[i]))return r;return 0}function T(t,e,n){return n.func?n.func(t,e):D(t[n.field],e[n.field])*(n.order||1)}function D(e,n){return e||n?null==n?-1:null==e?1:"string"===t.type(e)||"string"===t.type(n)?String(e).localeCompare(String(n)):e-n:0}function E(t,e){var n,i,r,s,o=t.start,a=t.end,l=e.start,u=e.end;return a>l&&u>o?(o>=l?(n=o.clone(),r=!0):(n=l.clone(),r=!1),u>=a?(i=a.clone(),s=!0):(i=u.clone(),s=!1),{start:n,end:i,isStart:r,isEnd:s}):void 0}function x(t,n){return e.duration({days:t.clone().stripTime().diff(n.clone().stripTime(),"days"),ms:t.time()-n.time()})}function _(t,n){return e.duration({days:t.clone().stripTime().diff(n.clone().stripTime(),"days")})}function k(t,n,i){return e.duration(Math.round(t.diff(n,i,!0)),i)}function H(t,e){var n,i,r;for(n=0;n<Ht.length&&!((r=I(i=Ht[n],t,e))>=1&&j(r));n++);return i}function I(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 M(t,e){var n,i;return O(t)||O(e)?t/e:(n=t.asMonths(),i=e.asMonths(),Math.abs(n)>=1&&j(n)&&Math.abs(i)>=1&&j(i)?n/i:t.asDays()/e.asDays())}function O(t){return Boolean(t.hours()||t.minutes()||t.seconds()||t.milliseconds())}function N(t){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t)}function P(t,e){var n,i,r,s,o,a,l={};if(e)for(n=0;n<e.length;n++){for(i=e[n],r=[],s=t.length-1;s>=0;s--)if("object"==typeof(o=t[s][i]))r.unshift(o);else if(void 0!==o){l[i]=o;break}r.length&&(l[i]=P(r))}for(n=t.length-1;n>=0;n--)for(i in a=t[n])i in l||(l[i]=a[i]);return l}function R(t){var e=function(){};return e.prototype=t,new e}function A(t,e){for(var n in t)$(t,n)&&(e[n]=t[n])}function $(t,e){return Nt.call(t,e)}function F(e){return/undefined|null|boolean|number|string/.test(t.type(e))}function z(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 Y(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}function L(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function W(t){return t.replace(/&.*?;/g,"")}function B(e){var n=[];return t.each(e,(function(t,e){null!=e&&n.push(t+":"+e)})),n.join(";")}function G(t,e){return t-e}function j(t){return t%1==0}function V(t,e){var n=t[e];return function(){return n.apply(t,arguments)}}function U(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 q(n,i,r){var s,o,a,l,u=n[0],c=1==n.length&&"string"==typeof u;return e.isMoment(u)?Q(u,l=e.apply(null,n)):function(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}(u)||void 0===u?l=e.apply(null,n):(s=!1,o=!1,c?Pt.test(u)?(n=[u+="-01"],s=!0,o=!0):(a=Rt.exec(u))&&(s=!a[5],o=!0):t.isArray(u)&&(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:c&&(l.utcOffset?l.utcOffset(u):l.zone(u)))),l._fullCalendar=!0,l}function Z(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 Q(t,e){t._ambigTime?e._ambigTime=!0:e._ambigTime&&(e._ambigTime=!1),t._ambigZone?e._ambigZone=!0:e._ambigZone&&(e._ambigZone=!1)}function X(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 K(t,e){return $t.format.call(t,e)}function J(t,e){var n,i="";for(n=0;n<e.length;n++)i+=tt(t,e[n]);return i}function tt(t,e){var n,i;return"string"==typeof e?e:(n=e.token)?Ft[n]?Ft[n](t):K(t,n):e.maybe&&(i=J(t,e.maybe)).match(/[1-9]/)?i:""}function et(t,e,n,i,r){return i=i||" - ",function(t,e,n,i,r){var s,o,a,l,u=t.clone().stripZone(),c=e.clone().stripZone(),d="",h="",f="",p="",m="";for(o=0;o<n.length&&!1!==(s=nt(t,e,u,c,n[o]));o++)d+=s;for(a=n.length-1;a>o&&!1!==(s=nt(t,e,u,c,n[a]));a--)h=s+h;for(l=o;a>=l;l++)f+=tt(t,n[l]),p+=tt(e,n[l]);return(f||p)&&(m=r?p+i+f:f+i+p),d+m+h}(t=Dt.moment.parseZone(t),e=Dt.moment.parseZone(e),it(n=(t.localeData||t.lang).call(t).longDateFormat(n)||n),i,r)}function nt(t,e,n,i,r){var s,o;return"string"==typeof r?r:!!((s=r.token)&&(o=zt[s.charAt(0)],o&&n.isSame(i,o)))&&K(t,s)}function it(t){return t in Yt?Yt[t]:Yt[t]=rt(t)}function rt(t){for(var e,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;e=i.exec(t);)e[1]?n.push(e[1]):e[2]?n.push({maybe:rt(e[2])}):e[3]?n.push({token:e[3]}):e[5]&&n.push(e[5]);return n}function st(){}function ot(t,e){var n;return $(e,"constructor")&&(n=e.constructor),"function"!=typeof n&&(n=e.constructor=function(){t.apply(this,arguments)}),n.prototype=R(t.prototype),A(e,n.prototype),function(t,e){var n,i,r=["constructor","toString","valueOf"];for(n=0;n<r.length;n++)t[i=r[n]]!==Object.prototype[i]&&(e[i]=t[i])}(e,n.prototype),A(t,n),n}function at(t,e){A(e.prototype||e,t.prototype)}function lt(t,e){return!t&&!e||!(!t||!e)&&(t.component===e.component&&ut(t,e)&&ut(e,t))}function ut(t,e){for(var n in t)if(!/^(component|left|right|top|bottom)$/.test(n)&&t[n]!==e[n])return!1;return!0}function ct(t){var e=dt(t);return"background"===e||"inverse-background"===e}function dt(t){return Y((t.source||{}).rendering,t.rendering)}function ht(t,e){return t.start-e.start}function ft(n){var i,r,s,o,a=Dt.dataAttrPrefix;return a&&(a+="-"),(i=n.data(a+"event")||null)&&(null==(r=(i="object"==typeof i?t.extend({},i):{}).start)&&(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")),{eventProps:i,startTime:r=null!=r?e.duration(r):null,duration:s=null!=s?e.duration(s):null,stick:o=Boolean(o)}}function pt(t,e){var n,i;for(n=0;n<e.length;n++)if((i=e[n]).leftCol<=t.rightCol&&i.rightCol>=t.leftCol)return!0;return!1}function mt(t,e){return t.leftCol-e.leftCol}function gt(t){var e,n,i=t.forwardSegs,r=0;if(void 0===t.forwardPressure){for(e=0;e<i.length;e++)gt(n=i[e]),r=Math.max(r,1+n.forwardPressure);t.forwardPressure=r}}function vt(t,e,n){n=n||[];for(var i=0;i<e.length;i++)yt(t,e[i])&&n.push(e[i]);return n}function yt(t,e){return t.bottom>e.top&&t.top<e.bottom}function wt(e){t.each(ne,(function(t,n){null==e[t]&&(e[t]=n(e))}))}function bt(t){var n=e.localeData||e.langData;return n.call(e,t)||n.call(e,"en")}function St(e,n){function i(i){var r=t('<div class="fc-'+i+'"/>'),o=n.header[i];return o&&t.each(o.split(" "),(function(i){var o,l=t(),u=!0;t.each(this.split(","),(function(i,r){var o,c,d,h,f,p,m,g,v;"title"==r?(l=l.add(t("<h2>&nbsp;</h2>")),u=!1):((o=(e.options.customButtons||{})[r])?(d=function(t){o.click&&o.click.call(v[0],t)},h="",f=o.text):(c=e.getViewSpec(r))?(d=function(){e.changeView(r)},a.push(r),h=c.buttonTextOverride,f=c.buttonTextDefault):e[r]&&(d=function(){e[r]()},h=(e.overrides.buttonText||{})[r],f=n.buttonText[r]),d&&(p=o?o.themeIcon:n.themeButtonIcons[r],m=o?o.icon:n.buttonIcons[r],g=h?L(h):p&&n.theme?"<span class='ui-icon ui-icon-"+p+"'></span>":m&&!n.theme?"<span class='fc-icon fc-icon-"+m+"'></span>":L(f),v=t('<button type="button" class="'+["fc-"+r+"-button",s+"-button",s+"-state-default"].join(" ")+'">'+g+"</button>").click((function(t){v.hasClass(s+"-state-disabled")||(d(t),(v.hasClass(s+"-state-active")||v.hasClass(s+"-state-disabled"))&&v.removeClass(s+"-state-hover"))})).mousedown((function(){v.not("."+s+"-state-active").not("."+s+"-state-disabled").addClass(s+"-state-down")})).mouseup((function(){v.removeClass(s+"-state-down")})).hover((function(){v.not("."+s+"-state-active").not("."+s+"-state-disabled").addClass(s+"-state-hover")}),(function(){v.removeClass(s+"-state-hover").removeClass(s+"-state-down")})),l=l.add(v)))})),u&&l.first().addClass(s+"-corner-left").end().last().addClass(s+"-corner-right").end(),l.length>1?(o=t("<div/>"),u&&o.addClass("fc-button-group"),o.append(l),r.append(o)):r.append(l)})),r}var r=this;r.render=function(){var e=n.header;return s=n.theme?"ui":"fc",e?o=t("<div class='fc-toolbar'/>").append(i("left")).append(i("right")).append(i("center")).append('<div class="fc-clear"/>'):void 0},r.removeElement=function(){o.remove(),o=t()},r.updateTitle=function(t){o.find("h2").text(t)},r.activateButton=function(t){o.find(".fc-"+t+"-button").addClass(s+"-state-active")},r.deactivateButton=function(t){o.find(".fc-"+t+"-button").removeClass(s+"-state-active")},r.disableButton=function(t){o.find(".fc-"+t+"-button").attr("disabled","disabled").addClass(s+"-state-disabled")},r.enableButton=function(t){o.find(".fc-"+t+"-button").removeAttr("disabled").removeClass(s+"-state-disabled")},r.getViewsWithButtons=function(){return a};var s,o=t(),a=[]}function Ct(n){function i(e,n){r(e,(function(i){var r,s,o,a=t.isArray(e.events);if(n==O){if(i)for(r=0;r<i.length;r++)s=i[r],(o=a?s:d(s,e))&&R.push.apply(R,m(o));--P||H(R)}}))}function r(e,i){var s,o,a=Dt.sourceFetchers;for(s=0;s<a.length;s++){if(!0===(o=a[s].call(T,e,D.clone(),E.clone(),n.timezone,i)))return;if("object"==typeof o)return void r(o,i)}var l=e.events;if(l)t.isFunction(l)?(T.pushLoading(),l.call(T,D.clone(),E.clone(),n.timezone,(function(t){i(t),T.popLoading()}))):t.isArray(l)?i(l):i();else if(e.url){var u,c=e.success,d=e.error,h=e.complete;u=t.isFunction(e.data)?e.data():e.data;var f=t.extend({},u||{}),p=Y(e.startParam,n.startParam),m=Y(e.endParam,n.endParam),g=Y(e.timezoneParam,n.timezoneParam);p&&(f[p]=D.format()),m&&(f[m]=E.format()),n.timezone&&"local"!=n.timezone&&(f[g]=n.timezone),T.pushLoading(),t.ajax(t.extend({},ie,e,{data:f,success:function(e){e=e||[];var n=z(c,this,arguments);t.isArray(n)&&(e=n),i(e)},error:function(){z(d,this,arguments),i()},complete:function(){z(h,this,arguments),T.popLoading()}}))}else i()}function s(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 d(t,n)}))),i=0;i<r.length;i++)r[i].call(T,n);return n}}function o(t,e){return t&&e&&a(t)==a(e)}function a(t){return("object"==typeof t?t.origArray||t.googleCalendarId||t.url||t.events:null)||t}function l(e){var n={};return t.each(e,(function(t,e){u(t)&&void 0!==e&&F(e)&&(n[t]=e)})),n}function u(t){return!/^_|^(id|allDay|start|end)$/.test(t)}function c(e){return t.isFunction(e)?t.grep(R,e):null!=e?(e+="",t.grep(R,(function(t){return t._id==e}))):R}function d(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"+re++: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,N(s)&&(s=e.duration(s)),N(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=T.moment(s)).isValid())return!1;o&&((o=T.moment(o)).isValid()||(o=null)),void 0===(a=i.allDay)&&(a=Y(r?r.allDayDefault:void 0,n.allDayDefault)),h(s,o,a,l)}return l}function h(t,e,n,i){i.start=t,i.end=e,i.allDay=n,f(i),Tt(i)}function f(t){p(t),t.end&&!t.end.isAfter(t.start)&&(t.end=null),t.end||(n.forceEventDuration?t.end=T.getDefaultEventEnd(t.allDay,t.start):t.end=null)}function p(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=T.applyTimezone(t.start.time(0))),t.end&&!t.end.hasTime()&&(t.end=T.applyTimezone(t.end.time(0))))}function m(e,n,i){var r,s,o,a,l,u,c,d,f,p=[];if(n=n||D,i=i||E,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,u=e.end,c=a.clone(),d=null,l&&(c=c.time(l)),u&&(d=a.clone().time(u)),h(c,d,!l&&!u,f=t.extend({},e)),p.push(f)),a.add(1,"days")}else p.push(e);return p}function g(e,n,i){function r(t,e){return i?k(t,e,i):n.allDay?_(t,e):x(t,e)}var s,o,a,l,d,h={};return(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),f(n),f(s={start:e._start.clone(),end:e._end?e._end.clone():T.getDefaultEventEnd(e._allDay,e._start),allDay:n.allDay}),o=null!==e._end&&null===n.end,a=r(n.start,s.start),n.end?l=r(n.end,s.end).subtract(a):l=null,t.each(n,(function(t,e){u(t)&&void 0!==e&&(h[t]=e)})),d=function(e,n,i,r,s,o){var a=T.getIsAmbigTimezone(),l=[];return r&&!r.valueOf()&&(r=null),s&&!s.valueOf()&&(s=null),t.each(e,(function(e,u){var c,d;c={start:u.start.clone(),end:u.end?u.end.clone():null,allDay:u.allDay},t.each(o,(function(t){c[t]=u[t]})),f(d={start:u._start,end:u._end,allDay:i}),n?d.end=null:s&&!d.end&&(d.end=T.getDefaultEventEnd(d.allDay,d.start)),r&&(d.start.add(r),d.end&&d.end.add(r)),s&&d.end.add(s),a&&!d.allDay&&(r||s)&&(d.start.stripZone(),d.end&&d.end.stripZone()),t.extend(u,o,d),Tt(u),l.push((function(){t.extend(u,c),Tt(u)}))})),function(){for(var t=0;t<l.length;t++)l[t]()}}(c(e._id),o,n.allDay,a,l,h),{dateDelta:a,durationDelta:l,undo:d}}function v(e){var i,r=n.businessHours,s=T.getView();return r&&(i=t.extend({},{className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},"object"==typeof r?r:{})),i?(e&&(i.start=null,i.end=null),m(d(i),s.start,s.end)):[]}function y(t,e){var i=e.source||{};return b(t,Y(e.constraint,i.constraint,n.eventConstraint),Y(e.overlap,i.overlap,n.eventOverlap),e)}function w(t){return b(t,n.selectConstraint,n.selectOverlap)}function b(t,e,n,i){var r,s,o,a,l,u;if(null!=e){for(r=function(t){return"businessHours"===t?v():"object"==typeof t?m(d(t)):c(t)}(e),s=!1,a=0;a<r.length;a++)if(S(r[a],t)){s=!0;break}if(!s)return!1}for(o=T.getPeerEvents(t,i),a=0;a<o.length;a++)if(C(l=o[a],t)){if(!1===n)return!1;if("function"==typeof n&&!n(l,i))return!1;if(i){if(!1===(u=Y(l.overlap,(l.source||{}).overlap)))return!1;if("function"==typeof u&&!u(i,l))return!1}}return!0}function S(t,e){var n=t.start.clone().stripZone(),i=T.getEventEnd(t).stripZone();return e.start>=n&&e.end<=i}function C(t,e){var n=t.start.clone().stripZone(),i=T.getEventEnd(t).stripZone();return e.start<i&&e.end>n}var T=this;T.isFetchNeeded=function(t,e){return!D||D>t||e>E},T.fetchEvents=function(t,e){D=t,E=e,R=[];var n=++O,r=M.length;P=r;for(var s=0;r>s;s++)i(M[s],n)},T.addEventSource=function(t){var e=s(t);e&&(M.push(e),P++,i(e,O))},T.removeEventSource=function(e){M=t.grep(M,(function(t){return!o(t,e)})),R=t.grep(R,(function(t){return!o(t.source,e)})),H(R)},T.updateEvent=function(t){t.start=T.moment(t.start),t.end?t.end=T.moment(t.end):t.end=null,g(t,l(t)),H(R)},T.renderEvent=function(t,e){var n,i,r,s=d(t);if(s){for(n=m(s),i=0;i<n.length;i++)(r=n[i]).source||(e&&(I.events.push(r),r.source=I),R.push(r));return H(R),n}return[]},T.removeEvents=function(e){var n,i;for(null==e?e=function(){return!0}:t.isFunction(e)||(n=e+"",e=function(t){return t._id==n}),R=t.grep(R,e,!0),i=0;i<M.length;i++)t.isArray(M[i].events)&&(M[i].events=t.grep(M[i].events,e,!0));H(R)},T.clientEvents=c,T.mutateEvent=g,T.normalizeEventDates=f,T.normalizeEventTimes=p;var D,E,H=T.reportEvents,I={events:[]},M=[I],O=0,P=0,R=[];t.each((n.events?[n.events]:[]).concat(n.eventSources||[]),(function(t,e){var n=s(e);n&&M.push(n)})),T.getBusinessHoursEvents=v,T.isEventSpanAllowed=y,T.isExternalSpanAllowed=function(e,n,i){var r;return i&&(r=m(d(t.extend({},i,n)))[0]),r?y(e,r):w(e)},T.isSelectionSpanAllowed=w,T.getEventCache=function(){return R}}function Tt(t){t._allDay=t.allDay,t._start=t.start.clone(),t._end=t.end?t.end.clone():null}var Dt=t.fullCalendar={version:"2.6.1",internalApiVersion:3},Et=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 Kt(a,e),a.data("fullCalendar",l),l.render())})),i};var xt=["header","buttonText","buttonIcons","themeButtonIcons"];Dt.intersectRanges=E,Dt.applyAll=z,Dt.debounce=U,Dt.isInt=j,Dt.htmlEscape=L,Dt.cssToStr=B,Dt.proxy=V,Dt.capitaliseFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Dt.getOuterRect=p,Dt.getClientRect=m,Dt.getContentRect=function(t){var e=t.offset(),n=e.left+y(t,"border-left-width")+y(t,"padding-left"),i=e.top+y(t,"border-top-width")+y(t,"padding-top");return{left:n,right:n+t.width(),top:i,bottom:i+t.height()}},Dt.getScrollbarWidths=g;var _t=null;Dt.intersectRects=b,Dt.parseFieldSpecs=S,Dt.compareByFieldSpecs=C,Dt.compareByFieldSpec=T,Dt.flexibleCompare=D,Dt.computeIntervalUnit=H,Dt.divideRangeByDuration=function(t,e,n){var i;return O(n)?(e-t)/n:(i=n.asMonths(),Math.abs(i)>=1&&j(i)?e.diff(t,"months",!0)/i:e.diff(t,"days",!0)/n.asDays())},Dt.divideDurationByDuration=M,Dt.multiplyDuration=function(t,n){var i;return O(t)?e.duration(t*n):(i=t.asMonths(),Math.abs(i)>=1&&j(i)?e.duration({months:i*n}):e.duration({days:t.asDays()*n}))},Dt.durationHasTime=O;var kt=["sun","mon","tue","wed","thu","fri","sat"],Ht=["year","month","week","day","hour","minute","second","millisecond"];Dt.log=function(){var t=window.console;return t&&t.log?t.log.apply(t,arguments):void 0},Dt.warn=function(){var t=window.console;return t&&t.warn?t.warn.apply(t,arguments):Dt.log.apply(Dt,arguments)};var It,Mt,Ot,Nt={}.hasOwnProperty,Pt=/^\s*\d{4}-\d\d$/,Rt=/^\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+)?)?)?)?)?$/,At=e.fn,$t=t.extend({},At);Dt.moment=function(){return q(arguments)},Dt.moment.utc=function(){var t=q(arguments,!0);return t.hasTime()&&t.utc(),t},Dt.moment.parseZone=function(){return q(arguments,!0,!0)},At.clone=function(){var t=$t.clone.apply(this,arguments);return Q(this,t),this._fullCalendar&&(t._fullCalendar=!0),t},At.week=At.weeks=function(t){var e=(this._locale||this._lang)._fullCalendar_weekCalc;return null==t&&"function"==typeof e?e(this):"ISO"===e?$t.isoWeek.apply(this,arguments):$t.week.apply(this,arguments)},At.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())},At.stripTime=function(){var t;return this._ambigTime||(t=this.toArray(),this.utc(),Mt(this,t.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},At.hasTime=function(){return!this._ambigTime},At.stripZone=function(){var t,e;return this._ambigZone||(t=this.toArray(),e=this._ambigTime,this.utc(),Mt(this,t),this._ambigTime=e||!1,this._ambigZone=!0),this},At.hasZone=function(){return!this._ambigZone},At.local=function(){var t=this.toArray(),e=this._ambigZone;return $t.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,e&&Ot(this,t),this},At.utc=function(){return $t.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},t.each(["zone","utcOffset"],(function(t,e){$t[e]&&(At[e]=function(t){return null!=t&&(this._ambigTime=!1,this._ambigZone=!1),$t[e].apply(this,arguments)})})),At.format=function(){return this._fullCalendar&&arguments[0]?function(t,e){return J(t,it(e))}(this,arguments[0]):this._ambigTime?K(this,"YYYY-MM-DD"):this._ambigZone?K(this,"YYYY-MM-DD[T]HH:mm:ss"):$t.format.apply(this,arguments)},At.toISOString=function(){return this._ambigTime?K(this,"YYYY-MM-DD"):this._ambigZone?K(this,"YYYY-MM-DD[T]HH:mm:ss"):$t.toISOString.apply(this,arguments)},At.isWithin=function(t,e){var n=Z([this,t,e]);return n[0]>=n[1]&&n[0]<n[2]},At.isSame=function(t,e){var n;return this._fullCalendar?e?(n=Z([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){At[e]=function(t,n){var i;return this._fullCalendar?(i=Z([this,t]),$t[e].call(i[0],i[1],n)):$t[e].apply(this,arguments)}})),It="_d"in e()&&"updateOffset"in e,Mt=It?function(t,n){t._d.setTime(Date.UTC.apply(Date,n)),e.updateOffset(t,!1)}:X,Ot=It?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)}:X;var Ft={t:function(t){return K(t,"a").charAt(0)},T:function(t){return K(t,"A").charAt(0)}};Dt.formatRange=et;var zt={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Yt={};Dt.Class=st,st.extend=function(){var t,e,n=arguments.length;for(t=0;n>t;t++)e=arguments[t],n-1>t&&at(this,e);return ot(this,e||{})},st.mixin=function(t){at(this,t)};var Lt=Dt.Emitter=st.extend({callbackHash:null,on:function(t,e){return this.getCallbacks(t).add(e),this},off:function(t,e){return this.getCallbacks(t).remove(e),this},trigger:function(t){var e=Array.prototype.slice.call(arguments,1);return this.triggerWith(t,this,e),this},triggerWith:function(t,e,n){return this.getCallbacks(t).fireWith(e,n),this},getCallbacks:function(e){var n;return this.callbackHash||(this.callbackHash={}),(n=this.callbackHash[e])||(n=this.callbackHash[e]=t.Callbacks()),n}}),Wt=st.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=V(this,"documentMousedown"))},documentMousedown:function(e){this.el&&!t(e.target).closest(this.el).length&&this.hide()},removeElement: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(),u=this.el.outerHeight(),c=t(window),d=f(this.el);r=o.top||0,s=void 0!==o.left?o.left:void 0!==o.right?o.right-l:0,d.is(window)||d.is(document)?(d=c,e=0,n=0):(e=(i=d.offset()).top,n=i.left),e+=c.scrollTop(),n+=c.scrollLeft(),!1!==o.viewportConstrain&&(r=Math.min(r,e+d.outerHeight()-u-this.margin),r=Math.max(r,e+this.margin),s=Math.min(s,n+d.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))}}),Bt=Dt.CoordCache=st.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(e){this.els=t(e.els),this.isHorizontal=e.isHorizontal,this.isVertical=e.isVertical,this.forcedOffsetParentEl=e.offsetParent?t(e.offsetParent):null},build:function(){var t=this.forcedOffsetParentEl||this.els.eq(0).offsetParent();this.origin=t.offset(),this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},clear:function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},ensureBuilt:function(){this.origin||this.build()},queryBoundingRect:function(){var t=f(this.els.eq(0));return t.is(document)?void 0:m(t)},buildElHorizontals:function(){var e=[],n=[];this.els.each((function(i,r){var s=t(r),o=s.offset().left,a=s.outerWidth();e.push(o),n.push(o+a)})),this.lefts=e,this.rights=n},buildElVerticals:function(){var e=[],n=[];this.els.each((function(i,r){var s=t(r),o=s.offset().top,a=s.outerHeight();e.push(o),n.push(o+a)})),this.tops=e,this.bottoms=n},getHorizontalIndex:function(t){this.ensureBuilt();var e,n=this.boundingRect,i=this.lefts,r=this.rights,s=i.length;if(!n||t>=n.left&&t<n.right)for(e=0;s>e;e++)if(t>=i[e]&&t<r[e])return e},getVerticalIndex:function(t){this.ensureBuilt();var e,n=this.boundingRect,i=this.tops,r=this.bottoms,s=i.length;if(!n||t>=n.top&&t<n.bottom)for(e=0;s>e;e++)if(t>=i[e]&&t<r[e])return e},getLeftOffset:function(t){return this.ensureBuilt(),this.lefts[t]},getLeftPosition:function(t){return this.ensureBuilt(),this.lefts[t]-this.origin.left},getRightOffset:function(t){return this.ensureBuilt(),this.rights[t]},getRightPosition:function(t){return this.ensureBuilt(),this.rights[t]-this.origin.left},getWidth:function(t){return this.ensureBuilt(),this.rights[t]-this.lefts[t]},getTopOffset:function(t){return this.ensureBuilt(),this.tops[t]},getTopPosition:function(t){return this.ensureBuilt(),this.tops[t]-this.origin.top},getBottomOffset:function(t){return this.ensureBuilt(),this.bottoms[t]},getBottomPosition:function(t){return this.ensureBuilt(),this.bottoms[t]-this.origin.top},getHeight:function(t){return this.ensureBuilt(),this.bottoms[t]-this.tops[t]}}),Gt=Dt.DragListener=st.extend({options:null,isListening:!1,isDragging:!1,originX:null,originY:null,mousemoveProxy:null,mouseupProxy:null,subjectEl:null,subjectHref:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(t){t=t||{},this.options=t,this.subjectEl=t.subjectEl},mousedown:function(t){w(t)&&(t.preventDefault(),this.startListening(t),this.options.distance||this.startDrag(t))},startListening:function(e){var n;this.isListening||(e&&this.options.scroll&&((n=f(t(e.target))).is(window)||n.is(document)||(this.scrollEl=n,this.scrollHandlerProxy=U(V(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),t(document).on("mousemove",this.mousemoveProxy=V(this,"mousemove")).on("mouseup",this.mouseupProxy=V(this,"mouseup")).on("selectstart",this.preventDefault),e?(this.originX=e.pageX,this.originY=e.pageY):(this.originX=0,this.originY=0),this.isListening=!0,this.listenStart(e))},listenStart:function(t){this.trigger("listenStart",t)},mousemove:function(t){var e,n=t.pageX-this.originX,i=t.pageY-this.originY;this.isDragging||n*n+i*i>=(e=this.options.distance||1)*e&&this.startDrag(t),this.isDragging&&this.drag(n,i,t)},startDrag:function(t){this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.dragStart(t))},dragStart:function(t){var e=this.subjectEl;this.trigger("dragStart",t),(this.subjectHref=e?e.attr("href"):null)&&e.removeAttr("href")},drag:function(t,e,n){this.trigger("drag",t,e,n),this.updateScroll(n)},mouseup:function(t){this.stopListening(t)},stopDrag:function(t){this.isDragging&&(this.stopScrolling(),this.dragStop(t),this.isDragging=!1)},dragStop:function(t){var e=this;this.trigger("dragStop",t),setTimeout((function(){e.subjectHref&&e.subjectEl.attr("href",e.subjectHref)}),0)},stopListening:function(e){this.stopDrag(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.listenStop(e))},listenStop:function(t){this.trigger("listenStop",t)},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=this.scrollEl;this.scrollBounds=t?p(t):null},updateScroll: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(t,e){this.scrollTopVel=t,this.scrollLeftVel=e,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(V(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.scrollStop())},scrollHandler:function(){this.scrollIntervalId||this.scrollStop()},scrollStop:function(){}}),jt=Gt.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(t,e){Gt.call(this,e),this.component=t},listenStart:function(t){var e,n,i,r=this.subjectEl;Gt.prototype.listenStart.apply(this,arguments),this.computeCoords(),t?(i=n={left:t.pageX,top:t.pageY},r&&(i=function(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}(i,e=p(r))),this.origHit=this.queryHit(i.left,i.top),r&&this.options.subjectCenter&&(this.origHit&&(e=b(this.origHit,e)||e),i=function(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}(e)),this.coordAdjust=function(t,e){return{left:t.left-e.left,top:t.top-e.top}}(i,n)):(this.origHit=null,this.coordAdjust=null)},computeCoords:function(){this.component.prepareHits(),this.computeScrollBounds()},dragStart:function(t){var e;Gt.prototype.dragStart.apply(this,arguments),(e=this.queryHit(t.pageX,t.pageY))&&this.hitOver(e)},drag:function(t,e,n){var i;Gt.prototype.drag.apply(this,arguments),lt(i=this.queryHit(n.pageX,n.pageY),this.hit)||(this.hit&&this.hitOut(),i&&this.hitOver(i))},dragStop:function(){this.hitDone(),Gt.prototype.dragStop.apply(this,arguments)},hitOver:function(t){var e=lt(t,this.origHit);this.hit=t,this.trigger("hitOver",this.hit,e,this.origHit)},hitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.hitDone(),this.hit=null)},hitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},listenStop:function(){Gt.prototype.listenStop.apply(this,arguments),this.origHit=null,this.hit=null,this.component.releaseHits()},scrollStop:function(){Gt.prototype.scrollStop.apply(this,arguments),this.computeCoords()},queryHit:function(t,e){return this.coordAdjust&&(t+=this.coordAdjust.left,e+=this.coordAdjust.top),this.component.queryHit(t,e)}}),Vt=st.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=V(this,"mousemove")))},stop:function(e,n){function i(){this.isAnimating=!1,r.removeElement(),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},removeElement: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())}}),Ut=Dt.Grid=st.extend({view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,externalDragStartProxy:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,constructor:function(t){this.view=t,this.isRTL=t.opt("isRTL"),this.elsByFill={},this.externalDragStartProxy=V(this,"externalDragStart")},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(t){this.start=t.start.clone(),this.end=t.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var t,e,n=this.view;this.eventTimeFormat=n.opt("eventTimeFormat")||n.opt("timeFormat")||this.computeEventTimeFormat(),null==(t=n.opt("displayEventTime"))&&(t=this.computeDisplayEventTime()),null==(e=n.opt("displayEventEnd"))&&(e=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=e},spanToSegs:function(t){},diffDates:function(t,e){return this.largeUnit?k(t,e,this.largeUnit):x(t,e)},prepareHits:function(){},releaseHits:function(){},queryHit:function(t,e){},getHitSpan:function(t){},getHitEl:function(t){},setElement:function(e){var n=this;this.el=e,e.on("mousedown",(function(e){t(e.target).is(".fc-event-container *, .fc-more")||t(e.target).closest(".fc-popover").length||n.dayMousedown(e)})),this.bindSegHandlers(),this.bindGlobalHandlers()},removeElement:function(){this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){t(document).on("dragstart sortstart",this.externalDragStartProxy)},unbindGlobalHandlers:function(){t(document).off("dragstart sortstart",this.externalDragStartProxy)},dayMousedown:function(t){var e,n,i=this,r=this.view,s=r.opt("selectable"),l=new jt(this,{scroll:r.opt("dragScroll"),dragStart:function(){r.unselect()},hitOver:function(t,r,a){a&&(e=r?t:null,s&&((n=i.computeSelection(i.getHitSpan(a),i.getHitSpan(t)))?i.renderSelection(n):!1===n&&o()))},hitOut:function(){e=null,n=null,i.unrenderSelection(),a()},listenStop:function(t){e&&r.triggerDayClick(i.getHitSpan(e),i.getHitEl(e),t),n&&r.reportSelection(n,t),a()}});l.mousedown(t)},renderEventLocationHelper:function(t,e){var n=this.fabricateHelperEvent(t,e);this.renderHelper(n,e)},fabricateHelperEvent:function(t,e){var n=e?R(e.event):{};return n.start=t.start.clone(),n.end=t.end?t.end.clone():null,n.allDay=null,this.view.calendar.normalizeEventDates(n),n.className=(n.className||[]).concat("fc-helper"),e||(n.editable=!1),n},renderHelper:function(t,e){},unrenderHelper:function(){},renderSelection:function(t){this.renderHighlight(t)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(t,e){var n=this.computeSelectionSpan(t,e);return!(n&&!this.view.calendar.isSelectionSpanAllowed(n))&&n},computeSelectionSpan:function(t,e){var n=[t.start,t.end,e.start,e.end];return n.sort(G),{start:n[0].clone(),end:n[3].clone()}},renderHighlight:function(t){this.renderFill("highlight",this.spanToSegs(t))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderBusinessHours:function(){},unrenderBusinessHours:function(){},getNowIndicatorUnit:function(){},renderNowIndicator:function(t){},unrenderNowIndicator:function(){},renderFill:function(t,e){},unrenderFill: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)).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+"SegCss"],r=n?n.call(this,e):[],s=B(i?i.call(this,e):{});return"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(s?' style="'+s+'"':"")+" />"},getDayClasses:function(t){var e=this.view,n=e.calendar.getNow(),i=["fc-"+kt[t.day()]];return 1==e.intervalDuration.as("months")&&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,isDraggingExternal:!1,segs:null,renderEvents:function(t){var e,n=[],i=[];for(e=0;e<t.length;e++)(ct(t[e])?n:i).push(t[e]);this.segs=[].concat(this.renderBgEvents(n),this.renderFgEvents(i))},renderBgEvents:function(t){var e=this.eventsToSegs(t);return this.renderBgSegs(e)||e},renderFgEvents:function(t){var e=this.eventsToSegs(t);return this.renderFgSegs(e)||e},unrenderEvents:function(){this.triggerSegMouseout(),this.unrenderFgSegs(),this.unrenderBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(t){},unrenderFgSegs: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)},unrenderBgSegs:function(){this.unrenderFill("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||[])},bgEventSegCss:function(t){return{"background-color":this.getSegSkinCss(t)["background-color"]}},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,t(r.target).is(".fc-start-resizer")):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(t,e){var n,i=this,r=this.view,s=r.calendar,l=t.el,u=t.event,c=new Vt(t.el,{parentEl:r.el,opacity:r.opt("dragOpacity"),revertDuration:r.opt("dragRevertDuration"),zIndex:2}),d=new jt(r,{distance:5,scroll:r.opt("dragScroll"),subjectEl:l,subjectCenter:!0,listenStart:function(t){c.hide(),c.start(t)},dragStart:function(e){i.triggerSegMouseout(t,e),i.segDragStart(t,e),r.hideEvent(u)},hitOver:function(e,a,l){t.hit&&(l=t.hit),(n=i.computeEventDrop(l.component.getHitSpan(l),e.component.getHitSpan(e),u))&&!s.isEventSpanAllowed(i.eventToSpan(n),u)&&(o(),n=null),n&&r.renderDrag(n,t)?c.hide():c.show(),a&&(n=null)},hitOut:function(){r.unrenderDrag(),c.show(),n=null},hitDone:function(){a()},dragStop:function(e){c.stop(!n,(function(){r.unrenderDrag(),r.showEvent(u),i.segDragStop(t,e),n&&r.reportEventDrop(u,n,this.largeUnit,l,e)}))},listenStop:function(){c.stop()}});d.mousedown(e)},segDragStart:function(t,e){this.isDraggingSeg=!0,this.view.trigger("eventDragStart",t.el[0],t.event,e,{})},segDragStop:function(t,e){this.isDraggingSeg=!1,this.view.trigger("eventDragStop",t.el[0],t.event,e,{})},computeEventDrop:function(t,e,n){var i,r,s=this.view.calendar,o=t.start,a=e.start;return o.hasTime()===a.hasTime()?(i=this.diffDates(a,o),n.allDay&&O(i)?(r={start:n.start.clone(),end:s.getEventEnd(n),allDay:!1},s.normalizeEventTimes(r)):r={start:n.start.clone(),end:n.end?n.end.clone():null,allDay:n.allDay},r.start.add(i),r.end&&r.end.add(i)):r={start:a.clone(),end:null,allDay:!a.hasTime()},r},applyDragOpacity:function(t){var e=this.view.opt("dragOpacity");null!=e&&t.each((function(t,n){n.style.opacity=e}))},externalDragStart:function(e,n){var i,r,s=this.view;s.opt("droppable")&&(i=t((n?n.item:null)||e.target),r=s.opt("dropAccept"),(t.isFunction(r)?r.call(i[0],i):i.is(r))&&(this.isDraggingExternal||this.listenToExternalDrag(i,e,n)))},listenToExternalDrag:function(t,e,n){var i,r=this,s=this.view.calendar,l=ft(t),u=new jt(this,{listenStart:function(){r.isDraggingExternal=!0},hitOver:function(t){(i=r.computeExternalDrop(t.component.getHitSpan(t),l))&&!s.isExternalSpanAllowed(r.eventToSpan(i),i,l.eventProps)&&(o(),i=null),i&&r.renderDrag(i)},hitOut:function(){i=null},hitDone:function(){a(),r.unrenderDrag()},dragStop:function(){i&&r.view.reportExternalDrop(l,i,t,e,n)},listenStop:function(){r.isDraggingExternal=!1}});u.startDrag(e)},computeExternalDrop:function(t,e){var n={start:this.view.calendar.applyTimezone(t.start),end:null};return e.startTime&&!n.start.hasTime()&&n.start.time(e.startTime),e.duration&&(n.end=n.start.clone().add(e.duration)),n},renderDrag:function(t,e){},unrenderDrag:function(){},segResizeMousedown:function(t,e,n){var i,r=this,s=this.view,l=s.calendar,u=t.el,c=t.event,d=l.getEventEnd(c),h=new jt(this,{distance:5,scroll:s.opt("dragScroll"),subjectEl:u,dragStart:function(e){r.triggerSegMouseout(t,e),r.segResizeStart(t,e)},hitOver:function(e,a,u){var h=r.getHitSpan(u),f=r.getHitSpan(e);(i=n?r.computeEventStartResize(h,f,c):r.computeEventEndResize(h,f,c))&&(l.isEventSpanAllowed(r.eventToSpan(i),c)?i.start.isSame(c.start)&&i.end.isSame(d)&&(i=null):(o(),i=null)),i&&(s.hideEvent(c),r.renderEventResize(i,t))},hitOut:function(){i=null},hitDone:function(){r.unrenderEventResize(),s.showEvent(c),a()},dragStop:function(e){r.segResizeStop(t,e),i&&s.reportEventResize(c,i,this.largeUnit,u,e)}});h.mousedown(e)},segResizeStart:function(t,e){this.isResizingSeg=!0,this.view.trigger("eventResizeStart",t.el[0],t.event,e,{})},segResizeStop:function(t,e){this.isResizingSeg=!1,this.view.trigger("eventResizeStop",t.el[0],t.event,e,{})},computeEventStartResize:function(t,e,n){return this.computeEventResize("start",t,e,n)},computeEventEndResize:function(t,e,n){return this.computeEventResize("end",t,e,n)},computeEventResize:function(t,e,n,i){var r,s,o=this.view.calendar,a=this.diffDates(n[t],e[t]);return(r={start:i.start.clone(),end:o.getEventEnd(i),allDay:i.allDay}).allDay&&O(a)&&(r.allDay=!1,o.normalizeEventTimes(r)),r[t].add(a),r.start.isBefore(r.end)||(s=this.minResizeDuration||(i.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration),"start"==t?r.start=r.end.clone().subtract(s):r.end=r.start.clone().add(s)),r},renderEventResize:function(t,e){},unrenderEventResize:function(){},getEventTimeText:function(t,e,n){return null==e&&(e=this.eventTimeFormat),null==n&&(n=this.displayEventEnd),this.displayEventTime&&t.start.hasTime()?n&&t.end?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},getSegSkinCss:function(t){var e=t.event,n=this.view,i=e.source||{},r=e.color,s=i.color,o=n.opt("eventColor");return{"background-color":e.backgroundColor||r||i.backgroundColor||s||n.opt("eventBackgroundColor")||o,"border-color":e.borderColor||r||i.borderColor||s||n.opt("eventBorderColor")||o,color:e.textColor||i.textColor||n.opt("eventTextColor")}},eventToSegs:function(t){return this.eventsToSegs([t])},eventToSpan:function(t){return this.eventToSpans(t)[0]},eventToSpans:function(t){var e=this.eventToRange(t);return this.eventRangeToSpans(e,t)},eventsToSegs:function(e,n){var i=this,r=function(t){var e,n,i={};for(e=0;e<t.length;e++)(i[(n=t[e])._id]||(i[n._id]=[])).push(n);return i}(e),s=[];return t.each(r,(function(t,e){var r,o=[];for(r=0;r<e.length;r++)o.push(i.eventToRange(e[r]));if(function(t){return"inverse-background"===dt(t)}(e[0]))for(o=i.invertRanges(o),r=0;r<o.length;r++)s.push.apply(s,i.eventRangeToSegs(o[r],e[0],n));else for(r=0;r<o.length;r++)s.push.apply(s,i.eventRangeToSegs(o[r],e[r],n))})),s},eventToRange:function(t){return{start:t.start.clone().stripZone(),end:(t.end?t.end.clone():this.view.calendar.getDefaultEventEnd(null!=t.allDay?t.allDay:!t.start.hasTime(),t.start)).stripZone()}},eventRangeToSegs:function(t,e,n){var i,r=this.eventRangeToSpans(t,e),s=[];for(i=0;i<r.length;i++)s.push.apply(s,this.eventSpanToSegs(r[i],e,n));return s},eventRangeToSpans:function(e,n){return[t.extend({},e)]},eventSpanToSegs:function(t,e,n){var i,r,s=n?n(t):this.spanToSegs(t);for(i=0;i<s.length;i++)(r=s[i]).event=e,r.eventStartMS=+t.start,r.eventDurationMS=t.end-t.start;return s},invertRanges:function(t){var e,n,i=this.view,r=i.start.clone(),s=i.end.clone(),o=[],a=r;for(t.sort(ht),e=0;e<t.length;e++)(n=t[e]).start>a&&o.push({start:a,end:n.start}),a=n.end;return s>a&&o.push({start:a,end:s}),o},sortEventSegs:function(t){t.sort(V(this,"compareEventSegs"))},compareEventSegs:function(t,e){return t.eventStartMS-e.eventStartMS||e.eventDurationMS-t.eventDurationMS||e.event.allDay-t.event.allDay||C(t.event,e.event,this.view.eventOrderSpecs)}}),Dt.isBgEvent=ct,Dt.dataAttrPrefix="";var qt=Dt.DayTableMixin={breakOnWeeks:!1,dayDates:null,dayIndices:null,daysPerRow:null,rowCnt:null,colCnt:null,colHeadFormat:null,updateDayTable:function(){for(var t,e,n,i=this.view,r=this.start.clone(),s=-1,o=[],a=[];r.isBefore(this.end);)i.isHiddenDay(r)?o.push(s+.5):(s++,o.push(s),a.push(r.clone())),r.add(1,"days");if(this.breakOnWeeks){for(e=a[0].day(),t=1;t<a.length&&a[t].day()!=e;t++);n=Math.ceil(a.length/t)}else n=1,t=a.length;this.dayDates=a,this.dayIndices=o,this.daysPerRow=t,this.rowCnt=n,this.updateDayTableCols()},updateDayTableCols:function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.view.opt("columnFormat")||this.computeColHeadFormat()},computeColCnt:function(){return this.daysPerRow},getCellDate:function(t,e){return this.dayDates[this.getCellDayIndex(t,e)].clone()},getCellRange:function(t,e){var n=this.getCellDate(t,e),i=n.clone().add(1,"days");return{start:n,end:i}},getCellDayIndex:function(t,e){return t*this.daysPerRow+this.getColDayIndex(e)},getColDayIndex:function(t){return this.isRTL?this.colCnt-1-t:t},getDateDayIndex:function(t){var e=this.dayIndices,n=t.diff(this.start,"days");return 0>n?e[0]-1:n>=e.length?e[e.length-1]+1:e[n]},computeColHeadFormat:function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},sliceRangeByRow:function(t){var e,n,i,r,s,o=this.daysPerRow,a=this.view.computeDayRange(t),l=this.getDateDayIndex(a.start),u=this.getDateDayIndex(a.end.clone().subtract(1,"days")),c=[];for(e=0;e<this.rowCnt;e++)i=(n=e*o)+o-1,r=Math.max(l,n),s=Math.min(u,i),r=Math.ceil(r),(s=Math.floor(s))>=r&&c.push({row:e,firstRowDayIndex:r-n,lastRowDayIndex:s-n,isStart:r===l,isEnd:s===u});return c},sliceRangeByDay:function(t){var e,n,i,r,s,o,a=this.daysPerRow,l=this.view.computeDayRange(t),u=this.getDateDayIndex(l.start),c=this.getDateDayIndex(l.end.clone().subtract(1,"days")),d=[];for(e=0;e<this.rowCnt;e++)for(i=(n=e*a)+a-1,r=n;i>=r;r++)s=Math.max(u,r),o=Math.min(c,r),s=Math.ceil(s),(o=Math.floor(o))>=s&&d.push({row:e,firstRowDayIndex:s-n,lastRowDayIndex:o-n,isStart:s===u,isEnd:o===c});return d},renderHeadHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},renderHeadIntroHtml:function(){return this.renderIntroHtml()},renderHeadTrHtml:function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},renderHeadDateCellsHtml:function(){var t,e,n=[];for(t=0;t<this.colCnt;t++)e=this.getCellDate(0,t),n.push(this.renderHeadDateCellHtml(e));return n.join("")},renderHeadDateCellHtml:function(t,e,n){return'<th class="fc-day-header '+this.view.widgetHeaderClass+" fc-"+kt[t.day()]+'"'+(1==this.rowCnt?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(e>1?' colspan="'+e+'"':"")+(n?" "+n:"")+">"+L(t.format(this.colHeadFormat))+"</th>"},renderBgTrHtml:function(t){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(t))+this.renderBgCellsHtml(t)+(this.isRTL?this.renderBgIntroHtml(t):"")+"</tr>"},renderBgIntroHtml:function(t){return this.renderIntroHtml()},renderBgCellsHtml:function(t){var e,n,i=[];for(e=0;e<this.colCnt;e++)n=this.getCellDate(t,e),i.push(this.renderBgCellHtml(n));return i.join("")},renderBgCellHtml:function(t,e){var n=this.view,i=this.getDayClasses(t);return i.unshift("fc-day",n.widgetContentClass),'<td class="'+i.join(" ")+'" data-date="'+t.format("YYYY-MM-DD")+'"'+(e?" "+e:"")+"></td>"},renderIntroHtml:function(){},bookendCells:function(t){var e=this.renderIntroHtml();e&&(this.isRTL?t.append(e):t.prepend(e))}},Zt=Dt.DayGrid=Ut.extend(qt,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(t){var e,n,i=this.view,r=this.rowCnt,s=this.colCnt,o="";for(e=0;r>e;e++)o+=this.renderDayRowHtml(e,t);for(this.el.html(o),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day"),this.rowCoordCache=new Bt({els:this.rowEls,isVertical:!0}),this.colCoordCache=new Bt({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),e=0;r>e;e++)for(n=0;s>n;n++)i.trigger("dayRender",null,this.getCellDate(e,n),this.getCellEl(e,n))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var t=this.view.calendar.getBusinessHoursEvents(!0),e=this.eventsToSegs(t);this.renderFill("businessHours",e,"bgevent")},renderDayRowHtml:function(t,e){var n=["fc-row","fc-week",this.view.widgetContentClass];return e&&n.push("fc-rigid"),'<div class="'+n.join(" ")+'"><div class="fc-bg"><table>'+this.renderBgTrHtml(t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.renderNumberTrHtml(t)+"</thead>":"")+"</table></div></div>"},renderNumberTrHtml:function(t){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(t))+this.renderNumberCellsHtml(t)+(this.isRTL?this.renderNumberIntroHtml(t):"")+"</tr>"},renderNumberIntroHtml:function(t){return this.renderIntroHtml()},renderNumberCellsHtml:function(t){var e,n,i=[];for(e=0;e<this.colCnt;e++)n=this.getCellDate(t,e),i.push(this.renderNumberCellHtml(n));return i.join("")},renderNumberCellHtml:function(t){var e;return this.view.dayNumbersVisible?((e=this.getDayClasses(t)).unshift("fc-day-number"),'<td class="'+e.join(" ")+'" data-date="'+t.format()+'">'+t.date()+"</td>"):"<td/>"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(t){var e,n,i=this.sliceRangeByRow(t);for(e=0;e<i.length;e++)n=i[e],this.isRTL?(n.leftCol=this.daysPerRow-1-n.lastRowDayIndex,n.rightCol=this.daysPerRow-1-n.firstRowDayIndex):(n.leftCol=n.firstRowDayIndex,n.rightCol=n.lastRowDayIndex);return i},prepareHits:function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},releaseHits:function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},queryHit:function(t,e){var n=this.colCoordCache.getHorizontalIndex(t),i=this.rowCoordCache.getVerticalIndex(e);return null!=i&&null!=n?this.getCellHit(i,n):void 0},getHitSpan:function(t){return this.getCellRange(t.row,t.col)},getHitEl:function(t){return this.getCellEl(t.row,t.col)},getCellHit:function(t,e){return{row:t,col:e,component:this,left:this.colCoordCache.getLeftOffset(e),right:this.colCoordCache.getRightOffset(e),top:this.rowCoordCache.getTopOffset(t),bottom:this.rowCoordCache.getBottomOffset(t)}},getCellEl:function(t,e){return this.cellEls.eq(t*this.colCnt+e)},renderDrag:function(t,e){return this.renderHighlight(this.eventToSpan(t)),e&&!e.el.closest(this.el).length?(this.renderEventLocationHelper(t,e),this.applyDragOpacity(this.helperEls),!0):void 0},unrenderDrag:function(){this.unrenderHighlight(),this.unrenderHelper()},renderEventResize:function(t,e){this.renderHighlight(this.eventToSpan(t)),this.renderEventLocationHelper(t,e)},unrenderEventResize:function(){this.unrenderHighlight(),this.unrenderHelper()},renderHelper:function(e,n){var i,r=[],s=this.eventToSegs(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)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(e,n,i){var r,s,o,a=[];for(n=this.renderFillSegEls(e,n),r=0;r<n.length;r++)s=n[r],o=this.renderFillRow(e,s,i),this.rowEls.eq(s.row).append(o),a.push(o[0]);return this.elsByFill[e]=t(a),n},renderFillRow:function(e,n,i){var r,s,o=this.colCnt,a=n.leftCol,l=n.rightCol+1;return i=i||e.toLowerCase(),s=(r=t('<div class="fc-'+i+'-skeleton"><table><tr/></table></div>')).find("tr"),a>0&&s.append('<td colspan="'+a+'"/>'),s.append(n.el.attr("colspan",l-a)),o>l&&s.append('<td colspan="'+(o-l)+'"/>'),this.bookendCells(s),r}});Zt.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),Ut.prototype.unrenderEvents.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){t(i).find(".fc-content-skeleton > table").append(n[e].tbodyEl)})),e},unrenderFgSegs: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,r=this.view,s=t.event,o=r.isEventDraggable(s),a=!e&&s.allDay&&t.isStart&&r.isEventResizableFromStart(s),l=!e&&s.allDay&&t.isEnd&&r.isEventResizableFromEnd(s),u=this.getSegClasses(t,o,a||l),c=B(this.getSegSkinCss(t)),d="";return u.unshift("fc-day-grid-event","fc-h-event"),t.isStart&&((n=this.getEventTimeText(s))&&(d='<span class="fc-time">'+L(n)+"</span>")),i='<span class="fc-title">'+(L(s.title||"")||"&nbsp;")+"</span>",'<a class="'+u.join(" ")+'"'+(s.url?' href="'+L(s.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(this.isRTL?i+" "+d:d+" "+i)+"</div>"+(a?'<div class="fc-resizer fc-start-resizer" />':"")+(l?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},renderSegRow:function(e,n){function i(e){for(;e>o;)(c=(v[r-1]||[])[o])?c.attr("rowspan",parseInt(c.attr("rowspan")||1,10)+1):(c=t("<td/>"),a.append(c)),g[r][o]=c,v[r][o]=c,o++}var r,s,o,a,l,u,c,d=this.colCnt,h=this.buildSegLevels(n),f=Math.max(1,h.length),p=t("<tbody/>"),m=[],g=[],v=[];for(r=0;f>r;r++){if(s=h[r],o=0,a=t("<tr/>"),m.push([]),g.push([]),v.push([]),s)for(l=0;l<s.length;l++){for(i((u=s[l]).leftCol),c=t('<td class="fc-event-container"/>').append(u.el),u.leftCol!=u.rightCol?c.attr("colspan",u.rightCol-u.leftCol+1):v[r][o]=c;o<=u.rightCol;)g[r][o]=c,m[r][o]=u,o++;a.append(c)}i(d),this.bookendCells(a),p.append(a)}return{row:e,tbodyEl:p,cellMatrix:g,segMatrix:m,segLevels:h,segs:n}},buildSegLevels:function(t){var e,n,i,r=[];for(this.sortEventSegs(t),e=0;e<t.length;e++){for(n=t[e],i=0;i<r.length&&pt(n,r[i]);i++);n.level=i,(r[i]||(r[i]=[])).push(n)}for(i=0;i<r.length;i++)r[i].sort(mt);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}}),Zt.mixin({segPopover:null,popoverSegs:null,removeSegPopover: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),!1!==(n=!!t&&("number"==typeof t?t:this.computeRowLevelLimit(e)))&&this.limitRow(e,n)},computeRowLevelLimit:function(e){function n(e,n){s=Math.max(s,t(n).outerHeight())}var i,r,s,o=this.rowEls.eq(e).height(),a=this.rowStructs[e].tbodyEl.children();for(i=0;i<a.length;i++)if(r=a.eq(i).removeClass("fc-limited"),s=0,r.find("> td > :first-child").each(n),r.position().top+s>o)return i;return!1},limitRow:function(e,n){function i(i){for(;i>C;)(u=w.getCellSegs(e,C,n)).length&&(h=s[n-1][C],y=w.renderMoreLink(e,C,u),v=t("<div/>").append(y),h.append(v),S.push(v[0])),C++}var r,s,o,a,l,u,c,d,h,f,p,m,g,v,y,w=this,b=this.rowStructs[e],S=[],C=0;if(n&&n<b.segLevels.length){for(r=b.segLevels[n-1],s=b.cellMatrix,o=b.tbodyEl.children().slice(n).addClass("fc-limited").get(),a=0;a<r.length;a++){for(i((l=r[a]).leftCol),d=[],c=0;C<=l.rightCol;)u=this.getCellSegs(e,C,n),d.push(u),c+=u.length,C++;if(c){for(f=(h=s[n-1][l.leftCol]).attr("rowspan")||1,p=[],m=0;m<d.length;m++)g=t('<td class="fc-more-cell"/>').attr("rowspan",f),u=d[m],y=this.renderMoreLink(e,l.leftCol+m,[l].concat(u)),v=t("<div/>").append(y),g.append(v),p.push(g[0]),S.push(g[0]);h.addClass("fc-limited").after(t(p)),o.push(h[0])}}i(this.colCnt),b.moreEls=t(S),b.limitedEls=t(o)}},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,i){var r=this,s=this.view;return t('<a class="fc-more"/>').text(this.getMoreLinkText(i.length)).on("click",(function(o){var a=s.opt("eventLimitClick"),l=r.getCellDate(e,n),u=t(this),c=r.getCellEl(e,n),d=r.getCellSegs(e,n),h=r.resliceDaySegs(d,l),f=r.resliceDaySegs(i,l);"function"==typeof a&&(a=s.trigger("eventLimitClick",null,{date:l,dayEl:c,moreEl:u,segs:h,hiddenSegs:f},o)),"popover"===a?r.showSegPopover(e,n,u,h):"string"==typeof a&&s.calendar.zoomTo(l,a)}))},showSegPopover:function(t,e,n,i){var r,s,o=this,a=this.view,l=n.parent();r=1==this.rowCnt?a.el:this.rowEls.eq(t),s={className:"fc-more-popover",content:this.renderSegPopoverContent(t,e,i),parentEl:this.el,top:r.offset().top,autoHide:!0,viewportConstrain:a.opt("popoverViewportConstrain"),hide:function(){o.segPopover.removeElement(),o.segPopover=null,o.popoverSegs=null}},this.isRTL?s.right=l.offset().left+l.outerWidth()+1:s.left=l.offset().left-1,this.segPopover=new Wt(s),this.segPopover.show()},renderSegPopoverContent:function(e,n,i){var r,s=this.view,o=s.opt("theme"),a=this.getCellDate(e,n).format(s.opt("dayPopoverFormat")),l=t('<div class="fc-header '+s.widgetHeaderClass+'"><span class="fc-close '+(o?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+L(a)+'</span><div class="fc-clear"/></div><div class="fc-body '+s.widgetContentClass+'"><div class="fc-event-container"></div></div>'),u=l.find(".fc-event-container");for(i=this.renderFgSegEls(i,!0),this.popoverSegs=i,r=0;r<i.length;r++)this.prepareHits(),i[r].hit=this.getCellHit(e,n),this.releaseHits(),u.append(i[r].el);return l},resliceDaySegs:function(e,n){var i=t.map(e,(function(t){return t.event})),r=n.clone(),s=r.clone().add(1,"days"),o={start:r,end:s};return e=this.eventsToSegs(i,(function(t){var e=E(t,o);return e?[e]:[]})),this.sortEventSegs(e),e},getMoreLinkText:function(t){var e=this.view.opt("eventLimitText");return"function"==typeof e?e(t):"+"+t+" "+e},getCellSegs:function(t,e,n){for(var i,r=this.rowStructs[t].segMatrix,s=n||0,o=[];s<r.length;)(i=r[s][e])&&o.push(i),s++;return o}});var Qt=Dt.TimeGrid=Ut.extend(qt,{slotDuration:null,snapDuration:null,snapsPerSlot:null,minTime:null,maxTime:null,labelFormat:null,labelInterval:null,colEls:null,slatEls:null,nowIndicatorEls:null,colCoordCache:null,slatCoordCache:null,constructor:function(){Ut.apply(this,arguments),this.processOptions()},renderDates:function(){this.el.html(this.renderHtml()),this.colEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr"),this.colCoordCache=new Bt({els:this.colEls,isHorizontal:!0}),this.slatCoordCache=new Bt({els:this.slatEls,isVertical:!0}),this.renderContentSkeleton()},renderHtml:function(){return'<div class="fc-bg"><table>'+this.renderBgTrHtml(0)+'</table></div><div class="fc-slats"><table>'+this.renderSlatRowHtml()+"</table></div>"},renderSlatRowHtml:function(){for(var t,n,i,r=this.view,s=this.isRTL,o="",a=e.duration(+this.minTime);a<this.maxTime;)t=this.start.clone().time(a),n=j(M(a,this.labelInterval)),i='<td class="fc-axis fc-time '+r.widgetContentClass+'" '+r.axisStyleAttr()+">"+(n?"<span>"+L(t.format(this.labelFormat))+"</span>":"")+"</td>",o+='<tr data-time="'+t.format("HH:mm:ss")+'"'+(n?"":' class="fc-minor"')+">"+(s?"":i)+'<td class="'+r.widgetContentClass+'"/>'+(s?i:"")+"</tr>",a.add(this.slotDuration);return o},processOptions:function(){var n,i=this.view,r=i.opt("slotDuration"),s=i.opt("snapDuration");r=e.duration(r),s=s?e.duration(s):r,this.slotDuration=r,this.snapDuration=s,this.snapsPerSlot=r/s,this.minResizeDuration=s,this.minTime=e.duration(i.opt("minTime")),this.maxTime=e.duration(i.opt("maxTime")),n=i.opt("slotLabelFormat"),t.isArray(n)&&(n=n[n.length-1]),this.labelFormat=n||i.opt("axisFormat")||i.opt("smallTimeFormat"),n=i.opt("slotLabelInterval"),this.labelInterval=n?e.duration(n):this.computeLabelInterval(r)},computeLabelInterval:function(t){var n,i,r;for(n=he.length-1;n>=0;n--)if(j(r=M(i=e.duration(he[n]),t))&&r>1)return i;return e.duration(t)},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},prepareHits:function(){this.colCoordCache.build(),this.slatCoordCache.build()},releaseHits:function(){this.colCoordCache.clear()},queryHit:function(t,e){var n=this.snapsPerSlot,i=this.colCoordCache,r=this.slatCoordCache,s=i.getHorizontalIndex(t),o=r.getVerticalIndex(e);if(null!=s&&null!=o){var a=r.getTopOffset(o),l=r.getHeight(o),u=(e-a)/l,c=Math.floor(u*n),d=a+c/n*l,h=a+(c+1)/n*l;return{col:s,snap:o*n+c,component:this,left:i.getLeftOffset(s),right:i.getRightOffset(s),top:d,bottom:h}}},getHitSpan:function(t){var e,n=this.getCellDate(0,t.col),i=this.computeSnapTime(t.snap);return n.time(i),e=n.clone().add(this.snapDuration),{start:n,end:e}},getHitEl:function(t){return this.colEls.eq(t.col)},rangeUpdated:function(){this.updateDayTable()},computeSnapTime:function(t){return e.duration(this.minTime+this.snapDuration*t)},spanToSegs:function(t){var e,n=this.sliceRangeByTimes(t);for(e=0;e<n.length;e++)this.isRTL?n[e].col=this.daysPerRow-1-n[e].dayIndex:n[e].col=n[e].dayIndex;return n},sliceRangeByTimes:function(t){var e,n,i,r=[];for(n=0;n<this.daysPerRow;n++)(e=E(t,{start:(i=this.dayDates[n].clone()).clone().time(this.minTime),end:i.clone().time(this.maxTime)}))&&(e.dayIndex=n,r.push(e));return r},updateSize:function(t){this.slatCoordCache.build(),t&&this.updateSegVerticals([].concat(this.fgSegs||[],this.bgSegs||[],this.businessSegs||[]))},computeDateTop:function(t,n){return this.computeTimeTop(e.duration(t-n.clone().stripTime()))},computeTimeTop:function(t){var e,n,i=this.slatEls.length,r=(t-this.minTime)/this.slotDuration;return r=Math.max(0,r),r=Math.min(i,r),e=Math.floor(r),n=r-(e=Math.min(e,i-1)),this.slatCoordCache.getTopPosition(e)+this.slatCoordCache.getHeight(e)*n},renderDrag:function(t,e){if(e){this.renderEventLocationHelper(t,e);for(var n=0;n<this.helperSegs.length;n++)this.applyDragOpacity(this.helperSegs[n].el);return!0}this.renderHighlight(this.eventToSpan(t))},unrenderDrag:function(){this.unrenderHelper(),this.unrenderHighlight()},renderEventResize:function(t,e){this.renderEventLocationHelper(t,e)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(t,e){this.renderHelperSegs(this.eventToSegs(t),e)},unrenderHelper:function(){this.unrenderHelperSegs()},renderBusinessHours:function(){var t=this.view.calendar.getBusinessHoursEvents(),e=this.eventsToSegs(t);this.renderBusinessSegs(e)},unrenderBusinessHours:function(){this.unrenderBusinessSegs()},getNowIndicatorUnit:function(){return"minute"},renderNowIndicator:function(e){var n,i=this.spanToSegs({start:e,end:e}),r=this.computeDateTop(e,e),s=[];for(n=0;n<i.length;n++)s.push(t('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",r).appendTo(this.colContainerEls.eq(i[n].col))[0]);i.length>0&&s.push(t('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",r).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=t(s)},unrenderNowIndicator:function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},renderSelection:function(t){this.view.opt("selectHelper")?this.renderEventLocationHelper(t):this.renderHighlight(t)},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderHighlight:function(t){this.renderHighlightSegs(this.spanToSegs(t))},unrenderHighlight:function(){this.unrenderHighlightSegs()}});Qt.mixin({colContainerEls:null,fgContainerEls:null,bgContainerEls:null,helperContainerEls:null,highlightContainerEls:null,businessContainerEls:null,fgSegs:null,bgSegs:null,helperSegs:null,highlightSegs:null,businessSegs:null,renderContentSkeleton:function(){var e,n,i="";for(e=0;e<this.colCnt;e++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';n=t('<div class="fc-content-skeleton"><table><tr>'+i+"</tr></table></div>"),this.colContainerEls=n.find(".fc-content-col"),this.helperContainerEls=n.find(".fc-helper-container"),this.fgContainerEls=n.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=n.find(".fc-bgevent-container"),this.highlightContainerEls=n.find(".fc-highlight-container"),this.businessContainerEls=n.find(".fc-business-container"),this.bookendCells(n.find("tr")),this.el.append(n)},renderFgSegs:function(t){return t=this.renderFgSegsIntoContainers(t,this.fgContainerEls),this.fgSegs=t,t},unrenderFgSegs:function(){this.unrenderNamedSegs("fgSegs")},renderHelperSegs:function(t,e){var n,i,r;for(t=this.renderFgSegsIntoContainers(t,this.helperContainerEls),n=0;n<t.length;n++)i=t[n],e&&e.col===i.col&&(r=e.el,i.el.css({left:r.css("left"),right:r.css("right"),"margin-left":r.css("margin-left"),"margin-right":r.css("margin-right")}));this.helperSegs=t},unrenderHelperSegs:function(){this.unrenderNamedSegs("helperSegs")},renderBgSegs:function(t){return t=this.renderFillSegEls("bgEvent",t),this.updateSegVerticals(t),this.attachSegsByCol(this.groupSegsByCol(t),this.bgContainerEls),this.bgSegs=t,t},unrenderBgSegs:function(){this.unrenderNamedSegs("bgSegs")},renderHighlightSegs:function(t){t=this.renderFillSegEls("highlight",t),this.updateSegVerticals(t),this.attachSegsByCol(this.groupSegsByCol(t),this.highlightContainerEls),this.highlightSegs=t},unrenderHighlightSegs:function(){this.unrenderNamedSegs("highlightSegs")},renderBusinessSegs:function(t){t=this.renderFillSegEls("businessHours",t),this.updateSegVerticals(t),this.attachSegsByCol(this.groupSegsByCol(t),this.businessContainerEls),this.businessSegs=t},unrenderBusinessSegs:function(){this.unrenderNamedSegs("businessSegs")},groupSegsByCol: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},attachSegsByCol:function(t,e){var n,i,r;for(n=0;n<this.colCnt;n++)for(i=t[n],r=0;r<i.length;r++)e.eq(n).append(i[r].el)},unrenderNamedSegs:function(t){var e,n=this[t];if(n){for(e=0;e<n.length;e++)n[e].el.remove();this[t]=null}},renderFgSegsIntoContainers:function(t,e){var n,i;for(t=this.renderFgSegEls(t),n=this.groupSegsByCol(t),i=0;i<this.colCnt;i++)this.updateFgSegCoords(n[i]);return this.attachSegsByCol(n,e),t},fgSegHtml:function(t,e){var n,i,r,s=this.view,o=t.event,a=s.isEventDraggable(o),l=!e&&t.isStart&&s.isEventResizableFromStart(o),u=!e&&t.isEnd&&s.isEventResizableFromEnd(o),c=this.getSegClasses(t,a,l||u),d=B(this.getSegSkinCss(t));return c.unshift("fc-time-grid-event","fc-v-event"),s.isMultiDayEvent(o)?(t.isStart||t.isEnd)&&(n=this.getEventTimeText(t),i=this.getEventTimeText(t,"LT"),r=this.getEventTimeText(t,null,!1)):(n=this.getEventTimeText(o),i=this.getEventTimeText(o,"LT"),r=this.getEventTimeText(o,null,!1)),'<a class="'+c.join(" ")+'"'+(o.url?' href="'+L(o.url)+'"':"")+(d?' style="'+d+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+L(r)+'" data-full="'+L(i)+'"><span>'+L(n)+"</span></div>":"")+(o.title?'<div class="fc-title">'+L(o.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(u?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},updateSegVerticals:function(t){this.computeSegVerticals(t),this.assignSegVerticals(t)},computeSegVerticals:function(t){var e,n;for(e=0;e<t.length;e++)(n=t[e]).top=this.computeDateTop(n.start,n.start),n.bottom=this.computeDateTop(n.end,n.start)},assignSegVerticals:function(t){var e,n;for(e=0;e<t.length;e++)(n=t[e]).el.css(this.generateSegVerticalCss(n))},generateSegVerticalCss:function(t){return{top:t.top,bottom:-t.bottom}},updateFgSegCoords:function(t){this.computeSegVerticals(t),this.computeFgSegHorizontals(t),this.assignSegVerticals(t),this.assignFgSegHorizontals(t)},computeFgSegHorizontals:function(t){var e,n,i;if(this.sortEventSegs(t),e=function(t){var e,n,i,r=[];for(e=0;e<t.length;e++){for(n=t[e],i=0;i<r.length&&vt(n,r[i]).length;i++);n.level=i,(r[i]||(r[i]=[])).push(n)}return r}(t),function(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]).forwardSegs=[],s=e+1;s<t.length;s++)vt(r,t[s],r.forwardSegs)}(e),n=e[0]){for(i=0;i<n.length;i++)gt(n[i]);for(i=0;i<n.length;i++)this.computeFgSegForwardBack(n[i],0,0)}},computeFgSegForwardBack:function(t,e,n){var i,r=t.forwardSegs;if(void 0===t.forwardCoord)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(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++)this.computeFgSegForwardBack(r[i],0,t.forwardCoord)},sortForwardSegs:function(t){t.sort(V(this,"compareForwardSegs"))},compareForwardSegs:function(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||this.compareEventSegs(t,e)},assignFgSegHorizontals:function(t){var e,n;for(e=0;e<t.length;e++)(n=t[e]).el.css(this.generateFgSegHorizontalCss(n)),n.bottom-n.top<30&&n.el.addClass("fc-short")},generateFgSegHorizontalCss: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}});var Xt=Dt.View=st.extend({type:null,name:null,title:null,calendar:null,options:null,el:null,displaying:null,isSkeletonRendered:!1,isEventsRendered:!1,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isRTL:!1,isSelected:!1,eventOrderSpecs:null,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,isNowIndicatorRendered:null,initialNowDate:null,initialNowQueriedMs:null,nowIndicatorTimeoutID:null,nowIndicatorIntervalID:null,constructor:function(t,n,i,r){this.calendar=t,this.type=this.name=n,this.options=i,this.intervalDuration=r||e.duration(1,"day"),this.nextDayThreshold=e.duration(this.opt("nextDayThreshold")),this.initThemingProps(),this.initHiddenDays(),this.isRTL=this.opt("isRTL"),this.eventOrderSpecs=S(this.opt("eventOrder")),this.documentMousedownProxy=V(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(t){return this.options[t]},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 e,n,i=H(this.intervalDuration),r=t.clone().startOf(i),s=r.clone().add(this.intervalDuration);return/year|month|week|day/.test(i)?(r.stripTime(),s.stripTime()):(r.hasTime()||(r=this.calendar.time(0)),s.hasTime()||(s=this.calendar.time(0))),e=r.clone(),e=this.skipHiddenDays(e),n=s.clone(),{intervalUnit:i,intervalStart:r,intervalEnd:s,start:e,end:n=this.skipHiddenDays(n,-1,!0)}},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,e){return this.intervalDuration.as("days")<=1&&this.isHiddenDay(t)&&(t=this.skipHiddenDays(t,e)).startOf("day"),t},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.calendar.applyTimezone(this.intervalStart),end:this.calendar.applyTimezone(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)),et(t.start,i,e,n,this.opt("isRTL"))},setElement:function(t){this.el=t,this.bindGlobalHandlers()},removeElement:function(){this.clear(),this.isSkeletonRendered&&(this.unrenderSkeleton(),this.isSkeletonRendered=!1),this.unbindGlobalHandlers(),this.el.remove()},display:function(e){var n=this,i=null;return this.displaying&&(i=this.queryScroll()),this.calendar.freezeContentHeight(),this.clear().then((function(){return n.displaying=t.when(n.displayView(e)).then((function(){n.forceScroll(n.computeInitialScroll(i)),n.calendar.unfreezeContentHeight(),n.triggerRender()}))}))},clear:function(){var e=this,n=this.displaying;return n?n.then((function(){return e.displaying=null,e.clearEvents(),e.clearView()})):t.when()},displayView:function(t){this.isSkeletonRendered||(this.renderSkeleton(),this.isSkeletonRendered=!0),t&&this.setDate(t),this.render&&this.render(),this.renderDates(),this.updateSize(),this.renderBusinessHours(),this.startNowIndicator()},clearView:function(){this.unselect(),this.stopNowIndicator(),this.triggerUnrender(),this.unrenderBusinessHours(),this.unrenderDates(),this.destroy&&this.destroy()},renderSkeleton:function(){},unrenderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},triggerRender:function(){this.trigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.trigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){t(document).on("mousedown",this.documentMousedownProxy)},unbindGlobalHandlers:function(){t(document).off("mousedown",this.documentMousedownProxy)},initThemingProps:function(){var t=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=t+"-widget-header",this.widgetContentClass=t+"-widget-content",this.highlightStateClass=t+"-state-highlight"},renderBusinessHours:function(){},unrenderBusinessHours:function(){},startNowIndicator:function(){var t,n,i,r=this;this.opt("nowIndicator")&&((t=this.getNowIndicatorUnit())&&(n=V(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=+new Date,this.renderNowIndicator(this.initialNowDate),this.isNowIndicatorRendered=!0,i=this.initialNowDate.clone().startOf(t).add(1,t)-this.initialNowDate,this.nowIndicatorTimeoutID=setTimeout((function(){r.nowIndicatorTimeoutID=null,n(),i=+e.duration(1,t),i=Math.max(100,i),r.nowIndicatorIntervalID=setInterval(n,i)}),i)))},updateNowIndicator:function(){this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add(new Date-this.initialNowQueriedMs)))},stopNowIndicator:function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearTimeout(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},getNowIndicatorUnit:function(){},renderNowIndicator:function(t){},unrenderNowIndicator:function(){},updateSize:function(t){var e;t&&(e=this.queryScroll()),this.updateHeight(t),this.updateWidth(t),this.updateNowIndicator(),t&&this.setScroll(e)},updateWidth:function(t){},updateHeight:function(t){var e=this.calendar;this.setHeight(e.getSuggestedViewHeight(),e.isHeightAuto())},setHeight:function(t,e){},computeScrollerHeight:function(t){var e,n,i=this.scrollerEl;return(e=this.el.add(i)).css({position:"relative",left:-1}),n=this.el.outerHeight()-i.height(),e.css({position:"",left:""}),t-n},computeInitialScroll:function(t){return 0},queryScroll:function(){return this.scrollerEl?this.scrollerEl.scrollTop():void 0},setScroll:function(t){return this.scrollerEl?this.scrollerEl.scrollTop(t):void 0},forceScroll:function(t){var e=this;this.setScroll(t),setTimeout((function(){e.setScroll(t)}),0)},displayEvents:function(t){var e=this.queryScroll();this.clearEvents(),this.renderEvents(t),this.isEventsRendered=!0,this.setScroll(e),this.triggerEventRender()},clearEvents:function(){var t;this.isEventsRendered&&(t=this.queryScroll(),this.triggerEventUnrender(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.setScroll(t),this.isEventsRendered=!1)},renderEvents:function(t){},unrenderEvents:function(){},triggerEventRender:function(){this.renderedEventSegEach((function(t){this.trigger("eventAfterRender",t.event,t.event,t.el)})),this.trigger("eventAfterAllRender")},triggerEventUnrender:function(){this.renderedEventSegEach((function(t){this.trigger("eventDestroy",t.event,t.event,t.el)}))},resolveEventEl:function(e,n){var i=this.trigger("eventRender",e,e,n);return!1===i?n=null:i&&!0!==i&&(n=t(i)),n},showEvent:function(t){this.renderedEventSegEach((function(t){t.el.css("visibility","")}),t)},hideEvent:function(t){this.renderedEventSegEach((function(t){t.el.css("visibility","hidden")}),t)},renderedEventSegEach:function(t,e){var n,i=this.getEventSegs();for(n=0;n<i.length;n++)e&&i[n].event._id!==e._id||i[n].el&&t.call(this,i[n])},getEventSegs:function(){return[]},isEventDraggable:function(t){var e=t.source||{};return Y(t.startEditable,e.startEditable,this.opt("eventStartEditable"),t.editable,e.editable,this.opt("editable"))},reportEventDrop:function(t,e,n,i,r){var s=this.calendar,o=s.mutateEvent(t,e,n);this.triggerEventDrop(t,o.dateDelta,(function(){o.undo(),s.reportEventChange()}),i,r),s.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){},unrenderDrag:function(){},isEventResizableFromStart:function(t){return this.opt("eventResizableFromStart")&&this.isEventResizable(t)},isEventResizableFromEnd:function(t){return this.isEventResizable(t)},isEventResizable:function(t){var e=t.source||{};return Y(t.durationEditable,e.durationEditable,this.opt("eventDurationEditable"),t.editable,e.editable,this.opt("editable"))},reportEventResize:function(t,e,n,i,r){var s=this.calendar,o=s.mutateEvent(t,e,n);this.triggerEventResize(t,o.durationDelta,(function(){o.undo(),s.reportEventChange()}),i,r),s.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.triggerSelect(t,e)},triggerSelect:function(t,e){this.trigger("select",null,this.calendar.applyTimezone(t.start),this.calendar.applyTimezone(t.end),e)},unselect:function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.trigger("unselect",null,t))},unrenderSelection:function(){},documentMousedown:function(e){var n;this.isSelected&&this.opt("unselectAuto")&&w(e)&&((n=this.opt("unselectCancel"))&&t(e.target).closest(n).length||this.unselect(e))},triggerDayClick:function(t,e,n){this.trigger("dayClick",e,this.calendar.applyTimezone(t.start),n)},initHiddenDays:function(){var e,n=this.opt("hiddenDays")||[],i=[],r=0;for(!1===this.opt("weekends")&&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>=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}}),Kt=Dt.Calendar=st.extend({dirDefaults:null,langDefaults:null,overrides:null,options:null,viewSpecCache:null,view:null,header:null,loadingLevel:0,constructor:function(n,i){function r(){return n.is(":visible")}function s(e){H++,S&&e&&S.type!==e&&(y.deactivateButton(S.type),h(),S.removeElement(),S=p.view=null),!S&&e&&((S=p.view=k[e]||(k[e]=p.instantiateView(e))).setElement(t("<div class='fc-view fc-"+e+"-view' />").appendTo(b)),y.activateButton(e)),S&&(D=S.massageCurrentDate(D),S.displaying&&D.isWithin(S.intervalStart,S.intervalEnd)||r()&&(S.display(D),f(),y.updateTitle(S.title),function(){var t=p.getNow();t.isWithin(S.intervalStart,S.intervalEnd)?y.disableButton("today"):y.enableButton("today")}(),!m.lazyFetching||E(S.start,S.end)?d():c())),f(),H--}function o(t){return r()?(t&&l(),H++,S.updateSize(!0),H--,!0):void 0}function a(){r()&&l()}function l(){C="number"==typeof m.contentHeight?m.contentHeight:"number"==typeof m.height?m.height-(w?w.outerHeight(!0):0):Math.round(b.width()/Math.max(m.aspectRatio,.5))}function u(t){!H&&t.target===window&&S.start&&o(!0)&&S.trigger("windowResize",_)}function c(){r()&&(h(),S.displayEvents(I),f())}function d(){x(S.start,S.end)}function h(){b.css({width:"100%",height:b.height(),overflow:"hidden"})}function f(){b.css({width:"",height:"",overflow:""})}var p=this;p.initOptions(i||{});var m=this.options;p.render=function(){b?r()&&(a(),s()):(m.theme?"ui":"fc",n.addClass("fc"),m.isRTL?n.addClass("fc-rtl"):n.addClass("fc-ltr"),m.theme?n.addClass("ui-widget"):n.addClass("fc-unthemed"),b=t("<div class='fc-view-container'/>").prependTo(n),y=p.header=new St(p,m),(w=y.render())&&n.prepend(w),s(m.defaultView),m.handleWindowResize&&(T=U(u,m.windowResizeDelay),t(window).resize(T)))},p.destroy=function(){S&&S.removeElement(),y.removeElement(),b.remove(),n.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),T&&t(window).unbind("resize",T)},p.refetchEvents=function(){h(),S.clearEvents(),f(),d()},p.reportEvents=function(t){I=t,c()},p.reportEventChange=function(){c()},p.rerenderEvents=c,p.changeView=s,p.select=function(t,e){S.select(p.buildSelectSpan.apply(p,arguments))},p.unselect=function(){S&&S.unselect()},p.prev=function(){D=S.computePrevDate(D),s()},p.next=function(){D=S.computeNextDate(D),s()},p.prevYear=function(){D.add(-1,"years"),s()},p.nextYear=function(){D.add(1,"years"),s()},p.today=function(){D=p.getNow(),s()},p.gotoDate=function(t){D=p.moment(t).stripZone(),s()},p.incrementDate=function(t){D.add(e.duration(t)),s()},p.zoomTo=function(t,e){var n;e=e||"day",n=p.getViewSpec(e)||p.getUnitViewSpec(e),D=t.clone(),s(n?n.type:null)},p.getDate=function(){return p.applyTimezone(D)},p.getCalendar=function(){return p},p.getView=function(){return S},p.option=function(t,e){return void 0===e?m[t]:void(("height"==t||"contentHeight"==t||"aspectRatio"==t)&&(m[t]=e,o(!0)))},p.trigger=function(t,e){var n=Array.prototype.slice.call(arguments,2);return e=e||_,this.triggerWith(t,e,n),m[t]?m[t].apply(e,n):void 0};var g=R(bt(m.lang));if(m.monthNames&&(g._months=m.monthNames),m.monthNamesShort&&(g._monthsShort=m.monthNamesShort),m.dayNames&&(g._weekdays=m.dayNames),m.dayNamesShort&&(g._weekdaysShort=m.dayNamesShort),null!=m.firstDay){var v=R(g._week);v.dow=m.firstDay,g._week=v}g._fullCalendar_weekCalc=function(t){return"function"==typeof t||"local"===t?t:"iso"===t||"ISO"===t?"ISO":void 0}(m.weekNumberCalculation),p.defaultAllDayEventDuration=e.duration(m.defaultAllDayEventDuration),p.defaultTimedEventDuration=e.duration(m.defaultTimedEventDuration),p.moment=function(){var t;return"local"===m.timezone?(t=Dt.moment.apply(null,arguments)).hasTime()&&t.local():t="UTC"===m.timezone?Dt.moment.utc.apply(null,arguments):Dt.moment.parseZone.apply(null,arguments),"_locale"in t?t._locale=g:t._lang=g,t},p.getIsAmbigTimezone=function(){return"local"!==m.timezone&&"UTC"!==m.timezone},p.applyTimezone=function(t){if(!t.hasTime())return t.clone();var e,n=p.moment(t.toArray()),i=t.time()-n.time();return i&&(e=n.clone().add(i),t.time()-e.time()==0&&(n=e)),n},p.getNow=function(){var t=m.now;return"function"==typeof t&&(t=t()),p.moment(t).stripZone()},p.getEventEnd=function(t){return t.end?t.end.clone():p.getDefaultEventEnd(t.allDay,t.start)},p.getDefaultEventEnd=function(t,e){var n=e.clone();return t?n.stripTime().add(p.defaultAllDayEventDuration):n.add(p.defaultTimedEventDuration),p.getIsAmbigTimezone()&&n.stripZone(),n},p.humanizeDuration=function(t){return(t.locale||t.lang).call(t,m.lang).humanize()},Ct.call(p,m);var y,w,b,S,C,T,D,E=p.isFetchNeeded,x=p.fetchEvents,_=n[0],k={},H=0,I=[];D=null!=m.defaultDate?p.moment(m.defaultDate).stripZone():p.getNow(),p.getSuggestedViewHeight=function(){return void 0===C&&a(),C},p.isHeightAuto=function(){return"auto"===m.contentHeight||"auto"===m.height},p.freezeContentHeight=h,p.unfreezeContentHeight=f,p.initialize()},initialize:function(){},initOptions:function(t){var e,r,s;e=(t=i(t)).lang,(r=Jt[e])||(e=Kt.defaults.lang,r=Jt[e]||{}),s=Y(t.isRTL,r.isRTL,Kt.defaults.isRTL)?Kt.rtlDefaults:{},this.dirDefaults=s,this.langDefaults=r,this.overrides=t,this.options=n([Kt.defaults,s,r,t]),wt(this.options),this.viewSpecCache={}},getViewSpec:function(t){var e=this.viewSpecCache;return e[t]||(e[t]=this.buildViewSpec(t))},getUnitViewSpec:function(e){var n,i,r;if(-1!=t.inArray(e,Ht))for(n=this.header.getViewsWithButtons(),t.each(Dt.views,(function(t){n.push(t)})),i=0;i<n.length;i++)if((r=this.getViewSpec(n[i]))&&r.singleUnit==e)return r},buildViewSpec:function(t){for(var i,r,s,o,a=this.overrides.views||{},l=[],u=[],c=[],d=t;d;)i=Et[d],r=a[d],d=null,"function"==typeof i&&(i={class:i}),i&&(l.unshift(i),u.unshift(i.defaults||{}),s=s||i.duration,d=d||i.type),r&&(c.unshift(r),s=s||r.duration,d=d||r.type);return(i=P(l)).type=t,!!i.class&&(s&&((s=e.duration(s)).valueOf()&&(i.duration=s,o=H(s),1===s.as(o)&&(i.singleUnit=o,c.unshift(a[o]||{})))),i.defaults=n(u),i.overrides=n(c),this.buildViewSpecOptions(i),this.buildViewSpecButtonText(i,t),i)},buildViewSpecOptions:function(t){t.options=n([Kt.defaults,t.defaults,this.dirDefaults,this.langDefaults,this.overrides,t.overrides]),wt(t.options)},buildViewSpecButtonText:function(t,e){function n(n){var i=n.buttonText||{};return i[e]||(t.singleUnit?i[t.singleUnit]:null)}t.buttonTextOverride=n(this.overrides)||t.overrides.buttonText,t.buttonTextDefault=n(this.langDefaults)||n(this.dirDefaults)||t.defaults.buttonText||n(Kt.defaults)||(t.duration?this.humanizeDuration(t.duration):null)||e},instantiateView:function(t){var e=this.getViewSpec(t);return new e.class(this,t,e.options,e.duration)},isValidViewType:function(t){return Boolean(this.getViewSpec(t))},pushLoading:function(){this.loadingLevel++||this.trigger("loading",null,!0,this.view)},popLoading:function(){--this.loadingLevel||this.trigger("loading",null,!1,this.view)},buildSelectSpan:function(t,e){var n,i=this.moment(t).stripZone();return n=e?this.moment(e).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),{start:i,end:n}}});Kt.mixin(Lt),Kt.defaults={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",scrollTime:"06:00:00",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",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:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},Kt.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},Kt.rtlDefaults={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"}};var Jt=Dt.langs={};Dt.datepickerLang=function(e,n,i){var r=Jt[e]||(Jt[e]={});r.isRTL=i.isRTL,r.weekNumberTitle=i.weekHeader,t.each(te,(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,i){var r,s;r=Jt[e]||(Jt[e]={}),i&&(r=Jt[e]=n([r,i])),s=bt(e),t.each(ee,(function(t,e){null==r[t]&&(r[t]=e(s,r))})),Kt.defaults.lang=e};var te={buttonText:function(t){return{prev:W(t.prevText),next:W(t.nextText),today:W(t.currentText)}},monthYearFormat:function(t){return t.showMonthAfterYear?"YYYY["+t.yearSuffix+"] MMMM":"MMMM YYYY["+t.yearSuffix+"]"}},ee={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},mediumTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"a")},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")},hourFormat:function(t){return t.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"")}},ne={smallDayDateFormat:function(t){return t.isRTL?"D dd":"dd D"},weekFormat:function(t){return t.isRTL?"w[ "+t.weekNumberTitle+"]":"["+t.weekNumberTitle+" ]w"},smallWeekFormat:function(t){return t.isRTL?"w["+t.weekNumberTitle+"]":"["+t.weekNumberTitle+"]w"}};Dt.lang("en",Kt.englishDefaults),Dt.sourceNormalizers=[],Dt.sourceFetchers=[];var ie={dataType:"json",cache:!1},re=1;Kt.prototype.getPeerEvents=function(t,e){var n,i,r=this.getEventCache(),s=[];for(n=0;n<r.length;n++)i=r[n],e&&e._id===i._id||s.push(i);return s};var se=Dt.BasicView=Xt.extend({dayGridClass:Zt,dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headContainerEl:null,headRowEl:null,initialize:function(){this.dayGrid=this.instantiateDayGrid()},instantiateDayGrid:function(){return new(this.dayGridClass.extend(oe))(this)},setRange:function(t){Xt.prototype.setRange.call(this,t),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(t)},computeRange:function(t){var e=Xt.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},renderDates: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.renderSkeletonHtml()),this.renderHead(),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(this.hasRigidRows())},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.dayGrid.renderHeadHtml()),this.headRowEl=this.headContainerEl.find(".fc-row")},unrenderDates:function(){this.dayGrid.unrenderDates(),this.dayGrid.removeElement()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"></td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},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=c(this.el.find(".fc-week-number")))},setHeight:function(t,e){var n,i=this.opt("eventLimit");h(this.scrollerEl),s(this.headRowEl),this.dayGrid.removeSegPopover(),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&&d(this.scrollerEl,n)&&(r(this.headRowEl,g(this.scrollerEl)),n=this.computeScrollerHeight(t),this.scrollerEl.height(n))},setGridHeight:function(t,e){e?u(this.dayGrid.rowEls):l(this.dayGrid.rowEls,t,!0)},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(t,e){return this.dayGrid.queryHit(t,e)},getHitSpan:function(t){return this.dayGrid.getHitSpan(t)},getHitEl:function(t){return this.dayGrid.getHitEl(t)},renderEvents:function(t){this.dayGrid.renderEvents(t),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(t,e){return this.dayGrid.renderDrag(t,e)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(t){this.dayGrid.renderSelection(t)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),oe={renderHeadIntroHtml:function(){var t=this.view;return t.weekNumbersVisible?'<th class="fc-week-number '+t.widgetHeaderClass+'" '+t.weekNumberStyleAttr()+"><span>"+L(t.opt("weekNumberTitle"))+"</span></th>":""},renderNumberIntroHtml:function(t){var e=this.view;return e.weekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+"><span>"+this.getCellDate(t,0).format("w")+"</span></td>":""},renderBgIntroHtml:function(){var t=this.view;return t.weekNumbersVisible?'<td class="fc-week-number '+t.widgetContentClass+'" '+t.weekNumberStyleAttr()+"></td>":""},renderIntroHtml:function(){var t=this.view;return t.weekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"></td>":""}},ae=Dt.MonthView=se.extend({computeRange:function(t){var e,n=se.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"))&&(t*=this.rowCnt/6),l(this.dayGrid.rowEls,t,!e)},isFixedWeeks:function(){var t=this.opt("weekMode");return t?"fixed"===t:this.opt("fixedWeekCount")}});Et.basic={class:se},Et.basicDay={type:"basic",duration:{days:1}},Et.basicWeek={type:"basic",duration:{weeks:1}},Et.month={class:ae,duration:{months:1},defaults:{fixedWeekCount:!0}};var le=Dt.AgendaView=Xt.extend({timeGridClass:Qt,timeGrid:null,dayGridClass:Zt,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=this.instantiateTimeGrid(),this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid())},instantiateTimeGrid:function(){return new(this.timeGridClass.extend(ue))(this)},instantiateDayGrid:function(){return new(this.dayGridClass.extend(ce))(this)},setRange:function(t){Xt.prototype.setRange.call(this,t),this.timeGrid.setRange(t),this.dayGrid&&this.dayGrid.setRange(t)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.setElement(this.el.find(".fc-time-grid")),this.timeGrid.renderDates(),this.bottomRuleEl=t('<hr class="fc-divider '+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml())},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement())},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"></td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.timeGrid.unrenderBusinessHours(),this.dayGrid&&this.dayGrid.unrenderBusinessHours()},getNowIndicatorUnit:function(){return this.timeGrid.getNowIndicatorUnit()},renderNowIndicator:function(t){this.timeGrid.renderNowIndicator(t)},unrenderNowIndicator:function(){this.timeGrid.unrenderNowIndicator()},updateSize:function(t){this.timeGrid.updateSize(t),Xt.prototype.updateSize.call(this,t)},updateWidth:function(){this.axisWidth=c(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",""),h(this.scrollerEl),s(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),(n=this.opt("eventLimit"))&&"number"!=typeof n&&(n=de),n&&this.dayGrid.limitRows(n)),e||(i=this.computeScrollerHeight(t),d(this.scrollerEl,i)?(r(this.noScrollRowEls,g(this.scrollerEl)),i=this.computeScrollerHeight(t),this.scrollerEl.height(i)):(this.scrollerEl.height(i).css("overflow","hidden"),this.bottomRuleEl.show()))},computeInitialScroll:function(){var t=e.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(t);return(n=Math.ceil(n))&&n++,n},prepareHits:function(){this.timeGrid.prepareHits(),this.dayGrid&&this.dayGrid.prepareHits()},releaseHits:function(){this.timeGrid.releaseHits(),this.dayGrid&&this.dayGrid.releaseHits()},queryHit:function(t,e){var n=this.timeGrid.queryHit(t,e);return!n&&this.dayGrid&&(n=this.dayGrid.queryHit(t,e)),n},getHitSpan:function(t){return t.component.getHitSpan(t)},getHitEl:function(t){return t.component.getHitEl(t)},renderEvents:function(t){var e,n=[],i=[];for(e=0;e<t.length;e++)t[e].allDay?n.push(t[e]):i.push(t[e]);this.timeGrid.renderEvents(i),this.dayGrid&&this.dayGrid.renderEvents(n),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},unrenderEvents:function(){this.timeGrid.unrenderEvents(),this.dayGrid&&this.dayGrid.unrenderEvents()},renderDrag:function(t,e){return t.start.hasTime()?this.timeGrid.renderDrag(t,e):this.dayGrid?this.dayGrid.renderDrag(t,e):void 0},unrenderDrag:function(){this.timeGrid.unrenderDrag(),this.dayGrid&&this.dayGrid.unrenderDrag()},renderSelection:function(t){t.start.hasTime()||t.end.hasTime()?this.timeGrid.renderSelection(t):this.dayGrid&&this.dayGrid.renderSelection(t)},unrenderSelection:function(){this.timeGrid.unrenderSelection(),this.dayGrid&&this.dayGrid.unrenderSelection()}}),ue={renderHeadIntroHtml:function(){var t,e=this.view;return e.opt("weekNumbers")?(t=this.start.format(e.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+e.widgetHeaderClass+'" '+e.axisStyleAttr()+"><span>"+L(t)+"</span></th>"):'<th class="fc-axis '+e.widgetHeaderClass+'" '+e.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.widgetContentClass+'" '+t.axisStyleAttr()+"></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},ce={renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.widgetContentClass+'" '+t.axisStyleAttr()+"><span>"+(t.opt("allDayHtml")||L(t.opt("allDayText")))+"</span></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},de=5,he=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];return Et.agenda={class:le,defaults:{allDaySlot:!0,allDayText:"all-day",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},Et.agendaDay={type:"agenda",duration:{days:1}},Et.agendaWeek={type:"agenda",duration:{weeks:1}},Dt})),function(t){"use strict";t.fn.counterUp=function(e){var n=t.extend({time:400,delay:10},e);return this.each((function(){var e=t(this),i=n;e.waypoint((function(){var t=[],n=i.time/i.delay,r=e.text(),s=/[0-9]+,[0-9]+/.test(r);r=r.replace(/,/g,"");/^[0-9]+$/.test(r);for(var o=/^[0-9]+\.[0-9]+$/.test(r),a=o?(r.split(".")[1]||[]).length:0,l=n;l>=1;l--){var u=parseInt(r/n*l);if(o&&(u=parseFloat(r/n*l).toFixed(a)),s)for(;/(\d+)(\d{3})/.test(u.toString());)u=u.toString().replace(/(\d+)(\d{3})/,"$1,$2");t.unshift(u)}e.data("counterup-nums",t),e.text("0");e.data("counterup-func",(function(){e.text(e.data("counterup-nums").shift()),e.data("counterup-nums").length?setTimeout(e.data("counterup-func"),i.delay):(e.data("counterup-nums"),e.data("counterup-nums",null),e.data("counterup-func",null))})),setTimeout(e.data("counterup-func"),i.delay)}),{offset:"100%",triggerOnce:!0})}))}}(jQuery),function(t){t.flexslider=function(e,n){var i=t(e);i.vars=t.extend({},t.flexslider.defaults,n);var r,s=i.vars.namespace,o=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,a=("ontouchstart"in window||o||window.DocumentTouch&&document instanceof DocumentTouch)&&i.vars.touch,l="click touchend MSPointerUp",u="",c="vertical"===i.vars.direction,d=i.vars.reverse,h=i.vars.itemWidth>0,f="fade"===i.vars.animation,p=""!==i.vars.asNavFor,m={};t.data(e,"flexslider",i),m={init:function(){i.animating=!1,i.currentSlide=parseInt(i.vars.startAt?i.vars.startAt:0),isNaN(i.currentSlide)&&(i.currentSlide=0),i.animatingTo=i.currentSlide,i.atEnd=0===i.currentSlide||i.currentSlide===i.last,i.containerSelector=i.vars.selector.substr(0,i.vars.selector.search(" ")),i.slides=t(i.vars.selector,i),i.container=t(i.containerSelector,i),i.count=i.slides.length,i.syncExists=t(i.vars.sync).length>0,"slide"===i.vars.animation&&(i.vars.animation="swing"),i.prop=c?"top":"marginLeft",i.args={},i.manualPause=!1,i.stopped=!1,i.started=!1,i.startTimeout=null,i.transitions=!i.vars.video&&!f&&i.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in e)if(void 0!==t.style[e[n]])return i.pfx=e[n].replace("Perspective","").toLowerCase(),i.prop="-"+i.pfx+"-transform",!0;return!1}(),""!==i.vars.controlsContainer&&(i.controlsContainer=t(i.vars.controlsContainer).length>0&&t(i.vars.controlsContainer)),""!==i.vars.manualControls&&(i.manualControls=t(i.vars.manualControls).length>0&&t(i.vars.manualControls)),i.vars.randomize&&(i.slides.sort((function(){return Math.round(Math.random())-.5})),i.container.empty().append(i.slides)),i.doMath(),i.setup("init"),i.vars.controlNav&&m.controlNav.setup(),i.vars.directionNav&&m.directionNav.setup(),i.vars.keyboard&&(1===t(i.containerSelector).length||i.vars.multipleKeyboard)&&t(document).bind("keyup",(function(t){var e=t.keyCode;if(!i.animating&&(39===e||37===e)){var n=39===e?i.getTarget("next"):37===e&&i.getTarget("prev");i.flexAnimate(n,i.vars.pauseOnAction)}})),i.vars.mousewheel&&i.bind("mousewheel",(function(t,e,n,r){t.preventDefault();var s=e<0?i.getTarget("next"):i.getTarget("prev");i.flexAnimate(s,i.vars.pauseOnAction)})),i.vars.pausePlay&&m.pausePlay.setup(),i.vars.slideshow&&i.vars.pauseInvisible&&m.pauseInvisible.init(),i.vars.slideshow&&(i.vars.pauseOnHover&&i.hover((function(){i.manualPlay||i.manualPause||i.pause()}),(function(){i.manualPause||i.manualPlay||i.stopped||i.play()})),i.vars.pauseInvisible&&m.pauseInvisible.isHidden()||(i.vars.initDelay>0?i.startTimeout=setTimeout(i.play,i.vars.initDelay):i.play())),p&&m.asNav.setup(),a&&i.vars.touch&&m.touch(),(!f||f&&i.vars.smoothHeight)&&t(window).bind("resize orientationchange focus",m.resize),i.find("img").attr("draggable","false"),setTimeout((function(){i.vars.start(i)}),200)},asNav:{setup:function(){i.asNav=!0,i.animatingTo=Math.floor(i.currentSlide/i.move),i.currentItem=i.currentSlide,i.slides.removeClass(s+"active-slide").eq(i.currentItem).addClass(s+"active-slide"),o?(e._slider=i,i.slides.each((function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",(function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)}),!1),e.addEventListener("MSGestureTap",(function(e){e.preventDefault();var n=t(this),r=n.index();t(i.vars.asNavFor).data("flexslider").animating||n.hasClass("active")||(i.direction=i.currentItem<r?"next":"prev",i.flexAnimate(r,i.vars.pauseOnAction,!1,!0,!0))}))}))):i.slides.click((function(e){e.preventDefault();var n=t(this),r=n.index();n.offset().left-t(i).scrollLeft()<=0&&n.hasClass(s+"active-slide")?i.flexAnimate(i.getTarget("prev"),!0):t(i.vars.asNavFor).data("flexslider").animating||n.hasClass(s+"active-slide")||(i.direction=i.currentItem<r?"next":"prev",i.flexAnimate(r,i.vars.pauseOnAction,!1,!0,!0))}))}},controlNav:{setup:function(){i.manualControls?m.controlNav.setupManual():m.controlNav.setupPaging()},setupPaging:function(){var e,n,r="thumbnails"===i.vars.controlNav?"control-thumbs":"control-paging",o=1;if(i.controlNavScaffold=t('<ol class="'+s+"control-nav "+s+r+'"></ol>'),i.pagingCount>1)for(var a=0;a<i.pagingCount;a++){if(n=i.slides.eq(a),e="thumbnails"===i.vars.controlNav?'<img src="'+n.attr("data-thumb")+'"/>':"<a>"+o+"</a>","thumbnails"===i.vars.controlNav&&!0===i.vars.thumbCaptions){var c=n.attr("data-thumbcaption");""!=c&&null!=c&&(e+='<span class="'+s+'caption">'+c+"</span>")}i.controlNavScaffold.append("<li>"+e+"</li>"),o++}i.controlsContainer?t(i.controlsContainer).append(i.controlNavScaffold):i.append(i.controlNavScaffold),m.controlNav.set(),m.controlNav.active(),i.controlNavScaffold.delegate("a, img",l,(function(e){if(e.preventDefault(),""===u||u===e.type){var n=t(this),r=i.controlNav.index(n);n.hasClass(s+"active")||(i.direction=r>i.currentSlide?"next":"prev",i.flexAnimate(r,i.vars.pauseOnAction))}""===u&&(u=e.type),m.setToClearWatchedEvent()}))},setupManual:function(){i.controlNav=i.manualControls,m.controlNav.active(),i.controlNav.bind(l,(function(e){if(e.preventDefault(),""===u||u===e.type){var n=t(this),r=i.controlNav.index(n);n.hasClass(s+"active")||(r>i.currentSlide?i.direction="next":i.direction="prev",i.flexAnimate(r,i.vars.pauseOnAction))}""===u&&(u=e.type),m.setToClearWatchedEvent()}))},set:function(){var e="thumbnails"===i.vars.controlNav?"img":"a";i.controlNav=t("."+s+"control-nav li "+e,i.controlsContainer?i.controlsContainer:i)},active:function(){i.controlNav.removeClass(s+"active").eq(i.animatingTo).addClass(s+"active")},update:function(e,n){i.pagingCount>1&&"add"===e?i.controlNavScaffold.append(t("<li><a>"+i.count+"</a></li>")):1===i.pagingCount?i.controlNavScaffold.find("li").remove():i.controlNav.eq(n).closest("li").remove(),m.controlNav.set(),i.pagingCount>1&&i.pagingCount!==i.controlNav.length?i.update(n,e):m.controlNav.active()}},directionNav:{setup:function(){var e=t('<ul class="'+s+'direction-nav"><li><a class="'+s+'prev" href="#">'+i.vars.prevText+'</a></li><li><a class="'+s+'next" href="#">'+i.vars.nextText+"</a></li></ul>");i.controlsContainer?(t(i.controlsContainer).append(e),i.directionNav=t("."+s+"direction-nav li a",i.controlsContainer)):(i.append(e),i.directionNav=t("."+s+"direction-nav li a",i)),m.directionNav.update(),i.directionNav.bind(l,(function(e){var n;e.preventDefault(),""!==u&&u!==e.type||(n=t(this).hasClass(s+"next")?i.getTarget("next"):i.getTarget("prev"),i.flexAnimate(n,i.vars.pauseOnAction)),""===u&&(u=e.type),m.setToClearWatchedEvent()}))},update:function(){var t=s+"disabled";1===i.pagingCount?i.directionNav.addClass(t).attr("tabindex","-1"):i.vars.animationLoop?i.directionNav.removeClass(t).removeAttr("tabindex"):0===i.animatingTo?i.directionNav.removeClass(t).filter("."+s+"prev").addClass(t).attr("tabindex","-1"):i.animatingTo===i.last?i.directionNav.removeClass(t).filter("."+s+"next").addClass(t).attr("tabindex","-1"):i.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=t('<div class="'+s+'pauseplay"><a></a></div>');i.controlsContainer?(i.controlsContainer.append(e),i.pausePlay=t("."+s+"pauseplay a",i.controlsContainer)):(i.append(e),i.pausePlay=t("."+s+"pauseplay a",i)),m.pausePlay.update(i.vars.slideshow?s+"pause":s+"play"),i.pausePlay.bind(l,(function(e){e.preventDefault(),""!==u&&u!==e.type||(t(this).hasClass(s+"pause")?(i.manualPause=!0,i.manualPlay=!1,i.pause()):(i.manualPause=!1,i.manualPlay=!0,i.play())),""===u&&(u=e.type),m.setToClearWatchedEvent()}))},update:function(t){"play"===t?i.pausePlay.removeClass(s+"pause").addClass(s+"play").html(i.vars.playText):i.pausePlay.removeClass(s+"play").addClass(s+"pause").html(i.vars.pauseText)}},touch:function(){var t,n,r,s,a,l,u=!1,p=0,m=0,g=0;if(o){e.style.msTouchAction="none",e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",(function(t){t.stopPropagation(),i.animating?t.preventDefault():(i.pause(),e._gesture.addPointer(t.pointerId),g=0,s=c?i.h:i.w,l=Number(new Date),r=h&&d&&i.animatingTo===i.last?0:h&&d?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:h&&i.currentSlide===i.last?i.limit:h?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:d?(i.last-i.currentSlide+i.cloneOffset)*s:(i.currentSlide+i.cloneOffset)*s)}),!1),e._slider=i,e.addEventListener("MSGestureChange",(function(t){t.stopPropagation();var n=t.target._slider;if(!n)return;var i=-t.translationX,o=-t.translationY;if(a=g+=c?o:i,u=c?Math.abs(g)<Math.abs(-i):Math.abs(g)<Math.abs(-o),t.detail===t.MSGESTURE_FLAG_INERTIA)return void setImmediate((function(){e._gesture.stop()}));(!u||Number(new Date)-l>500)&&(t.preventDefault(),!f&&n.transitions&&(n.vars.animationLoop||(a=g/(0===n.currentSlide&&g<0||n.currentSlide===n.last&&g>0?Math.abs(g)/s+2:1)),n.setProps(r+a,"setTouch")))}),!1),e.addEventListener("MSGestureEnd",(function(e){e.stopPropagation();var i=e.target._slider;if(!i)return;if(i.animatingTo===i.currentSlide&&!u&&null!==a){var o=d?-a:a,c=o>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(c)&&(Number(new Date)-l<550&&Math.abs(o)>50||Math.abs(o)>s/2)?i.flexAnimate(c,i.vars.pauseOnAction):f||i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}t=null,n=null,a=null,r=null,g=0}),!1)}else{function v(e){p=e.touches[0].pageX,m=e.touches[0].pageY,a=c?t-m:t-p;(!(u=c?Math.abs(a)<Math.abs(p-n):Math.abs(a)<Math.abs(m-n))||Number(new Date)-l>500)&&(e.preventDefault(),!f&&i.transitions&&(i.vars.animationLoop||(a/=0===i.currentSlide&&a<0||i.currentSlide===i.last&&a>0?Math.abs(a)/s+2:1),i.setProps(r+a,"setTouch")))}function y(o){if(e.removeEventListener("touchmove",v,!1),i.animatingTo===i.currentSlide&&!u&&null!==a){var c=d?-a:a,h=c>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(h)&&(Number(new Date)-l<550&&Math.abs(c)>50||Math.abs(c)>s/2)?i.flexAnimate(h,i.vars.pauseOnAction):f||i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}e.removeEventListener("touchend",y,!1),t=null,n=null,a=null,r=null}e.addEventListener("touchstart",(function(o){i.animating?o.preventDefault():(window.navigator.msPointerEnabled||1===o.touches.length)&&(i.pause(),s=c?i.h:i.w,l=Number(new Date),p=o.touches[0].pageX,m=o.touches[0].pageY,r=h&&d&&i.animatingTo===i.last?0:h&&d?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:h&&i.currentSlide===i.last?i.limit:h?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:d?(i.last-i.currentSlide+i.cloneOffset)*s:(i.currentSlide+i.cloneOffset)*s,t=c?m:p,n=c?p:m,e.addEventListener("touchmove",v,!1),e.addEventListener("touchend",y,!1))}),!1)}},resize:function(){!i.animating&&i.is(":visible")&&(h||i.doMath(),f?m.smoothHeight():h?(i.slides.width(i.computedW),i.update(i.pagingCount),i.setProps()):c?(i.viewport.height(i.h),i.setProps(i.h,"setTotal")):(i.vars.smoothHeight&&m.smoothHeight(),i.newSlides.width(i.computedW),i.setProps(i.computedW,"setTotal")))},smoothHeight:function(t){if(!c||f){var e=f?i:i.viewport;t?e.animate({height:i.slides.eq(i.animatingTo).height()},t):e.height(i.slides.eq(i.animatingTo).height())}},sync:function(e){var n=t(i.vars.sync).data("flexslider"),r=i.animatingTo;switch(e){case"animate":n.flexAnimate(r,i.vars.pauseOnAction,!1,!0);break;case"play":n.playing||n.asNav||n.play();break;case"pause":n.pause()}},pauseInvisible:{visProp:null,init:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)t[e]+"Hidden"in document&&(m.pauseInvisible.visProp=t[e]+"Hidden");if(m.pauseInvisible.visProp){var n=m.pauseInvisible.visProp.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(n,(function(){m.pauseInvisible.isHidden()?i.startTimeout?clearTimeout(i.startTimeout):i.pause():i.started?i.play():i.vars.initDelay>0?setTimeout(i.play,i.vars.initDelay):i.play()}))}},isHidden:function(){return document[m.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(r),r=setTimeout((function(){u=""}),3e3)}},i.flexAnimate=function(e,n,r,o,l){if(i.vars.animationLoop||e===i.currentSlide||(i.direction=e>i.currentSlide?"next":"prev"),p&&1===i.pagingCount&&(i.direction=i.currentItem<e?"next":"prev"),!i.animating&&(i.canAdvance(e,l)||r)&&i.is(":visible")){if(p&&o){var u=t(i.vars.asNavFor).data("flexslider");if(i.atEnd=0===e||e===i.count-1,u.flexAnimate(e,!0,!1,!0,l),i.direction=i.currentItem<e?"next":"prev",u.direction=i.direction,Math.ceil((e+1)/i.visible)-1===i.currentSlide||0===e)return i.currentItem=e,i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),!1;i.currentItem=e,i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),e=Math.floor(e/i.visible)}if(i.animating=!0,i.animatingTo=e,n&&i.pause(),i.vars.before(i),i.syncExists&&!l&&m.sync("animate"),i.vars.controlNav&&m.controlNav.active(),h||i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),i.atEnd=0===e||e===i.last,i.vars.directionNav&&m.directionNav.update(),e===i.last&&(i.vars.end(i),i.vars.animationLoop||i.pause()),f)a?(i.slides.eq(i.currentSlide).css({opacity:0,zIndex:1}),i.slides.eq(e).css({opacity:1,zIndex:2}),i.wrapup(w)):(i.slides.eq(i.currentSlide).css({zIndex:1}).animate({opacity:0},i.vars.animationSpeed,i.vars.easing),i.slides.eq(e).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing,i.wrapup));else{var g,v,y,w=c?i.slides.filter(":first").height():i.computedW;h?(g=i.vars.itemMargin,v=(y=(i.itemW+g)*i.move*i.animatingTo)>i.limit&&1!==i.visible?i.limit:y):v=0===i.currentSlide&&e===i.count-1&&i.vars.animationLoop&&"next"!==i.direction?d?(i.count+i.cloneOffset)*w:0:i.currentSlide===i.last&&0===e&&i.vars.animationLoop&&"prev"!==i.direction?d?0:(i.count+1)*w:d?(i.count-1-e+i.cloneOffset)*w:(e+i.cloneOffset)*w,i.setProps(v,"",i.vars.animationSpeed),i.transitions?(i.vars.animationLoop&&i.atEnd||(i.animating=!1,i.currentSlide=i.animatingTo),i.container.unbind("webkitTransitionEnd transitionend"),i.container.bind("webkitTransitionEnd transitionend",(function(){i.wrapup(w)}))):i.container.animate(i.args,i.vars.animationSpeed,i.vars.easing,(function(){i.wrapup(w)}))}i.vars.smoothHeight&&m.smoothHeight(i.vars.animationSpeed)}},i.wrapup=function(t){f||h||(0===i.currentSlide&&i.animatingTo===i.last&&i.vars.animationLoop?i.setProps(t,"jumpEnd"):i.currentSlide===i.last&&0===i.animatingTo&&i.vars.animationLoop&&i.setProps(t,"jumpStart")),i.animating=!1,i.currentSlide=i.animatingTo,i.vars.after(i)},i.animateSlides=function(){i.animating||i.flexAnimate(i.getTarget("next"))},i.pause=function(){clearInterval(i.animatedSlides),i.animatedSlides=null,i.playing=!1,i.vars.pausePlay&&m.pausePlay.update("play"),i.syncExists&&m.sync("pause")},i.play=function(){i.playing&&clearInterval(i.animatedSlides),i.animatedSlides=i.animatedSlides||setInterval(i.animateSlides,i.vars.slideshowSpeed),i.started=i.playing=!0,i.vars.pausePlay&&m.pausePlay.update("pause"),i.syncExists&&m.sync("play")},i.stop=function(){i.pause(),i.stopped=!0},i.canAdvance=function(t,e){var n=p?i.pagingCount-1:i.last;return!!e||(!(!p||i.currentItem!==i.count-1||0!==t||"prev"!==i.direction)||(!p||0!==i.currentItem||t!==i.pagingCount-1||"next"===i.direction)&&(!(t===i.currentSlide&&!p)&&(!!i.vars.animationLoop||(!i.atEnd||0!==i.currentSlide||t!==n||"next"===i.direction)&&(!i.atEnd||i.currentSlide!==n||0!==t||"next"!==i.direction))))},i.getTarget=function(t){return i.direction=t,"next"===t?i.currentSlide===i.last?0:i.currentSlide+1:0===i.currentSlide?i.last:i.currentSlide-1},i.setProps=function(t,e,n){var r,s=(r=t||(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo,-1*function(){if(h)return"setTouch"===e?t:d&&i.animatingTo===i.last?0:d?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:i.animatingTo===i.last?i.limit:r;switch(e){case"setTotal":return d?(i.count-1-i.currentSlide+i.cloneOffset)*t:(i.currentSlide+i.cloneOffset)*t;case"setTouch":default:return t;case"jumpEnd":return d?t:i.count*t;case"jumpStart":return d?i.count*t:t}}()+"px");i.transitions&&(s=c?"translate3d(0,"+s+",0)":"translate3d("+s+",0,0)",n=void 0!==n?n/1e3+"s":"0s",i.container.css("-"+i.pfx+"-transition-duration",n)),i.args[i.prop]=s,(i.transitions||void 0===n)&&i.container.css(i.args)},i.setup=function(e){var n,r;f?(i.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(a?i.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+i.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(i.currentSlide).css({opacity:1,zIndex:2}):i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing)),i.vars.smoothHeight&&m.smoothHeight()):("init"===e&&(i.viewport=t('<div class="'+s+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(i).append(i.container),i.cloneCount=0,i.cloneOffset=0,d&&(r=t.makeArray(i.slides).reverse(),i.slides=t(r),i.container.empty().append(i.slides))),i.vars.animationLoop&&!h&&(i.cloneCount=2,i.cloneOffset=1,"init"!==e&&i.container.find(".clone").remove(),i.container.append(i.slides.first().clone().addClass("clone").attr("aria-hidden","true")).prepend(i.slides.last().clone().addClass("clone").attr("aria-hidden","true"))),i.newSlides=t(i.vars.selector,i),n=d?i.count-1-i.currentSlide+i.cloneOffset:i.currentSlide+i.cloneOffset,c&&!h?(i.container.height(200*(i.count+i.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout((function(){i.newSlides.css({display:"block"}),i.doMath(),i.viewport.height(i.h),i.setProps(n*i.h,"init")}),"init"===e?100:0)):(i.container.width(200*(i.count+i.cloneCount)+"%"),i.setProps(n*i.computedW,"init"),setTimeout((function(){i.doMath(),i.newSlides.css({width:i.computedW,float:"left",display:"block"}),i.vars.smoothHeight&&m.smoothHeight()}),"init"===e?100:0)));h||i.slides.removeClass(s+"active-slide").eq(i.currentSlide).addClass(s+"active-slide")},i.doMath=function(){var t=i.slides.first(),e=i.vars.itemMargin,n=i.vars.minItems,r=i.vars.maxItems;i.w=void 0===i.viewport?i.width():i.viewport.width(),i.h=t.height(),i.boxPadding=t.outerWidth()-t.width(),h?(i.itemT=i.vars.itemWidth+e,i.minW=n?n*i.itemT:i.w,i.maxW=r?r*i.itemT-e:i.w,i.itemW=i.minW>i.w?(i.w-e*(n-1))/n:i.maxW<i.w?(i.w-e*(r-1))/r:i.vars.itemWidth>i.w?i.w:i.vars.itemWidth,i.visible=Math.floor(i.w/i.itemW),i.move=i.vars.move>0&&i.vars.move<i.visible?i.vars.move:i.visible,i.pagingCount=Math.ceil((i.count-i.visible)/i.move+1),i.last=i.pagingCount-1,i.limit=1===i.pagingCount?0:i.vars.itemWidth>i.w?i.itemW*(i.count-1)+e*(i.count-1):(i.itemW+e)*i.count-i.w-e):(i.itemW=i.w,i.pagingCount=i.count,i.last=i.count-1),i.computedW=i.itemW-i.boxPadding},i.update=function(t,e){i.doMath(),h||(t<i.currentSlide?i.currentSlide+=1:t<=i.currentSlide&&0!==t&&(i.currentSlide-=1),i.animatingTo=i.currentSlide),i.vars.controlNav&&!i.manualControls&&("add"===e&&!h||i.pagingCount>i.controlNav.length?m.controlNav.update("add"):("remove"===e&&!h||i.pagingCount<i.controlNav.length)&&(h&&i.currentSlide>i.last&&(i.currentSlide-=1,i.animatingTo-=1),m.controlNav.update("remove",i.last))),i.vars.directionNav&&m.directionNav.update()},i.addSlide=function(e,n){var r=t(e);i.count+=1,i.last=i.count-1,c&&d?void 0!==n?i.slides.eq(i.count-n).after(r):i.container.prepend(r):void 0!==n?i.slides.eq(n).before(r):i.container.append(r),i.update(n,"add"),i.slides=t(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.added(i)},i.removeSlide=function(e){var n=isNaN(e)?i.slides.index(t(e)):e;i.count-=1,i.last=i.count-1,isNaN(e)?t(e,i.slides).remove():c&&d?i.slides.eq(i.last).remove():i.slides.eq(e).remove(),i.doMath(),i.update(n,"remove"),i.slides=t(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.removed(i)},m.init()},t(window).blur((function(t){focused=!1})).focus((function(t){focused=!0})),t.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}},t.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each((function(){var n=t(this),i=e.selector?e.selector:".slides > li",r=n.find(i);1===r.length&&!0===e.allowOneSlide||0===r.length?(r.fadeIn(400),e.start&&e.start(n)):void 0===n.data("flexslider")&&new t.flexslider(this,e)}));var n=t(this).data("flexslider");switch(e){case"play":n.play();break;case"pause":n.pause();break;case"stop":n.stop();break;case"next":n.flexAnimate(n.getTarget("next"),!0);break;case"prev":case"previous":n.flexAnimate(n.getTarget("prev"),!0);break;default:"number"==typeof e&&n.flexAnimate(e,!0)}}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(window.jQuery||window.Zepto)}((function(t){var e,n,i,r,s,o,a="Close",l="BeforeClose",u="MarkupParse",c="Open",d="Change",h="mfp",f="."+h,p="mfp-ready",m="mfp-removing",g="mfp-prevent-close",v=function(){},y=!!window.jQuery,w=t(window),b=function(t,n){e.ev.on(h+t+f,n)},S=function(e,n,i,r){var s=document.createElement("div");return s.className="mfp-"+e,i&&(s.innerHTML=i),r?n&&n.appendChild(s):(s=t(s),n&&s.appendTo(n)),s},C=function(n,i){e.ev.triggerHandler(h+n,i),e.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),e.st.callbacks[n]&&e.st.callbacks[n].apply(e,t.isArray(i)?i:[i]))},T=function(n){return n===o&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),o=n),e.currTemplate.closeBtn},D=function(){t.magnificPopup.instance||((e=new v).init(),t.magnificPopup.instance=e)};v.prototype={constructor:v,init:function(){var n=navigator.appVersion;e.isIE7=-1!==n.indexOf("MSIE 7."),e.isIE8=-1!==n.indexOf("MSIE 8."),e.isLowIE=e.isIE7||e.isIE8,e.isAndroid=/android/gi.test(n),e.isIOS=/iphone|ipad|ipod/gi.test(n),e.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=t(document),e.popupsCache={}},open:function(n){var r;if(!1===n.isObj){e.items=n.items.toArray(),e.index=0;var o,a=n.items;for(r=0;r<a.length;r++)if((o=a[r]).parsed&&(o=o.el[0]),o===n.el[0]){e.index=r;break}}else e.items=t.isArray(n.items)?n.items:[n.items],e.index=n.index||0;if(!e.isOpen){e.types=[],s="",n.mainEl&&n.mainEl.length?e.ev=n.mainEl.eq(0):e.ev=i,n.key?(e.popupsCache[n.key]||(e.popupsCache[n.key]={}),e.currTemplate=e.popupsCache[n.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,n),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=S("bg").on("click"+f,(function(){e.close()})),e.wrap=S("wrap").attr("tabindex",-1).on("click"+f,(function(t){e._checkIfClose(t.target)&&e.close()})),e.container=S("container",e.wrap)),e.contentContainer=S("content"),e.st.preloader&&(e.preloader=S("preloader",e.container,e.st.tLoading));var l=t.magnificPopup.modules;for(r=0;r<l.length;r++){var d=l[r];d=d.charAt(0).toUpperCase()+d.slice(1),e["init"+d].call(e)}C("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(b(u,(function(t,e,n,i){n.close_replaceWith=T(i.type)})),s+=" mfp-close-btn-in"):e.wrap.append(T())),e.st.alignTop&&(s+=" mfp-align-top"),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}):e.wrap.css({top:w.scrollTop(),position:"absolute"}),(!1===e.st.fixedBgPos||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:i.height(),position:"absolute"}),e.st.enableEscapeKey&&i.on("keyup"+f,(function(t){27===t.keyCode&&e.close()})),w.on("resize"+f,(function(){e.updateSize()})),e.st.closeOnContentClick||(s+=" mfp-auto-cursor"),s&&e.wrap.addClass(s);var h=e.wH=w.height(),m={};if(e.fixedContentPos&&e._hasScrollBar(h)){var g=e._getScrollbarSize();g&&(m.marginRight=g)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):m.overflow="hidden");var v=e.st.mainClass;return e.isIE7&&(v+=" mfp-ie7"),v&&e._addClassToMFP(v),e.updateItemHTML(),C("BuildControls"),t("html").css(m),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout((function(){e.content?(e._addClassToMFP(p),e._setFocus()):e.bgOverlay.addClass(p),i.on("focusin"+f,e._onFocusIn)}),16),e.isOpen=!0,e.updateSize(h),C(c),n}e.updateItemHTML()},close:function(){e.isOpen&&(C(l),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(m),setTimeout((function(){e._close()}),e.st.removalDelay)):e._close())},_close:function(){C(a);var n=m+" "+p+" ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(n+=e.st.mainClass+" "),e._removeClassFromMFP(n),e.fixedContentPos){var r={marginRight:""};e.isIE7?t("body, html").css("overflow",""):r.overflow="",t("html").css(r)}i.off("keyup.mfp focusin"+f),e.ev.off(f),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&!0!==e.currTemplate[e.currItem.type]||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,C("AfterClose")},updateSize:function(t){if(e.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;e.wrap.css("height",i),e.wH=i}else e.wH=t||w.height();e.fixedContentPos||e.wrap.css("height",e.wH),C("Resize")},updateItemHTML:function(){var n=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),n.parsed||(n=e.parseEl(e.index));var i=n.type;if(C("BeforeChange",[e.currItem?e.currItem.type:"",i]),e.currItem=n,!e.currTemplate[i]){var s=!!e.st[i]&&e.st[i].markup;C("FirstMarkupParse",s),e.currTemplate[i]=!s||t(s)}r&&r!==n.type&&e.container.removeClass("mfp-"+r+"-holder");var o=e["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,e.currTemplate[i]);e.appendContent(o,i),n.preloaded=!0,C(d,n),r=n.type,e.container.prepend(e.contentContainer),C("AfterChange")},appendContent:function(t,n){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&!0===e.currTemplate[n]?e.content.find(".mfp-close").length||e.content.append(T()):e.content=t:e.content="",C("BeforeAppend"),e.container.addClass("mfp-"+n+"-holder"),e.contentContainer.append(e.content)},parseEl:function(n){var i,r=e.items[n];if(r.tagName?r={el:t(r)}:(i=r.type,r={data:r,src:r.src}),r.el){for(var s=e.types,o=0;o<s.length;o++)if(r.el.hasClass("mfp-"+s[o])){i=s[o];break}r.src=r.el.attr("data-mfp-src"),r.src||(r.src=r.el.attr("href"))}return r.type=i||e.st.type||"inline",r.index=n,r.parsed=!0,e.items[n]=r,C("ElementParse",r),e.items[n]},addGroup:function(t,n){var i=function(i){i.mfpEl=this,e._openClick(i,t,n)};n||(n={});var r="click.magnificPopup";n.mainEl=t,n.items?(n.isObj=!0,t.off(r).on(r,i)):(n.isObj=!1,n.delegate?t.off(r).on(r,n.delegate,i):(n.items=t,t.off(r).on(r,i)))},_openClick:function(n,i,r){if((void 0!==r.midClick?r.midClick:t.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var s=void 0!==r.disableOn?r.disableOn:t.magnificPopup.defaults.disableOn;if(s)if(t.isFunction(s)){if(!s.call(e))return!0}else if(w.width()<s)return!0;n.type&&(n.preventDefault(),e.isOpen&&n.stopPropagation()),r.el=t(n.mfpEl),r.delegate&&(r.items=i.find(r.delegate)),e.open(r)}},updateStatus:function(t,i){if(e.preloader){n!==t&&e.container.removeClass("mfp-s-"+n),i||"loading"!==t||(i=e.st.tLoading);var r={status:t,text:i};C("UpdateStatus",r),t=r.status,i=r.text,e.preloader.html(i),e.preloader.find("a").on("click",(function(t){t.stopImmediatePropagation()})),e.container.addClass("mfp-s-"+t),n=t}},_checkIfClose:function(n){if(!t(n).hasClass(g)){var i=e.st.closeOnContentClick,r=e.st.closeOnBgClick;if(i&&r)return!0;if(!e.content||t(n).hasClass("mfp-close")||e.preloader&&n===e.preloader[0])return!0;if(n===e.content[0]||t.contains(e.content[0],n)){if(i)return!0}else if(r&&t.contains(document,n))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?i.height():document.body.scrollHeight)>(t||w.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(n){if(n.target!==e.wrap[0]&&!t.contains(e.wrap[0],n.target))return e._setFocus(),!1},_parseMarkup:function(e,n,i){var r;i.data&&(n=t.extend(i.data,n)),C(u,[e,n,i]),t.each(n,(function(t,n){if(void 0===n||!1===n)return!0;if((r=t.split("_")).length>1){var i=e.find(f+"-"+r[0]);if(i.length>0){var s=r[1];"replaceWith"===s?i[0]!==n[0]&&i.replaceWith(n):"img"===s?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(r[1],n)}}else e.find(f+"-"+t).html(n)}))},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:v.prototype,modules:[],open:function(e,n){return D(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=n||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,n){n.options&&(t.magnificPopup.defaults[e]=n.options),t.extend(this.proto,n.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},t.fn.magnificPopup=function(n){D();var i=t(this);if("string"==typeof n)if("open"===n){var r,s=y?i.data("magnificPopup"):i[0].magnificPopup,o=parseInt(arguments[1],10)||0;s.items?r=s.items[o]:(r=i,s.delegate&&(r=r.find(s.delegate)),r=r.eq(o)),e._openClick({mfpEl:r},i,s)}else e.isOpen&&e[n].apply(e,Array.prototype.slice.call(arguments,1));else n=t.extend(!0,{},n),y?i.data("magnificPopup",n):i[0].magnificPopup=n,e.addGroup(i,n);return i};var E,x,_,k="inline",H=function(){_&&(x.after(_.addClass(E)).detach(),_=null)};t.magnificPopup.registerModule(k,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(k),b(a+"."+k,(function(){H()}))},getInline:function(n,i){if(H(),n.src){var r=e.st.inline,s=t(n.src);if(s.length){var o=s[0].parentNode;o&&o.tagName&&(x||(E=r.hiddenClass,x=S(E),E="mfp-"+E),_=s.after(x).detach().removeClass(E)),e.updateStatus("ready")}else e.updateStatus("error",r.tNotFound),s=t("<div>");return n.inlineElement=s,s}return e.updateStatus("ready"),e._parseMarkup(i,{},n),i}}});var I,M="ajax",O=function(){I&&t(document.body).removeClass(I)},N=function(){O(),e.req&&e.req.abort()};t.magnificPopup.registerModule(M,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push(M),I=e.st.ajax.cursor,b(a+"."+M,N),b("BeforeChange."+M,N)},getAjax:function(n){I&&t(document.body).addClass(I),e.updateStatus("loading");var i=t.extend({url:n.src,success:function(i,r,s){var o={data:i,xhr:s};C("ParseAjax",o),e.appendContent(t(o.data),M),n.finished=!0,O(),e._setFocus(),setTimeout((function(){e.wrap.addClass(p)}),16),e.updateStatus("ready"),C("AjaxContentAdded")},error:function(){O(),n.finished=n.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",n.src))}},e.st.ajax.settings);return e.req=t.ajax(i),""}}});var P,R=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=e.st.image.titleSrc;if(i){if(t.isFunction(i))return i.call(e,n);if(n.el)return n.el.attr(i)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=e.st.image,i=".image";e.types.push("image"),b(c+i,(function(){"image"===e.currItem.type&&n.cursor&&t(document.body).addClass(n.cursor)})),b(a+i,(function(){n.cursor&&t(document.body).removeClass(n.cursor),w.off("resize"+f)})),b("Resize"+i,e.resizeImage),e.isLowIE&&b("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var n=0;e.isLowIE&&(n=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-n)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,P&&clearInterval(P),t.isCheckingImgSize=!1,C("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],r=function(s){P&&clearInterval(P),P=setInterval((function(){i.naturalWidth>0?e._onImageHasSize(t):(n>200&&clearInterval(P),3===++n?r(10):40===n?r(50):100===n&&r(500))}),s)};r(1)},getImage:function(n,i){var r=0,s=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,C("ImageLoadComplete")):++r<200?setTimeout(s,100):o())},o=function(){n&&(n.img.off(".mfploader"),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus("error",a.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},a=e.st.image,l=i.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",n.el&&n.el.find("img").length&&(u.alt=n.el.find("img").attr("alt")),n.img=t(u).on("load.mfploader",s).on("error.mfploader",o),u.src=n.src,l.is("img")&&(n.img=n.img.clone()),(u=n.img[0]).naturalWidth>0?n.hasSize=!0:u.width||(n.hasSize=!1)}return e._parseMarkup(i,{title:R(n),img_replaceWith:n.img},n),e.resizeImage(),n.hasSize?(P&&clearInterval(P),n.loadError?(i.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),e.updateStatus("ready")),i):(e.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),e.findImageSize(n)),i)}}});var A;t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,n=e.st.zoom,i=".zoom";if(n.enabled&&e.supportsTransition){var r,s,o=n.duration,u=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return r["-webkit-"+s]=r["-moz-"+s]=r["-o-"+s]=r[s]=i,e.css(r),e},c=function(){e.content.css("visibility","visible")};b("BuildControls"+i,(function(){if(e._allowZoom()){if(clearTimeout(r),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void c();(s=u(t)).css(e._getOffset()),e.wrap.append(s),r=setTimeout((function(){s.css(e._getOffset(!0)),r=setTimeout((function(){c(),setTimeout((function(){s.remove(),t=s=null,C("ZoomAnimationEnded")}),16)}),o)}),16)}})),b(l+i,(function(){if(e._allowZoom()){if(clearTimeout(r),e.st.removalDelay=o,!t){if(!(t=e._getItemToZoom()))return;s=u(t)}s.css(e._getOffset(!0)),e.wrap.append(s),e.content.css("visibility","hidden"),setTimeout((function(){s.css(e._getOffset())}),16)}})),b(a+i,(function(){e._allowZoom()&&(c(),s&&s.remove(),t=null)}))}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(n){var i,r=(i=n?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),s=parseInt(i.css("padding-top"),10),o=parseInt(i.css("padding-bottom"),10);r.top-=t(window).scrollTop()-s;var a={width:i.width(),height:(y?i.innerHeight():i[0].offsetHeight)-o-s};return void 0===A&&(A=void 0!==document.createElement("p").style.MozTransform),A?a["-moz-transform"]=a.transform="translate("+r.left+"px,"+r.top+"px)":(a.left=r.left,a.top=r.top),a}}});var $="iframe",F=function(t){if(e.currTemplate[$]){var n=e.currTemplate[$].find("iframe");n.length&&(t||(n[0].src="//about:blank"),e.isIE8&&n.css("display",t?"block":"none"))}};t.magnificPopup.registerModule($,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push($),b("BeforeChange",(function(t,e,n){e!==n&&(e===$?F():n===$&&F(!0))})),b(a+"."+$,(function(){F()}))},getIframe:function(n,i){var r=n.src,s=e.st.iframe;t.each(s.patterns,(function(){if(r.indexOf(this.index)>-1)return this.id&&(r="string"==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace("%id%",r),!1}));var o={};return s.srcAction&&(o[s.srcAction]=r),e._parseMarkup(i,o,n),e.updateStatus("ready"),i}}});var z=function(t){var n=e.items.length;return t>n-1?t-n:t<0?n+t:t},Y=function(t,e,n){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,n)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=e.st.gallery,r=".mfp-gallery",o=Boolean(t.fn.mfpFastClick);if(e.direction=!0,!n||!n.enabled)return!1;s+=" mfp-gallery",b(c+r,(function(){n.navigateByImgClick&&e.wrap.on("click"+r,".mfp-img",(function(){if(e.items.length>1)return e.next(),!1})),i.on("keydown"+r,(function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()}))})),b("UpdateStatus"+r,(function(t,n){n.text&&(n.text=Y(n.text,e.currItem.index,e.items.length))})),b(u+r,(function(t,i,r,s){var o=e.items.length;r.counter=o>1?Y(n.tCounter,s.index,o):""})),b("BuildControls"+r,(function(){if(e.items.length>1&&n.arrows&&!e.arrowLeft){var i=n.arrowMarkup,r=e.arrowLeft=t(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(g),s=e.arrowRight=t(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(g),a=o?"mfpFastClick":"click";r[a]((function(){e.prev()})),s[a]((function(){e.next()})),e.isIE7&&(S("b",r[0],!1,!0),S("a",r[0],!1,!0),S("b",s[0],!1,!0),S("a",s[0],!1,!0)),e.container.append(r.add(s))}})),b(d+r,(function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout((function(){e.preloadNearbyImages(),e._preloadTimeout=null}),16)})),b(a+r,(function(){i.off(r),e.wrap.off("click"+r),e.arrowLeft&&o&&e.arrowLeft.add(e.arrowRight).destroyMfpFastClick(),e.arrowRight=e.arrowLeft=null}))},next:function(){e.direction=!0,e.index=z(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=z(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,n=e.st.gallery.preload,i=Math.min(n[0],e.items.length),r=Math.min(n[1],e.items.length);for(t=1;t<=(e.direction?r:i);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?i:r);t++)e._preloadItem(e.index-t)},_preloadItem:function(n){if(n=z(n),!e.items[n].preloaded){var i=e.items[n];i.parsed||(i=e.parseEl(n)),C("LazyLoad",i),"image"===i.type&&(i.img=t('<img class="mfp-img" />').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,C("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}});var L,W,B,G="retina";t.magnificPopup.registerModule(G,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,(function(t){return"@2x"+t}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,n=t.ratio;(n=isNaN(n)?n():n)>1&&(b("ImageHasSize."+G,(function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/n,width:"100%"})})),b("ElementParse."+G,(function(e,i){i.src=t.replaceSrc(i,n)})))}}}}),L="ontouchstart"in window,W=function(){w.off("touchmove"+B+" touchend"+B)},B=".mfpFastClick",t.fn.mfpFastClick=function(e){return t(this).each((function(){var n,i,r,s,o,a,l,u=t(this);L&&u.on("touchstart"+B,(function(t){o=!1,l=1,a=t.originalEvent?t.originalEvent.touches[0]:t.touches[0],r=a.clientX,s=a.clientY,w.on("touchmove"+B,(function(t){a=t.originalEvent?t.originalEvent.touches:t.touches,l=a.length,a=a[0],(Math.abs(a.clientX-r)>10||Math.abs(a.clientY-s)>10)&&(o=!0,W())})).on("touchend"+B,(function(t){W(),o||l>1||(n=!0,t.preventDefault(),clearTimeout(i),i=setTimeout((function(){n=!1}),1e3),e())}))})),u.on("click"+B,(function(){n||e()}))}))},t.fn.destroyMfpFastClick=function(){t(this).off("touchstart"+B+" click"+B),L&&w.off("touchmove"+B+" touchend"+B)},D()})),function(t,e){var n="selectbox",i=!1,r=!0;function s(){this._state=[],this._defaults={classHolder:"sbHolder",classHolderDisabled:"sbHolderDisabled",classSelector:"sbSelector",classOptions:"sbOptions",classGroup:"sbGroup",classSub:"sbSub",classDisabled:"sbDisabled",classToggleOpen:"sbToggleOpen",classToggle:"sbToggle",speed:200,effect:"slide",onChange:null,onOpen:null,onClose:null}}t.extend(s.prototype,{_isOpenSelectbox:function(t){return t?this._getInst(t).isOpen:i},_isDisabledSelectbox:function(t){return t?this._getInst(t).isDisabled:i},_attachSelectbox:function(e,s){if(this._getInst(e))return i;var o,a,l,u,c=t(e),d=this,h=d._newInst(c),f=i,p=(c.find("optgroup"),c.find("option")),m=p.length;function g(){var e,n=this.attr("id").split("_")[1];for(e in d._state)e!==n&&d._state.hasOwnProperty(e)&&t(":input[sb='"+e+"']")[0]&&d._closeSelectbox(t(":input[sb='"+e+"']")[0])}function v(){var n=!(!arguments[1]||!arguments[1].sub),i=!(!arguments[1]||!arguments[1].disabled);arguments[0].each((function(s){var o,c=t(this),p=t("<li>");c.is(":selected")&&(a.text(c.text()),f=r),s===m-1&&p.addClass("last"),c.is(":disabled")||i?(o=t("<span>",{text:c.text()}).addClass(h.settings.classDisabled),n&&o.addClass(h.settings.classSub),o.appendTo(p)):(o=t("<a>",{href:"#"+c.val(),rel:c.val(),text:c.text(),click:function(n){n.preventDefault();l.attr("id").split("_")[1];d._changeSelectbox(e,t(this).attr("rel"),t(this).text()),d._closeSelectbox(e)}}),n&&o.addClass(h.settings.classSub),o.appendTo(p)),p.appendTo(u)}))}c.attr("sb",h.uid),t.extend(h.settings,d._defaults,s),d._state[h.uid]=i,c.hide(),o=t("<div>",{id:"sbHolder_"+h.uid,class:h.settings.classHolder}),a=t("<a>",{id:"sbSelector_"+h.uid,href:"#",class:h.settings.classSelector,click:function(n){n.preventDefault(),g.apply(t(this),[]);var i=t(this).attr("id").split("_")[1];d._state[i]?d._closeSelectbox(e):d._openSelectbox(e)}}),(l=t("<a>",{id:"sbToggle_"+h.uid,href:"#",class:h.settings.classToggle,click:function(n){n.preventDefault(),g.apply(t(this),[]);var i=t(this).attr("id").split("_")[1];d._state[i]?d._closeSelectbox(e):d._openSelectbox(e)}})).appendTo(o),u=t("<ul>",{id:"sbOptions_"+h.uid,class:h.settings.classOptions,css:{display:"none"}}),c.children().each((function(e){var n,i=t(this),r={};i.is("option")?v(i):i.is("optgroup")&&(n=t("<li>"),t("<span>",{text:i.attr("label")}).addClass(h.settings.classGroup).appendTo(n),n.appendTo(u),i.is(":disabled")&&(r.disabled=!0),r.sub=!0,v(i.find("option"),r))})),f||a.text(p.first().text()),t.data(e,n,h),a.appendTo(o),u.appendTo(o),o.insertAfter(c)},_detachSelectbox:function(e){var r=this._getInst(e);if(!r)return i;t("#sbHolder_"+r.uid).remove(),t.data(e,n,null),t(e).show()},_changeSelectbox:function(e,n,i){var s=this._getInst(e),o=this._get(s,"onChange");t("#sbSelector_"+s.uid).text(i),t(e).find("option[value='"+n+"']").attr("selected",r),o?o.apply(s.input?s.input[0]:null,[n,s]):s.input&&s.input.trigger("change")},_enableSelectbox:function(e){var r=this._getInst(e);if(!r||!r.isDisabled)return i;t("#sbHolder_"+r.uid).removeClass(r.settings.classHolderDisabled),r.isDisabled=i,t.data(e,n,r)},_disableSelectbox:function(e){var s=this._getInst(e);if(!s||s.isDisabled)return i;t("#sbHolder_"+s.uid).addClass(s.settings.classHolderDisabled),s.isDisabled=r,t.data(e,n,s)},_optionSelectbox:function(e,r,s){var o=this._getInst(e);if(!o)return i;o[r]=s,t.data(e,n,o)},_openSelectbox:function(e){var i=this._getInst(e);if(i&&!i.isOpen&&!i.isDisabled){var s=t("#sbOptions_"+i.uid),o=parseInt(t(window).height(),10),a=t("#sbHolder_"+i.uid).offset(),l=t(window).scrollTop(),u=s.prev().height(),c=o-(a.top-l)-u/2,d=this._get(i,"onOpen");s.css({top:u+"px",maxHeight:c-u+"px"}),"fade"===i.settings.effect?s.fadeIn(i.settings.speed):s.slideDown(i.settings.speed),t("#sbToggle_"+i.uid).addClass(i.settings.classToggleOpen),this._state[i.uid]=r,i.isOpen=r,d&&d.apply(i.input?i.input[0]:null,[i]),t.data(e,n,i)}},_closeSelectbox:function(e){var r=this._getInst(e);if(r&&r.isOpen){var s=this._get(r,"onClose");"fade"===r.settings.effect?t("#sbOptions_"+r.uid).fadeOut(r.settings.speed):t("#sbOptions_"+r.uid).slideUp(r.settings.speed),t("#sbToggle_"+r.uid).removeClass(r.settings.classToggleOpen),this._state[r.uid]=i,r.isOpen=i,s&&s.apply(r.input?r.input[0]:null,[r]),t.data(e,n,r)}},_newInst:function(t){return{id:t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:t,uid:Math.floor(99999999*Math.random()),isOpen:i,isDisabled:i,settings:{}}},_getInst:function(e){try{return t.data(e,n)}catch(t){throw"Missing instance data for this selectbox"}},_get:function(t,e){return undefined!==t.settings[e]?t.settings[e]:this._defaults[e]}}),t.fn.selectbox=function(e){var n=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&"isDisabled"==e||"option"==e&&2==arguments.length&&"string"==typeof arguments[1]?t.selectbox["_"+e+"Selectbox"].apply(t.selectbox,[this[0]].concat(n)):this.each((function(){"string"==typeof e?t.selectbox["_"+e+"Selectbox"].apply(t.selectbox,[this].concat(n)):t.selectbox._attachSelectbox(this,e)}))},t.selectbox=new s,t.selectbox.version="0.1.3"}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,(function(){"use strict";function t(){return Bt.apply(null,arguments)}function e(t){return"[object Array]"===Object.prototype.toString.call(t)}function n(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){for(var n in e)r(e,n)&&(t[n]=e[n]);return r(e,"toString")&&(t.toString=e.toString),r(e,"valueOf")&&(t.valueOf=e.valueOf),t}function o(t,e,n,i){return lt(t,e,n,i,!0).utc()}function a(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),t._pf}function l(t){if(null==t._isValid){var e=a(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function u(t){var e=o(NaN);return null!=t?s(a(e),t):a(e).userInvalidated=!0,e}function c(t){return void 0===t}function d(t,e){var n,i,r;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=a(e)),c(e._locale)||(t._locale=e._locale),jt.length>0)for(n in jt)c(r=e[i=jt[n]])||(t[i]=r);return t}function h(e){d(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===Vt&&(Vt=!0,t.updateOffset(this),Vt=!1)}function f(t){return t instanceof h||null!=t&&null!=t._isAMomentObject}function p(t){return 0>t?Math.ceil(t):Math.floor(t)}function m(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=p(e)),n}function g(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),o=0;for(i=0;r>i;i++)(n&&t[i]!==e[i]||!n&&m(t[i])!==m(e[i]))&&o++;return o+s}function v(){}function y(t){return t?t.toLowerCase().replace("_","-"):t}function w(t){var e=null;if(!Ut[t]&&!c(module)&&module&&module.exports)try{e=Gt._abbr,require("./locale/"+t),b(e)}catch(t){}return Ut[t]}function b(t,e){var n;return t&&((n=c(e)?C(t):S(t,e))&&(Gt=n)),Gt._abbr}function S(t,e){return null!==e?(e.abbr=t,Ut[t]=Ut[t]||new v,Ut[t].set(e),b(t),Ut[t]):(delete Ut[t],null)}function C(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Gt;if(!e(t)){if(n=w(t))return n;t=[t]}return function(t){for(var e,n,i,r,s=0;s<t.length;){for(e=(r=y(t[s]).split("-")).length,n=(n=y(t[s+1]))?n.split("-"):null;e>0;){if(i=w(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&g(r,n,!0)>=e-1)break;e--}s++}return null}(t)}function T(t,e){var n=t.toLowerCase();qt[n]=qt[n+"s"]=qt[e]=t}function D(t){return"string"==typeof t?qt[t]||qt[t.toLowerCase()]:void 0}function E(t){var e,n,i={};for(n in t)r(t,n)&&((e=D(n))&&(i[e]=t[n]));return i}function x(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function _(e,n){return function(i){return null!=i?(H(this,e,i),t.updateOffset(this,n),this):k(this,e)}}function k(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function H(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function I(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(x(this[t=D(t)]))return this[t](e);return this}function M(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function O(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Kt[t]=r),e&&(Kt[e[0]]=function(){return M(r.apply(this,arguments),e[1],e[2])}),n&&(Kt[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function N(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function P(t,e){return t.isValid()?(e=R(e,t.localeData()),Xt[e]=Xt[e]||function(t){var e,n,i=t.match(Zt);for(e=0,n=i.length;n>e;e++)Kt[i[e]]?i[e]=Kt[i[e]]:i[e]=N(i[e]);return function(r){var s="";for(e=0;n>e;e++)s+=i[e]instanceof Function?i[e].call(r,t):i[e];return s}}(e),Xt[e](t)):t.localeData().invalidDate()}function R(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(Qt.lastIndex=0;i>=0&&Qt.test(t);)t=t.replace(Qt,n),Qt.lastIndex=0,i-=1;return t}function A(t,e,n){me[t]=x(e)?e:function(t){return t&&n?n:e}}function $(t,e){return r(me,t)?me[t](e._strict,e._locale):new RegExp(function(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r})).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(t))}function F(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(i=function(t,n){n[e]=m(t)}),n=0;n<t.length;n++)ge[t[n]]=i}function z(t,e){F(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function Y(t,e,n){null!=e&&r(ge,t)&&ge[t](e,n._a,n,t)}function L(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function W(t,e){var n;return t.isValid()?("string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))||(n=Math.min(t.date(),L(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)),t):t}function B(e){return null!=e?(W(this,e),t.updateOffset(this,!0),this):k(this,"Month")}function G(t){var e,n=t._a;return n&&-2===a(t).overflow&&(e=n[ye]<0||n[ye]>11?ye:n[we]<1||n[we]>L(n[ve],n[ye])?we:n[be]<0||n[be]>24||24===n[be]&&(0!==n[Se]||0!==n[Ce]||0!==n[Te])?be:n[Se]<0||n[Se]>59?Se:n[Ce]<0||n[Ce]>59?Ce:n[Te]<0||n[Te]>999?Te:-1,a(t)._overflowDayOfYear&&(ve>e||e>we)&&(e=we),a(t)._overflowWeeks&&-1===e&&(e=De),a(t)._overflowWeekday&&-1===e&&(e=Ee),a(t).overflow=e),t}function j(e){!1===t.suppressDeprecationWarnings&&!c(console)&&console.warn&&console.warn("Deprecation warning: "+e)}function V(t,e){var n=!0;return s((function(){return n&&(j(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)}),e)}function U(t){var e,n,i,r,s,o,l=t._i,u=Ie.exec(l)||Me.exec(l);if(u){for(a(t).iso=!0,e=0,n=Ne.length;n>e;e++)if(Ne[e][1].exec(u[1])){r=Ne[e][0],i=!1!==Ne[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,n=Pe.length;n>e;e++)if(Pe[e][1].exec(u[3])){s=(u[2]||" ")+Pe[e][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(u[4]){if(!Oe.exec(u[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),st(t)}else t._isValid=!1}function q(t,e,n,i,r,s,o){var a=new Date(t,e,n,i,r,s,o);return 100>t&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}function Z(t){var e=new Date(Date.UTC.apply(null,arguments));return 100>t&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Q(t){return X(t)?366:365}function X(t){return t%4==0&&t%100!=0||t%400==0}function K(t,e,n){var i=7+e-n;return-((7+Z(t,0,i).getUTCDay()-e)%7)+i-1}function J(t,e,n,i,r){var s,o,a=1+7*(e-1)+(7+n-i)%7+K(t,i,r);return 0>=a?o=Q(s=t-1)+a:a>Q(t)?(s=t+1,o=a-Q(t)):(s=t,o=a),{year:s,dayOfYear:o}}function tt(t,e,n){var i,r,s=K(t.year(),e,n),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return 1>o?i=o+et(r=t.year()-1,e,n):o>et(t.year(),e,n)?(i=o-et(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function et(t,e,n){var i=K(t,e,n),r=K(t+1,e,n);return(Q(t)-i+r)/7}function nt(t,e,n){return null!=t?t:null!=e?e:n}function it(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function rt(t){var e,n,i,r,s=[];if(!t._d){for(i=it(t),t._w&&null==t._a[we]&&null==t._a[ye]&&function(t){var e,n,i,r,s,o,l,u;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(s=1,o=4,n=nt(e.GG,t._a[ve],tt(ut(),1,4).year),i=nt(e.W,1),r=nt(e.E,1),(1>r||r>7)&&(u=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,n=nt(e.gg,t._a[ve],tt(ut(),s,o).year),i=nt(e.w,1),null!=e.d?(r=e.d,(0>r||r>6)&&(u=!0)):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),1>i||i>et(n,s,o)?a(t)._overflowWeeks=!0:null!=u?a(t)._overflowWeekday=!0:(l=J(n,i,r,s,o),t._a[ve]=l.year,t._dayOfYear=l.dayOfYear)}(t),t._dayOfYear&&(r=nt(t._a[ve],i[ve]),t._dayOfYear>Q(r)&&(a(t)._overflowDayOfYear=!0),n=Z(r,0,t._dayOfYear),t._a[ye]=n.getUTCMonth(),t._a[we]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;7>e;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[be]&&0===t._a[Se]&&0===t._a[Ce]&&0===t._a[Te]&&(t._nextDay=!0,t._a[be]=0),t._d=(t._useUTC?Z:q).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[be]=24)}}function st(e){if(e._f!==t.ISO_8601){e._a=[],a(e).empty=!0;var n,i,r,s,o,l=""+e._i,u=l.length,c=0;for(r=R(e._f,e._locale).match(Zt)||[],n=0;n<r.length;n++)s=r[n],(i=(l.match($(s,e))||[])[0])&&((o=l.substr(0,l.indexOf(i))).length>0&&a(e).unusedInput.push(o),l=l.slice(l.indexOf(i)+i.length),c+=i.length),Kt[s]?(i?a(e).empty=!1:a(e).unusedTokens.push(s),Y(s,i,e)):e._strict&&!i&&a(e).unusedTokens.push(s);a(e).charsLeftOver=u-c,l.length>0&&a(e).unusedInput.push(l),!0===a(e).bigHour&&e._a[be]<=12&&e._a[be]>0&&(a(e).bigHour=void 0),e._a[be]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&12>e&&(e+=12),i||12!==e||(e=0),e):e}(e._locale,e._a[be],e._meridiem),rt(e),G(e)}else U(e)}function ot(t){var i=t._i,r=t._f;return t._locale=t._locale||C(t._l),null===i||void 0===r&&""===i?u({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),f(i)?new h(G(i)):(e(r)?function(t){var e,n,i,r,o;if(0===t._f.length)return a(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=d({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],st(e),l(e)&&(o+=a(e).charsLeftOver,o+=10*a(e).unusedTokens.length,a(e).score=o,(null==i||i>o)&&(i=o,n=e));s(t,n||e)}(t):r?st(t):n(i)?t._d=i:at(t),l(t)||(t._d=null),t))}function at(r){var s=r._i;void 0===s?r._d=new Date(t.now()):n(s)?r._d=new Date(+s):"string"==typeof s?function(e){var n=Re.exec(e._i);null!==n?e._d=new Date(+n[1]):(U(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}(r):e(s)?(r._a=i(s.slice(0),(function(t){return parseInt(t,10)})),rt(r)):"object"==typeof s?function(t){if(!t._d){var e=E(t._i);t._a=i([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),rt(t)}}(r):"number"==typeof s?r._d=new Date(s):t.createFromInputFallback(r)}function lt(t,e,n,i,r){var s={};return"boolean"==typeof n&&(i=n,n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=t,s._f=e,s._strict=i,function(t){var e=new h(G(ot(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(s)}function ut(t,e,n,i){return lt(t,e,n,i,!1)}function ct(t,n){var i,r;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return ut();for(i=n[0],r=1;r<n.length;++r)(!n[r].isValid()||n[r][t](i))&&(i=n[r]);return i}function dt(t){var e=E(t),n=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||0,o=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+36e5*a,this._days=+o+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=C(),this._bubble()}function ht(t){return t instanceof dt}function ft(t,e){O(t,0,0,(function(){var t=this.utcOffset(),n="+";return 0>t&&(t=-t,n="-"),n+M(~~(t/60),2)+e+M(~~t%60,2)}))}function pt(t,e){var n=(e||"").match(t)||[],i=((n[n.length-1]||[])+"").match(Ye)||["-",0,0],r=60*i[1]+m(i[2]);return"+"===i[0]?r:-r}function mt(e,i){var r,s;return i._isUTC?(r=i.clone(),s=(f(e)||n(e)?+e:+ut(e))-+r,r._d.setTime(+r._d+s),t.updateOffset(r,!1),r):ut(e).local()}function gt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function vt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function yt(t,e){var n,i,s,o=t,a=null;return ht(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(a=Le.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:m(a[we])*n,h:m(a[be])*n,m:m(a[Se])*n,s:m(a[Ce])*n,ms:m(a[Te])*n}):(a=We.exec(t))?(n="-"===a[1]?-1:1,o={y:wt(a[2],n),M:wt(a[3],n),d:wt(a[4],n),h:wt(a[5],n),m:wt(a[6],n),s:wt(a[7],n),w:wt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(s=function(t,e){var n;return t.isValid()&&e.isValid()?(e=mt(e,t),t.isBefore(e)?n=bt(t,e):(n=bt(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(ut(o.from),ut(o.to)),(o={}).ms=s.milliseconds,o.M=s.months),i=new dt(o),ht(t)&&r(t,"_locale")&&(i._locale=t._locale),i}function wt(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function bt(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function St(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(function(t,e){He[t]||(j(e),He[t]=!0)}(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),r=n,n=i,i=r),Ct(this,yt(n="string"==typeof n?+n:n,i),t),this}}function Ct(e,n,i,r){var s=n._milliseconds,o=n._days,a=n._months;e.isValid()&&(r=null==r||r,s&&e._d.setTime(+e._d+s*i),o&&H(e,"Date",k(e,"Date")+o*i),a&&W(e,k(e,"Month")+a*i),r&&t.updateOffset(e,o||a))}function Tt(t){var e;return void 0===t?this._locale._abbr:(null!=(e=C(t))&&(this._locale=e),this)}function Dt(){return this._locale}function Et(t,e){O(0,[t,t.length],0,e)}function xt(t,e,n,i,r){var s;return null==t?tt(this,i,r).year:(e>(s=et(t,i,r))&&(e=s),_t.call(this,t,e,n,i,r))}function _t(t,e,n,i,r){var s=J(t,e,n,i,r),o=Z(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function kt(){return this.hours()%12||12}function Ht(t,e){O(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function It(t,e){return e._meridiemParse}function Mt(t,e){e[Te]=m(1e3*("0."+t))}function Ot(t){return t}function Nt(t,e,n,i){var r=C(),s=o().set(i,e);return r[n](s,t)}function Pt(t,e,n,i,r){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return Nt(t,e,n,r);var s,o=[];for(s=0;i>s;s++)o[s]=Nt(t,s,n,r);return o}function Rt(t,e,n,i){var r=yt(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function At(t){return 0>t?Math.floor(t):Math.ceil(t)}function $t(t){return 4800*t/146097}function Ft(t){return 146097*t/4800}function zt(t){return function(){return this.as(t)}}function Yt(t){return function(){return this._data[t]}}function Lt(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function Wt(){var t,e,n=Tn(this._milliseconds)/1e3,i=Tn(this._days),r=Tn(this._months);t=p(n/60),e=p(t/60),n%=60,t%=60;var s=p(r/12),o=r%=12,a=i,l=e,u=t,c=n,d=this.asSeconds();return d?(0>d?"-":"")+"P"+(s?s+"Y":"")+(o?o+"M":"")+(a?a+"D":"")+(l||u||c?"T":"")+(l?l+"H":"")+(u?u+"M":"")+(c?c+"S":""):"P0D"}var Bt,Gt,jt=t.momentProperties=[],Vt=!1,Ut={},qt={},Zt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Xt={},Kt={},Jt=/\d/,te=/\d\d/,ee=/\d{3}/,ne=/\d{4}/,ie=/[+-]?\d{6}/,re=/\d\d?/,se=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ae=/\d{1,3}/,le=/\d{1,4}/,ue=/[+-]?\d{1,6}/,ce=/\d+/,de=/[+-]?\d+/,he=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]*(a[mn]\s?)?['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\-]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,me={},ge={},ve=0,ye=1,we=2,be=3,Se=4,Ce=5,Te=6,De=7,Ee=8;O("M",["MM",2],"Mo",(function(){return this.month()+1})),O("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),O("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),T("month","M"),A("M",re),A("MM",re,te),A("MMM",pe),A("MMMM",pe),F(["M","MM"],(function(t,e){e[ye]=m(t)-1})),F(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[ye]=r:a(n).invalidMonth=t}));var xe=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,_e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sept_Oct_Nov_Dec".split("_"),He={};t.suppressDeprecationWarnings=!1;var Ie=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Oe=/Z|[+-]\d\d(?::?\d\d)?/,Ne=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Pe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Re=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=V("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),O(0,["YY",2],0,(function(){return this.year()%100})),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),T("year","y"),A("Y",de),A("YY",re,te),A("YYYY",le,ne),A("YYYYY",ue,ie),A("YYYYYY",ue,ie),F(["YYYYY","YYYYYY"],ve),F("YYYY",(function(e,n){n[ve]=2===e.length?t.parseTwoDigitYear(e):m(e)})),F("YY",(function(e,n){n[ve]=t.parseTwoDigitYear(e)})),t.parseTwoDigitYear=function(t){return m(t)+(m(t)>68?1900:2e3)};var Ae=_("FullYear",!1);t.ISO_8601=function(){};var $e=V("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",(function(){var t=ut.apply(null,arguments);return this.isValid()&&t.isValid()?this>t?this:t:u()})),Fe=V("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",(function(){var t=ut.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:u()})),ze=Date.now||function(){return+new Date};ft("Z",":"),ft("ZZ",""),A("Z",fe),A("ZZ",fe),F(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=pt(fe,t)}));var Ye=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Le=/(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,We=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;yt.fn=dt.prototype;var Be=St(1,"add"),Ge=St(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var je=V("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));O(0,["gg",2],0,(function(){return this.weekYear()%100})),O(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Et("gggg","weekYear"),Et("ggggg","weekYear"),Et("GGGG","isoWeekYear"),Et("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),A("G",de),A("g",de),A("GG",re,te),A("gg",re,te),A("GGGG",le,ne),A("gggg",le,ne),A("GGGGG",ue,ie),A("ggggg",ue,ie),z(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=m(t)})),z(["gg","GG"],(function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)})),O("Q",0,"Qo","quarter"),T("quarter","Q"),A("Q",Jt),F("Q",(function(t,e){e[ye]=3*(m(t)-1)})),O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),A("w",re),A("ww",re,te),A("W",re),A("WW",re,te),z(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=m(t)}));O("D",["DD",2],"Do","date"),T("date","D"),A("D",re),A("DD",re,te),A("Do",(function(t,e){return t?e._ordinalParse:e._ordinalParseLenient})),F(["D","DD"],we),F("Do",(function(t,e){e[we]=m(t.match(re)[0])}));var Ve=_("Date",!0);O("d",0,"do","day"),O("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),O("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),O("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),A("d",re),A("e",re),A("E",re),A("dd",pe),A("ddd",pe),A("dddd",pe),z(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:a(n).invalidWeekday=t})),z(["d","e","E"],(function(t,e,n,i){e[i]=m(t)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");O("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),A("DDD",ae),A("DDDD",ee),F(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=m(t)})),O("H",["HH",2],0,"hour"),O("h",["hh",2],0,kt),O("hmm",0,0,(function(){return""+kt.apply(this)+M(this.minutes(),2)})),O("hmmss",0,0,(function(){return""+kt.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)})),O("Hmm",0,0,(function(){return""+this.hours()+M(this.minutes(),2)})),O("Hmmss",0,0,(function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)})),Ht("a",!0),Ht("A",!1),T("hour","h"),A("a",It),A("A",It),A("H",re),A("h",re),A("HH",re,te),A("hh",re,te),A("hmm",se),A("hmmss",oe),A("Hmm",se),A("Hmmss",oe),F(["H","HH"],be),F(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),F(["h","hh"],(function(t,e,n){e[be]=m(t),a(n).bigHour=!0})),F("hmm",(function(t,e,n){var i=t.length-2;e[be]=m(t.substr(0,i)),e[Se]=m(t.substr(i)),a(n).bigHour=!0})),F("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[be]=m(t.substr(0,i)),e[Se]=m(t.substr(i,2)),e[Ce]=m(t.substr(r)),a(n).bigHour=!0})),F("Hmm",(function(t,e,n){var i=t.length-2;e[be]=m(t.substr(0,i)),e[Se]=m(t.substr(i))})),F("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[be]=m(t.substr(0,i)),e[Se]=m(t.substr(i,2)),e[Ce]=m(t.substr(r))}));var Qe=_("Hours",!0);O("m",["mm",2],0,"minute"),T("minute","m"),A("m",re),A("mm",re,te),F(["m","mm"],Se);var Xe=_("Minutes",!1);O("s",["ss",2],0,"second"),T("second","s"),A("s",re),A("ss",re,te),F(["s","ss"],Ce);var Ke,Je=_("Seconds",!1);for(O("S",0,0,(function(){return~~(this.millisecond()/100)})),O(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),O(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),O(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),O(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),O(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),O(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),T("millisecond","ms"),A("S",ae,Jt),A("SS",ae,te),A("SSS",ae,ee),Ke="SSSS";Ke.length<=9;Ke+="S")A(Ke,ce);for(Ke="S";Ke.length<=9;Ke+="S")F(Ke,Mt);var tn=_("Milliseconds",!1);O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");var en=h.prototype;en.add=Be,en.calendar=function(t,e){var n=t||ut(),i=mt(n,this).startOf("day"),r=this.diff(i,"days",!0),s=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse",o=e&&(x(e[s])?e[s]():e[s]);return this.format(o||this.localeData().calendar(s,this,ut(n)))},en.clone=function(){return new h(this)},en.diff=function(t,e,n){var i,r,s,o;return this.isValid()?(i=mt(t,this)).isValid()?(r=6e4*(i.utcOffset()-this.utcOffset()),"year"===(e=D(e))||"month"===e||"quarter"===e?(o=function(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return 0>e-s?(n=t.clone().add(r-1,"months"),i=(e-s)/(s-n)):(n=t.clone().add(r+1,"months"),i=(e-s)/(n-s)),-(r+i)}(this,i),"quarter"===e?o/=3:"year"===e&&(o/=12)):(s=this-i,o="second"===e?s/1e3:"minute"===e?s/6e4:"hour"===e?s/36e5:"day"===e?(s-r)/864e5:"week"===e?(s-r)/6048e5:s),n?o:p(o)):NaN:NaN},en.endOf=function(t){return void 0===(t=D(t))||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},en.format=function(e){var n=P(this,e||t.defaultFormat);return this.localeData().postformat(n)},en.from=function(t,e){return this.isValid()&&(f(t)&&t.isValid()||ut(t).isValid())?yt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},en.fromNow=function(t){return this.from(ut(),t)},en.to=function(t,e){return this.isValid()&&(f(t)&&t.isValid()||ut(t).isValid())?yt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},en.toNow=function(t){return this.to(ut(),t)},en.get=I,en.invalidAt=function(){return a(this).overflow},en.isAfter=function(t,e){var n=f(t)?t:ut(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=D(c(e)?"millisecond":e))?+this>+n:+n<+this.clone().startOf(e))},en.isBefore=function(t,e){var n=f(t)?t:ut(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=D(c(e)?"millisecond":e))?+n>+this:+this.clone().endOf(e)<+n)},en.isBetween=function(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)},en.isSame=function(t,e){var n,i=f(t)?t:ut(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=D(e||"millisecond"))?+this==+i:(n=+i,+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e)))},en.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},en.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},en.isValid=function(){return l(this)},en.lang=je,en.locale=Tt,en.localeData=Dt,en.max=Fe,en.min=$e,en.parsingFlags=function(){return s({},a(this))},en.set=I,en.startOf=function(t){switch(t=D(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},en.subtract=Ge,en.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},en.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},en.toDate=function(){return this._offset?new Date(+this):this._d},en.toISOString=function(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?x(Date.prototype.toISOString)?this.toDate().toISOString():P(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},en.toJSON=function(){return this.isValid()?this.toISOString():"null"},en.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},en.unix=function(){return Math.floor(+this/1e3)},en.valueOf=function(){return+this._d-6e4*(this._offset||0)},en.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},en.year=Ae,en.isLeapYear=function(){return X(this.year())},en.weekYear=function(t){return xt.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},en.isoWeekYear=function(t){return xt.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},en.quarter=en.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},en.month=B,en.daysInMonth=function(){return L(this.year(),this.month())},en.week=en.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},en.isoWeek=en.isoWeeks=function(t){var e=tt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},en.weeksInYear=function(){var t=this.localeData()._week;return et(this.year(),t.dow,t.doy)},en.isoWeeksInYear=function(){return et(this.year(),1,4)},en.date=Ve,en.day=en.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},en.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},en.isoWeekday=function(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:NaN},en.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},en.hour=en.hours=Qe,en.minute=en.minutes=Xe,en.second=en.seconds=Je,en.millisecond=en.milliseconds=tn,en.utcOffset=function(e,n){var i,r=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=pt(fe,e):Math.abs(e)<16&&(e*=60),!this._isUTC&&n&&(i=gt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?Ct(this,yt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:gt(this):null!=e?this:NaN},en.utc=function(t){return this.utcOffset(0,t)},en.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(gt(this),"m")),this},en.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(pt(he,this._i)),this},en.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ut(t).utcOffset():0,(this.utcOffset()-t)%60==0)},en.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},en.isDSTShifted=function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t={};if(d(t,this),(t=ot(t))._a){var e=t._isUTC?o(t._a):ut(t._a);this._isDSTShifted=this.isValid()&&g(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},en.isLocal=function(){return!!this.isValid()&&!this._isUTC},en.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},en.isUtc=vt,en.isUTC=vt,en.zoneAbbr=function(){return this._isUTC?"UTC":""},en.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},en.dates=V("dates accessor is deprecated. Use date instead.",Ve),en.months=V("months accessor is deprecated. Use month instead",B),en.years=V("years accessor is deprecated. Use year instead",Ae),en.zone=V("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}));var nn=en,rn=v.prototype;rn._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},rn.calendar=function(t,e,n){var i=this._calendar[t];return x(i)?i.call(e,n):i},rn._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},rn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},rn._invalidDate="Invalid date",rn.invalidDate=function(){return this._invalidDate},rn._ordinal="%d",rn.ordinal=function(t){return this._ordinal.replace("%d",t)},rn._ordinalParse=/\d{1,2}/,rn.preparse=Ot,rn.postformat=Ot,rn._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},rn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return x(r)?r(t,e,n,i):r.replace(/%d/i,t)},rn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return x(n)?n(e):n.replace(/%s/i,e)},rn.set=function(t){var e,n;for(n in t)x(e=t[n])?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},rn.months=function(t,n){return e(this._months)?this._months[t.month()]:this._months[xe.test(n)?"format":"standalone"][t.month()]},rn._months=_e,rn.monthsShort=function(t,n){return e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[xe.test(n)?"format":"standalone"][t.month()]},rn._monthsShort=ke,rn.monthsParse=function(t,e,n){var i,r,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(r=o([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},rn.week=function(t){return tt(t,this._week.dow,this._week.doy).week},rn._week={dow:0,doy:6},rn.firstDayOfYear=function(){return this._week.doy},rn.firstDayOfWeek=function(){return this._week.dow},rn.weekdays=function(t,n){return e(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][t.day()]},rn._weekdays=Ue,rn.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},rn._weekdaysMin=Ze,rn.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},rn._weekdaysShort=qe,rn.weekdaysParse=function(t,e,n){var i,r,s;for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;7>i;i++){if(r=ut([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},rn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},rn._meridiemParse=/[ap]\.?m?\.?/i,rn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},b("en",{monthsParse:[/^jan/i,/^feb/i,/^mar/i,/^apr/i,/^may/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^oct/i,/^nov/i,/^dec/i],longMonthsParse:[/^january$/i,/^february$/i,/^march$/i,/^april$/i,/^may$/i,/^june$/i,/^july$/i,/^august$/i,/^september$/i,/^october$/i,/^november$/i,/^december$/i],shortMonthsParse:[/^jan$/i,/^feb$/i,/^mar$/i,/^apr$/i,/^may$/i,/^jun$/i,/^jul$/i,/^aug/i,/^sept?$/i,/^oct$/i,/^nov$/i,/^dec$/i],ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===m(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=V("moment.lang is deprecated. Use moment.locale instead.",b),t.langData=V("moment.langData is deprecated. Use moment.localeData instead.",C);var sn=Math.abs,on=zt("ms"),an=zt("s"),ln=zt("m"),un=zt("h"),cn=zt("d"),dn=zt("w"),hn=zt("M"),fn=zt("y"),pn=Yt("milliseconds"),mn=Yt("seconds"),gn=Yt("minutes"),vn=Yt("hours"),yn=Yt("days"),wn=Yt("months"),bn=Yt("years"),Sn=Math.round,Cn={s:45,m:45,h:22,d:26,M:11},Tn=Math.abs,Dn=dt.prototype;return Dn.abs=function(){var t=this._data;return this._milliseconds=sn(this._milliseconds),this._days=sn(this._days),this._months=sn(this._months),t.milliseconds=sn(t.milliseconds),t.seconds=sn(t.seconds),t.minutes=sn(t.minutes),t.hours=sn(t.hours),t.months=sn(t.months),t.years=sn(t.years),this},Dn.add=function(t,e){return Rt(this,t,e,1)},Dn.subtract=function(t,e){return Rt(this,t,e,-1)},Dn.as=function(t){var e,n,i=this._milliseconds;if("month"===(t=D(t))||"year"===t)return e=this._days+i/864e5,n=this._months+$t(e),"month"===t?n:n/12;switch(e=this._days+Math.round(Ft(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Dn.asMilliseconds=on,Dn.asSeconds=an,Dn.asMinutes=ln,Dn.asHours=un,Dn.asDays=cn,Dn.asWeeks=dn,Dn.asMonths=hn,Dn.asYears=fn,Dn.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12)},Dn._bubble=function(){var t,e,n,i,r,s=this._milliseconds,o=this._days,a=this._months,l=this._data;return s>=0&&o>=0&&a>=0||0>=s&&0>=o&&0>=a||(s+=864e5*At(Ft(a)+o),o=0,a=0),l.milliseconds=s%1e3,t=p(s/1e3),l.seconds=t%60,e=p(t/60),l.minutes=e%60,n=p(e/60),l.hours=n%24,o+=p(n/24),a+=r=p($t(o)),o-=At(Ft(r)),i=p(a/12),a%=12,l.days=o,l.months=a,l.years=i,this},Dn.get=function(t){return this[(t=D(t))+"s"]()},Dn.milliseconds=pn,Dn.seconds=mn,Dn.minutes=gn,Dn.hours=vn,Dn.days=yn,Dn.weeks=function(){return p(this.days()/7)},Dn.months=wn,Dn.years=bn,Dn.humanize=function(t){var e=this.localeData(),n=function(t,e,n){var i=yt(t).abs(),r=Sn(i.as("s")),s=Sn(i.as("m")),o=Sn(i.as("h")),a=Sn(i.as("d")),l=Sn(i.as("M")),u=Sn(i.as("y")),c=r<Cn.s&&["s",r]||1>=s&&["m"]||s<Cn.m&&["mm",s]||1>=o&&["h"]||o<Cn.h&&["hh",o]||1>=a&&["d"]||a<Cn.d&&["dd",a]||1>=l&&["M"]||l<Cn.M&&["MM",l]||1>=u&&["y"]||["yy",u];return c[2]=e,c[3]=+t>0,c[4]=n,Lt.apply(null,c)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Dn.toISOString=Wt,Dn.toString=Wt,Dn.toJSON=Wt,Dn.locale=Tt,Dn.localeData=Dt,Dn.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wt),Dn.lang=je,O("X",0,0,"unix"),O("x",0,0,"valueOf"),A("x",de),A("X",/[+-]?\d+(\.\d{1,3})?/),F("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))})),F("x",(function(t,e,n){n._d=new Date(m(t))})),t.version="2.11.0",function(t){Bt=t}(ut),t.fn=nn,t.min=function(){return ct("isBefore",[].slice.call(arguments,0))},t.max=function(){return ct("isAfter",[].slice.call(arguments,0))},t.now=ze,t.utc=o,t.unix=function(t){return ut(1e3*t)},t.months=function(t,e){return Pt(t,e,"months",12,"month")},t.isDate=n,t.locale=b,t.invalid=u,t.duration=yt,t.isMoment=f,t.weekdays=function(t,e){return Pt(t,e,"weekdays",7,"day")},t.parseZone=function(){return ut.apply(null,arguments).parseZone()},t.localeData=C,t.isDuration=ht,t.monthsShort=function(t,e){return Pt(t,e,"monthsShort",12,"month")},t.weekdaysMin=function(t,e){return Pt(t,e,"weekdaysMin",7,"day")},t.defineLocale=S,t.weekdaysShort=function(t,e){return Pt(t,e,"weekdaysShort",7,"day")},t.normalizeUnits=D,t.relativeTimeThreshold=function(t,e){return void 0!==Cn[t]&&(void 0===e?Cn[t]:(Cn[t]=e,!0))},t.prototype=nn,t})),$(document).ready((function(){$(".navbar a.dropdown-toggle").on("click",(function(t){var e=$(this).parent().parent();if(!e.hasClass("nav")){var n=$(this).parent(),i=parseInt(e.css("height").replace("px",""))/2,r=parseInt(e.css("width").replace("px",""))-10;return n.hasClass("open")?n.removeClass("open"):n.addClass("open"),$(this).next().css("top",i+"px"),$(this).next().css("left",r+"px"),!1}}))}));var OptionSwitcher={initOptionSwitcher:function(){var t=jQuery(".option-switcher");jQuery(".option-switcher-btn").click((function(){jQuery(".option-switcher").show()})),jQuery(".theme-close").click((function(){jQuery(".option-switcher").hide()})),jQuery("li",t).click((function(){var n=jQuery(this).attr("data-color"),i=jQuery(this).attr("data-logo");e(n,i),jQuery(".list-unstyled li",t).removeClass("theme-active"),jQuery(this).addClass("theme-active")}));var e=function(t,e){jQuery("#option_color").attr("href","css/colors/"+t+".css"),"grayGreen"==e?jQuery(".logo img").attr("src","img/logo2.png"):"blueOrange"==e?jQuery(".logo img").attr("src","img/logo3.png"):"grayBlue"==e?jQuery(".logo img").attr("src","img/logo4.png"):"default-logo"==e&&jQuery(".logo img").attr("src","img/logo.png")};jQuery(".boxed-layout-btn").click((function(){jQuery(this).addClass("active-switcher-btn"),jQuery(".wide-layout-btn").removeClass("active-switcher-btn"),jQuery("body").addClass("bodyColor container")})),jQuery(".wide-layout-btn").click((function(){jQuery(this).addClass("active-switcher-btn"),jQuery(".boxed-layout-btn").removeClass("active-switcher-btn"),jQuery("body").removeClass("bodyColor container")})),jQuery(".static-header-btn").click((function(){jQuery(this).addClass("active-switcher-btn"),jQuery(".fixed-header-btn").removeClass("active-switcher-btn"),jQuery(".navbar-default").removeClass("navbar-main")})),jQuery(".fixed-header-btn").click((function(){jQuery(this).addClass("active-switcher-btn"),jQuery(".static-header-btn").removeClass("active-switcher-btn"),jQuery(".navbar-default").addClass("navbar-main")}))}};(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;!function(t,e){"function"==typeof define&&define.amd?define("waypoints",["jquery"],(function(n){return e(n,t)})):e(t.jQuery,t)}(this,(function(n,i){var r,s,o,a,l,u,c,d,h,f,p,m,g,v,y,w;return r=n(i),d=t.call(i,"ontouchstart")>=0,a={horizontal:{},vertical:{}},l=1,c={},u="waypoints-context-id",p="resize.waypoints",m="scroll.waypoints",g=1,v="waypoints-waypoint-ids",y="waypoint",w="waypoints",s=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+l++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},t.data(u,this.id),c[this.id]=this,t.bind(m,(function(){var t;if(!e.didScroll&&!d)return e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},i.setTimeout(t,n[w].settings.scrollThrottle)})),t.bind(p,(function(){var t;if(!e.didResize)return e.didResize=!0,t=function(){return n[w]("refresh"),e.didResize=!1},i.setTimeout(t,n[w].settings.resizeThrottle)}))}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!d||t.vertical.oldScroll&&t.vertical.newScroll||n[w]("refresh"),n.each(t,(function(t,i){var r,s,o;return o=[],s=i.newScroll>i.oldScroll,r=s?i.forward:i.backward,n.each(e.waypoints[t],(function(t,e){var n,r;return i.oldScroll<(n=e.offset)&&n<=i.newScroll||i.newScroll<(r=e.offset)&&r<=i.oldScroll?o.push(e):void 0})),o.sort((function(t,e){return t.offset-e.offset})),s||o.reverse(),n.each(o,(function(t,e){if(e.options.continuous||t===o.length-1)return e.trigger([r])}))})),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,i,r=this;return i=n.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:i?0:e.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:e.top,contextScroll:i?0:this.oldScroll.y,contextDimension:i?n[w]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},n.each(t,(function(t,e){return n.each(r.waypoints[t],(function(t,i){var r,s,o,a,l;if(r=i.options.offset,o=i.offset,s=n.isWindow(i.element)?0:i.$element.offset()[e.offsetProp],n.isFunction(r)?r=r.apply(i.element):"string"==typeof r&&(r=parseFloat(r),i.options.offset.indexOf("%")>-1&&(r=Math.ceil(e.contextDimension*r/100))),i.offset=s-e.contextOffset+e.contextScroll-r,(!i.options.onlyOnScroll||null==o)&&i.enabled)return null!==o&&o<(a=e.oldScroll)&&a<=i.offset?i.trigger([e.backward]):null!==o&&o>(l=e.oldScroll)&&l>=i.offset||null===o&&e.oldScroll>=i.offset?i.trigger([e.forward]):void 0}))}))},t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,m].join(" ")),delete c[this.id]},t}(),o=function(){function t(t,e,i){var r,s;"bottom-in-view"===(i=n.extend({},n.fn[y].defaults,i)).offset&&(i.offset=function(){var t;return t=n[w]("viewportHeight"),n.isWindow(e.element)||(t=e.$element.height()),t-n(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=i.horizontal?"horizontal":"vertical",this.callback=i.handler,this.context=e,this.enabled=i.enabled,this.id="waypoints"+g++,this.offset=null,this.options=i,e.waypoints[this.axis][this.id]=this,a[this.axis][this.id]=this,(r=null!=(s=t.data(v))?s:[]).push(this.id),t.data(v,r)}return t.prototype.trigger=function(t){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete a[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,i;return(i=n(t).data(v))?(e=n.extend({},a.horizontal,a.vertical),n.map(i,(function(t){return e[t]}))):[]},t}(),f={init:function(t,e){return null==e&&(e={}),null==e.handler&&(e.handler=t),this.each((function(){var t,i,r,a;return t=n(this),r=null!=(a=e.context)?a:n.fn[y].defaults.context,n.isWindow(r)||(r=t.closest(r)),r=n(r),(i=c[r.data(u)])||(i=new s(r)),new o(t,i,e)})),n[w]("refresh"),this},disable:function(){return f._invoke(this,"disable")},enable:function(){return f._invoke(this,"enable")},destroy:function(){return f._invoke(this,"destroy")},prev:function(t,e){return f._traverse.call(this,t,e,(function(t,e,n){if(e>0)return t.push(n[e-1])}))},next:function(t,e){return f._traverse.call(this,t,e,(function(t,e,n){if(e<n.length-1)return t.push(n[e+1])}))},_traverse:function(t,e,r){var s,o;return null==t&&(t="vertical"),null==e&&(e=i),o=h.aggregate(e),s=[],this.each((function(){var e;return e=n.inArray(this,o[t]),r(s,e,o[t])})),this.pushStack(s)},_invoke:function(t,e){return t.each((function(){var t;return t=o.getWaypointsByElement(this),n.each(t,(function(t,n){return n[e](),!0}))})),this}},n.fn[y]=function(){var t,i;return i=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],f[i]?f[i].apply(this,t):n.isFunction(i)?f.init.apply(this,arguments):n.isPlainObject(i)?f.init.apply(this,[null,i]):i?n.error("The "+i+" method does not exist in jQuery Waypoints."):n.error("jQuery Waypoints needs a callback function or handler option.")},n.fn[y].defaults={context:i,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},h={refresh:function(){return n.each(c,(function(t,e){return e.refresh()}))},viewportHeight:function(){var t;return null!=(t=i.innerHeight)?t:r.height()},aggregate:function(t){var e,i,r;return e=a,t&&(e=null!=(r=c[n(t).data(u)])?r.waypoints:void 0),e?(i={horizontal:[],vertical:[]},n.each(i,(function(t,r){return n.each(e[t],(function(t,e){return r.push(e)})),r.sort((function(t,e){return t.offset-e.offset})),i[t]=n.map(r,(function(t){return t.element})),i[t]=n.unique(i[t])})),i):[]},above:function(t){return null==t&&(t=i),h._filter(t,"vertical",(function(t,e){return e.offset<=t.oldScroll.y}))},below:function(t){return null==t&&(t=i),h._filter(t,"vertical",(function(t,e){return e.offset>t.oldScroll.y}))},left:function(t){return null==t&&(t=i),h._filter(t,"horizontal",(function(t,e){return e.offset<=t.oldScroll.x}))},right:function(t){return null==t&&(t=i),h._filter(t,"horizontal",(function(t,e){return e.offset>t.oldScroll.x}))},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return f[t]=e},_invoke:function(t){var e;return e=n.extend({},a.vertical,a.horizontal),n.each(e,(function(e,n){return n[t](),!0}))},_filter:function(t,e,i){var r,s;return(r=c[n(t).data(u)])?(s=[],n.each(r.waypoints[e],(function(t,e){if(i(r,e))return s.push(e)})),s.sort((function(t,e){return t.offset-e.offset})),n.map(s,(function(t){return t.element}))):[]}},n[w]=function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],h[n]?h[n].apply(null,t):h.aggregate.call(null,n)},n[w].settings={resizeThrottle:100,scrollThrottle:30},r.load((function(){return n[w]("refresh")}))}))}).call(this),function(){var t,e,n,i,r,s=function(t,e){return function(){return t.apply(e,arguments)}},o=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var n,i;for(n in e)i=e[n],null==t[n]&&(t[n]=i);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t.prototype.createEvent=function(t,e,n,i){var r;return null==e&&(e=!1),null==n&&(n=!1),null==i&&(i=null),null!=document.createEvent?(r=document.createEvent("CustomEvent")).initCustomEvent(t,e,n,i):null!=document.createEventObject?(r=document.createEventObject()).eventType=t:r.eventName=t,r},t.prototype.emitEvent=function(t,e){return null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},t.prototype.addEvent=function(t,e,n){return null!=t.addEventListener?t.addEventListener(e,n,!1):null!=t.attachEvent?t.attachEvent("on"+e,n):t[e]=n},t.prototype.removeEvent=function(t,e,n){return null!=t.removeEventListener?t.removeEventListener(e,n,!1):null!=t.detachEvent?t.detachEvent("on"+e,n):delete t[e]},t.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t}(),n=this.WeakMap||this.MozWeakMap||(n=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,n,i,r;for(e=n=0,i=(r=this.keys).length;i>n;e=++n)if(r[e]===t)return this.values[e]},t.prototype.set=function(t,e){var n,i,r,s;for(n=i=0,r=(s=this.keys).length;r>i;n=++i)if(s[n]===t)return void(this.values[n]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),i=this.getComputedStyle||function(t){return this.getPropertyValue=function(e){var n;return"float"===e&&(e="styleFloat"),r.test(e)&&e.replace(r,(function(t,e){return e.toUpperCase()})),(null!=(n=t.currentStyle)?n[e]:void 0)||null},this},r=/(\-([a-z]){1})/g,this.WOW=function(){function r(t){null==t&&(t={}),this.scrollCallback=s(this.scrollCallback,this),this.scrollHandler=s(this.scrollHandler,this),this.resetAnimation=s(this.resetAnimation,this),this.start=s(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new n,this.wowEvent=this.util().createEvent(this.config.boxClass)}return r.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},r.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},r.prototype.start=function(){var e,n,i,r;if(this.stopped=!1,this.boxes=function(){var t,n,i,r;for(r=[],t=0,n=(i=this.element.querySelectorAll("."+this.config.boxClass)).length;n>t;t++)e=i[t],r.push(e);return r}.call(this),this.all=function(){var t,n,i,r;for(r=[],t=0,n=(i=this.boxes).length;n>t;t++)e=i[t],r.push(e);return r}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(n=0,i=(r=this.boxes).length;i>n;n++)e=r[n],this.applyStyle(e,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new t(function(t){return function(e){var n,i,r,s,o;for(o=[],n=0,i=e.length;i>n;n++)s=e[n],o.push(function(){var t,e,n,i;for(i=[],t=0,e=(n=s.addedNodes||[]).length;e>t;t++)r=n[t],i.push(this.doSync(r));return i}.call(t));return o}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},r.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},r.prototype.sync=function(){return t.notSupported?this.doSync(this.element):void 0},r.prototype.doSync=function(t){var e,n,i,r,s;if(null==t&&(t=this.element),1===t.nodeType){for(s=[],n=0,i=(r=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;i>n;n++)e=r[n],o.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),s.push(this.scrolled=!0)):s.push(void 0);return s}},r.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(t),this.util().emitEvent(t,this.wowEvent),this.util().addEvent(t,"animationend",this.resetAnimation),this.util().addEvent(t,"oanimationend",this.resetAnimation),this.util().addEvent(t,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(t,"MSAnimationEnd",this.resetAnimation),t},r.prototype.applyStyle=function(t,e){var n,i,r;return i=t.getAttribute("data-wow-duration"),n=t.getAttribute("data-wow-delay"),r=t.getAttribute("data-wow-iteration"),this.animate(function(s){return function(){return s.customStyle(t,e,i,n,r)}}(this))},r.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},r.prototype.resetStyle=function(){var t,e,n,i,r;for(r=[],e=0,n=(i=this.boxes).length;n>e;e++)t=i[e],r.push(t.style.visibility="visible");return r},r.prototype.resetAnimation=function(t){var e;return t.type.toLowerCase().indexOf("animationend")>=0?(e=t.target||t.srcElement).className=e.className.replace(this.config.animateClass,"").trim():void 0},r.prototype.customStyle=function(t,e,n,i,r){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",n&&this.vendorSet(t.style,{animationDuration:n}),i&&this.vendorSet(t.style,{animationDelay:i}),r&&this.vendorSet(t.style,{animationIterationCount:r}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},r.prototype.vendors=["moz","webkit"],r.prototype.vendorSet=function(t,e){var n,i,r,s;for(n in i=[],e)r=e[n],t[""+n]=r,i.push(function(){var e,i,o,a;for(a=[],e=0,i=(o=this.vendors).length;i>e;e++)s=o[e],a.push(t[""+s+n.charAt(0).toUpperCase()+n.substr(1)]=r);return a}.call(this));return i},r.prototype.vendorCSS=function(t,e){var n,r,s,o,a,l;for(o=(a=i(t)).getPropertyCSSValue(e),n=0,r=(s=this.vendors).length;r>n;n++)l=s[n],o=o||a.getPropertyCSSValue("-"+l+"-"+e);return o},r.prototype.animationName=function(t){var e;try{e=this.vendorCSS(t,"animation-name").cssText}catch(n){e=i(t).getPropertyValue("animation-name")}return"none"===e?"":e},r.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},r.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},r.prototype.scrollHandler=function(){return this.scrolled=!0},r.prototype.scrollCallback=function(){var t;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var e,n,i,r;for(r=[],e=0,n=(i=this.boxes).length;n>e;e++)(t=i[e])&&(this.isVisible(t)?this.show(t):r.push(t));return r}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},r.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},r.prototype.isVisible=function(t){var e,n,i,r,s;return n=t.getAttribute("data-wow-offset")||this.config.offset,r=(s=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset)+Math.min(this.element.clientHeight,this.util().innerHeight())-n,e=(i=this.offsetTop(t))+t.clientHeight,r>=i&&e>=s},r.prototype.util=function(){return null!=this._util?this._util:this._util=new e},r.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},r}()}.call(this);
