!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n,t){function u(){return new Date(Date.UTC.apply(Date,arguments))}function e(){var n=new Date;return u(n.getFullYear(),n.getMonth(),n.getDate())}function y(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function c(n){return function(){return this[n].apply(this,arguments)}}function p(t,i){function o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function w(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(v,function(n,t){t in i&&(u[t]=i[t])}),u}var l=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;t<r;t++)if(this[t].valueOf()===i)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new l;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),f=function(t,r){this._process_options(r);this.dates=new l;this.viewDate=this.o.defaultViewDate;this.focusDate=null;this.element=n(t);this.isInline=!1;this.isInput=this.element.is("input");this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn");this.hasInput=this.component&&this.element.find("input").length;this.component&&0===this.component.length&&(this.component=!1);this.picker=n(i.template);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.viewMode=this.o.startView;this.o.calendarWeeks&&this.picker.find("tfoot .today, tfoot .clear").attr("colspan",function(n,t){return parseInt(t)+1});this._allow_update=!1;this.setStartDate(this._o.startDate);this.setEndDate(this._o.endDate);this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted);this.setDatesDisabled(this.o.datesDisabled);this.fillDow();this.fillMonths();this._allow_update=!0;this.update();this.showMode();this.isInline&&this.show()},h,a,o,s,v,r,i;f.prototype={constructor:f,_process_options:function(f){var o,c,a,v,h,l;this._o=n.extend({},this._o,f);o=this.o=n.extend({},this._o);c=o.language;switch(r[c]||(c=c.split("-")[0],r[c]||(c=s.language)),o.language=c,o.startView){case 2:case"decade":o.startView=2;break;case 1:case"year":o.startView=1;break;default:o.startView=0}switch(o.minViewMode){case 1:case"months":o.minViewMode=1;break;case 2:case"years":o.minViewMode=2;break;default:o.minViewMode=0}switch(o.maxViewMode){case 0:case"days":o.maxViewMode=0;break;case 1:case"months":o.maxViewMode=1;break;default:o.maxViewMode=2}if(o.startView=Math.min(o.startView,o.maxViewMode),o.startView=Math.max(o.startView,o.minViewMode),o.multidate!==!0&&(o.multidate=Number(o.multidate)||!1,o.multidate!==!1&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7,a=i.parseFormat(o.format),(o.startDate!==-(1/0)&&(o.startDate=o.startDate?o.startDate instanceof Date?this._local_to_utc(this._zero_time(o.startDate)):i.parseDate(o.startDate,a,o.language):-(1/0)),o.endDate!==1/0&&(o.endDate=o.endDate?o.endDate instanceof Date?this._local_to_utc(this._zero_time(o.endDate)):i.parseDate(o.endDate,a,o.language):1/0),o.daysOfWeekDisabled=o.daysOfWeekDisabled||[],n.isArray(o.daysOfWeekDisabled)||(o.daysOfWeekDisabled=o.daysOfWeekDisabled.split(/[,\s]*/)),o.daysOfWeekDisabled=n.map(o.daysOfWeekDisabled,function(n){return parseInt(n,10)}),o.daysOfWeekHighlighted=o.daysOfWeekHighlighted||[],n.isArray(o.daysOfWeekHighlighted)||(o.daysOfWeekHighlighted=o.daysOfWeekHighlighted.split(/[,\s]*/)),o.daysOfWeekHighlighted=n.map(o.daysOfWeekHighlighted,function(n){return parseInt(n,10)}),o.datesDisabled=o.datesDisabled||[],n.isArray(o.datesDisabled))||(v=[],v.push(i.parseDate(o.datesDisabled,a,o.language)),o.datesDisabled=v),o.datesDisabled=n.map(o.datesDisabled,function(n){return i.parseDate(n,a,o.language)}),h=String(o.orientation).toLowerCase().split(/\s+/g),l=o.orientation.toLowerCase(),h=n.grep(h,function(n){return/^auto|left|right|top|bottom$/.test(n)}),o.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===h.length)switch(h[0]){case"top":case"bottom":o.orientation.y=h[0];break;case"left":case"right":o.orientation.x=h[0]}else l=n.grep(h,function(n){return/^left|right$/.test(n)}),o.orientation.x=l[0]||"auto",l=n.grep(h,function(n){return/^top|bottom$/.test(n)}),o.orientation.y=l[0]||"auto";if(o.defaultViewDate){var y=o.defaultViewDate.year||(new Date).getFullYear(),p=o.defaultViewDate.month||0,w=o.defaultViewDate.day||1;o.defaultViewDate=u(y,p,w)}else o.defaultViewDate=e();o.showOnFocus=o.showOnFocus===t||o.showOnFocus},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this),paste:n.proxy(this.paste,this)};this.o.showOnFocus===!0&&(t.focus=n.proxy(this.show,this));this.isInput?this._events=[[this.element,t]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),t],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":n.proxy(function(n){this.update(n.date)},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{mousedown:n.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||n(this.picker).hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!this.element.attr("readonly")||this.o.enableOnReadonly!==!1)return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this},hide:function(){return this.isInline?this:this.picker.is(":visible")?(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"),this):this},remove:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var i;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&n.inArray("text/plain",t.originalEvent.clipboardData.types)!==-1)i=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i);this.update();t.preventDefault()},_utc_to_local:function(n){return n&&new Date(n.getTime()+6e4*n.getTimezoneOffset())},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return"undefined"!=typeof n?new Date(n):null},clearDates:function(){var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input"));n&&n.val("");this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,n.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:c("setDates"),setUTCDate:c("setUTCDates"),setValue:function(){var n=this.getFormattedDate();return this.isInput?this.element.val(n):this.component&&this.element.find("input").val(n),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekHighlighted:function(n){return this._process_options({daysOfWeekHighlighted:n}),this.update(),this},setDatesDisabled:function(n){this._process_options({datesDisabled:n});this.update();this.updateNavArrows()},place:function(){var w,h,u,b;if(this.isInline)return this;var e=this.picker.outerWidth(),o=this.picker.outerHeight(),f=n(this.o.container),c=f.width(),k=f.height(),l=f.scrollTop(),a=f.offset(),v=[];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==t&&v.push(parseInt(t))});var y=Math.max.apply(Math,v)+10,r=this.component?this.component.parent().offset():this.element.offset(),p=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),s=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=r.left-a.left,i=r.top-a.top;return this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=e-s)):r.left<0?(this.picker.addClass("datepicker-orient-left"),t-=r.left-10):t+e>c?(this.picker.addClass("datepicker-orient-right"),t=r.left+s-e):this.picker.addClass("datepicker-orient-left"),u=this.o.orientation.y,("auto"===u&&(w=-l+i-o,h=l+k-(i+p+o),u=Math.max(w,h)===h?"top":"bottom"),this.picker.addClass("datepicker-orient-"+u),"top"===u?i+=p:i-=o+parseInt(this.picker.css("padding-top")),this.o.rtl)?(b=c-(t+s),this.picker.css({top:i,right:b,zIndex:y})):this.picker.css({top:i,left:t,zIndex:y}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var r=this.dates.copy(),t=[],u=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),u=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language)},this)),t=n.grep(t,n.proxy(function(n){return n<this.o.startDate||n>this.o.endDate||!n},this),!0),this.dates.replace(t),this.viewDate=this.dates.length?new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?new Date(this.o.startDate):this.viewDate>this.o.endDate?new Date(this.o.endDate):this.o.defaultViewDate,u?this.setValue():t.length&&String(r)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&r.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var t=this.o.weekStart,n="<tr>";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(n,t){return parseInt(t)+1}),n+='<th class="cw">&#160;<\/th>');t<this.o.weekStart+7;)n+='<th class="dow">'+r[this.o.language].daysMin[t++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;t<12;)n+='<span class="month">'+r[this.o.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>f)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===u.getFullYear()&&t.getUTCMonth()===u.getMonth()&&t.getUTCDate()===u.getDate()&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&i.push("disabled"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||n.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1)&&i.push("highlighted"),this.o.datesDisabled.length>0&&n.grep(this.o.datesDisabled,function(n){return y(t,n)}).length>0&&i.push("disabled","disabled-date"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),n.inArray(t.valueOf(),this.range)!==-1&&i.push("selected")),i},fill:function(){var y,g=new Date(this.viewDate),f=g.getUTCFullYear(),p=g.getUTCMonth(),w=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),ft=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),b=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,et=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,ot=r[this.o.language].today||r.en.today||"",st=r[this.o.language].clear||r.en.clear||"",o,k,c,h,s,e,l,it,rt,a,ut,v;if(!isNaN(f)&&!isNaN(p)){for(this.picker.find(".datepicker-days thead .datepicker-switch").text(r[this.o.language].months[p]+" "+(this.o.maxViewMode<2?"":f)),this.picker.find("tfoot .today").text(ot).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(st).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths(),o=u(f,p-1,28),k=i.getDaysInMonth(o.getUTCFullYear(),o.getUTCMonth()),o.setUTCDate(k),o.setUTCDate(k-(o.getUTCDay()-this.o.weekStart+7)%7),c=new Date(o),c.setUTCDate(c.getUTCDate()+42),c=c.valueOf(),s=[];o.valueOf()<c;){if(o.getUTCDay()===this.o.weekStart&&(s.push("<tr>"),this.o.calendarWeeks)){var nt=new Date(+o+(this.o.weekStart-o.getUTCDay()-7)%7*864e5),tt=new Date(Number(nt)+(11-nt.getUTCDay())%7*864e5),d=new Date(Number(d=u(tt.getUTCFullYear(),0,1))+(11-d.getUTCDay())%7*864e5),ht=(tt-d)/6048e5+1;s.push('<td class="cw">'+ht+"<\/td>")}(h=this.getClassNames(o),h.push("day"),this.o.beforeShowDay!==n.noop)&&(e=this.o.beforeShowDay(this._utc_to_local(o)),e===t?e={}:"boolean"==typeof e?e={enabled:e}:"string"==typeof e&&(e={classes:e}),e.enabled===!1&&h.push("disabled"),e.classes&&(h=h.concat(e.classes.split(/\s+/))),e.tooltip&&(y=e.tooltip),e.bookingEndDate&&(bookingEndDate=e.bookingEndDate),e.bookingStartDate&&(bookingStartDate=e.bookingStartDate));h=n.unique(h);s.push('<td class="'+h.join(" ")+'"'+(y?' title="'+y+'"':"")+">"+o.getUTCDate()+"<\/td>");y=null;o.getUTCDay()===this.o.weekEnd&&s.push("<\/tr>");o.setUTCDate(o.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(s.join("")),l=this.picker.find(".datepicker-months").find("th:eq(1)").text(this.o.maxViewMode<2?"Months":f).end().find("span").removeClass("active"),(n.each(this.dates,function(n,t){t.getUTCFullYear()===f&&l.eq(t.getUTCMonth()).addClass("active")}),(f<w||f>b)&&l.addClass("disabled"),f===w&&l.slice(0,ft).addClass("disabled"),f===b&&l.slice(et+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop)&&(it=this,n.each(l,function(t,i){if(!n(i).hasClass("disabled")){var r=new Date(f,t,1),u=it.o.beforeShowMonth(r);u===!1&&n(i).addClass("disabled")}})),s="",f=10*parseInt(f/10,10),rt=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,ut=n.map(this.dates,function(n){return n.getUTCFullYear()}),v=-1;v<11;v++)a=["year"],v===-1?a.push("old"):10===v&&a.push("new"),n.inArray(f,ut)!==-1&&a.push("active"),(f<w||f>b)&&a.push("disabled"),s+='<span class="'+a.join(" ")+'">'+f+"<\/span>",f+=1;rt.html(s)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){var e,f,o,r,h,s,c;if(t.preventDefault(),t.stopPropagation(),r=n(t.target).closest("span, td, th"),1===r.length)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":h=i.modes[this.viewMode].navStep*("prev"===r[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h);this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h);1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":s=new Date;s=u(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0);this.showMode(-2);c="linked"===this.o.todayBtn?null:"view";this._setDate(s,c);break;case"clear":this.clearDates()}break;case"span":r.hasClass("disabled")||(this.viewDate.setUTCDate(1),r.hasClass("month")?(o=1,f=r.parent().find("span").index(r),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(u(e,f,o)),this.showMode()):this.showMode(-1)):(o=1,f=0,e=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(u(e,f,o)),this.showMode(-1)),this.fill());break;case"td":r.hasClass("day")&&!r.hasClass("disabled")&&(o=parseInt(r.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),r.hasClass("old")?0===f?(f=11,e-=1):f-=1:r.hasClass("new")&&(11===f?(f=0,e+=1):f+=1),this._setDate(u(e,f,o)))}this.picker.is(":visible")&&this._focused_from&&n(this._focused_from).focus();delete this._focused_from},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),t!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n));t&&"view"!==t||(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&"view"===t||this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();!this.o.autoclose||t&&"date"!==t||this.hide()},moveMonth:function(n,i){var e;if(!n)return t;if(!i)return n;var u,f,r=new Date(n.valueOf()),o=r.getUTCDate(),s=r.getUTCMonth(),h=Math.abs(i);if(i=i>0?1:-1,1===h)f=i===-1?function(){return r.getUTCMonth()===s}:function(){return r.getUTCMonth()!==u},u=s+i,r.setUTCMonth(u),(u<0||u>11)&&(u=(u+12)%12);else{for(e=0;e<h;e++)r=this.moveMonth(r,i);u=r.getUTCMonth();r.setUTCDate(o);f=function(){return u!==r.getUTCMonth()}}for(;f();)r.setUTCDate(--o),r.setUTCMonth(u);return r},moveYear:function(n,t){return this.moveMonth(n,12*t)},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var t,u,i,o,r,f;if(!this.picker.is(":visible"))return void(40!==n.keyCode&&27!==n.keyCode||this.show());o=!1;r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=37===n.keyCode?-1:1;n.ctrlKey?(u=this.moveYear(this.dates.get(-1)||e(),t),i=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(u=this.moveMonth(this.dates.get(-1)||e(),t),i=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(u=new Date(this.dates.get(-1)||e()),u.setUTCDate(u.getUTCDate()+t),i=new Date(r),i.setUTCDate(r.getUTCDate()+t));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=38===n.keyCode?-1:1;n.ctrlKey?(u=this.moveYear(this.dates.get(-1)||e(),t),i=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(u=this.moveMonth(this.dates.get(-1)||e(),t),i=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(u=new Date(this.dates.get(-1)||e()),u.setUTCDate(u.getUTCDate()+7*t),i=new Date(r),i.setUTCDate(r.getUTCDate()+7*t));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(r),o=!0);this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),"function"==typeof n.stopPropagation?n.stopPropagation():n.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}o&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+n)));this.picker.children("div").hide().filter(".datepicker-"+i.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};h=function(t,i){this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;o.call(n(this.inputs),i).on("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")});this.updateDates()};h.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var e=n(t.target).data("datepicker"),i=e.getUTCDate(),f=n.inArray(t.target,this.inputs),r=f-1,u=f+1,o=this.inputs.length;if(f!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t.setUTCDate(i)}),i<this.dates[r])for(;r>=0&&i<this.dates[r];)this.pickers[r--].setUTCDate(i);else if(i>this.dates[u])for(;u<o&&i>this.dates[u];)this.pickers[u++].setUTCDate(i);this.updateDates();delete this.updating}}},remove:function(){n.map(this.pickers,function(n){n.remove()});delete this.element.data().datepicker}};a=n.fn.datepicker;o=function(i){var u=Array.apply(null,arguments),r;return u.shift(),this.each(function(){var o=n(this),e=o.data("datepicker"),l="object"==typeof i&&i,v;if(!e){var a=p(this,"date"),y=n.extend({},s,a,l),b=w(y.language),c=n.extend({},s,b,a,l);o.hasClass("input-daterange")||c.inputs?(v={inputs:c.inputs||o.find("input").toArray()},o.data("datepicker",e=new h(this,n.extend(c,v)))):o.data("datepicker",e=new f(this,c))}if("string"==typeof i&&"function"==typeof e[i]&&(r=e[i].apply(e,u),r!==t))return!1}),r!==t?r:this};n.fn.datepicker=o;s=n.fn.datepicker.defaults={autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:2,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,container:"body",immediateUpdates:!1};v=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=f;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}};i={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,"\0").split("\0"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(e,o,s){function nt(){var n=this.slice(0,c[h].length),t=c[h].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var v,y,h,tt,c,a,it,d,w;if(!e)return t;if(e instanceof Date)return e;if("string"==typeof o&&(o=i.parseFormat(o)),tt=/([\-+]\d+)([dmwy])/,c=e.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,h=0;h<c.length;h++)switch(v=tt.exec(c[h]),y=parseInt(v[1]),v[2]){case"d":e.setUTCDate(e.getUTCDate()+y);break;case"m":e=f.prototype.moveMonth.call(f.prototype,e,y);break;case"w":e.setUTCDate(e.getUTCDate()+7*y);break;case"y":e=f.prototype.moveYear.call(f.prototype,e,y)}return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0)}c=e&&e.match(this.nonpunctuation)||[];e=new Date;var p,b,k={},g=["yyyy","yy","M","MM","m","mm","d","dd"],l={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(l.M=l.MM=l.mm=l.m,l.dd=l.d,e=u(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),a=o.parts.slice(),c.length!==a.length&&(a=n(a).filter(function(t,i){return n.inArray(i,g)!==-1}).toArray()),c.length===a.length){for(h=0,it=a.length;h<it;h++){if(p=parseInt(c[h],10),v=a[h],isNaN(p))switch(v){case"MM":b=n(r[s].months).filter(nt);p=n.inArray(b[0],r[s].months)+1;break;case"M":b=n(r[s].monthsShort).filter(nt);p=n.inArray(b[0],r[s].monthsShort)+1}k[v]=p}for(h=0;h<g.length;h++)w=g[h],w in k&&!isNaN(k[w])&&(d=new Date(e),l[w](d,k[w]),isNaN(d)||(e=d))}return e},formatDate:function(t,u,f){var e;if(!t)return"";"string"==typeof u&&(u=i.parseFormat(u));e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">&#171;<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">&#187;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=a,this};n.fn.datepicker.version="1.4.1-dev";n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})}),function(){function f(n){this._value=n}function e(n,t,i,r){var f,u,e=Math.pow(10,t);return u=(i(n*e)/e).toFixed(t),r&&(f=new RegExp("0{1,"+r+"}$"),u=u.replace(f,"")),u}function c(n,t,i){return t.indexOf("$")>-1?a(n,t,i):t.indexOf("%")>-1?v(n,t,i):t.indexOf(":")>-1?y(n,t):o(n._value,t,i)}function l(i,r){var s,h,c,l,f,e=r,a=["KB","MB","GB","TB","PB","EB","ZB","YB"],o=!1;if(r.indexOf(":")>-1)i._value=p(r);else if(r===u)i._value=0;else{for("."!==n[t].delimiters.decimal&&(r=r.replace(/\./g,"").replace(n[t].delimiters.decimal,".")),s=new RegExp("[^a-zA-Z]"+n[t].abbreviations.thousand+"(?:\\)|(\\"+n[t].currency.symbol+")?(?:\\))?)?$"),h=new RegExp("[^a-zA-Z]"+n[t].abbreviations.million+"(?:\\)|(\\"+n[t].currency.symbol+")?(?:\\))?)?$"),c=new RegExp("[^a-zA-Z]"+n[t].abbreviations.billion+"(?:\\)|(\\"+n[t].currency.symbol+")?(?:\\))?)?$"),l=new RegExp("[^a-zA-Z]"+n[t].abbreviations.trillion+"(?:\\)|(\\"+n[t].currency.symbol+")?(?:\\))?)?$"),f=0;f<=a.length&&!(o=r.indexOf(a[f])>-1&&Math.pow(1024,f+1));f++);i._value=(o?o:1)*(e.match(s)?Math.pow(10,3):1)*(e.match(h)?Math.pow(10,6):1)*(e.match(c)?Math.pow(10,9):1)*(e.match(l)?Math.pow(10,12):1)*(r.indexOf("%")>-1?.01:1)*((r.split("-").length+Math.min(r.split("(").length-1,r.split(")").length-1))%2?1:-1)*Number(r.replace(/[^0-9\.]+/g,""));i._value=o?Math.ceil(i._value):i._value}return i._value}function a(i,r,u){var s,f,h=r.indexOf("$"),c=r.indexOf("("),l=r.indexOf("-"),e="";return r.indexOf(" $")>-1?(e=" ",r=r.replace(" $","")):r.indexOf("$ ")>-1?(e=" ",r=r.replace("$ ","")):r=r.replace("$",""),f=o(i._value,r,u),h<=1?f.indexOf("(")>-1||f.indexOf("-")>-1?(f=f.split(""),s=1,(h<c||h<l)&&(s=0),f.splice(s,0,n[t].currency.symbol+e),f=f.join("")):f=n[t].currency.symbol+e+f:f.indexOf(")")>-1?(f=f.split(""),f.splice(-1,0,e+n[t].currency.symbol),f=f.join("")):f=f+e+n[t].currency.symbol,f}function v(n,t,i){var r,u="",f=100*n._value;return t.indexOf(" %")>-1?(u=" ",t=t.replace(" %","")):t=t.replace("%",""),r=o(f,t,i),r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,u+"%"),r=r.join("")):r=r+u+"%",r}function y(n){var i=Math.floor(n._value/3600),t=Math.floor((n._value-3600*i)/60),r=Math.round(n._value-3600*i-60*t);return i+":"+(t<10?"0"+t:t)+":"+(r<10?"0"+r:r)}function p(n){var t=n.split(":"),i=0;return 3===t.length?(i+=3600*Number(t[0]),i+=60*Number(t[1]),i+=Number(t[2])):2===t.length&&(i+=60*Number(t[0]),i+=Number(t[1])),Number(i)}function o(i,r,f){var p,it,a,s,o,rt,w=!1,ut=!1,ft=!1,c="",d=!1,g=!1,nt=!1,tt=!1,v=!1,b="",k="",l=Math.abs(i),et=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],h="",y=!1;if(0===i&&null!==u)return u;if(r.indexOf("(")>-1?(w=!0,r=r.slice(1,-1)):r.indexOf("+")>-1&&(ut=!0,r=r.replace(/\+/g,"")),r.indexOf("a")>-1&&(d=r.indexOf("aK")>=0,g=r.indexOf("aM")>=0,nt=r.indexOf("aB")>=0,tt=r.indexOf("aT")>=0,v=d||g||nt||tt,r.indexOf(" a")>-1?(c=" ",r=r.replace(" a","")):r=r.replace("a",""),l>=Math.pow(10,12)&&!v||tt?(c+=n[t].abbreviations.trillion,i/=Math.pow(10,12)):l<Math.pow(10,12)&&l>=Math.pow(10,9)&&!v||nt?(c+=n[t].abbreviations.billion,i/=Math.pow(10,9)):l<Math.pow(10,9)&&l>=Math.pow(10,6)&&!v||g?(c+=n[t].abbreviations.million,i/=Math.pow(10,6)):(l<Math.pow(10,6)&&l>=Math.pow(10,3)&&!v||d)&&(c+=n[t].abbreviations.thousand,i/=Math.pow(10,3))),r.indexOf("b")>-1)for(r.indexOf(" b")>-1?(b=" ",r=r.replace(" b","")):r=r.replace("b",""),a=0;a<=et.length;a++)if(p=Math.pow(1024,a),it=Math.pow(1024,a+1),i>=p&&i<it){b+=et[a];p>0&&(i/=p);break}return r.indexOf("o")>-1&&(r.indexOf(" o")>-1?(k=" ",r=r.replace(" o","")):r=r.replace("o",""),k+=n[t].ordinal(i)),r.indexOf("[.]")>-1&&(ft=!0,r=r.replace("[.]",".")),s=i.toString().split(".")[0],o=r.split(".")[1],rt=r.indexOf(","),o?(o.indexOf("[")>-1?(o=o.replace("]",""),o=o.split("["),h=e(i,o[0].length+o[1].length,f,o[1].length)):h=e(i,o.length,f),s=h.split(".")[0],h=h.split(".")[1].length?n[t].delimiters.decimal+h.split(".")[1]:"",ft&&0===Number(h.slice(1))&&(h="")):s=e(i,null,f),s.indexOf("-")>-1&&(s=s.slice(1),y=!0),rt>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+n[t].delimiters.thousands)),0===r.indexOf(".")&&(s=""),(w&&y?"(":"")+(!w&&y?"-":"")+(!y&&ut?"+":"")+s+h+(k?k:"")+(c?c:"")+(b?b:"")+(w&&y?")":"")}function w(t,i){n[t]=i}function h(n){var t=n.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)}function r(){var n=Array.prototype.slice.call(arguments);return n.reduce(function(n,t){var i=h(n),r=h(t);return i>r?i:r},-(1/0))}var i,n={},t="en",u=null,s="0,0",b="undefined"!=typeof module&&module.exports;i=function(n){return i.isNumeral(n)?n=n.value():0===n||"undefined"==typeof n?n=0:Number(n)||(n=i.fn.unformat(n)),new f(Number(n))};i.version="1.5.3";i.isNumeral=function(n){return n instanceof f};i.language=function(r,u){if(!r)return t;if(r&&!u){if(!n[r])throw new Error("Unknown language : "+r);t=r}return!u&&n[r]||w(r,u),i};i.languageData=function(i){if(!i)return n[t];if(!n[i])throw new Error("Unknown language : "+i);return n[i]};i.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(n){var t=n%10;return 1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}});i.zeroFormat=function(n){u="string"==typeof n?n:null};i.defaultFormat=function(n){s="string"==typeof n?n:"0.0"};"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(n,t){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof n)throw new TypeError(n+" is not a function");var i,r,f=this.length>>>0,u=!1;for(1<arguments.length&&(r=t,u=!0),i=0;f>i;++i)this.hasOwnProperty(i)&&(u?r=n(r,this[i],i,this):(r=this[i],u=!0));if(!u)throw new TypeError("Reduce of empty array with no initial value");return r});i.fn=f.prototype={clone:function(){return i(this)},format:function(n,t){return c(this,n?n:s,void 0!==t?t:Math.round)},unformat:function(n){return"[object Number]"===Object.prototype.toString.call(n)?n:l(this,n?n:s)},value:function(){return this._value},valueOf:function(){return this._value},set:function(n){return this._value=Number(n),this},add:function(n){function i(n,i){return n+t*i}var t=r.call(null,this._value,n);return this._value=[this._value,n].reduce(i,0)/t,this},subtract:function(n){function i(n,i){return n-t*i}var t=r.call(null,this._value,n);return this._value=[n].reduce(i,this._value*t)/t,this},multiply:function(n){function t(n,t){var i=r(n,t);return n*i*t*i/(i*i)}return this._value=[this._value,n].reduce(t,1),this},divide:function(n){function t(n,t){var i=r(n,t);return n*i/(t*i)}return this._value=[this._value,n].reduce(t),this},difference:function(n){return Math.abs(i(this._value).subtract(n).value())}};b&&(module.exports=i);"undefined"==typeof ender&&(this.numeral=i);"function"==typeof define&&define.amd&&define([],function(){return i})}.call(this);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function i(){return wf.apply(null,arguments)}function ve(n){wf=n}function dr(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function ri(n){return"[object Array]"===Object.prototype.toString.call(n)}function wi(n){return"[object Date]"===Object.prototype.toString.call(n)||n instanceof Date}function ye(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function g(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function ui(n,t){for(var i in t)g(t,i)&&(n[i]=t[i]);return g(t,"toString")&&(n.toString=t.toString),g(t,"valueOf")&&(n.valueOf=t.valueOf),n}function bt(n,t,i,r){return bu(n,t,i,r,!0).utc()}function gr(n){return null==n._isValid&&(n._isValid=!isNaN(n._d.getTime())&&n._pf.overflow<0&&!n._pf.empty&&!n._pf.invalidMonth&&!n._pf.nullInput&&!n._pf.invalidFormat&&!n._pf.userInvalidated,n._strict&&(n._isValid=n._isValid&&0===n._pf.charsLeftOver&&0===n._pf.unusedTokens.length&&void 0===n._pf.bigHour)),n._isValid}function nu(n){var t=bt(NaN);return null!=n?ui(t._pf,n):t._pf.userInvalidated=!0,t}function tu(n,t){var u,i,r;if("undefined"!=typeof t._isAMomentObject&&(n._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(n._i=t._i),"undefined"!=typeof t._f&&(n._f=t._f),"undefined"!=typeof t._l&&(n._l=t._l),"undefined"!=typeof t._strict&&(n._strict=t._strict),"undefined"!=typeof t._tzm&&(n._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(n._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(n._offset=t._offset),"undefined"!=typeof t._pf&&(n._pf=t._pf),"undefined"!=typeof t._locale&&(n._locale=t._locale),or.length>0)for(u in or)i=or[u],r=t[i],"undefined"!=typeof r&&(n[i]=r);return n}function kt(n){tu(this,n);this._d=new Date(+n._d);sr===!1&&(sr=!0,i.updateOffset(this),sr=!1)}function nt(n){return n instanceof kt||null!=n&&g(n,"_isAMomentObject")}function o(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function iu(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;f>r;r++)(i&&n[r]!==t[r]||!i&&o(n[r])!==o(t[r]))&&u++;return u+e}function ru(){}function uu(n){return n?n.toLowerCase().replace("_","-"):n}function pe(n){for(var i,t,f,r,u=0;u<n.length;){for(r=uu(n[u]).split("-"),i=r.length,t=uu(n[u+1]),t=t?t.split("-"):null;i>0;){if(f=fu(r.slice(0,i).join("-")))return f;if(t&&t.length>=i&&iu(r,t,!0)>=i-1)break;i--}u++}return null}function fu(n){var t=null;if(!st[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=hi._abbr;require("./locale/"+n);dt(t)}catch(i){}return st[n]}function dt(n,t){var i;return n&&(i="undefined"==typeof t?rt(n):eu(n,t),i&&(hi=i)),hi._abbr}function eu(n,t){return null!==t?(t.abbr=n,st[n]||(st[n]=new ru),st[n].set(t),dt(n),st[n]):(delete st[n],null)}function rt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return hi;if(!ri(n)){if(t=fu(n))return t;n=[n]}return pe(n)}function c(n,t){var i=n.toLowerCase();ti[i]=ti[i+"s"]=ti[t]=n}function v(n){if("string"==typeof n)return ti[n]||ti[n.toLowerCase()]}function ou(n){var i,t,r={};for(t in n)g(n,t)&&(i=v(t),i&&(r[i]=n[t]));return r}function at(n,t){return function(r){return null!=r?(su(this,n,r),i.updateOffset(this,t),this):fi(this,n)}}function fi(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function su(n,t,i){return n._d["set"+(n._isUTC?"UTC":"")+t](i)}function hu(n,t){var i;if("object"==typeof n)for(i in n)this.set(i,n[i]);else if(n=v(n),"function"==typeof this[n])return this[n](t);return this}function bi(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function r(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(yt[n]=u);t&&(yt[t[0]]=function(){return bi(u.apply(this,arguments),t[1],t[2])});i&&(yt[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function we(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function be(n){for(var i=n.match(bf),t=0,r=i.length;r>t;t++)i[t]=yt[i[t]]?yt[i[t]]:we(i[t]);return function(u){var f="";for(t=0;r>t;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function ki(n,t){return n.isValid()?(t=cu(t,n.localeData()),hr[t]||(hr[t]=be(t)),hr[t](n)):n.localeData().invalidDate()}function cu(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ci.lastIndex=0;i>=0&&ci.test(n);)n=n.replace(ci,r),ci.lastIndex=0,i-=1;return n}function t(n,t,i){ar[n]="function"==typeof t?t:function(n){return n&&i?i:t}}function ke(n,t){return g(ar,n)?ar[n](t._strict,t._locale):new RegExp(de(n))}function de(n){return n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),"number"==typeof t&&(r=function(n,i){i[t]=o(n)}),i=0;i<n.length;i++)vr[n[i]]=r}function gt(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function ge(n,t,i){null!=t&&g(vr,n)&&vr[n](t,i._a,i,n)}function di(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function no(n){return this._months[n.month()]}function to(n){return this._monthsShort[n.month()]}function io(n,t,i){var r,u,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++)if((u=bt([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function lu(n,t){var i;return"string"==typeof t&&(t=n.localeData().monthsParse(t),"number"!=typeof t)?n:(i=Math.min(n.date(),di(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function au(n){return null!=n?(lu(this,n),i.updateOffset(this,!0),this):fi(this,"Month")}function ro(){return di(this.year(),this.month())}function gi(n){var i,t=n._a;return t&&-2===n._pf.overflow&&(i=t[k]<0||t[k]>11?k:t[w]<1||t[w]>di(t[b],t[k])?w:t[l]<0||t[l]>24||24===t[l]&&(0!==t[ht]||0!==t[ct]||0!==t[lt])?l:t[ht]<0||t[ht]>59?ht:t[ct]<0||t[ct]>59?ct:t[lt]<0||t[lt]>999?lt:-1,n._pf._overflowDayOfYear&&(b>i||i>w)&&(i=w),n._pf.overflow=i),n}function vu(n){i.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function y(n,t){var i=!0;return ui(function(){return i&&(vu(n),i=!1),t.apply(this,arguments)},t)}function uo(n,t){gf[n]||(vu(t),gf[n]=!0)}function yu(n){var t,i,r=n._i,u=kl.exec(r);if(u){for(n._pf.iso=!0,t=0,i=yr.length;i>t;t++)if(yr[t][1].exec(r)){n._f=yr[t][0]+(u[6]||" ");break}for(t=0,i=pr.length;i>t;t++)if(pr[t][1].exec(r)){n._f+=pr[t][0];break}r.match(pi)&&(n._f+="Z");ir(n)}else n._isValid=!1}function fo(n){var t=dl.exec(n._i);return null!==t?void(n._d=new Date(+t[1])):(yu(n),void(n._isValid===!1&&(delete n._isValid,i.createFromInputFallback(n))))}function eo(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 1970>n&&o.setFullYear(n),o}function nr(n){var t=new Date(Date.UTC.apply(null,arguments));return 1970>n&&t.setUTCFullYear(n),t}function pu(n){return wu(n)?366:365}function wu(n){return n%4==0&&n%100!=0||n%400==0}function oo(){return wu(this.year())}function ut(n,t,i){var u,f=i-t,r=i-n.day();return r>f&&(r-=7),f-7>r&&(r+=7),u=e(n).add(r,"d"),{week:Math.ceil(u.dayOfYear()/7),year:u.year()}}function so(n){return ut(n,this._week.dow,this._week.doy).week}function ho(){return this._week.dow}function co(){return this._week.doy}function lo(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function ao(n){var t=ut(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function vo(n,t,i,r,u){var o,e,f=nr(n,0,1).getUTCDay();return f=0===f?7:f,i=null!=i?i:u,o=u-f+(f>r?7:0)-(u>f?7:0),e=7*(t-1)+(i-u)+o+1,{year:e>0?n:n-1,dayOfYear:e>0?e:pu(n-1)+e}}function yo(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")}function vt(n,t,i){return null!=n?n:null!=t?t:i}function po(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function tr(n){var t,i,r,u,f=[];if(!n._d){for(r=po(n),n._w&&null==n._a[w]&&null==n._a[k]&&wo(n),n._dayOfYear&&(u=vt(n._a[b],r[b]),n._dayOfYear>pu(u)&&(n._pf._overflowDayOfYear=!0),i=nr(u,0,n._dayOfYear),n._a[k]=i.getUTCMonth(),n._a[w]=i.getUTCDate()),t=0;3>t&&null==n._a[t];++t)n._a[t]=f[t]=r[t];for(;7>t;t++)n._a[t]=f[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[l]&&0===n._a[ht]&&0===n._a[ct]&&0===n._a[lt]&&(n._nextDay=!0,n._a[l]=0);n._d=(n._useUTC?nr:eo).apply(null,f);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[l]=24)}}function wo(n){var t,o,u,r,i,f,s;t=n._w;null!=t.GG||null!=t.W||null!=t.E?(i=1,f=4,o=vt(t.GG,n._a[b],ut(e(),1,4).year),u=vt(t.W,1),r=vt(t.E,1)):(i=n._locale._week.dow,f=n._locale._week.doy,o=vt(t.gg,n._a[b],ut(e(),i,f).year),u=vt(t.w,1),null!=t.d?(r=t.d,i>r&&++u):r=null!=t.e?t.e+i:i);s=vo(o,u,r,f,i);n._a[b]=s.year;n._dayOfYear=s.dayOfYear}function ir(n){if(n._f===i.ISO_8601)return void yu(n);n._a=[];n._pf.empty=!0;for(var t,u,o,r=""+n._i,h=r.length,s=0,e=cu(n._f,n._locale).match(bf)||[],f=0;f<e.length;f++)u=e[f],t=(r.match(ke(u,n))||[])[0],t&&(o=r.substr(0,r.indexOf(t)),o.length>0&&n._pf.unusedInput.push(o),r=r.slice(r.indexOf(t)+t.length),s+=t.length),yt[u]?(t?n._pf.empty=!1:n._pf.unusedTokens.push(u),ge(u,t,n)):n._strict&&!t&&n._pf.unusedTokens.push(u);n._pf.charsLeftOver=h-s;r.length>0&&n._pf.unusedInput.push(r);n._pf.bigHour===!0&&n._a[l]<=12&&(n._pf.bigHour=void 0);n._a[l]=bo(n._locale,n._a[l],n._meridiem);tr(n);gi(n)}function bo(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?(r=n.isPM(i),r&&12>t&&(t+=12),r||12!==t||(t=0),t):t}function ko(n){var t,f,u,r,i;if(0===n._f.length)return n._pf.invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=tu({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._pf=dr(),t._f=n._f[r],ir(t),gr(t)&&(i+=t._pf.charsLeftOver,i+=10*t._pf.unusedTokens.length,t._pf.score=i,(null==u||u>i)&&(u=i,f=t));ui(n,f||t)}function go(n){if(!n._d){var t=ou(n._i);n._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond];tr(n)}}function ns(n){var i,t=n._i,r=n._f;return n._locale=n._locale||rt(n._l),null===t||void 0===r&&""===t?nu({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),nt(t)?new kt(gi(t)):(ri(r)?ko(n):r?ir(n):ts(n),i=new kt(gi(n)),i._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i))}function ts(n){var t=n._i;void 0===t?n._d=new Date:wi(t)?n._d=new Date(+t):"string"==typeof t?fo(n):ri(t)?(n._a=ye(t.slice(0),function(n){return parseInt(n,10)}),tr(n)):"object"==typeof t?go(n):"number"==typeof t?n._d=new Date(t):i.createFromInputFallback(n)}function bu(n,t,i,r,u){var f={};return"boolean"==typeof i&&(r=i,i=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,f._pf=dr(),ns(f)}function e(n,t,i,r){return bu(n,t,i,r,!1)}function ku(n,t){var r,i;if(1===t.length&&ri(t[0])&&(t=t[0]),!t.length)return e();for(r=t[0],i=1;i<t.length;++i)t[i][n](r)&&(r=t[i]);return r}function is(){var n=[].slice.call(arguments,0);return ku("isBefore",n)}function rs(){var n=[].slice.call(arguments,0);return ku("isAfter",n)}function ei(n){var t=ou(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*h+6e4*s+36e5*o;this._days=+e+7*f;this._months=+u+3*r+12*i;this._data={};this._locale=rt();this._bubble()}function rr(n){return n instanceof ei}function du(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return 0>n&&(n=-n,i="-"),i+bi(~~(n/60),2)+t+bi(~~n%60,2)})}function ur(n){var i=(n||"").match(pi)||[],u=i[i.length-1]||[],t=(u+"").match(re)||["-",0,0],r=+(60*t[1])+o(t[2]);return"+"===t[0]?r:-r}function fr(n,t){var r,u;return t._isUTC?(r=t.clone(),u=(nt(n)||wi(n)?+n:+e(n))-+r,r._d.setTime(+r._d+u),i.updateOffset(r,!1),r):e(n).local()}function er(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function us(n,t){var r,u=this._offset||0;return null!=n?("string"==typeof n&&(n=ur(n)),Math.abs(n)<16&&(n=60*n),!this._isUTC&&t&&(r=er(this)),this._offset=n,this._isUTC=!0,null!=r&&this.add(r,"m"),u!==n&&(!t||this._changeInProgress?rf(this,ft(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?u:er(this)}function fs(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function es(n){return this.utcOffset(0,n)}function os(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(er(this),"m")),this}function ss(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ur(this._i)),this}function hs(n){return n=n?e(n).utcOffset():0,(this.utcOffset()-n)%60==0}function cs(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ls(){if(this._a){var n=this._isUTC?bt(this._a):e(this._a);return this.isValid()&&iu(this._a,n.toArray())>0}return!1}function as(){return!this._isUTC}function vs(){return this._isUTC}function gu(){return this._isUTC&&0===this._offset}function ft(n,t){var u,f,s,i=n,r=null;return rr(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:"number"==typeof n?(i={},t?i[t]=n:i.milliseconds=n):(r=ue.exec(n))?(u="-"===r[1]?-1:1,i={y:0,d:o(r[w])*u,h:o(r[l])*u,m:o(r[ht])*u,s:o(r[ct])*u,ms:o(r[lt])*u}):(r=fe.exec(n))?(u="-"===r[1]?-1:1,i={y:et(r[2],u),M:et(r[3],u),d:et(r[4],u),h:et(r[5],u),m:et(r[6],u),s:et(r[7],u),w:et(r[8],u)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=ys(e(i.from),e(i.to)),i={},i.ms=s.milliseconds,i.M=s.months),f=new ei(i),rr(n)&&g(n,"_locale")&&(f._locale=n._locale),f}function et(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function nf(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function ys(n,t){var i;return t=fr(t,n),n.isBefore(t)?i=nf(n,t):(i=nf(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function tf(n,t){return function(i,r){var u,f;return null===r||isNaN(+r)||(uo(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),f=i,i=r,r=f),i="string"==typeof i?+i:i,u=ft(i,r),rf(this,u,n),this}}function rf(n,t,r,u){var o=t._milliseconds,f=t._days,e=t._months;u=null==u?!0:u;o&&n._d.setTime(+n._d+o*r);f&&su(n,"Date",fi(n,"Date")+f*r);e&&lu(n,fi(n,"Month")+e*r);u&&i.updateOffset(n,f||e)}function ps(n){var i=n||e(),r=fr(i,this).startOf("day"),t=this.diff(r,"days",!0),u=-6>t?"sameElse":-1>t?"lastWeek":0>t?"lastDay":1>t?"sameDay":2>t?"nextDay":7>t?"nextWeek":"sameElse";return this.format(this.localeData().calendar(u,this,e(i)))}function ws(){return new kt(this)}function bs(n,t){var i;return t=v("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(n=nt(n)?n:e(n),+this>+n):(i=nt(n)?+n:+e(n),i<+this.clone().startOf(t))}function ks(n,t){var i;return t=v("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(n=nt(n)?n:e(n),+n>+this):(i=nt(n)?+n:+e(n),+this.clone().endOf(t)<i)}function ds(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)}function gs(n,t){var i;return t=v(t||"millisecond"),"millisecond"===t?(n=nt(n)?n:e(n),+this==+n):(i=+e(n),+this.clone().startOf(t)<=i&&i<=+this.clone().endOf(t))}function p(n){return 0>n?Math.ceil(n):Math.floor(n)}function nh(n,t,i){var r,u,f=fr(n,this),e=6e4*(f.utcOffset()-this.utcOffset());return t=v(t),"year"===t||"month"===t||"quarter"===t?(u=th(this,f),"quarter"===t?u/=3:"year"===t&&(u/=12)):(r=this-f,u="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-e)/864e5:"week"===t?(r-e)/6048e5:r),i?u:p(u)}function th(n,t){var r,f,u=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(u,"months");return 0>t-i?(r=n.clone().add(u-1,"months"),f=(t-i)/(i-r)):(r=n.clone().add(u+1,"months"),f=(t-i)/(r-i)),-(u+f)}function ih(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function uf(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():ki(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):ki(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function rh(n){var t=ki(this,n||i.defaultFormat);return this.localeData().postformat(t)}function uh(n,t){return ft({to:this,from:n}).locale(this.locale()).humanize(!t)}function fh(n){return this.from(e(),n)}function ff(n){var t;return void 0===n?this._locale._abbr:(t=rt(n),null!=t&&(this._locale=t),this)}function ef(){return this._locale}function eh(n){switch(n=v(n)){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"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this}function oh(n){return n=v(n),void 0===n||"millisecond"===n?this:this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms")}function sh(){return+this._d-6e4*(this._offset||0)}function hh(){return Math.floor(+this/1e3)}function ch(){return this._offset?new Date(+this):this._d}function lh(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function ah(){return gr(this)}function vh(){return ui({},this._pf)}function yh(){return this._pf.overflow}function oi(n,t){r(0,[n,n.length],0,t)}function of(n,t,i){return ut(e([n,11,31+t-i]),t,i).week}function ph(n){var t=ut(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==n?t:this.add(n-t,"y")}function wh(n){var t=ut(this,1,4).year;return null==n?t:this.add(n-t,"y")}function bh(){return of(this.year(),1,4)}function kh(){var n=this.localeData()._week;return of(this.year(),n.dow,n.doy)}function dh(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)}function gh(n,t){if("string"==typeof n)if(isNaN(n)){if(n=t.weekdaysParse(n),"number"!=typeof n)return null}else n=parseInt(n,10);return n}function nc(n){return this._weekdays[n.day()]}function tc(n){return this._weekdaysShort[n.day()]}function ic(n){return this._weekdaysMin[n.day()]}function rc(n){var t,i,r;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(i=e([2e3,1]).day(t),r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(n))return t}function uc(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=gh(n,this.localeData()),this.add(n-t,"d")):t}function fc(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function ec(n){return null==n?this.day()||7:this.day(this.day()%7?n:n-7)}function sf(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function hf(n,t){return t._meridiemParse}function oc(n){return"p"===(n+"").toLowerCase().charAt(0)}function sc(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function cf(n){r(0,[n,3],0,"millisecond")}function hc(){return this._isUTC?"UTC":""}function cc(){return this._isUTC?"Coordinated Universal Time":""}function lc(n){return e(1e3*n)}function ac(){return e.apply(null,arguments).parseZone()}function vc(n,t,i){var r=this._calendar[n];return"function"==typeof r?r.call(t,i):r}function yc(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t}function pc(){return this._invalidDate}function wc(n){return this._ordinal.replace("%d",n)}function lf(n){return n}function bc(n,t,i,r){var u=this._relativeTime[i];return"function"==typeof u?u(n,t,i,r):u.replace(/%d/i,n)}function kc(n,t){var i=this._relativeTime[n>0?"future":"past"];return"function"==typeof i?i(t):i.replace(/%s/i,t)}function dc(n){var t,i;for(i in n)t=n[i],"function"==typeof t?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function af(n,t,i,r){var u=rt(),f=bt().set(r,t);return u[i](f,n)}function ni(n,t,i,r,u){if("number"==typeof n&&(t=n,n=void 0),n=n||"",null!=t)return af(n,t,i,u);for(var e=[],f=0;r>f;f++)e[f]=af(n,f,i,u);return e}function gc(n,t){return ni(n,t,"months",12,"month")}function nl(n,t){return ni(n,t,"monthsShort",12,"month")}function tl(n,t){return ni(n,t,"weekdays",7,"day")}function il(n,t){return ni(n,t,"weekdaysShort",7,"day")}function rl(n,t){return ni(n,t,"weekdaysMin",7,"day")}function ul(){var n=this._data;return this._milliseconds=d(this._milliseconds),this._days=d(this._days),this._months=d(this._months),n.milliseconds=d(n.milliseconds),n.seconds=d(n.seconds),n.minutes=d(n.minutes),n.hours=d(n.hours),n.months=d(n.months),n.years=d(n.years),this}function vf(n,t,i,r){var u=ft(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function fl(n,t){return vf(this,n,t,1)}function el(n,t){return vf(this,n,t,-1)}function ol(){var u,f,e,o=this._milliseconds,t=this._days,i=this._months,n=this._data,r=0;return n.milliseconds=o%1e3,u=p(o/1e3),n.seconds=u%60,f=p(u/60),n.minutes=f%60,e=p(f/60),n.hours=e%24,t+=p(e/24),r=p(yf(t)),t-=p(pf(r)),i+=p(t/30),t%=30,r+=p(i/12),i%=12,n.days=t,n.months=i,n.years=r,this}function yf(n){return 400*n/146097}function pf(n){return 146097*n/400}function sl(n){var t,r,i=this._milliseconds;if(n=v(n),"month"===n||"year"===n)return t=this._days+i/864e5,r=this._months+12*yf(t),"month"===n?r:r/12;switch(t=this._days+Math.round(pf(this._months/12)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}}function hl(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*o(this._months/12)}function tt(n){return function(){return this.as(n)}}function cl(n){return n=v(n),this[n+"s"]()}function ot(n){return function(){return this._data[n]}}function ll(){return p(this.days()/7)}function al(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function vl(n,t,i){var r=ft(n).abs(),h=pt(r.as("s")),f=pt(r.as("m")),e=pt(r.as("h")),o=pt(r.as("d")),s=pt(r.as("M")),c=pt(r.as("y")),u=h<it.s&&["s",h]||1===f&&["m"]||f<it.m&&["mm",f]||1===e&&["h"]||e<it.h&&["hh",e]||1===o&&["d"]||o<it.d&&["dd",o]||1===s&&["M"]||s<it.M&&["MM",s]||1===c&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,al.apply(null,u)}function yl(n,t){return void 0===it[n]?!1:void 0===t?it[n]:(it[n]=t,!0)}function pl(n){var t=this.localeData(),i=vl(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function si(){var r=wt(this.years()),u=wt(this.months()),f=wt(this.days()),n=wt(this.hours()),t=wt(this.minutes()),i=wt(this.seconds()+this.milliseconds()/1e3),e=this.asSeconds();return e?(0>e?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"}var wf,hi,or=i.momentProperties=[],sr=!1,st={},ti={},bf=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,ci=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hr={},yt={},kf=/\d/,a=/\d\d/,df=/\d{3}/,cr=/\d{4}/,li=/[+-]?\d{6}/,s=/\d\d?/,ai=/\d{1,3}/,lr=/\d{1,4}/,vi=/[+-]?\d{1,6}/,yi=/[+-]?\d+/,pi=/Z|[+-]\d\d:?\d\d/gi,ii=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ar={},vr={},b=0,k=1,w=2,l=3,ht=4,ct=5,lt=6,wr,ne,te,ie,re,ue,fe,ee,oe,br,kr,se,he,ce,le,ae,n;r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});c("month","M");t("M",s);t("MM",s,a);t("MMM",ii);t("MMMM",ii);h(["M","MM"],function(n,t){t[k]=o(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);null!=u?t[k]=u:i._pf.invalidMonth=n});var wl="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),bl="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gf={};i.suppressDeprecationWarnings=!1;var kl=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],pr=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],dl=/^\/?Date\((\-?\d+)/i;i.createFromInputFallback=y("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(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");c("year","y");t("Y",yi);t("YY",s,a);t("YYYY",lr,cr);t("YYYYY",vi,li);t("YYYYYY",vi,li);h(["YYYY","YYYYY","YYYYYY"],b);h("YY",function(n,t){t[b]=i.parseTwoDigitYear(n)});i.parseTwoDigitYear=function(n){return o(n)+(o(n)>68?1900:2e3)};wr=at("FullYear",!1);r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");c("week","w");c("isoWeek","W");t("w",s);t("ww",s,a);t("W",s);t("WW",s,a);gt(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=o(n)});ne={dow:0,doy:6};r("DDD",["DDDD",3],"DDDo","dayOfYear");c("dayOfYear","DDD");t("DDD",ai);t("DDDD",df);h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=o(n)});i.ISO_8601=function(){};te=y("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var n=e.apply(null,arguments);return this>n?this:n});ie=y("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var n=e.apply(null,arguments);return n>this?this:n});du("Z",":");du("ZZ","");t("Z",pi);t("ZZ",pi);h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=ur(n)});re=/([\+\-]|\d\d)/gi;i.updateOffset=function(){};ue=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/;fe=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;ft.fn=ei.prototype;ee=tf(1,"add");oe=tf(-1,"subtract");i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";br=y("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)});r(0,["gg",2],0,function(){return this.weekYear()%100});r(0,["GG",2],0,function(){return this.isoWeekYear()%100});oi("gggg","weekYear");oi("ggggg","weekYear");oi("GGGG","isoWeekYear");oi("GGGGG","isoWeekYear");c("weekYear","gg");c("isoWeekYear","GG");t("G",yi);t("g",yi);t("GG",s,a);t("gg",s,a);t("GGGG",lr,cr);t("gggg",lr,cr);t("GGGGG",vi,li);t("ggggg",vi,li);gt(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=o(n)});gt(["gg","GG"],function(n,t,r,u){t[u]=i.parseTwoDigitYear(n)});r("Q",0,0,"quarter");c("quarter","Q");t("Q",kf);h("Q",function(n,t){t[k]=3*(o(n)-1)});r("D",["DD",2],"Do","date");c("date","D");t("D",s);t("DD",s,a);t("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient});h(["D","DD"],w);h("Do",function(n,t){t[w]=o(n.match(s)[0],10)});kr=at("Date",!0);r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");c("day","d");c("weekday","e");c("isoWeekday","E");t("d",s);t("e",s);t("E",s);t("dd",ii);t("ddd",ii);t("dddd",ii);gt(["dd","ddd","dddd"],function(n,t,i){var r=i._locale.weekdaysParse(n);null!=r?t.d=r:i._pf.invalidWeekday=n});gt(["d","e","E"],function(n,t,i,r){t[r]=o(n)});var gl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),na="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ta="Su_Mo_Tu_We_Th_Fr_Sa".split("_");r("H",["HH",2],0,"hour");r("h",["hh",2],0,function(){return this.hours()%12||12});sf("a",!0);sf("A",!1);c("hour","h");t("a",hf);t("A",hf);t("H",s);t("h",s);t("HH",s,a);t("hh",s,a);h(["H","HH"],l);h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[l]=o(n);i._pf.bigHour=!0});se=/[ap]\.?m?\.?/i;he=at("Hours",!0);r("m",["mm",2],0,"minute");c("minute","m");t("m",s);t("mm",s,a);h(["m","mm"],ht);ce=at("Minutes",!1);r("s",["ss",2],0,"second");c("second","s");t("s",s);t("ss",s,a);h(["s","ss"],ct);le=at("Seconds",!1);r("S",0,0,function(){return~~(this.millisecond()/100)});r(0,["SS",2],0,function(){return~~(this.millisecond()/10)});cf("SSS");cf("SSSS");c("millisecond","ms");t("S",ai,kf);t("SS",ai,a);t("SSS",ai,df);t("SSSS",/\d+/);h(["S","SS","SSS","SSSS"],function(n,t){t[lt]=o(1e3*("0."+n))});ae=at("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=kt.prototype;n.add=ee;n.calendar=ps;n.clone=ws;n.diff=nh;n.endOf=oh;n.format=rh;n.from=uh;n.fromNow=fh;n.get=hu;n.invalidAt=yh;n.isAfter=bs;n.isBefore=ks;n.isBetween=ds;n.isSame=gs;n.isValid=ah;n.lang=br;n.locale=ff;n.localeData=ef;n.max=ie;n.min=te;n.parsingFlags=vh;n.set=hu;n.startOf=eh;n.subtract=oe;n.toArray=lh;n.toDate=ch;n.toISOString=uf;n.toJSON=uf;n.toString=ih;n.unix=hh;n.valueOf=sh;n.year=wr;n.isLeapYear=oo;n.weekYear=ph;n.isoWeekYear=wh;n.quarter=n.quarters=dh;n.month=au;n.daysInMonth=ro;n.week=n.weeks=lo;n.isoWeek=n.isoWeeks=ao;n.weeksInYear=kh;n.isoWeeksInYear=bh;n.date=kr;n.day=n.days=uc;n.weekday=fc;n.isoWeekday=ec;n.dayOfYear=yo;n.hour=n.hours=he;n.minute=n.minutes=ce;n.second=n.seconds=le;n.millisecond=n.milliseconds=ae;n.utcOffset=us;n.utc=es;n.local=os;n.parseZone=ss;n.hasAlignedHourOffset=hs;n.isDST=cs;n.isDSTShifted=ls;n.isLocal=as;n.isUtcOffset=vs;n.isUtc=gu;n.isUTC=gu;n.zoneAbbr=hc;n.zoneName=cc;n.dates=y("dates accessor is deprecated. Use date instead.",kr);n.months=y("months accessor is deprecated. Use month instead",au);n.years=y("years accessor is deprecated. Use year instead",wr);n.zone=y("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",fs);var ia=n,u=ru.prototype;u._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};u.calendar=vc;u._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"};u.longDateFormat=yc;u._invalidDate="Invalid date";u.invalidDate=pc;u._ordinal="%d";u.ordinal=wc;u._ordinalParse=/\d{1,2}/;u.preparse=lf;u.postformat=lf;u._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"};u.relativeTime=bc;u.pastFuture=kc;u.set=dc;u.months=no;u._months=wl;u.monthsShort=to;u._monthsShort=bl;u.monthsParse=io;u.week=so;u._week=ne;u.firstDayOfYear=co;u.firstDayOfWeek=ho;u.weekdays=nc;u._weekdays=gl;u.weekdaysMin=ic;u._weekdaysMin=ta;u.weekdaysShort=tc;u._weekdaysShort=na;u.weekdaysParse=rc;u.isPM=oc;u._meridiemParse=se;u.meridiem=sc;dt("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=1===o(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}});i.lang=y("moment.lang is deprecated. Use moment.locale instead.",dt);i.langData=y("moment.langData is deprecated. Use moment.localeData instead.",rt);var d=Math.abs,ra=tt("ms"),ua=tt("s"),fa=tt("m"),ea=tt("h"),oa=tt("d"),sa=tt("w"),ha=tt("M"),ca=tt("y"),la=ot("milliseconds"),aa=ot("seconds"),va=ot("minutes"),ya=ot("hours"),pa=ot("days"),wa=ot("months"),ba=ot("years"),pt=Math.round,it={s:45,m:45,h:22,d:26,M:11},wt=Math.abs,f=ei.prototype;return f.abs=ul,f.add=fl,f.subtract=el,f.as=sl,f.asMilliseconds=ra,f.asSeconds=ua,f.asMinutes=fa,f.asHours=ea,f.asDays=oa,f.asWeeks=sa,f.asMonths=ha,f.asYears=ca,f.valueOf=hl,f._bubble=ol,f.get=cl,f.milliseconds=la,f.seconds=aa,f.minutes=va,f.hours=ya,f.days=pa,f.weeks=ll,f.months=wa,f.years=ba,f.humanize=pl,f.toISOString=si,f.toString=si,f.toJSON=si,f.locale=ff,f.localeData=ef,f.toIsoString=y("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",si),f.lang=br,r("X",0,0,"unix"),r("x",0,0,"valueOf"),t("x",yi),t("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))}),h("x",function(n,t,i){i._d=new Date(o(n))}),i.version="2.10.2",ve(e),i.fn=ia,i.min=is,i.max=rs,i.utc=bt,i.unix=lc,i.months=gc,i.isDate=wi,i.locale=dt,i.invalid=nu,i.duration=ft,i.isMoment=nt,i.weekdays=tl,i.parseZone=ac,i.localeData=rt,i.isDuration=rr,i.monthsShort=nl,i.weekdaysMin=rl,i.defineLocale=eu,i.weekdaysShort=il,i.normalizeUnits=v,i.relativeTimeThreshold=yl,i});!function(n){"use strict";function t(n){return(n||"").toLowerCase()}var i="2.1.5";n.fn.cycle=function(i){var r;return 0!==this.length||n.isReady?this.each(function(){var f,r,h,o,u=n(this),s=n.fn.cycle.log,e;if(!u.data("cycle.opts")){(u.data("cycle-log")===!1||i&&i.log===!1||r&&r.log===!1)&&(s=n.noop);s("--c2 init--");f=u.data();for(e in f)f.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(o=f[e],h=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),s(h+":",o,"("+typeof o+")"),f[h]=o);r=n.extend({},n.fn.cycle.defaults,f,i||{});r.timeoutId=0;r.paused=r.paused||!1;r.container=u;r._maxZ=r.maxZ;r.API=n.extend({_container:u},n.fn.cycle.API);r.API.log=s;r.API.trigger=function(n,t){return r.container.trigger(n,t),r.API};u.data("cycle.opts",r);u.data("cycle.API",r.API);r.API.trigger("cycle-bootstrap",[r,r.API]);r.API.addInitialSlides();r.API.preInitSlideshow();r.slides.length&&r.API.initSlideshow()}}):(r={s:this.selector,c:this.context},n.fn.cycle.log("requeuing slideshow (dom not ready)"),n(function(){n(r.s,r.c).cycle(i)}),this)};n.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0;t.slides=n();i=i.jquery?i:t.container.find(i);t.random&&i.sort(function(){return Math.random()-.5});t.API.add(i)},preInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-pre-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.preInit)&&i.preInit(t);t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-post-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var i,t=this.opts(),r=t.container;t.API.calcFirstSlide();"static"==t.container.css("position")&&t.container.css("position","relative");n(t.slides[t.currSlide]).css({opacity:1,display:"block",visibility:"visible"});t.API.stackSlides(t.slides[t.currSlide],t.slides[t.nextSlide],!t.reverse);t.pauseOnHover&&(t.pauseOnHover!==!0&&(r=n(t.pauseOnHover)),r.hover(function(){t.API.pause(!0)},function(){t.API.resume(!0)}));t.timeout&&(i=t.API.getSlideOpts(t.currSlide),t.API.queueTransition(i,i.timeout+t.delay));t._initialized=!0;t.API.updateView(!0);t.API.trigger("cycle-initialized",[t]);t.API.postInitSlideshow()},pause:function(t){var i=this.opts(),r=i.API.getSlideOpts(),u=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0;u||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),r.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=n.now()-i._lastQueue,(i._remainingTimeout<0||isNaN(i._remainingTimeout))&&(i._remainingTimeout=void 0)))},resume:function(n){var t=this.opts(),i=!t.hoverPaused&&!t.paused;n?t.hoverPaused=!1:t.paused=!1;i||(t.container.removeClass("cycle-paused"),0===t.slides.filter(":animated").length&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var u,r=this.opts(),e=r.slideCount,f=!1;"string"==n.type(t)&&(t=n.trim(t));n(t).each(function(){var u,t=n(this);i?r.container.prepend(t):r.container.append(t);r.slideCount++;u=r.API.buildSlideOpts(t);r.slides=i?n(t).add(r.slides):r.slides.add(t);r.API.initSlide(u,t,--r._maxZ);t.data("cycle.opts",u);r.API.trigger("cycle-slide-added",[r,u,t])});r.API.updateView(!0);f=r._preInitialized&&2>e&&r.slideCount>=1;f&&(r._initialized?r.timeout&&(u=r.slides.length,r.nextSlide=r.reverse?u-1:1,r.timeoutId||r.API.queueTransition(r)):r.API.initSlideshow())},calcFirstSlide:function(){var t,n=this.opts();t=parseInt(n.startingSlide||0,10);(t>=n.slides.length||0>t)&&(t=0);n.currSlide=t;n.reverse?(n.nextSlide=t-1,n.nextSlide<0&&(n.nextSlide=n.slides.length-1)):(n.nextSlide=t+1,n.nextSlide==n.slides.length&&(n.nextSlide=0))},calcNextSlide:function(){var t,n=this.opts();n.reverse?(t=n.nextSlide-1<0,n.nextSlide=t?n.slideCount-1:n.nextSlide-1,n.currSlide=t?0:n.nextSlide+1):(t=n.nextSlide+1==n.slides.length,n.nextSlide=t?0:n.nextSlide+1,n.currSlide=t?n.slides.length-1:n.nextSlide-1)},calcTx:function(t,i){var u,r=t;return r._tempFx?u=n.fn.cycle.transitions[r._tempFx]:i&&r.manualFx&&(u=n.fn.cycle.transitions[r.manualFx]),u||(u=n.fn.cycle.transitions[r.fx]),r._tempFx=null,this.opts()._tempFx=null,u||(u=n.fn.cycle.transitions.fade,r.API.log('Transition "'+r.fx+'" not found.  Using fade.')),u},prepareTx:function(n,t){var o,f,e,r,u,i=this.opts();return i.slideCount<2?void(i.timeoutId=0):(!n||i.busy&&!i.manualTrump||(i.API.stopTransition(),i.busy=!1,clearTimeout(i.timeoutId),i.timeoutId=0),void(i.busy||(0!==i.timeoutId||n)&&(f=i.slides[i.currSlide],e=i.slides[i.nextSlide],r=i.API.getSlideOpts(i.nextSlide),u=i.API.calcTx(r,n),i._tx=u,n&&void 0!==r.manualSpeed&&(r.speed=r.manualSpeed),i.nextSlide!=i.currSlide&&(n||!i.paused&&!i.hoverPaused&&i.timeout)?(i.API.trigger("cycle-before",[r,f,e,t]),u.before&&u.before(r,f,e,t),o=function(){i.busy=!1;i.container.data("cycle.opts")&&(u.after&&u.after(r,f,e,t),i.API.trigger("cycle-after",[r,f,e,t]),i.API.queueTransition(r),i.API.updateView(!0))},i.busy=!0,u.transition?u.transition(r,f,e,t,o):i.API.doTransition(r,f,e,t,o),i.API.calcNextSlide(),i.API.updateView()):i.API.queueTransition(r))))},doTransition:function(t,i,r,u,f){var e=t,o=n(i),s=n(r),h=function(){s.animate(e.animIn||{opacity:1},e.speed,e.easeIn||e.easing,f)};s.css(e.cssBefore||{});o.animate(e.animOut||{},e.speed,e.easeOut||e.easing,function(){o.css(e.cssAfter||{});e.sync||h()});e.sync&&h()},queueTransition:function(t,i){var r=this.opts(),u=void 0!==i?i:t.timeout;return 0===r.nextSlide&&0==--r.loop?(r.API.log("terminating; loop=0"),r.timeout=0,u?setTimeout(function(){r.API.trigger("cycle-finished",[r])},u):r.API.trigger("cycle-finished",[r]),void(r.nextSlide=r.currSlide)):void 0!==r.continueAuto&&(r.continueAuto===!1||n.isFunction(r.continueAuto)&&r.continueAuto()===!1)?(r.API.log("terminating automatic transitions"),r.timeout=0,void(r.timeoutId&&clearTimeout(r.timeoutId))):void(u&&(r._lastQueue=n.now(),void 0===i&&(r._remainingTimeout=t.timeout),r.paused||r.hoverPaused||(r.timeoutId=setTimeout(function(){r.API.prepareTx(!1,!r.reverse)},u))))},stopTransition:function(){var n=this.opts();n.slides.filter(":animated").length&&(n.slides.stop(!1,!0),n.API.trigger("cycle-transition-stopped",[n]));n._tx&&n._tx.stopTransition&&n._tx.stopTransition(n)},advanceSlide:function(n){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+n,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,n>=0),!1},buildSlideOpts:function(i){var f,o,e=this.opts(),r=i.data()||{},u;for(u in r)r.hasOwnProperty(u)&&/^cycle[A-Z]+/.test(u)&&(f=r[u],o=u.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),e.API.log("["+(e.slideCount-1)+"]",o+":",f,"("+typeof f+")"),r[o]=f);r=n.extend({},n.fn.cycle.defaults,e,r);r.slideNum=e.slideCount;try{delete r.API;delete r.slideCount;delete r.currSlide;delete r.nextSlide;delete r.slides}catch(s){}return r},getSlideOpts:function(t){var i=this.opts(),r,u;return void 0===t&&(t=i.currSlide),r=i.slides[t],u=n(r).data("cycle.opts"),n.extend({},i,u)},initSlide:function(t,i,r){var u=this.opts();i.css(t.slideCss||{});r>0&&i.css("zIndex",r);isNaN(t.speed)&&(t.speed=n.fx.speeds[t.speed]||n.fx.speeds._default);t.sync||(t.speed=t.speed/2);i.addClass(u.slideClass)},updateView:function(n,t){var i=this.opts(),r,u;i._initialized&&(r=i.API.getSlideOpts(),u=i.slides[i.currSlide],!n&&t!==!0&&(i.API.trigger("cycle-update-view-before",[i,r,u]),i.updateView<0)||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),n&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),0===i.updateView&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,r,u,n])},r.speed/(i.sync?2:1)),0!==i.updateView&&i.API.trigger("cycle-update-view",[i,r,u,n]),n&&i.API.trigger("cycle-update-view-after",[i,r,u])))},getComponent:function(t){var r=this.opts(),i=r[t];return"string"==typeof i?/^\s*[\>|\+|~]/.test(i)?r.container.find(i):n(i):i.jquery?i:n(i)},stackSlides:function(t,i,r){var u=this.opts(),f,e,o;if(t||(t=u.slides[u.currSlide],i=u.slides[u.nextSlide],r=!u.reverse),n(t).css("zIndex",u.maxZ),e=u.maxZ-2,o=u.slideCount,r){for(f=u.currSlide+1;o>f;f++)n(u.slides[f]).css("zIndex",e--);for(f=0;f<u.currSlide;f++)n(u.slides[f]).css("zIndex",e--)}else{for(f=u.currSlide-1;f>=0;f--)n(u.slides[f]).css("zIndex",e--);for(f=o-1;f>u.currSlide;f--)n(u.slides[f]).css("zIndex",e--)}n(i).css("zIndex",u.maxZ-1)},getSlideIndex:function(n){return this.opts().slides.index(n)}};n.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))};n.fn.cycle.version=function(){return"Cycle2: "+i};n.fn.cycle.transitions={custom:{},none:{before:function(n,t,i,r){n.API.stackSlides(i,t,r);n.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:0,visibility:"visible",display:"block"});t.animIn={opacity:1};t.animOut={opacity:0}}},fadeout:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:1,visibility:"visible",display:"block"});t.animOut={opacity:0}}},scrollHorz:{before:function(n,t,i,r){n.API.stackSlides(t,i,r);var u=n.container.css("overflow","hidden").width();n.cssBefore={left:r?u:-u,top:0,opacity:1,visibility:"visible",display:"block"};n.cssAfter={zIndex:n._maxZ-2,left:0};n.animIn={left:0};n.animOut={left:r?-u:u}}}};n.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0};n(document).ready(function(){n(n.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(n){"use strict";function t(t,i){var f,o,e,r=i.autoHeight;if("container"==r)o=n(i.slides[i.currSlide]).outerHeight(),i.container.height(o);else if(i._autoHeightRatio)i.container.height(i.container.width()/i._autoHeightRatio);else if("calc"===r||"number"==n.type(r)&&r>=0){if(e="calc"===r?u(t,i):r>=i.slides.length?0:r,e==i._sentinelIndex)return;i._sentinelIndex=e;i._sentinel&&i._sentinel.remove();f=n(i.slides[e].cloneNode(!0));f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel");f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(i.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active");f.find("*").css("visibility","hidden");i._sentinel=f}}function u(t,i){var r=0,u=-1;return i.slides.each(function(t){var i=n(this).height();i>u&&(u=i,r=t)}),r}function i(t,i,r,u){var f=n(u).outerHeight();i.container.animate({height:f},i.autoHeightSpeed,i.autoHeightEasing)}function r(u,f){f._autoHeightOnResize&&(n(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null);f.container.off("cycle-slide-added cycle-slide-removed",t);f.container.off("cycle-destroyed",r);f.container.off("cycle-before",i);f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}n.extend(n.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null});n(document).on("cycle-initialized",function(u,f){function h(){t(u,f)}var e,o=f.autoHeight,s=n.type(o),c=null;("string"===s||"number"===s)&&(f.container.on("cycle-slide-added cycle-slide-removed",t),f.container.on("cycle-destroyed",r),"container"==o?f.container.on("cycle-before",i):"string"===s&&/\d+\:\d+/.test(o)&&(e=o.match(/(\d+)\:(\d+)/),e=e[1]/e[2],f._autoHeightRatio=e),"number"!==s&&(f._autoHeightOnResize=function(){clearTimeout(c);c=setTimeout(h,50)},n(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(h,30))})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}<\/div><div>{{desc}}<\/div>",captionModule:"caption"});n(document).on("cycle-update-view",function(t,i,r,u){"caption"===i.captionModule&&n.each(["caption","overlay"],function(){var t=this,f=r[t+"Template"],n=i.API.getComponent(t);n.length&&f?(n.html(i.API.tmpl(f,r,i,u)),n.show()):n.hide()})});n(document).on("cycle-destroyed",function(t,i){var r;n.each(["caption","overlay"],function(){var n=this,t=i[n+"Template"];i[n]&&t&&(r=i.API.getComponent("caption"),r.empty())})})}(jQuery),function(n){"use strict";var t=n.fn.cycle;n.fn.cycle=function(i){var r,f,u,e=n.makeArray(arguments);return"number"==n.type(i)?this.cycle("goto",i):"string"==n.type(i)?this.each(function(){var o;return r=i,u=n(this).data("cycle.opts"),void 0===u?void t.log('slideshow must be initialized before sending commands; "'+r+'" ignored'):(r="goto"==r?"jump":r,f=u.API[r],n.isFunction(f)?(o=n.makeArray(e),o.shift(),f.apply(u.API,o)):void t.log("unknown command: ",r))}):t.apply(this,arguments)};n.extend(n.fn.cycle,t);n.extend(t.API,{next:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&(t=n.reverse?-1:1,n.allowWrap===!1&&n.currSlide+t>=n.slideCount||(n.API.advanceSlide(t),n.API.trigger("cycle-next",[n]).log("cycle-next")))},prev:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&(t=n.reverse?1:-1,n.allowWrap===!1&&n.currSlide+t<0||(n.API.advanceSlide(t),n.API.trigger("cycle-prev",[n]).log("cycle-prev")))},destroy:function(){this.stop();var t=this.opts(),i=n.isFunction(n._data)?n._data:n.noop;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stop();t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed");t.container.removeData();i(t.container[0],"parsedAttrs",!1);t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass));t.slides.each(function(){n(this).removeData();i(this,"parsedAttrs",!1)})},jump:function(n,t){var u,i=this.opts(),r;if(!i.busy||i.manualTrump){if(r=parseInt(n,10),isNaN(r)||0>r||r>=i.slides.length)return void i.API.log("goto: invalid slide index: "+r);if(r==i.currSlide)return void i.API.log("goto: skipping, already on slide",r);i.nextSlide=r;clearTimeout(i.timeoutId);i.timeoutId=0;i.API.log("goto: ",r," (zero-index)");u=i.currSlide<i.nextSlide;i._tempFx=t;i.API.prepareTx(!0,u)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stopTransition();t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.off("mouseenter mouseleave"));t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},reinit:function(){var n=this.opts();n.API.destroy();n.container.cycle()},remove:function(t){for(var r,u,i=this.opts(),e=[],o=1,f=0;f<i.slides.length;f++)r=i.slides[f],f==t?u=r:(e.push(r),n(r).data("cycle.opts").slideNum=o,o++);u&&(i.slides=n(e),i.slideCount--,n(u).remove(),t==i.currSlide?i.API.advanceSlide(1):t<i.currSlide?i.currSlide--:i.currSlide++,i.API.trigger("cycle-slide-removed",[i,t,u]).log("cycle-slide-removed"),i.API.updateView())}});n(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=n(this),r=i.data("cycle-cmd"),u=i.data("cycle-context")||".cycle-slideshow";n(u).cycle(r,i.data("cycle-arg"))})}(jQuery),function(n){"use strict";function t(t,i){var r;return t._hashFence?void(t._hashFence=!1):(r=window.location.hash.substring(1),void t.slides.each(function(u){if(n(this).data("cycle-hash")==r){if(i===!0)t.startingSlide=u;else{var f=t.currSlide<u;t.nextSlide=u;t.API.prepareTx(!0,f)}return!1}}))}n(document).on("cycle-pre-initialize",function(i,r){t(r,!0);r._onHashChange=function(){t(r,!1)};n(window).on("hashchange",r._onHashChange)});n(document).on("cycle-update-view",function(n,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)});n(document).on("cycle-destroyed",function(t,i){i._onHashChange&&n(window).off("hashchange",i._onHashChange)})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{loader:!1});n(document).on("cycle-bootstrap",function(t,i){function u(t,u){function s(t){var o;"wait"==i.loader?(e.push(t),0===f&&(e.sort(h),r.apply(i.API,[e,u]),i.container.removeClass("cycle-loading"))):(o=n(i.slides[i.currSlide]),r.apply(i.API,[t,u]),o.show(),i.container.removeClass("cycle-loading"))}function h(n,t){return n.data("index")-t.data("index")}var e=[],o,f;if("string"==n.type(t))t=n.trim(t);else if("array"===n.type(t))for(o=0;o<t.length;o++)t[o]=n(t[o])[0];t=n(t);f=t.length;f&&(t.css("visibility","hidden").appendTo("body").each(function(t){function l(){0==--c&&(--f,s(o))}var c=0,o=n(this),h=o.is("img")?o:o.find("img");return o.data("index",t),h=h.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),h.length?(c=h.length,void h.each(function(){this.complete?l():n(this).load(function(){l()}).on("error",function(){0==--c&&(i.API.log("slide skipped; img not loaded:",this.src),0==--f&&"wait"==i.loader&&r.apply(i.API,[e,u]))})})):(--f,void e.push(o))}),f&&i.container.addClass("cycle-loading"))}var r;i.loader&&(r=i.API.add,i.API.add=u)})}(jQuery),function(n){"use strict";function t(t,i,r){var u,f=t.API.getComponent("pager");f.each(function(){var f=n(this),e;i.pagerTemplate?(e=t.API.tmpl(i.pagerTemplate,i,t,r[0]),u=n(e).appendTo(f)):u=f.children().eq(t.slideCount-1);u.on(t.pagerEvent,function(n){t.pagerEventBubble||n.preventDefault();t.API.page(f,n.currentTarget)})})}function i(n,t){var i=this.opts();if(!i.busy||i.manualTrump){var u=n.children().index(t),r=u,f=i.currSlide<r;i.currSlide!=r&&(i.nextSlide=r,i._tempFx=i.pagerFx,i.API.prepareTx(!0,f),i.API.trigger("cycle-pager-activated",[i,n,t]))}}n.extend(n.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>&bull;<\/span>"});n(document).on("cycle-bootstrap",function(n,i,r){r.buildPagerLink=t});n(document).on("cycle-slide-added",function(n,t,r,u){t.pager&&(t.API.buildPagerLink(t,r,u),t.API.page=i)});n(document).on("cycle-slide-removed",function(t,i,r){if(i.pager){var u=i.API.getComponent("pager");u.each(function(){var t=n(this);n(t.children()[r]).remove()})}});n(document).on("cycle-update-view",function(t,i){var r;i.pager&&(r=i.API.getComponent("pager"),r.each(function(){n(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))});n(document).on("cycle-destroyed",function(n,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1});n(document).on("cycle-initialized",function(n,t){if(t.API.getComponent("next").on(t.nextEvent,function(n){n.preventDefault();t.API.next()}),t.API.getComponent("prev").on(t.prevEvent,function(n){n.preventDefault();t.API.prev()}),t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",r=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t._tempFx=t.swipeFx;t.API.next()});t.container.on(r,function(){t._tempFx=t.swipeFx;t.API.prev()})}});n(document).on("cycle-update-view",function(n,t){if(!t.allowWrap){var i=t.disabledClass,r=t.API.getComponent("next"),u=t.API.getComponent("prev"),f=t._prevBoundry||0,e=void 0!==t._nextBoundry?t._nextBoundry:t.slideCount-1;t.currSlide==e?r.addClass(i).prop("disabled",!0):r.removeClass(i).prop("disabled",!1);t.currSlide===f?u.addClass(i).prop("disabled",!0):u.removeClass(i).prop("disabled",!1)}});n(document).on("cycle-destroyed",function(n,t){t.API.getComponent("prev").off(t.nextEvent);t.API.getComponent("next").off(t.prevEvent);t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{progressive:!1});n(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var r,f,u=i.API,e=u.next,s=u.prev,o=u.prepareTx,h=n.type(i.progressive);if("array"==h)r=i.progressive;else if(n.isFunction(i.progressive))r=i.progressive(i);else if("string"==h){if(f=n(i.progressive),r=n.trim(f.html()),!r)return;if(/^(\[)/.test(r))try{r=n.parseJSON(r)}catch(c){return void u.log("error parsing progressive slides",c)}else r=r.split(new RegExp(f.data("cycle-split")||"\n")),r[r.length-1]||r.pop()}o&&(u.prepareTx=function(n,t){var f,u;return n||0===r.length?void o.apply(i.API,[n,t]):void(t&&i.currSlide==i.slideCount-1?(u=r[0],r=r.slice(1),i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.API.advanceSlide(1)},50)}),i.API.add(u)):t||0!==i.currSlide?o.apply(i.API,[n,t]):(f=r.length-1,u=r[f],r=r.slice(0,f),i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.currSlide=1;t.API.advanceSlide(-1)},50)}),i.API.add(u,!0)))});e&&(u.next=function(){var n=this.opts(),t;r.length&&n.currSlide==n.slideCount-1?(t=r[0],r=r.slice(1),n.container.one("cycle-slide-added",function(n,t){e.apply(t.API);t.container.removeClass("cycle-loading")}),n.container.addClass("cycle-loading"),n.API.add(t)):e.apply(n.API)});s&&(u.prev=function(){var n=this.opts(),t,i;r.length&&0===n.currSlide?(t=r.length-1,i=r[t],r=r.slice(0,t),n.container.one("cycle-slide-added",function(n,t){t.currSlide=1;t.API.advanceSlide(-1);t.container.removeClass("cycle-loading")}),n.container.addClass("cycle-loading"),n.API.add(i,!0)):s.apply(n.API)})}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"});n.extend(n.fn.cycle.API,{tmpl:function(t,i){var u=new RegExp(i.tmplRegex||n.fn.cycle.defaults.tmplRegex,"g"),r=n.makeArray(arguments);return r.shift(),t.replace(u,function(t,i){for(var o,f,u,s=i.split("."),e=0;e<r.length;e++)if(f=r[e]){if(s.length>1)for(u=f,o=0;o<s.length;o++)f=u,u=u[s[o]]||i;else u=f[i];if(n.isFunction(u))return u.apply(f,r);if(void 0!==u&&null!==u&&u!=i)return u}return i})}})}(jQuery);!function(n,t){"object"==typeof exports&&exports?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.Mustache={})}(this,function(n){function u(n){return"function"==typeof n}function e(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function h(n,t){return w.call(n,t)}function c(n){return!h(b,n)}function l(n){return String(n).replace(/[&<>"'\/]/g,function(n){return k[n]})}function a(t,i){function lt(){if(et&&!k)for(;b.length;)delete w[b.pop()];else b=[];et=!1;k=!1}function st(n){if("string"==typeof n&&(n=n.split(g,2)),!o(n)||2!==n.length)throw new Error("Invalid tags: "+n);ut=new RegExp(e(n[0])+"\\s*");p=new RegExp("\\s*"+e(n[1]));ht=new RegExp("\\s*"+e("}"+n[1]))}var l,f,h,it,ot,a,u,rt,ct;if(!t)return[];var ut,p,ht,ft=[],w=[],b=[],et=!1,k=!1;for(st(i||n.tags),u=new r(t);!u.eos();){if(l=u.pos,h=u.scanUntil(ut))for(rt=0,ct=h.length;rt<ct;++rt)it=h.charAt(rt),c(it)?b.push(w.length):k=!0,w.push(["text",it,l,l+1]),l+=1,"\n"===it&&lt();if(!u.scan(ut))break;if(et=!0,f=u.scan(tt)||"name",u.scan(d),"="===f?(h=u.scanUntil(s),u.scan(s),u.scanUntil(p)):"{"===f?(h=u.scanUntil(ht),u.scan(nt),u.scanUntil(p),f="&"):h=u.scanUntil(p),!u.scan(p))throw new Error("Unclosed tag at "+u.pos);if(ot=[f,h,l,u.pos],w.push(ot),"#"===f||"^"===f)ft.push(ot);else if("/"===f){if(a=ft.pop(),!a)throw new Error('Unopened section "'+h+'" at '+l);if(a[1]!==h)throw new Error('Unclosed section "'+a[1]+'" at '+l);}else"name"===f||"{"===f||"&"===f?k=!0:"="===f&&st(h)}if(a=ft.pop())throw new Error('Unclosed section "'+a[1]+'" at '+u.pos);return y(v(w))}function v(n){for(var t,i,u=[],r=0,f=n.length;r<f;++r)t=n[r],t&&("text"===t[0]&&i&&"text"===i[0]?(i[1]+=t[1],i[3]=t[3]):(u.push(t),i=t));return u}function y(n){for(var t,e,u=[],r=u,i=[],f=0,o=n.length;f<o;++f)switch(t=n[f],t[0]){case"#":case"^":r.push(t);i.push(t);r=t[4]=[];break;case"/":e=i.pop();e[5]=t[2];r=i.length>0?i[i.length-1][4]:u;break;default:r.push(t)}return u}function r(n){this.string=n;this.tail=n;this.pos=0}function t(n,t){this.view=null==n?{}:n;this.cache={".":this.view};this.parent=t}function i(){this.cache={}}var p=Object.prototype.toString,o=Array.isArray||function(n){return"[object Array]"===p.call(n)},w=RegExp.prototype.test,b=/\S/,k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},d=/\s*/,g=/\s+/,s=/\s*=/,nt=/\s*\}/,tt=/#|\^|\/|>|\{|&|=|!/,f;r.prototype.eos=function(){return""===this.tail};r.prototype.scan=function(n){var i=this.tail.match(n),t;return!i||0!==i.index?"":(t=i[0],this.tail=this.tail.substring(t.length),this.pos+=t.length,t)};r.prototype.scanUntil=function(n){var t,i=this.tail.search(n);switch(i){case-1:t=this.tail;this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,i);this.tail=this.tail.substring(i)}return this.pos+=t.length,t};t.prototype.push=function(n){return new t(n,this)};t.prototype.lookup=function(n){var t,r=this.cache,f,e,i;if(n in r)t=r[n];else{for(i=this;i;){if(n.indexOf(".")>0)for(t=i.view,f=n.split("."),e=0;null!=t&&e<f.length;)t=t[f[e++]];else t=i.view[n];if(null!=t)break;i=i.parent}r[n]=t}return u(t)&&(t=t.call(this.view)),t};i.prototype.clearCache=function(){this.cache={}};i.prototype.parse=function(n,t){var r=this.cache,i=r[n];return null==i&&(i=r[n]=a(n,t)),i};i.prototype.render=function(n,i,r){var u=this.parse(n),f=i instanceof t?i:new t(i);return this.renderTokens(u,f,r,n)};i.prototype.renderTokens=function(t,i,r,f){function v(n){return y.render(n,i,r)}for(var c,a,s,e,h="",y=this,l=0,p=t.length;l<p;++l)switch(s=t[l],s[0]){case"#":if(e=i.lookup(s[1]),!e)continue;if(o(e))for(c=0,a=e.length;c<a;++c)h+=this.renderTokens(s[4],i.push(e[c]),r,f);else if("object"==typeof e||"string"==typeof e)h+=this.renderTokens(s[4],i.push(e),r,f);else if(u(e)){if("string"!=typeof f)throw new Error("Cannot use higher-order sections without the original template");e=e.call(i.view,f.slice(s[3],s[5]),v);null!=e&&(h+=e)}else h+=this.renderTokens(s[4],i,r,f);break;case"^":e=i.lookup(s[1]);(!e||o(e)&&0===e.length)&&(h+=this.renderTokens(s[4],i,r,f));break;case">":if(!r)continue;e=u(r)?r(s[1]):r[s[1]];null!=e&&(h+=this.renderTokens(this.parse(e),i,r,e));break;case"&":e=i.lookup(s[1]);null!=e&&(h+=e);break;case"name":e=i.lookup(s[1]);null!=e&&(h+=n.escape(e));break;case"text":h+=s[1]}return h};n.name="mustache.js";n.version="0.8.1";n.tags=["{{","}}"];f=new i;n.clearCache=function(){return f.clearCache()};n.parse=function(n,t){return f.parse(n,t)};n.render=function(n,t,i){return f.render(n,t,i)};n.to_html=function(t,i,r,f){var e=n.render(t,i,r);return u(f)?void f(e):e};n.escape=l;n.Scanner=r;n.Context=t;n.Writer=i}),function(n,t,i){n.fn.backstretch=function(r,u){return(r===i||0===r.length)&&n.error("No images were supplied for Backstretch"),0===n(t).scrollTop()&&t.scrollTo(0,0),this.each(function(){var i=n(this),t=i.data("backstretch");if(t){if("string"==typeof r&&"function"==typeof t[r]){t[r](u);return}u=n.extend(t.options,u);t.destroy(!0)}t=new c(this,r,u);i.data("backstretch",t)})};n.backstretch=function(t,i){return n("body").backstretch(t,i).data("backstretch")};n.expr[":"].backstretch=function(t){return n(t).data("backstretch")!==i};n.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var l={left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},a={position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999},c=function(i,r,u){this.options=n.extend({},n.fn.backstretch.defaults,u||{});this.images=n.isArray(r)?r:[r];n.each(this.images,function(){n("<img />")[0].src=this});this.isBody=i===document.body;this.$container=n(i);this.$root=this.isBody?o?n(t):n(document):this.$container;i=this.$container.children(".backstretch").first();this.$wrap=i.length?i:n('<div class="backstretch"><\/div>').css(l).appendTo(this.$container);this.isBody||(i=this.$container.css("position"),r=this.$container.css("zIndex"),this.$container.css({position:"static"===i?"relative":i,zIndex:"auto"===r?0:r,background:"none"}),this.$wrap.css({zIndex:-999998}));this.$wrap.css({position:this.isBody&&o?"fixed":"absolute"});this.index=0;this.show(this.index);n(t).on("resize.backstretch",n.proxy(this.resize,this)).on("orientationchange.backstretch",n.proxy(function(){this.isBody&&0===t.pageYOffset&&(t.scrollTo(0,1),this.resize())},this))};c.prototype={resize:function(){try{var f={left:0,top:0},e=this.isBody?this.$root.width():this.$root.innerWidth(),i=e,r=this.isBody?t.innerHeight?t.innerHeight:this.$root.height():this.$root.innerHeight(),n=i/this.$img.data("ratio"),u;n>=r?(u=(n-r)/2,this.options.centeredY&&(f.top="-"+u+"px")):(n=r,i=n*this.$img.data("ratio"),u=(i-e)/2,this.options.centeredX&&(f.left="-"+u+"px"));this.$wrap.css({width:e,height:r}).find("img:not(.deleteable)").css({width:i,height:n}).css(f)}catch(o){}return this},show:function(t){if(!(Math.abs(t)>this.images.length-1)){var i=this,u=i.$wrap.find("img").addClass("deleteable"),r={relatedTarget:i.$container[0]};return i.$container.trigger(n.Event("backstretch.before",r),[i,t]),this.index=t,clearInterval(i.interval),i.$img=n("<img />").css(a).bind("load",function(f){var e=this.width||n(f.target).width();f=this.height||n(f.target).height();n(this).data("ratio",e/f);n(this).fadeIn(i.options.speed||i.options.fade,function(){u.remove();i.paused||i.cycle();n(["after","show"]).each(function(){i.$container.trigger(n.Event("backstretch."+this,r),[i,t])})});i.resize()}).appendTo(i.$wrap),i.$img.attr("src",i.images[t]),i}},next:function(){return this.show(this.index<this.images.length-1?this.index+1:0)},prev:function(){return this.show(0===this.index?this.images.length-1:this.index-1)},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this.next(),this},cycle:function(){return 1<this.images.length&&(clearInterval(this.interval),this.interval=setInterval(n.proxy(function(){this.paused||this.next()},this),this.options.duration)),this},destroy:function(i){n(t).off("resize.backstretch orientationchange.backstretch");clearInterval(this.interval);i||this.$wrap.remove();this.$container.removeData("backstretch")}};var o,u=navigator.userAgent,s=navigator.platform,r=u.match(/AppleWebKit\/([0-9]+)/),r=!!r&&r[1],f=u.match(/Fennec\/([0-9]+)/),f=!!f&&f[1],h=u.match(/Opera Mobi\/([0-9]+)/),v=!!h&&h[1],e=u.match(/MSIE ([0-9]+)/),e=!!e&&e[1];o=!((-1<s.indexOf("iPhone")||-1<s.indexOf("iPad")||-1<s.indexOf("iPod"))&&r&&534>r||t.operamini&&"[object OperaMini]"==={}.toString.call(t.operamini)||h&&7458>v||-1<u.indexOf("Android")&&r&&533>r||f&&6>f||"palmGetResource"in t&&r&&534>r||-1<u.indexOf("MeeGo")&&-1<u.indexOf("NokiaBrowser/8.5.0")||e&&6>=e)}(jQuery,window),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){var t=navigator.userAgent,u=/iphone/i.test(t),f=/chrome/i.test(t),i=/android/i.test(t),r;n.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"};n.fn.extend({caret:function(n,t){var i;if(this.length!==0&&!this.is(":hidden")&&this.get(0)===document.activeElement)return typeof n=="number"?(t=typeof t=="number"?t:n,this.each(function(){this.setSelectionRange?this.setSelectionRange(n,t):this.createTextRange&&(i=this.createTextRange(),i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",n),i.select())})):(this[0].setSelectionRange?(n=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),n=0-i.duplicate().moveStart("character",-1e5),t=n+i.text.length),{begin:n,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(t,e){var p,l,o,h,c,v,s,a,y;return!t&&this.length>0?(p=n(this[0]),y=p.data(n.mask.dataName),y?y():undefined):(e=n.extend({autoclear:n.mask.autoclear,placeholder:n.mask.placeholder,completed:null},e),l=n.mask.definitions,o=[],h=s=t.length,c=null,t=String(t),n.each(t.split(""),function(n,t){t=="?"?(s--,h=n):l[t]?(o.push(new RegExp(l[t])),c===null&&(c=o.length-1),n<h&&(v=o.length-1)):o.push(null)}),this.trigger("unmask").each(function(){function g(){if(e.completed){for(var n=c;n<=v;n++)if(o[n]&&p[n]===w(n))return;e.completed.call(y)}}function w(n){return n<e.placeholder.length?e.placeholder.charAt(n):e.placeholder.charAt(0)}function b(n){while(++n<s&&!o[n]);return n}function ut(n){while(--n>=0&&!o[n]);return n}function it(n,t){var r,i;if(!(n<0)){for(r=n,i=b(t);r<s;r++)if(o[r]){if(i<s&&o[r].test(p[i]))p[r]=p[i],p[i]=w(i);else break;i=b(i)}d();y.caret(Math.max(c,n))}}function ft(n){for(var i,r,t=n,u=w(n);t<s;t++)if(o[t])if(i=b(t),r=p[t],p[t]=u,i<s&&o[i].test(r))u=r;else break}function et(){var f=y.val(),i=y.caret(),r=function(){n.proxy(n.fn.caret,y,i.begin,i.begin)()},u,t;if(a&&a.length&&a.length>f.length){for(u=k(!0),t=i.end;t>0&&!o[t-1];)t--;t===0&&(t=u);i.begin=t;setTimeout(function(){r();g()},0)}else i.begin=k(!0),setTimeout(function(){r();g()},0)}function rt(){k();y.val()!=tt&&y.change()}function ot(n){if(!y.prop("readonly")){var i=n.which||n.keyCode,f,r,t;a=y.val();i===8||i===46||u&&i===127?(f=y.caret(),r=f.begin,t=f.end,t-r==0&&(r=i!==46?ut(r):t=b(r-1),t=i===46?b(t):t),nt(r,t),it(r,t-1),n.preventDefault()):i===13?rt.call(this,n):i===27&&(y.val(tt),y.caret(0,k()),n.preventDefault())}}function st(t){var f,r,u,e,h,c;y.prop("readonly")||(f=t.which||t.keyCode,r=y.caret(),t.ctrlKey||t.altKey||t.metaKey||f<32)||f&&f!==13&&(r.end-r.begin!=0&&(nt(r.begin,r.end),it(r.begin,r.end-1)),u=b(r.begin-1),u<s&&(e=String.fromCharCode(f),o[u].test(e)&&(ft(u),p[u]=e,d(),h=b(u),i?(c=function(){n.proxy(n.fn.caret,y,h)()},setTimeout(c,0)):y.caret(h),r.begin<=v&&g())),t.preventDefault())}function nt(n,t){for(var i=n;i<t&&i<s;i++)o[i]&&(p[i]=w(i))}function d(){y.val(p.join(""))}function k(n){for(var r=y.val(),u=-1,f,t=0,i=0;t<s;t++)if(o[t]){for(p[t]=w(t);i++<r.length;)if(f=r.charAt(i-1),o[t].test(f)){p[t]=f;u=t;break}if(i>r.length){nt(t+1,s);break}}else p[t]===r.charAt(i)&&i++,t<h&&(u=t);return n?d():u+1<h?e.autoclear||p.join("")===ht?(y.val()&&y.val(""),nt(0,s)):d():(d(),y.val(y.val().substring(0,u+1))),h?t:c}var y=n(this),p=n.map(t.split(""),function(n,t){if(n!="?")return l[n]?w(t):n}),ht=p.join(""),tt=y.val();y.data(n.mask.dataName,function(){return n.map(p,function(n,t){return o[t]&&n!=w(t)?n:null}).join("")});y.one("unmask",function(){y.off(".mask").removeData(n.mask.dataName)}).on("focus.mask",function(){if(!y.prop("readonly")){clearTimeout(r);var n;tt=y.val();n=k();r=setTimeout(function(){y.get(0)===document.activeElement&&(d(),n==t.replace("?","").length?y.caret(0,n):y.caret(n))},10)}}).on("blur.mask",rt).on("keydown.mask",ot).on("keypress.mask",st).on("input.mask paste.mask",function(){y.prop("readonly")||setTimeout(function(){var n=k(!0);y.caret(n);g()},0)});if(f&&i)y.off("input.mask").on("input.mask",et);k()}))}})})