function setCookie(n,t){var i=new Date,r;i.setTime(i.getTime()+31536e6),r="expires="+i.toUTCString(),document.cookie=n+"="+t+"; "+r+";path=/;"}function getCookie(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)!=-1)return t.substring(r.length,t.length)}return""}function validateEmail(n){var i=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(n),t=n.split("."),r=t[t.length-1].toLowerCase(),u=/[0-9]/.test(r);return i&&!u}function validateFirstName(n){return/^[a-zA-Z-' ]*$/.test(n)}function validateLastName(n){return validateFirstName(n)}function numberWithCommas(n){return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function createQre(n,t){var i="";return n&&t&&(i="$qre(expression:'"+n+"', modifier:'"+t+"')"),i}function formatNames(n,t){var i="",r;for(n=n?n.split(";"):"",r=0;r<n.length;r++)n[r]||n.splice(r,1);return n.length==1?i=t+": ":n.length>1&&(i=t+"s: "),n.length?i+=n.join(", "):i="",i}function getArticlePublishData(n){if(n!=-179559072e5){var t=new Date(publishDateMiliseconds),i=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],r=t.getFullYear();return" | "+i+" "+r}}function getPaidConferenceData(n,t){if(n&&t){var h=["January","February","March","April","May","June","July","August","September","October","November","December"],f=new Date(n),i=f.getFullYear(),r=h[f.getMonth()],u=f.getDate(),e=new Date(t),c=e.getFullYear(),s=h[e.getMonth()],o=e.getDate();if(f!=-179559072e5||e!=-179559072e5)return i!==c?r+" "+u+", "+i+" - "+s+" "+o+", "+c:r!==s?r+" "+u+" - "+s+" "+o+", "+i:u!==o?r+" "+u+" - "+o+", "+i:r+" "+u+", "+i}}function recaptchaCallback(){recaptchaChecked=!0}var settings={recaptcha:{key:"6Lc-xxYUAAAAAAU1elHSzltOPvKOz_M1hZC5xQYT"}},onloadCallback,recaptchaChecked;String.prototype.customSubstring=function(n){var t=n||500,i=this.indexOf(".",t);return i>=t?this.substring(0,i)+".":this.substring(0,t)},$.fn.sumValues=function(){var n=0;return this.each(function(){if($(this).is(":checked")){var t=$(this).val();n+=parseFloat(("0"+t).replace(/[^0-9-\.]/g,""),10)}}),n};var DeleteLoadingSpinner=function(){$(".coveo-page-start-loading-spinner").remove()},ExpandFacet=function(){$(".coveo-facet-active").removeClass("coveo-facet-active");try{$(".coveo-facet-header").unbind("click");$(".coveo-facet-header").on("click",function(){$(this).parents(".CoveoFacet").hasClass("coveo-facet-active")?$(".CoveoFacet.coveo-facet-active").removeClass("coveo-facet-active"):($(".coveo-facet-active").removeClass("coveo-facet-active"),$(this).parents(".CoveoFacet").addClass("coveo-facet-active"))});$(".coveo-facet-mobile-menu").unbind("click");$(".coveo-facet-mobile-menu").on("click",function(){$(".coveo-facet-column").toggleClass("coveo-facet-mobile-active"),$(".coveo-facet-mobile-menu-container").toggleClass("coveo-facet-column-active")})}catch(n){console.log(n)}},FacetsFunctionality=function(){if($(".selected-coveo-facet-group").removeClass("selected-coveo-facet-group"),$(".coveo-selected").each(function(){$(this).parents(".coveo-facet-values").parent().find(".coveo-facet-header-title").addClass("selected-coveo-facet-group")}),$(".coveo-facet-search-option").html(""),$(".coveo-selected").find(".coveo-facet-value-caption").each(function(){$(".coveo-facet-search-option").append('<div class="coveo-facet-search-option-button"><span class="coveo-facet-search-button-title">'+$(this).text()+'<\/span><img src="/Content/img/close_option.png" class="coveo-facet-search-option-cancel" /><\/div>')}),$(".coveo-facet-search-option-cancel").unbind("click"),$(".coveo-facet-search-option-cancel").each(function(){var n=$(this).parents(".coveo-facet-search-option-button").find(".coveo-facet-search-button-title");$(this).on("click",function(){$(".coveo-facet-value-label").find(".coveo-facet-value-caption").each(function(){$(this).text()===n.text()&&$(this).parents(".coveo-facet-value-label").trigger("click")})})}),$(".coveo-facet-empty").length||$(".facet-inactive").length)if($(".coveo-active").length){if($(".coveo-facet-empty").length){var n=$(".coveo-facet-column").children("div").not(".coveo-facet-header-filter-by-container").not(".facet-inactive");n.length&&($(".first-active-facet").removeClass("first-active-facet"),$(".last-active-facet").removeClass("last-active-facet"),n.first().addClass("first-active-facet"),n.last().addClass("last-active-facet"))}}else $(".first-active-facet").removeClass("first-active-facet"),$(".last-active-facet").removeClass("last-active-facet");else $(".facet-inactive").length||($(".first-active-facet").removeClass("first-active-facet"),$(".last-active-facet").removeClass("last-active-facet"));$(".coveo-facet-mobile-menu").unbind("click");$(".coveo-facet-mobile-menu").on("click",function(){$(".coveo-facet-column").toggleClass("coveo-facet-mobile-active"),$(".coveo-facet-mobile-menu-container").toggleClass("coveo-facet-column-active")})};$(".coveo-facet-header").ready(function(){DeleteLoadingSpinner(),ExpandFacet()}),onloadCallback=function(){document.getElementById("join-recaptcha")&&grecaptcha.render("join-recaptcha",{sitekey:settings.recaptcha.key}),document.getElementById("book-a-speaker-recaptcha")&&grecaptcha.render("book-a-speaker-recaptcha",{sitekey:settings.recaptcha.key}),document.getElementById("new-account-recaptcha")&&!document.getElementById("forgot-password-recaptcha")&&(grecaptcha.render("new-account-recaptcha",{sitekey:settings.recaptcha.key}),$("#g-recaptcha-response").attr("name","Recaptcha"))},recaptchaChecked=!1,$(document).ready(function(){$.fn.extend({rotaterator:function(n){var n=$.extend({fadeSpeed:500,pauseSpeed:1e3,child:null},n);return this.each(function(){var t=n,i=$(this),u=$(i.children(),i),r;u.each(function(){$(this).hide()}),r=t.child?t.child:$(i).children(":first"),$(r).fadeIn(t.fadeSpeed,function(){$(r).delay(t.pauseSpeed).fadeOut(t.fadeSpeed,function(){var n=$(this).next();n.length==0&&(n=$(i).children(":first")),$(i).rotaterator({child:n,fadeSpeed:t.fadeSpeed,pauseSpeed:t.pauseSpeed})})})})}}),$("#rotate").rotaterator({fadeSpeed:500,pauseSpeed:1e3})});var lastAttendeeNumber=1,inputCounter=1,labelCounter=1,proVariants,nonProVariants,isProConference,addListItem=function(n){var o=$(".register-form input[name=firstname]").val(),s=$(".register-form input[name=lastname]").val(),h=$(".register-form input[name=email]").val(),f=$('.register-switcher input[type="radio"]:checked').val(),c=0,u;c=typeof _totalAttendees!="undefined"?_totalAttendees-1:$(".register-attendee-item").length;var a=$("#list"),t=$('<div class="register-attendee-item register-attendee-item-'+lastAttendeeNumber+'"><\/div>'),v=$('<span class="register-current-attendee">Attendee # '+(c+1)+"<\/span>"),y=$('<span class="register-edit">Edit<\/span>'),e=$('<span class="register-delete">Delete<\/span>'),p=$("<p>"+o+" "+s+"<\/p>"),w=$('<p class="register-email">'+h+"<\/p>"),l=$('<span class="register-item-status"><\/span>');t.attr({"data-attendee":lastAttendeeNumber}),t.prependTo(a),l.prependTo(t),l.attr("data-status",f),w.prependTo(t),p.prependTo(t),y.prependTo(t),e.prependTo(t),v.prependTo(t);e.on("click",function(){deleteItem(n,e)});$(".section-two-thirds .register-checkbox-input").each(function(){if($(this).is(":checked")){var i=$(".register-attendee-item-"+lastAttendeeNumber),n=$('<div class="register-attendee-days"><\/div>'),r=$(this).parent().parent().children(":first-child").clone(),t=$("<div><\/div>"),u=$(this).parent().parent().children(".register-title-date").children(":first-child").clone();n.appendTo(i),r.appendTo(n),t.appendTo(n),u.appendTo(t)}});var i=$('<div class="conf-dropdown register-dropdown"><\/div>'),b=$('<input type="text" name="firstname" placeholder="First Name" value="'+o+'">'),k=$('<input type="text" name="lastname" placeholder="Last Name" value="'+s+'">'),d=$('<input type="text" name="email" placeholder="Email" value="'+h+'">'),g=$('<div class="invalid-email-message error error-message">Email address is not valid.<\/div>'),r=$('<div class="register-switcher"><\/div>'),nt=$('<input class="register-radio" type="radio" name="reg-switcher-'+lastAttendeeNumber+'" value="professional" id="prof-'+lastAttendeeNumber+'">'),tt=$('<label for="prof-'+lastAttendeeNumber+'">Professional<\/label>'),it=$('<input class="register-radio" type="radio" name="reg-switcher-'+lastAttendeeNumber+'" value="non-professional" id="non-prof-'+lastAttendeeNumber+'">'),rt=$('<label for="non-prof-'+lastAttendeeNumber+'">Non Professional<\/label>'),ut=$('<span class="register-switch"><\/span>'),ft=$('<button class="button button-register button-blue button-done" type="button">Done<\/button>');i.appendTo(t),b.appendTo(i),k.appendTo(i),d.appendTo(i),g.appendTo(i),r.appendTo(i),nt.appendTo(r),tt.appendTo(r),it.appendTo(r),rt.appendTo(r),ut.appendTo(r),f==="professional"?$(".register-dropdown input[id=prof-"+lastAttendeeNumber+"]").prop("checked",!0):f==="non-professional"&&$(".register-dropdown input[id=non-prof-"+lastAttendeeNumber+"]").prop("checked",!0),u=$(".register-courses .register-courses-list").clone(),u.find(".register-title-desc").remove(),$(u).find(".register-checkbox-input").each(function(){$(this).attr("id","reg-checkbox-"+inputCounter),inputCounter++}),$(u).find(".register-checkbox-label").each(function(){$(this).attr("for","reg-checkbox-"+labelCounter),labelCounter++}),u.appendTo(i),ft.appendTo(i),updateStatus(n),lastAttendeeNumber++,isRegisterAttendeeValid().resetRegistrationForm(),$("#attendee-firstname").focus()},deleteItem=function(n,t){var i=t.parent();i&&i.remove(),disableAllDiscaountsMessages(),updateStatus(n),getAttendeeNumber()},updateStatus=function(n){var i=$(".register-title-status"),r=$(".section-two-thirds .button-register"),u=$(".register-status-days"),f=$(".register-status-attendees"),e=$(".register-attendee-list .register-attendee-days").length,t=$(".register-attendee-item").length;n&&(t>0?n.removeClass("register-status-toggle"):n.addClass("register-status-toggle")),i.html("Attendee #"+(t+1)),r.html("Register Attendee #"+(t+1)),u.html("# of Days: "+e),f.html("# of Attendees: "+t),disableAllDiscaountsMessages(),discountApplied(),calculatePrice()},getAttendeeNumber=function(){var n=$("#list").children();return n.each(function(t){$(this).find(".register-current-attendee").text("Attendee # "+(n.length-t))}),n.length},getProAttendeesNumber=function(){var n=document.querySelectorAll(".register-item-status"),t=0;for(let i=0;i<n.length;i++)n[i].getAttribute("data-status")==="professional"&&t++;return t},validateRegister=function(n,t){var f=!0,e=!1,h=$(".register-firstname-label"),c=$(".register-lastname-label"),r=$(".register-email-label"),u=$(".register-form input[name=email]").val(),o=$(".register-form input[name=firstname]").val(),s=$(".register-form input[name=lastname]").val(),i;for($(".register-form-wrap label").removeClass("label-error"),r.html(""),i=0;i<n.length;i++)n[i].type!=="text"||n[i].value||(f=!1),n[i].type==="checkbox"&&n[i].checked&&(e=!0);if(e||(f=!1),f){if(u!==""&&validateEmail(u)){if(u===""||validateRegisterEmail(u)){r.addClass("label-error"),r.html("Email Address is already associated with another Attendee."),t.prop("disabled",!0);return}if(o!==""&&validateFirstName(o)){if(s===""||!validateLastName(s)){c.addClass("label-error"),t.prop("disabled",!0);return}}else{h.addClass("label-error"),t.prop("disabled",!0);return}}else{r.addClass("label-error"),r.html("Enter a valid Email name."),t.prop("disabled",!0);return}t.prop("disabled",!1)}else t.prop("disabled",!0)},validateRegisterEmail=function(n){var i=$(".register-email"),t;if(i.length&&(t=[],i.each(function(){t.push($(this).text().toLowerCase())}),$.inArray(n.toLowerCase(),t)>-1))return!0},getSelectedDays=function(n){var i=$(n).find(".register-checkbox-input"),t=[];return i.each(function(){$(this).is(":checked")&&t.push($(this).next().data("coursecode"))}),t.join("")},getSelectedVariant=function(n,t){var i,f=n.find('.register-switcher input[type="radio"]:checked').val(),r=nonProVariants,u;return f==="professional"&&(r=proVariants),u=r.split(","),$.each(u,function(n,r){var u=r.split("=");if(selectedDaysInVariant(t,u[0])){i=u;return}}),i},disableAllDiscaountsMessages=function(){$(".status-two-days").css("display","none"),$(".status-three-days").css("display","none"),$(".status-five-days").css("display","none"),$(".status-nonprofessional").css("display","none"),$(".status-five-days-eb").css("display","none"),$(".status-eb").css("display","none"),$(".status-eb-pro").css("display","none")},discountApplied=function(){var t=$(".status-two-days"),e=$(".status-three-days"),o=$(".status-five-days"),s=$(".status-nonprofessional"),h=$(".status-five-days-eb"),c=$(".status-eb"),i=$(".status-eb-pro"),r=$('.register-dropdown .register-switcher input[type="radio"]:checked').val(),u=getAttendeeNumber();typeof _expireEBDays!="undefined"&&(_expireEBDays>=1?r==="professional"?u>=5?h.css("display","block"):i.css("display","block"):(c.css("display","block"),i.css("display","none")):(r==="non-professional"&&s.css("display","block"),u>=5&&getProAttendeesNumber()>=5&&o.css("display","block")));var l=getSelectedDaysAll(),f=Object.keys(l),n=Math.max.apply(null,f.map(function(n){return n.length}));n===2&&t.css("display","block"),n>2&&n<5&&($.inArray(2,f.map(function(n){return n.length}))&&t.css("display","block"),e.css("display","block"))},getAttendeesDays=function(n){var t=[];return $(n).find(".register-input-wrap").each(function(){$(this).find(".register-checkbox-input").is(":checked")&&t.push($(this).find(".register-checkbox-input").next().data("coursecode"))}),t.join("")},sumConfValues=function(n){var f=0,h=$(".js-oneDayPrice").data("price"),e,i=getAttendeesDays(n),c=getSelectedDaysAll(),o=$(n).find('.register-switcher input[type="radio"]:checked').val(),t,r,s,u;return o==="professional"?(t=$("#listAvailableProVarinats").val(),isProConference=!0):o==="non-professional"&&(t=$("#listAvailableNonProVarinats").val(),isProConference=!1),r=0,$.each(c,function(n,t){r+=t}),s=calculatePercentOff(i,r),t&&(u=t.split(",")),u&&$.each(u,function(n,t){var r=t.split("=");if(selectedDaysInVariant(i,r[0]))return f=r[1],e=f*(100-s)/100,!1}),{discountedPrice:e,originalPrice:i.length*h}},calculatePercentOff=function(n,t){var i=0;try{_expireEBDays!=undefined&&(isProConference?t<5&&_expireEBDays>=0&&_pebSingleDiscount>0?i=_pebSingleDiscount:t>=5&&_expireEBDays>=0&&_pebTeamDiscount>0&&getProAttendeesNumber()>=5?i=_pebTeamDiscount:t>=5&&_expireEBDays<0&&_pregTeamDiscount>0&&getProAttendeesNumber()>=5&&(i=_pregTeamDiscount):i=_expireEBDays>=0&&_ebSingleDiscount>0?_ebSingleDiscount:_regSingleDiscount)}catch(r){}return i},calculatePrice=function(){var n=0,t=0;$(".section-one-third .register-attendee-item").each(function(){var r=$(this).find(".register-checkbox-input"),i;r.length&&(i=sumConfValues(this),n+=parseFloat(i.discountedPrice),t+=parseFloat(i.originalPrice))}),$(".register-sum-price").html("$"+parseFloat(n).toFixed(2)),parseFloat(t).toFixed(2)!=parseFloat(n).toFixed(2)?($(".register-sum-price-full").show().html("$"+parseFloat(t).toFixed(2)),$(".register-sum-price").css("margin-right","20px")):($(".register-sum-price-full").hide(),$(".register-sum-price").css("margin-right","0px"))},isRegisterAttendeeValid=function(){var n=$(".register-form input[type=text], .register-courses input[type=checkbox]"),t=$(".section-two-thirds .button-register"),i=$(".register .register-courses-list li");i.on("click",function(){var i=$(this).find("input[type='checkbox']");i.prop("checked")?i.prop("checked",!1):i.prop("checked",!0),validateRegister(n,t)});return{resetRegistrationForm:function(){n.prop("checked",!1),n.val(""),validateRegister(n,t)},initiate:function(){n.on("keyup",function(){validateRegister(n,t)});n.on("change",function(){validateRegister(n,t)});i.on("click",function(){validateRegister(n,t)})}}},bindDeleteButtons=function(n){$(document).on("click",".register-delete",function(){deleteItem(n,$(this))})},bindAttendeeButtons=function(n){$(document).on("click",".register-edit",function(){$(this).parent().toggleClass("register-dropdown-open"),$(".conf-register").toggleClass("conf-register-tall")});if(!n)$(document).on("click",".button-done",function(){var i=$(this).parent().children('input[name="firstname"]').val(),r=$(this).parent().children('input[name="lastname"]').val(),t=$(this).parent().children('input[name="email"]').val(),f=$(this).parent().find('input[type="radio"]:checked').val(),n=$(this).parent().parent(),u;if(validateEmail(t))$(".invalid-email-message").hide();else{$(".invalid-email-message").show();return}if(u=n.data("attendee-id"),u){$(".register-attendee-item").each(function(){if($(this).data("attendee-id")==u){var n=this;$(this).find("p:first").html(i+" "+r),$(this).find("p:nth-of-type(2)").html(t),$(this).find(".register-item-status").attr("data-status",f),$(this).find(".conf-dropdown").find("input").each(function(){$(this).attr("name")==="firstname"?$(this).attr("value",i):$(this).attr("name")==="lastname"?$(this).attr("value",r):$(this).attr("name")==="email"&&$(this).attr("value",t)})}}),n.toggleClass("register-dropdown-open");return}n.find("p:first").html(i+" "+r),n.find("p:nth-of-type(2)").html(t),n.find(".register-item-status").attr("data-status",f),n.find(".register-attendee-days").remove(),$(this).parent().find(".register-checkbox-input").each(function(){if($(this).is(":checked")){var t=$('<div class="register-attendee-days"><\/div>'),r=$(this).parent().parent().children(":first-child").clone(),i=$("<div><\/div>"),u=$(this).parent().parent().children(".register-title-date").children(":first-child").clone();t.appendTo(n),r.appendTo(t),i.appendTo(t),u.appendTo(i)}}),updateStatus(),n.toggleClass("register-dropdown-open")});$(document).on("click",function(n){$(n.target).closest(".register-attendee-item").length||$(".register-attendee-item").removeClass("register-dropdown-open")});$(document).on("change",".register-dropdown .register-checkbox-input",function(){var n=$(this).parents(".register-attendee-list").find(".button-done"),t=$(this).parents(".register-dropdown").find(".register-checkbox-input");t.each(function(){t.is(":checked")?n.prop("disabled",!1):n.prop("disabled",!0)})})},getSelectedDaysAll=function(){var n=[],t;return $(".section-one-third .register-attendee-item").each(function(){var t=getSelectedDays($(this));n.push(t)}),t={},$.each(n,function(i,r){var u=$.grep(n,function(n){return n===r}).length;t[r]=u}),t},storeAttendeesToSession=function(){var n=$(".register-attendee-item"),t=[],i;return n.each(function(n,i){var o=$(this).find(".register-courses-list"),s=getSelectedDays(o),c=getSelectedVariant($(this),s),u=o.parent(),f={},l=sumConfValues($(this)),e,r,h;$(i).find(".register-attendee-days .register-courses-day").each(function(){f[$(this).data("letter")]=$(this).data("day")}),e=$.map(f,function(n){return[n]}),r="",e.forEach(function(n,t){r+=t!==e.length-1?n.split(",")[0]+", ":n}),h={FirstName:u.find("input[name=firstname]").val(),LastName:u.find("input[name=lastname]").val(),EmailAddress:u.find("input[name=email]").val(),Sku:c[2],Details:r,Code:s,Days:f,DiscountedConfPrice:l.discountedPrice},t.push(h)}),i=JSON.stringify(t),$.ajax({type:"Post",url:"/custom/Conference/SaveConferenceAttendeesToSession",contentType:"application/json;charset=utf-8",data:i,dataType:"json",success:function(){n.parent().empty()}})},initiateAttendeeComponent=function(n){if(n){var t=$(".button-register");t.on("click",function(){addListItem(n),isRegisterAttendeeValid().initiate()});isRegisterAttendeeValid().initiate()}$(document).on("click",".register-status-container .button-cart",function(){var f="/ac/cart/AddMultipleToCart/",e=$(".register-attendee-item"),i,r,t=[],u;e.each(function(){i=$(this).find(".register-courses-list"),r=getSelectedDays(i),t.push(getSelectedVariant($(this),r)[2])}),u={codes:t},$.when(storeAttendeesToSession()).done(function(){$.ajax({type:"POST",url:f,data:u,dataType:"json",traditional:!0}).done(function(n){var r,i;if(n.error){$(".modal-body-message").text(n.message),$("#errorModal").stModal("show"),$("#errorModal").unbind("hidden.bs.modal");$("#errorModal").on("hidden.bs.modal",function(){window.location="/Conferences"});return}if(controller.shoppingCart.setShoppingCartData(n.Data),view.shoppingCart.updateHeaderCart(),updateStatus(),getAttendeeNumber(),typeof _kmq!="undefined")for(r=controller.shoppingCart.getConferenceInfo(t),i=0;i<r.length;i++)controller.kissmetrics.pushConferenceMetric(r[i]);return})}),disableAllDiscaountsMessages(),n.addClass("register-status-toggle")})},selectedDaysInVariant=function(n,t){if(n.length!==t.length)return!1;if(n)for(var i=0;i<n.length;i++)if(t.indexOf(n[i])<0)return!1;return!0};$(document).ready(function(){var n=$(".register-status-container");$(".conf-register .register-status-container").length?(proVariants=$("#listAvailableProVarinats").val(),nonProVariants=$("#listAvailableNonProVarinats").val(),initiateAttendeeComponent(n),bindAttendeeButtons(!1)):(bindAttendeeButtons(!0),bindDeleteButtons(n))});
/*!
FullCalendar Core Package v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).FullCalendar={})}(this,function(n){"use strict";function it(n,t,i){var u=document.createElement(n),r;if(t)for(r in t)"style"===r?s(u,t[r]):gs[r]?u[r]=t[r]:u.setAttribute(r,t[r]);return"string"==typeof i?u.innerHTML=i:null!=i&&y(u,i),u}function ui(n){n=n.trim();var t=document.createElement(bu(n));return t.innerHTML=n,t.firstChild}function ur(n){return Array.prototype.slice.call(function(n){n=n.trim();var t=document.createElement(bu(n));return t.innerHTML=n,t.childNodes}(n))}function bu(n){return nh[n.substr(0,3)]||"div"}function y(n,t){for(var r=er(t),i=0;i<r.length;i++)n.appendChild(r[i])}function fr(n,t){for(var r=er(t),u=n.firstChild||null,i=0;i<r.length;i++)n.insertBefore(r[i],u)}function er(n){return"string"==typeof n?ur(n):n instanceof Node?[n]:Array.prototype.slice.call(n)}function p(n){n.parentNode&&n.parentNode.removeChild(n)}function w(n,t){return ih.call(n,t)}function fi(n,t){return th.call(n,t)}function ei(n,t){for(var u,i,f=n instanceof HTMLElement?[n]:n,e=[],r=0;r<f.length;r++)for(u=f[r].querySelectorAll(t),i=0;i<u.length;i++)e.push(u[i]);return e}function s(n,t){for(var i in t)or(n,i,t[i])}function or(n,t,i){n.style[t]=null==i?"":"number"==typeof i&&rh.test(t)?i+"px":i}function ku(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom&&i}function uh(){return null===sr&&(sr=function(){var n=it("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div><\/div>"),t;return document.body.appendChild(n),t=n.firstChild.getBoundingClientRect().left>n.getBoundingClientRect().left,p(n),t}()),sr}function du(n){return n=Math.max(0,n),n=Math.round(n)}function hr(n,t){void 0===t&&(t=!1);var i=window.getComputedStyle(n),u=parseInt(i.borderLeftWidth,10)||0,f=parseInt(i.borderRightWidth,10)||0,e=parseInt(i.borderTopWidth,10)||0,o=parseInt(i.borderBottomWidth,10)||0,s=du(n.offsetWidth-n.clientWidth-u-f),r={borderLeft:u,borderRight:f,borderTop:e,borderBottom:o,scrollbarBottom:du(n.offsetHeight-n.clientHeight-e-o),scrollbarLeft:0,scrollbarRight:0};return uh()&&"rtl"===i.direction?r.scrollbarLeft=s:r.scrollbarRight=s,t&&(r.paddingLeft=parseInt(i.paddingLeft,10)||0,r.paddingRight=parseInt(i.paddingRight,10)||0,r.paddingTop=parseInt(i.paddingTop,10)||0,r.paddingBottom=parseInt(i.paddingBottom,10)||0),r}function gu(n,t){void 0===t&&(t=!1);var u=nf(n),i=hr(n,t),r={left:u.left+i.borderLeft+i.scrollbarLeft,right:u.right-i.borderRight-i.scrollbarRight,top:u.top+i.borderTop,bottom:u.bottom-i.borderBottom-i.scrollbarBottom};return t&&(r.left+=i.paddingLeft,r.right-=i.paddingRight,r.top+=i.paddingTop,r.bottom-=i.paddingBottom),r}function nf(n){var t=n.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function cr(n){return n.getBoundingClientRect().height+tf(n)}function tf(n){var t=window.getComputedStyle(n);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function rf(n){for(var t,i=[];n instanceof HTMLElement;){if(t=window.getComputedStyle(n),"fixed"===t.position)break;/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)&&i.push(n),n=n.parentNode}return i}function pt(n){n.preventDefault()}function oi(n,t,i,r){function u(n){var t=w(n.target,i);t&&r.call(t,n,t)}return n.addEventListener(t,u),function(){n.removeEventListener(t,u)}}function c(n,t){var i=k(n);return i[2]+=t,o(i)}function ot(n,t){var i=k(n);return i[6]+=t,o(i)}function b(n,t){return(t.valueOf()-n.valueOf())/864e5}function ef(n,t){var i=u(n),r=u(t);return{years:0,months:0,days:Math.round(b(i,r)),milliseconds:t.valueOf()-r.valueOf()-(n.valueOf()-i.valueOf())}}function of(n,t){var i=wt(n,t);return null!==i&&i%7==0?i/7:null}function wt(n,t){return d(n)===d(t)?Math.round(b(n,t)):null}function u(n){return o([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()])}function lr(n,t,i,r){var f=o([t,0,1+fh(t,i,r)]),e=u(n),s=Math.round(b(f,e));return Math.floor(s/7)+1}function fh(n,t,i){var r=7+t-i;return-((7+o([n,0,r]).getUTCDay()-t)%7)+r-1}function sf(n){return[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()]}function hf(n){return new Date(n[0],n[1]||0,null==n[2]?1:n[2],n[3]||0,n[4]||0,n[5]||0)}function k(n){return[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()]}function o(n){return 1===n.length&&(n=n.concat([0])),new Date(Date.UTC.apply(Date,n))}function ar(n){return!isNaN(n.valueOf())}function d(n){return 36e5*n.getUTCHours()+6e4*n.getUTCMinutes()+1e3*n.getUTCSeconds()+n.getUTCMilliseconds()}function i(n,t){var i;return"string"==typeof n?function(n){var t=eh.exec(n),i;return t?(i=t[1]?-1:1,{years:0,months:0,days:i*(t[2]?parseInt(t[2],10):0),milliseconds:i*(36e5*(t[3]?parseInt(t[3],10):0)+6e4*(t[4]?parseInt(t[4],10):0)+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}):null}(n):"object"==typeof n&&n?lf(n):"number"==typeof n?lf(((i={})[t||"milliseconds"]=n,i)):null}function lf(n){return{years:n.years||n.year||0,months:n.months||n.month||0,days:(n.days||n.day||0)+7*vr(n),milliseconds:36e5*(n.hours||n.hour||0)+6e4*(n.minutes||n.minute||0)+1e3*(n.seconds||n.second||0)+(n.milliseconds||n.millisecond||n.ms||0)}}function vr(n){return n.weeks||n.week||0}function yr(n,t){return n.years===t.years&&n.months===t.months&&n.days===t.days&&n.milliseconds===t.milliseconds}function st(n){return g(n)/864e5}function g(n){return 31536e6*n.years+2592e6*n.months+864e5*n.days+n.milliseconds}function si(n,t){var i=n.milliseconds;if(i){if(i%1e3!=0)return{unit:"millisecond",value:i};if(i%6e4!=0)return{unit:"second",value:i/1e3};if(i%36e5!=0)return{unit:"minute",value:i/6e4};if(i)return{unit:"hour",value:i/36e5}}return n.days?t||n.days%7!=0?{unit:"day",value:n.days}:{unit:"week",value:n.days/7}:n.months?{unit:"month",value:n.months}:n.years?{unit:"year",value:n.years}:{unit:"millisecond",value:0}}function af(n){n.forEach(function(n){n.style.height=""})}function vf(n){var r,t,u=[],i=[];for("string"==typeof n?i=n.split(/\s*,\s*/):"function"==typeof n?i=[n]:Array.isArray(n)&&(i=n),r=0;r<i.length;r++)"string"==typeof(t=i[r])?u.push("-"===t.charAt(0)?{field:t.substring(1),order:-1}:{field:t,order:1}):"function"==typeof t&&u.push({func:t});return u}function yf(n,t,i){for(var u,r=0;r<i.length;r++)if(u=pf(n,t,i[r]))return u;return 0}function pf(n,t,i){return i.func?i.func(n,t):wf(n[i.field],t[i.field])*(i.order||1)}function wf(n,t){return n||t?null==t?-1:null==n?1:"string"==typeof n||"string"==typeof t?String(n).localeCompare(String(t)):n-t:0}function hi(n){return n.charAt(0).toUpperCase()+n.slice(1)}function rt(n,t){var i=String(n);return"000".substr(0,t-i.length)+i}function bt(n){return n%1==0}function pr(n,t,i){if("function"==typeof n&&(n=[n]),n){for(var r=void 0,u=void 0,r=0;r<n.length;r++)u=n[r].apply(t,i)||u;return u}}function wr(){for(var i,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(i=0;i<n.length;i++)if(void 0!==n[i])return n[i]}function br(n,t){var i,r,u,f,e,o=function(){var s=(new Date).valueOf()-f;s<t?i=setTimeout(o,t-s):(i=null,e=n.apply(u,r),u=r=null)};return function(){return u=this,r=arguments,f=(new Date).valueOf(),i||(i=setTimeout(o,t)),e}}function a(n,t,i,r){var e,f,u;void 0===i&&(i={}),e={};for(u in t)f=t[u],e[u]=void 0!==n[u]?f===Function?"function"==typeof n[u]?n[u]:null:f?f(n[u]):n[u]:void 0!==i[u]?i[u]:f===String?"":f&&f!==Number&&f!==Boolean&&f!==Function?f(null):null;if(r)for(u in n)void 0===t[u]&&(r[u]=n[u]);return e}function bf(n){var i=Math.floor(b(n.start,n.end))||1,t=u(n.start);return{start:t,end:c(t,i)}}function ci(n,t){var f,r,e;return void 0===t&&(t=i(0)),f=null,r=null,n.end&&(r=u(n.end),e=n.end.valueOf()-r.valueOf(),e&&e>=g(t)&&(r=c(r,1))),n.start&&(f=u(n.start),r&&r<=f&&(r=c(f,1))),{start:f,end:r}}function kt(n,t,r,u){return"year"===u?i(r.diffWholeYears(n,t),"year"):"month"===u?i(r.diffWholeMonths(n,t),"month"):ef(n,t)}function h(n,t){function i(){this.constructor=n}kf(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function oh(n,t,i,r,f){var e=f[n.recurringDef.typeId].expand(n.recurringDef.typeData,{start:r.subtract(i.start,t),end:i.end},r);return n.allDay&&(e=e.map(u)),e}function kr(n,t){var i,r,e,o,u,s,f={};if(t)for(i=0;i<t.length;i++){for(r=t[i],e=[],o=n.length-1;o>=0;o--)if("object"==typeof(u=n[o][r])&&u)e.unshift(u);else if(void 0!==u){f[r]=u;break}e.length&&(f[r]=kr(e))}for(i=n.length-1;i>=0;i--)for(r in s=n[i])r in f||(f[r]=s[r]);return f}function nt(n,t){var r={},i;for(i in n)t(n[i],i)&&(r[i]=n[i]);return r}function l(n,t){var r={},i;for(i in n)r[i]=t(n[i],i);return r}function gf(n){for(var i={},t=0,r=n;t<r.length;t++)i[r[t]]=!0;return i}function ne(n){var t=[],i;for(i in n)t.push(n[i]);return t}function te(n,t){var i;for(i in n)if(df.call(n,i)&&!(i in t))return!1;for(i in t)if(df.call(t,i)&&n[i]!==t[i])return!1;return!0}function li(n,t,i,r){for(var f,e={defs:{},instances:{}},u=0,o=n;u<o.length;u++)f=ro(o[u],t,i,r),f&&ai(f,e);return e}function ai(n,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[n.def.defId]=n.def,n.instance&&(t.instances[n.instance.instanceId]=n.instance),t}function ht(n,t,i){var a=i.dateEnv,f=n.defs,e=n.instances,s,r,u,o,h,c,l;for(s in e=nt(e,function(n){return!f[n.defId].recurringDef}),f)if(r=f[s],r.recurringDef)for(u=r.recurringDef.duration,u||(u=r.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration),o=0,h=oh(r,u,t,i.dateEnv,i.pluginSystem.hooks.recurringTypes);o<h.length;o++)c=h[o],l=ir(s,{start:c,end:a.add(c,u)}),e[l.instanceId]=l;return{defs:f,instances:e}}function ie(n,t){var i=n.instances[t],r,u;return i?(r=n.defs[i.defId],u=ct(n,function(n){return t=r,i=n,Boolean(t.groupId&&t.groupId===i.groupId);var t,i}),u.defs[r.defId]=r,u.instances[i.instanceId]=i,u):{defs:{},instances:{}}}function re(n,t){var i,r,f,e,u;if(t)for(i=[],r=0,f=n;r<f.length;r++)e=f[r],u=t(e),u?i.push(u):null==u&&i.push(e);else i=n;return i}function sh(){return{defs:{},instances:{}}}function dt(n,i){return{defs:t({},n.defs,i.defs),instances:t({},n.instances,i.instances)}}function ct(n,t){var i=nt(n.defs,t),r=nt(n.instances,function(n){return i[n.defId]});return{defs:i,instances:r}}function hh(n,t){var i=null,r=null;return n.start&&(i=t.createMarker(n.start)),n.end&&(r=t.createMarker(n.end)),i||r?i&&r&&r<i?null:{start:i,end:r}:null}function ue(n,t){var r,u,f=[],i=t.start;for(n.sort(ch),r=0;r<n.length;r++)(u=n[r]).start>i&&f.push({start:i,end:u.start}),u.end>i&&(i=u.end);return i<t.end&&f.push({start:i,end:t.end}),f}function ch(n,t){return n.start.valueOf()-t.start.valueOf()}function gt(n,t){var i=n.start,r=n.end,u=null;return null!==t.start&&(i=null===i?t.start:new Date(Math.max(i.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===i||null===r||i<r)&&(u={start:i,end:r}),u}function ni(n,t){return(null===n.start?null:n.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===n.end?null:n.end.valueOf())===(null===t.end?null:t.end.valueOf())}function vi(n,t){return(null===n.end||null===t.start||n.end>t.start)&&(null===n.start||null===t.end||n.start<t.end)}function yi(n,t){return(null===n.start||null!==t.start&&t.start>=n.start)&&(null===n.end||null!==t.end&&t.end<=n.end)}function ut(n,t){return(null===n.start||t>=n.start)&&(null===n.end||t<n.end)}function dr(n,t){var i,r=n.length;if(r!==t.length)return!1;for(i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function r(n){var t,i;return function(){return t&&dr(t,arguments)||(t=arguments,i=n.apply(this,arguments)),i}}function fe(n,t){var i=null;return function(){var r=n.apply(this,arguments);return(null===i||i!==r&&!t(i,r))&&(i=r),i}}function oe(n,i,r){var u=Object.keys(n).length;return 1===u&&"short"===n.timeZoneName?function(n){return gr(n.timeZoneOffset)}:0===u&&i.week?function(n){return function(n,t,i,r){var u=[];return"narrow"===r?u.push(t):"short"===r&&u.push(t," "),u.push(i.simpleNumberFormat.format(n)),i.options.isRtl&&u.reverse(),u.join("")}(r.computeWeekNumber(n.marker),r.weekLabel,r.locale,i.week)}:function(n,i,r){var u,e,f;return n=t({},n),i=t({},i),function(n,t){n.timeZoneName&&(n.hour||(n.hour="2-digit"),n.minute||(n.minute="2-digit")),"long"===n.timeZoneName&&(n.timeZoneName="short"),t.omitZeroMinute&&(n.second||n.millisecond)&&delete t.omitZeroMinute}(n,i),n.timeZone="UTC",e=new Intl.DateTimeFormat(r.locale.codes,n),i.omitZeroMinute&&(f=t({},n),delete f.minute,u=new Intl.DateTimeFormat(r.locale.codes,f)),function(t){var f=t.marker;return function(n,t,i,r,u){return n=n.replace(vh,""),"short"===i.timeZoneName&&(n=function(n,t){var i=!1;return n=n.replace(yh,function(){return i=!0,t}),i||(n+=" "+t),n}(n,"UTC"===u.timeZone||null==t.timeZoneOffset?"UTC":gr(t.timeZoneOffset))),r.omitCommas&&(n=n.replace(lh,"").trim()),r.omitZeroMinute&&(n=n.replace(":00","")),!1===r.meridiem?n=n.replace(wi,"").trim():"narrow"===r.meridiem?n=n.replace(wi,function(n,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?n=n.replace(wi,function(n,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(n=n.replace(wi,function(n){return n.toLocaleLowerCase()})),(n=n.replace(ah," ")).trim()}((u&&!f.getUTCMinutes()?u:e).format(f),t,n,i,r)}}(n,i,r)}function v(n,i){return"object"==typeof n&&n?("string"==typeof i&&(n=t({separator:i},n)),new ph(n)):"string"==typeof n?new wh(n,i):"function"==typeof n?new bh(n):void 0}function gr(n,t){void 0===t&&(t=!1);var r=n<0?"-":"+",u=Math.abs(n),f=Math.floor(u/60),i=Math.round(u%60);return t?r+rt(f,2)+":"+rt(i,2):"GMT"+r+f+(i?":"+rt(i,2):"")}function bi(n,t,i,r){var u=se(n,i.calendarSystem);return{date:u,start:u,end:t?se(t,i.calendarSystem):null,timeZone:i.timeZone,localeCodes:i.locale.codes,separator:r}}function se(n,t){var i=t.markerToArray(n.marker);return{marker:n.marker,timeZoneOffset:n.timeZoneOffset,array:i,year:i[0],month:i[1],day:i[2],hour:i[3],minute:i[4],second:i[5],millisecond:i[6]}}function ki(n,t,i,r){var s={},h={},p={},c=[],nt=[],w=gi(n.defs,t),tt,k,a,d,u,v,f,y,g;for(f in n.defs)"inverse-background"===(u=n.defs[f]).rendering&&(u.groupId?(s[u.groupId]=[],p[u.groupId]||(p[u.groupId]=u)):h[f]=[]);for(tt in n.instances){var l=n.instances[tt],b=w[(u=n.defs[l.defId]).defId],it=l.range,o=!u.allDay&&r?ci(it,r):it,e=gt(o,i);e&&("inverse-background"===u.rendering?u.groupId?s[u.groupId].push(e):h[l.defId].push(e):("background"===u.rendering?c:nt).push({def:u,ui:b,instance:l,range:e,isStart:o.start&&o.start.valueOf()===e.start.valueOf(),isEnd:o.end&&o.end.valueOf()===e.end.valueOf()}))}for(k in s)for(a=0,d=ue(s[k],i);a<d.length;a++)v=d[a],b=w[(u=p[k]).defId],c.push({def:u,ui:b,instance:null,range:v,isStart:!1,isEnd:!1});for(f in h)for(y=0,g=ue(h[f],i);y<g.length;y++)v=g[y],c.push({def:n.defs[f],ui:w[f],instance:null,range:v,isStart:!1,isEnd:!1});return{bg:c,fg:nt}}function he(n,t,i){var u=n.calendar,s=n.view,r,f,o;for(u.hasPublicHandlers("eventRender")&&(t=t.filter(function(n){var t=u.publiclyTrigger("eventRender",[{event:new e(u,n.eventRange.def,n.eventRange.instance),isMirror:i,isStart:n.isStart,isEnd:n.isEnd,el:n.el,view:s}]);return!1!==t&&(t&&!0!==t&&(n.el=t),!0)})),r=0,f=t;r<f.length;r++)o=f[r],kh(o.el,o);return t}function kh(n,t){n.fcSeg=t}function di(n){return n.fcSeg||null}function gi(n,t){return l(n,function(n){return ce(n,t)})}function ce(n,t){var i=[];return t[""]&&i.push(t[""]),t[n.defId]&&i.push(t[n.defId]),i.push(n.ui),ru(i)}function le(n,t,i){var u=n.calendar,s=n.view,f,o,r;if(u.hasPublicHandlers("eventPositioned"))for(f=0,o=t;f<o.length;f++)r=o[f],u.publiclyTriggerAfterSizing("eventPositioned",[{event:new e(u,r.eventRange.def,r.eventRange.instance),isMirror:i,isStart:r.isStart,isEnd:r.isEnd,el:r.el,view:s}]);u.state.eventSourceLoadingLevel||(u.afterSizingTriggers._eventsPositioned=[null])}function ae(n,t,i){for(var r,f,s,u=n.calendar,c=n.view,o=0,h=t;o<h.length;o++)r=h[o],u.trigger("eventElRemove",r.el);if(u.hasPublicHandlers("eventDestroy"))for(f=0,s=t;f<s.length;f++)r=s[f],u.publiclyTrigger("eventDestroy",[{event:new e(u,r.eventRange.def,r.eventRange.instance),isMirror:i,el:r.el,view:c}])}function ve(n,t,i,r){var h=gi(n.defs,t),u={defs:{},instances:{}},f,e,s,o;for(f in n.defs)e=n.defs[f],u.defs[f]=dh(e,h[f],i,r.pluginSystem.hooks.eventDefMutationAppliers,r);for(s in n.instances)o=n.instances[s],e=u.defs[o.defId],u.instances[s]=gh(o,e,h[o.defId],i,r);return u}function dh(n,i,r,u,f){var o=r.standardProps||{},e,s,h;for(null==o.hasEnd&&i.durationEditable&&(r.startDelta||r.endDelta)&&(o.hasEnd=!0),e=t({},n,o,{ui:t({},n.ui,o.ui)}),r.extendedProps&&(e.extendedProps=t({},e.extendedProps,r.extendedProps)),s=0,h=u;s<h.length;s++)h[s](e,r,f);return!e.hasEnd&&f.opt("forceEventDuration")&&(e.hasEnd=!0),e}function gh(n,i,r,f,e){var s=e.dateEnv,h=f.standardProps&&!0===f.standardProps.allDay,c=f.standardProps&&!1===f.standardProps.hasEnd,o=t({},n);return h&&(o.range=bf(o.range)),f.datesDelta&&r.startEditable&&(o.range={start:s.add(o.range.start,f.datesDelta),end:s.add(o.range.end,f.datesDelta)}),f.startDelta&&r.durationEditable&&(o.range={start:s.add(o.range.start,f.startDelta),end:o.range.end}),f.endDelta&&r.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,f.endDelta)}),c&&(o.range={start:o.range.start,end:e.getDefaultEventEnd(i.allDay,o.range.start)}),i.allDay&&(o.range={start:u(o.range.start),end:u(o.range.end)}),o.range.end<o.range.start&&(o.range.end=e.getDefaultEventEnd(i.allDay,o.range.start)),o}function nc(n,i,r,u,f){switch(i.type){case"RECEIVE_EVENTS":return function(n,t,i,r,u,f){if(t&&i===t.latestFetchId){var e=li(function(n,t,i){var r=i.opt("eventDataTransform"),u=t?t.eventDataTransform:null;return u&&(n=re(n,u)),r&&(n=re(n,r)),n}(u,t,f),t.sourceId,f);return r&&(e=ht(e,r,f)),dt(ye(n,t.sourceId),e)}return n}(n,r[i.sourceId],i.fetchId,i.fetchRange,i.rawEvents,f);case"ADD_EVENTS":return function(n,t,i,r){return i&&(t=ht(t,i,r)),dt(n,t)}(n,i.eventStore,u?u.activeRange:null,f);case"MERGE_EVENTS":return dt(n,i.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return u?ht(n,u.activeRange,f):n;case"CHANGE_TIMEZONE":return function(n,i,r){var u=n.defs,f=l(n.instances,function(n){var f=u[n.defId];return f.allDay||f.recurringDef?n:t({},n,{range:{start:r.createMarker(i.toDate(n.range.start,n.forcedStartTzo)),end:r.createMarker(i.toDate(n.range.end,n.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:n.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:n.forcedEndTzo})});return{defs:u,instances:f}}(n,i.oldDateEnv,f.dateEnv);case"MUTATE_EVENTS":return function(n,t,i,r,u){var f=ie(n,t),e=r?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:u.eventUiBases;return f=ve(f,e,i,u),dt(n,f)}(n,i.instanceId,i.mutation,i.fromApi,f);case"REMOVE_EVENT_INSTANCES":return pe(n,i.instances);case"REMOVE_EVENT_DEF":return ct(n,function(n){return n.defId!==i.defId});case"REMOVE_EVENT_SOURCE":return ye(n,i.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return ct(n,function(n){return!n.sourceId});case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};case"RESET_EVENTS":return{defs:n.defs,instances:n.instances};default:return n}}function ye(n,t){return ct(n,function(n){return n.sourceId!==t})}function pe(n,t){return{defs:n.defs,instances:nt(n.instances,function(n){return!t[n.instanceId]})}}function we(n,t){return be({eventDrag:n},t)}function be(n,i){var r=i.view,u=t({businessHours:r?r.props.businessHours:{defs:{},instances:{}},dateSelection:"",eventStore:i.state.eventStore,eventUiBases:i.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},n);return(i.pluginSystem.hooks.isPropsValid||ke)(u,i)}function ke(n,i,r,u){return void 0===r&&(r={}),!(n.eventDrag&&!function(n,i,r,u){var h=n.eventDrag,b=h.mutatedEvents,k=b.defs,d=b.instances,a=gi(k,h.isEvent?n.eventUiBases:{"":i.selectionConfig}),y,o,it,s;u&&(a=l(a,u));var v=pe(n.eventStore,h.affectedEvents.instances),g=v.defs,nt=v.instances,ot=gi(g,n.eventUiBases);for(y in d){var f=d[y],tt=f.range,p=a[f.defId],c=k[f.defId];if(!de(p.constraints,tt,v,n.businessHours,i))return!1;o=i.opt("eventOverlap");for(it in"function"!=typeof o&&(o=null),nt)if(s=nt[it],vi(tt,s.range)&&(!1===ot[s.defId].overlap&&h.isEvent||!1===p.overlap||o&&!o(new e(i,g[s.defId],s),new e(i,c,f))))return!1;for(var rt=i.state.eventStore,w=0,ut=p.allows;w<ut.length;w++){var st=ut[w],ht=t({},r,{range:f.range,allDay:c.allDay}),ft=rt.defs[c.defId],ct=rt.instances[y],et=void 0;if(et=ft?new e(i,ft,ct):new e(i,c),!st(i.buildDateSpanApi(ht),et))return!1}}return!0}(n,i,r,u))&&!(n.dateSelection&&!function(n,i,r,u){var c=n.eventStore,k=c.defs,a=c.instances,v=n.dateSelection,y=v.range,f=i.selectionConfig,o,p,s,h,l,w,b;if(u&&(f=u(f)),!de(f.constraints,y,c,n.businessHours,i))return!1;o=i.opt("selectOverlap"),"function"!=typeof o&&(o=null);for(p in a)if(s=a[p],vi(y,s.range)&&(!1===f.overlap||o&&!o(new e(i,k[s.defId],s))))return!1;for(h=0,l=f.allows;h<l.length;h++)if(w=l[h],b=t({},r,v),!w(i.buildDateSpanApi(b),null))return!1;return!0}(n,i,r,u))}function de(n,t,i,r,u){for(var f=0,e=n;f<e.length;f++)if(!ic(tc(e[f],t,i,r,u),t))return!1;return!0}function tc(n,t,i,r,u){return"businessHours"===n?nu(ht(r,t,u)):"string"==typeof n?nu(ct(i,function(t){return t.groupId===n})):"object"==typeof n&&n?nu(ht(n,t,u)):[]}function nu(n){var t=n.instances,i=[],r;for(r in t)i.push(t[r].range);return i}function ic(n,t){for(var i=0,r=n;i<r.length;i++)if(yi(r[i],t))return!0;return!1}function ft(n){return(n+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function ge(n){var r=[],i,t;for(i in n)t=n[i],null!=t&&""!==t&&r.push(i+":"+t);return r.join(";")}function no(n){return Array.isArray(n)?n:"string"==typeof n?n.split(/\s+/):[]}function tu(n,t,i){var r=a(n,ti,{},i),u=function(n,t){return Array.isArray(n)?li(n,"",t,!0):"object"==typeof n&&n?li([n],"",t,!0):null!=n?String(n):null}(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=u?[u]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function iu(n,t,i,r){var f={},o={},e,u;for(u in ti)e=n+hi(u),f[u]=t[e],o[e]=!0;if("event"===n&&(f.editable=t.editable),r)for(u in t)o[u]||(r[u]=t[u]);return tu(f,i)}function ru(n){return n.reduce(uc,rc)}function uc(n,t){return{startEditable:null!=t.startEditable?t.startEditable:n.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:n.durationEditable,constraints:n.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:n.overlap,allows:n.allows.concat(t.allows),backgroundColor:t.backgroundColor||n.backgroundColor,borderColor:t.borderColor||n.borderColor,textColor:t.textColor||n.textColor,classNames:n.classNames.concat(t.classNames)}}function ro(n,i,r,f){var c=function(n,t){var i=null,r;return n&&(r=t.state.eventSources[n],i=r.allDayDefault),null==i&&(i=t.opt("allDayDefault")),i}(i,r),l={},o=function(n,i,r,u,f){for(var s,h,e,o=0;o<u.length;o++)if(s={},h=u[o].parse(n,s,r),h)return e=s.allDay,delete s.allDay,null==e&&null==(e=i)&&null==(e=h.allDayGuess)&&(e=!1),t(f,s),{allDay:e,duration:h.duration,typeData:h.typeData,typeId:o};return null}(n,c,r.dateEnv,r.pluginSystem.hooks.recurringTypes,l),s,h,e;return o?((s=tr(l,i,o.allDay,Boolean(o.duration),r)).recurringDef={typeId:o.typeId,typeData:o.typeData,duration:o.duration},{def:s,instance:null}):(h={},e=function(n,t,i,r,f){var h,s,l=function(n,t){var i=a(n,to,{},t);return i.start=null!==i.start?i.start:i.date,delete i.date,i}(n,r),c=l.allDay,e=null,v=!1,o=null;if(h=i.dateEnv.createMarkerMeta(l.start))e=h.marker;else if(!f)return null;return null!=l.end&&(s=i.dateEnv.createMarkerMeta(l.end)),null==c&&(c=null!=t?t:(!h||h.isTimeUnspecified)&&(!s||s.isTimeUnspecified)),c&&e&&(e=u(e)),s&&(o=s.marker,c&&(o=u(o)),e&&o<=e&&(o=null)),o?v=!0:f||(v=i.opt("forceEventDuration")||!1,o=i.dateEnv.add(e,c?i.defaultAllDayEventDuration:i.defaultTimedEventDuration)),{allDay:c,hasEnd:v,range:{start:e,end:o},forcedStartTzo:h?h.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(n,c,r,h,f),e?{def:s=tr(h,i,e.allDay,e.hasEnd,r),instance:ir(s.defId,e.range,e.forcedStartTzo,e.forcedEndTzo)}:null)}function tr(n,i,r,u,f){var o={},e=function(n,t,i){var u={},r=a(n,nr,{},u),f=tu(u,t,i);return r.publicId=r.id,delete r.id,r.ui=f,r}(n,f,o),s,h,c;for(e.defId=String(io++),e.sourceId=i,e.allDay=r,e.hasEnd=u,s=0,h=f.pluginSystem.hooks.eventDefParsers;s<h.length;s++)c={},h[s](e,o,c),o=c;return e.extendedProps=t(o,e.extendedProps||{}),Object.freeze(e.ui.classNames),Object.freeze(e.extendedProps),e}function ir(n,t,i,r){return{instanceId:String(io++),defId:n,range:t,forcedStartTzo:null==i?null:i,forcedEndTzo:null==r?null:r}}function uo(n,i){return li(function(n){var i;return i=!0===n?[{}]:Array.isArray(n)?n.filter(function(n){return n.daysOfWeek}):"object"==typeof n&&n?[n]:[],i.map(function(n){return t({},fc,n)})}(n),"",i)}function f(n,t,i){function h(){if(r){for(var n=0,i=e;n<i.length;n++)i[n].unrender();t&&t.apply(s,r),r=null}}function u(){r&&dr(r,arguments)||(h(),s=this,r=arguments,n.apply(this,arguments))}var s,r,e,f,o;for(void 0===i&&(i=[]),e=[],u.dependents=e,u.unrender=h,f=0,o=i;f<o.length;f++)o[f].dependents.push(u);return u}function oc(n,i,r){var u=[],f;return n&&u.push(n),i&&u.push(i),f={"":ru(u)},r&&t(f,r),f}function fo(n,t,i,r,u){var f,e,o,s;return i instanceof Date?f=i:(f=i.date,e=i.type,o=i.forceOff),s={date:t.formatIso(f,{omitTime:!0}),type:e||"day"},"string"==typeof r&&(u=r,r=null),r=r?" "+function(n){var r=[],t,i;for(t in n)i=n[t],null!=i&&r.push(t+'="'+ft(i)+'"');return r.join(" ")}(r):"",u=u||"",!o&&n.navLinks?"<a"+r+' data-goto="'+ft(JSON.stringify(s))+'">'+u+"<\/a>":"<span"+r+">"+u+"<\/span>"}function eo(n,t,i,r){var e,o,h=i.calendar,l=i.options,a=i.theme,s=i.dateEnv,f=[];return ut(t.activeRange,n)?(f.push("fc-"+ff[n.getUTCDay()]),l.monthMode&&s.getMonth(n)!==s.getMonth(t.currentRange.start)&&f.push("fc-other-month"),o=c(e=u(h.getNow()),1),n<e?f.push("fc-past"):n>=o?f.push("fc-future"):(f.push("fc-today"),!0!==r&&f.push(a.getClass("today")))):f.push("fc-disabled-day"),f}function oo(n,t,i){var r=!1,f=function(){r||(r=!0,t.apply(this,arguments))},e=function(){r||(r=!0,i&&i.apply(this,arguments))},u=n(f,e);u&&"function"==typeof u.then&&u.then(f,e)}function ho(n,t,i){(n[t]||(n[t]=[])).push(i)}function co(n,t,i){i?n[t]&&(n[t]=n[t].filter(function(n){return n!==i})):delete n[t]}function yt(n){return{id:String(vo++),deps:n.deps||[],reducers:n.reducers||[],eventDefParsers:n.eventDefParsers||[],isDraggableTransformers:n.isDraggableTransformers||[],eventDragMutationMassagers:n.eventDragMutationMassagers||[],eventDefMutationAppliers:n.eventDefMutationAppliers||[],dateSelectionTransformers:n.dateSelectionTransformers||[],datePointTransforms:n.datePointTransforms||[],dateSpanTransforms:n.dateSpanTransforms||[],views:n.views||{},viewPropsTransformers:n.viewPropsTransformers||[],isPropsValid:n.isPropsValid||null,externalDefTransforms:n.externalDefTransforms||[],eventResizeJoinTransforms:n.eventResizeJoinTransforms||[],viewContainerModifiers:n.viewContainerModifiers||[],eventDropTransformers:n.eventDropTransformers||[],componentInteractions:n.componentInteractions||[],calendarInteractions:n.calendarInteractions||[],themeClasses:n.themeClasses||{},eventSourceDefs:n.eventSourceDefs||[],cmdFormatter:n.cmdFormatter,recurringTypes:n.recurringTypes||[],namedTimeZonedImpl:n.namedTimeZonedImpl,defaultView:n.defaultView||"",elementDraggingImpl:n.elementDraggingImpl,optionChangeHandlers:n.optionChangeHandlers||{}}}function yo(n,t,i,r,u){var e=null,f;"GET"===(n=n.toUpperCase())?t=function(n,t){return n+(-1===n.indexOf("?")?"?":"&")+po(t)}(t,i):e=po(i),f=new XMLHttpRequest,f.open(n,t,!0),"GET"!==n&&f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.onload=function(){if(f.status>=200&&f.status<400)try{var n=JSON.parse(f.responseText);r(n,f)}catch(n){u("Failure parsing JSON",f)}else u("Request failed",f)},f.onerror=function(){u("Request failed",f)},f.send(e)}function po(n){var i=[],t;for(t in n)i.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return i.join("&")}function wo(n,t,i){for(var f,s,y,e,h,p,r=ne(t.state.eventSources),c=[],o=0,l=n;o<l.length;o++){for(var a=l[o],v=!1,u=0;u<r.length;u++)if(i(r[u]._raw,a)){r.splice(u,1),v=!0;break}v||c.push(a)}for(f=0,s=r;f<s.length;f++)y=s[f],t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:y.sourceId});for(e=0,h=c;e<h.length;e++)p=h[e],t.addEventSource(p)}function ou(n){for(var i,f=n.length>0?n[0].code:"en",e=window.FullCalendarLocalesAll||[],o=window.FullCalendarLocales||{},s=e.concat(ne(o),n),r={en:eu},t=0,u=s;t<u.length;t++)i=u[t],r[i.code]=i;return{map:r,defaultCode:f}}function su(n,t){return"object"!=typeof n||Array.isArray(n)?function(n,t){var i=[].concat(n||[]),r=function(n,t){for(var u,r,f,i=0;i<n.length;i++)for(u=n[i].toLocaleLowerCase().split("-"),r=u.length;r>0;r--)if(f=u.slice(0,r).join("-"),t[f])return t[f];return null}(i,t)||eu;return bo(n,i,r)}(n,t):bo(n.code,[n.code],n)}function bo(n,t,i){var r=kr([eu,i],["buttonText"]),u;return delete r.code,u=r.week,delete r.week,{codeArg:n,codes:t,week:u,simpleNumberFormat:new Intl.NumberFormat(n),options:r}}function ts(n){var t=ns.exec(n),i,r;return t&&(i=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0)),ar(i))?(r=null,t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:i,isTimeUnspecified:!t[6],timeZoneOffset:r}):null}function is(n,t){return!t.pluginSystem.hooks.eventSourceDefs[n.sourceDefId].ignoreRange}function rs(n,t){for(var u,f,r=t.pluginSystem.hooks.eventSourceDefs,i=r.length-1;i>=0;i--)if(u=r[i].parseMeta(n),u)return f=ul("object"==typeof n?n:{},u,i,t),f._raw=n,f;return null}function ul(n,t,i,r){var f={},u=a(n,il,{},f),e={},o=tu(f,r,e);return u.isFetching=!1,u.latestFetchId="",u.fetchRange=null,u.publicId=String(n.id||""),u.sourceId=String(rl++),u.sourceDefId=i,u.meta=t,u.ui=o,u.extendedProps=e,u}function fl(n,i,r,u){switch(i.type){case"ADD_EVENT_SOURCES":return function(n,i,r,u){for(var o,f={},e=0,s=i;e<s.length;e++)o=s[e],f[o.sourceId]=o;return r&&(f=fs(f,r,u)),t({},n,f)}(n,i.sources,r?r.activeRange:null,u);case"REMOVE_EVENT_SOURCE":return f=n,e=i.sourceId,nt(f,function(n){return n.sourceId!==e});case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?fs(n,r.activeRange,u):n;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return es(n,i.sourceIds?gf(i.sourceIds):function(n,t){return nt(n,function(n){return is(n,t)})}(n,u),r?r.activeRange:null,u);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(n,i,r,u){var e,f=n[i];return f&&r===f.latestFetchId?t({},n,((e={})[i]=t({},f,{isFetching:!1,fetchRange:u}),e)):n}(n,i.sourceId,i.fetchId,i.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return n}var f,e}function fs(n,t,i){return es(n,nt(n,function(n){return function(n,t,i){return is(n,i)?!i.opt("lazyFetching")||!n.fetchRange||n.isFetching||t.start<n.fetchRange.start||t.end>n.fetchRange.end:!n.latestFetchId}(n,t,i)}),t,i)}function es(n,t,i,r){var e={},u,f;for(u in n)f=n[u],e[u]=t[u]?el(f,i,r):f;return e}function el(n,i,r){var f=r.pluginSystem.hooks.eventSourceDefs[n.sourceDefId],u=String(us++);return f.fetch({eventSource:n,calendar:r,range:i},function(t){var e,o,f=t.rawEvents,s=r.opt("eventSourceSuccess");n.success&&(o=n.success(f,t.xhr)),s&&(e=s(f,t.xhr)),f=o||e||f,r.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:u,fetchRange:i,rawEvents:f})},function(t){var f=r.opt("eventSourceFailure");console.warn(t.message,t),n.failure&&n.failure(t),f&&f(t),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:u,fetchRange:i,error:t})}),t({},n,{isFetching:!0,latestFetchId:u})}function ol(n,i,r){for(var s=function(n,t){switch(t.type){case"SET_VIEW_TYPE":return t.viewType;default:return n}}(n.viewType,i),f=function(n,t,i,r,u){var f,s,e,o;switch(t.type){case"PREV":f=u.dateProfileGenerators[r].buildPrev(n,i);break;case"NEXT":f=u.dateProfileGenerators[r].buildNext(n,i);break;case"SET_DATE":n.activeRange&&ut(n.currentRange,t.dateMarker)||(f=u.dateProfileGenerators[r].build(t.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":if(s=u.dateProfileGenerators[r],!s)throw new Error(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");f=s.build(t.dateMarker||i,void 0,!0)}return!f||!f.isValid||n&&(e=n,o=f,ni(e.validRange,o.validRange)&&ni(e.activeRange,o.activeRange)&&ni(e.renderRange,o.renderRange)&&yr(e.minTime,o.minTime)&&yr(e.maxTime,o.maxTime))?n:f}(n.dateProfile,i,n.currentDate,s,r),u=fl(n.eventSources,i,f,r),e=t({},n,{viewType:s,dateProfile:f,currentDate:sl(n.currentDate,i,f),eventSources:u,eventStore:nc(n.eventStore,i,u,f,r),dateSelection:hl(n.dateSelection,i,r),eventSelection:cl(n.eventSelection,i),eventDrag:ll(n.eventDrag,i,u,r),eventResize:al(n.eventResize,i,u,r),eventSourceLoadingLevel:os(u),loadingLevel:os(u)}),o=0,h=r.pluginSystem.hooks.reducers;o<h.length;o++)e=h[o](e,i,r);return e}function sl(n,t,i){switch(t.type){case"PREV":case"NEXT":return ut(i.currentRange,n)?n:i.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var r=t.dateMarker||n;return i.activeRange&&!ut(i.activeRange,r)?i.currentRange.start:r;default:return n}}function hl(n,t){switch(t.type){case"SELECT_DATES":return t.selection;case"UNSELECT_DATES":return null;default:return n}}function cl(n,t){switch(t.type){case"SELECT_EVENT":return t.eventInstanceId;case"UNSELECT_EVENT":return"";default:return n}}function ll(n,t){switch(t.type){case"SET_EVENT_DRAG":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_DRAG":return null;default:return n}}function al(n,t){switch(t.type){case"SET_EVENT_RESIZE":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return n}}function os(n){var t=0,i;for(i in n)n[i].isFetching&&t++;return t}function vl(n,t,i){var u=function(n,t){var r={},i=a(n,ss,{},r),u=i.start?t.createMarkerMeta(i.start):null,f=i.end?t.createMarkerMeta(i.end):null,e=i.allDay;return null==e&&(e=u&&u.isTimeUnspecified&&(!f||f.isTimeUnspecified)),r.range={start:u?u.marker:null,end:f?f.marker:null},r.allDay=e,r}(n,t),r=u.range;if(!r.start)return null;if(!r.end){if(null==i)return null;r.end=t.add(r.start,i)}return u}function yl(n,t,i){var r=tr({editable:!1},"",n.allDay,!0,i);return{def:r,ui:ce(r,t),instance:ir(r.defId,n.range),range:n.range,isStart:!0,isEnd:!0}}function lu(n,i,r,u){if(i[n])return i[n];var f=function(n,i,r,u){var o=r[n],s=u[n],c=function(n){return o&&null!==o[n]?o[n]:s&&null!==s[n]?s[n]:null},e=c("class"),h=c("superType"),f;if(!h&&e&&(h=hs(e,u)||hs(e,r)),f=null,h){if(h===n)throw new Error("Can't have a custom view type that references itself");f=lu(h,i,r,u)}return(!e&&f&&(e=f.class),!e)?null:{type:n,"class":e,defaults:t({},f?f.defaults:{},o?o.options:{}),overrides:t({},f?f.overrides:{},s?s.options:{})}}(n,i,r,u);return f&&(i[n]=f),f}function hs(n,t){var u=Object.getPrototypeOf(n.prototype),i,r;for(i in t)if(r=t[i],r.class&&r.class.prototype===u)return i;return""}function cs(n){return l(n,pl)}function pl(n){"function"==typeof n&&(n={"class":n});var t={},i=a(n,ls,{},t);return{superType:i.type,"class":i.class,options:t}}function wl(n,r){var f=cs(n),u=cs(r.overrides.views);return l(function(n,t){var i,r={};for(i in n)lu(i,r,n,t);for(i in t)lu(i,r,n,t);return r}(f,u),function(n){return function(n,r,u){var s=n.overrides.duration||n.defaults.duration||u.dynamicOverrides.duration||u.overrides.duration,h=null,e="",o="",l={},c,f;return s&&(h=i(s))&&(c=si(h,!vr(s)),e=c.unit,1===c.value&&(o=e,l=r[e]?r[e].options:{})),f=function(t){var i=t.buttonText||{},r=n.defaults.buttonTextKey;return null!=r&&null!=i[r]?i[r]:null!=i[n.type]?i[n.type]:null!=i[o]?i[o]:void 0},{type:n.type,"class":n.class,duration:h,durationUnit:e,singleUnit:o,options:t({},tt,n.defaults,u.dirDefaults,u.localeDefaults,u.overrides,l,n.overrides,u.dynamicOverrides),buttonTextOverride:f(u.dynamicOverrides)||f(u.overrides)||n.overrides.buttonText,buttonTextDefault:f(u.localeDefaults)||f(u.dirDefaults)||n.defaults.buttonText||f(tt)||n.type}}(n,u,r)})}function bl(n,t){var i;return i=/^(year|month)$/.test(n.currentRangeUnit)?n.currentRange:n.activeRange,this.context.dateEnv.formatRange(i.start,i.end,v(t.titleFormat||function(n){var i=n.currentRangeUnit,t;return"year"===i?{year:"numeric"}:"month"===i?{year:"numeric",month:"long"}:(t=wt(n.currentRange.start,n.currentRange.end),null!==t&&t>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"})}(n),t.titleRangeSeparator),{isEndExclusive:n.isRangeAllDay})}function kl(n,t,i){return n.extend(t.options,i)}function dl(n){return n.map(function(n){return new n})}function ta(n,t,i){return new ao(this,n,t,i,null)}function ia(n,t,i,r,u,f,e){return new hu({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:i,locale:n,weekNumberCalculation:u,firstDay:r,weekLabel:f,cmdFormatter:e})}function ra(n){return new(this.pluginSystem.hooks.themeClasses[n.themeSystem]||et)(n)}function ua(n){var t=this.tryRerender.bind(this);return null!=n&&(t=br(t,n)),t}function fa(n){return l(n,function(n){return n.ui})}function ea(n,t,i){var f={"":t},u,r;for(u in n)r=n[u],r.sourceId&&i[r.sourceId]&&(f[u]=i[r.sourceId]);return f}function ys(n){var i=n.eventRange.def,r=n.eventRange.instance.range,u=r.start?r.start.valueOf():0,f=r.end?r.end.valueOf():0;return t({},i.extendedProps,i,{id:i.publicId,start:u,end:f,duration:f-u,allDay:Number(i.allDay),_seg:n})}function ps(n){var i=su(n.locale||"en",ou([]).map);return n=t({timeZone:tt.timeZone,calendarSystem:"gregory"},n,{locale:i}),new hu(n)}function ks(n,t){return!n||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function ds(n,t,i,r,u,f,e,o){var l,s=f.dateEnv,v=f.theme,h=f.options,a=ut(t.activeRange,n),c=["fc-day-header",v.getClass("widgetHeader")];return l="function"==typeof h.columnHeaderHtml?h.columnHeaderHtml(s.toDate(n)):"function"==typeof h.columnHeaderText?ft(h.columnHeaderText(s.toDate(n))):ft(s.format(n,u)),i?c=c.concat(eo(n,t,f,!0)):c.push("fc-"+ff[n.getUTCDay()]),'<th class="'+c.join(" ")+'"'+(a&&i?' data-date="'+s.formatIso(n,{omitTime:!0})+'"':"")+(e>1?' colspan="'+e+'"':"")+(o?" "+o:"")+">"+(a?fo(h,s,{date:n,forceOff:!i||1===r},l):l)+"<\/th>"}function wu(n,t){var i=n.activeRange;return t?i:{start:ot(i.start,n.minTime.milliseconds),end:ot(i.end,n.maxTime.milliseconds-864e5)}}var gs={className:!0,colSpan:!0,rowSpan:!0},nh={"<tr":"tbody","<td":"tr"},th=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,ih=Element.prototype.closest||function(n){var t=this;if(!document.documentElement.contains(t))return null;do{if(fi(t,n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null},rh=/(top|left|right|bottom|width|height)$/i,sr=null,uf=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],ff=["sun","mon","tue","wed","thu","fri","sat"],cf=["years","months","days","milliseconds"],eh=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/,kf=function(n,t){return(kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},t=function(){return(t=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},df=Object.prototype.hasOwnProperty,ee={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},pi={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},wi=/\s*([ap])\.?m\.?/i,lh=/,/g,ah=/\s+/g,vh=/\u200e/g,yh=/UTC|GMT/,ph=function(){function n(n){var u={},f={},i=0,t;for(t in n)t in ee?(f[t]=n[t],i=Math.max(ee[t],i)):(u[t]=n[t],t in pi&&(i=Math.max(pi[t],i)));this.standardDateProps=u,this.extendedSettings=f,this.severity=i,this.buildFormattingFunc=r(oe)}return n.prototype.format=function(n,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(n)},n.prototype.formatRange=function(n,t,i){var r=this.standardDateProps,s=this.extendedSettings,h=function(n,t,i){return i.getMarkerYear(n)!==i.getMarkerYear(t)?5:i.getMarkerMonth(n)!==i.getMarkerMonth(t)?4:i.getMarkerDay(n)!==i.getMarkerDay(t)?2:d(n)!==d(t)?1:0}(n.marker,t.marker,i.calendarSystem),f,u,e;if(!h)return this.format(n,i);if(f=h,f>1&&("numeric"===r.year||"2-digit"===r.year)&&("numeric"===r.month||"2-digit"===r.month)&&("numeric"===r.day||"2-digit"===r.day)&&(f=1),u=this.format(n,i),e=this.format(t,i),u===e)return u;var c=oe(function(n,t){var r={},i;for(i in n)(!(i in pi)||pi[i]<=t)&&(r[i]=n[i]);return r}(r,f),s,i),l=c(n),a=c(t),o=function(n,t,i,r){for(var f=0,e,s,h,u,o,c,l;f<n.length;){if(e=n.indexOf(t,f),-1===e)break;for(s=n.substr(0,e),f=e+t.length,h=n.substr(f),u=0;u<i.length;){if(o=i.indexOf(r,u),-1===o)break;if(c=i.substr(0,o),u=o+r.length,l=i.substr(u),s===c&&h===l)return{before:s,after:h}}}return null}(u,l,e,a),v=s.separator||"";return o?o.before+l+v+a+o.after:u+v+e},n.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},n}(),wh=function(){function n(n,t){this.cmdStr=n,this.separator=t}return n.prototype.format=function(n,t){return t.cmdFormatter(this.cmdStr,bi(n,null,t,this.separator))},n.prototype.formatRange=function(n,t,i){return i.cmdFormatter(this.cmdStr,bi(n,t,i,this.separator))},n}(),bh=function(){function n(n){this.func=n}return n.prototype.format=function(n,t){return this.func(bi(n,null,t))},n.prototype.formatRange=function(n,t,i){return this.func(bi(n,t,i))},n}(),lt=function(){function n(n,t){this.calendar=n,this.internalEventSource=t}return n.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},n.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(n.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),n}(),e=function(){function n(n,t,i){this._calendar=n,this._def=t,this._instance=i||null}return n.prototype.setProp=function(n,t){var r,u,i;n in to||(n in nr?("function"==typeof nr[n]&&(t=nr[n](t)),this.mutate({standardProps:(r={},r[n]=t,r)})):n in ti&&(i=void 0,"function"==typeof ti[n]&&(t=ti[n](t)),"color"===n?i={backgroundColor:t,borderColor:t}:"editable"===n?i={startEditable:t,durationEditable:t}:((u={})[n]=t,i=u),this.mutate({standardProps:{ui:i}})))},n.prototype.setExtendedProp=function(n,t){var i;this.mutate({extendedProps:(i={},i[n]=t,i)})},n.prototype.setStart=function(n,t){var i,r,u;void 0===t&&(t={}),i=this._calendar.dateEnv,r=i.createMarker(n),r&&this._instance&&(u=kt(this._instance.range.start,r,i,t.granularity),t.maintainDuration?this.mutate({datesDelta:u}):this.mutate({startDelta:u}))},n.prototype.setEnd=function(n,t){var i,r,u;void 0===t&&(t={}),r=this._calendar.dateEnv,(null==n||(i=r.createMarker(n)))&&this._instance&&(i?(u=kt(this._instance.range.end,i,r,t.granularity),this.mutate({endDelta:u})):this.mutate({standardProps:{hasEnd:!1}}))},n.prototype.setDates=function(n,t,i){var r,u,s;void 0===i&&(i={});var o,f=this._calendar.dateEnv,e={allDay:i.allDay},h=f.createMarker(n);h&&(null==t||(o=f.createMarker(t)))&&this._instance&&(r=this._instance.range,!0===i.allDay&&(r=bf(r)),u=kt(r.start,h,f,i.granularity),o?(s=kt(r.end,o,f,i.granularity),yr(u,s)?this.mutate({datesDelta:u,standardProps:e}):this.mutate({startDelta:u,endDelta:s,standardProps:e})):(e.hasEnd=!1,this.mutate({datesDelta:u,standardProps:e})))},n.prototype.moveStart=function(n){var t=i(n);t&&this.mutate({startDelta:t})},n.prototype.moveEnd=function(n){var t=i(n);t&&this.mutate({endDelta:t})},n.prototype.moveDates=function(n){var t=i(n);t&&this.mutate({datesDelta:t})},n.prototype.setAllDay=function(n,t){void 0===t&&(t={});var r={allDay:n},i=t.maintainDuration;null==i&&(i=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==n&&(r.hasEnd=i),this.mutate({standardProps:r})},n.prototype.formatRange=function(n){var i=this._calendar.dateEnv,t=this._instance,r=v(n,this._calendar.opt("defaultRangeSeparator"));return this._def.hasEnd?i.formatRange(t.range.start,t.range.end,r,{forcedStartTzo:t.forcedStartTzo,forcedEndTzo:t.forcedEndTzo}):i.format(t.range.start,r,{forcedTzo:t.forcedStartTzo})},n.prototype.mutate=function(n){var r=this._def,t=this._instance,i;t&&(this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:t.instanceId,mutation:n,fromApi:!0}),i=this._calendar.state.eventStore,this._def=i.defs[r.defId],this._instance=i.instances[t.instanceId])},n.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(n.prototype,"source",{get:function(){var n=this._def.sourceId;return n?new lt(this._calendar,this._calendar.state.eventSources[n]):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),n}(),ti={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:no,classNames:no,color:String,backgroundColor:String,borderColor:String,textColor:String},rc={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]},nr={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},to={start:null,date:null,end:null,allDay:null},io=0,fc={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"},uu={defs:{},instances:{}},ec=function(){function n(){this.getKeysForEventDefs=r(this._getKeysForEventDefs),this.splitDateSelection=r(this._splitDateSpan),this.splitEventStore=r(this._splitEventStore),this.splitIndividualUi=r(this._splitIndividualUi),this.splitEventDrag=r(this._splitInteraction),this.splitEventResize=r(this._splitInteraction),this.eventUiBuilders={}}return n.prototype.splitProps=function(n){var s=this,i=this.getKeyInfo(n),u=this.getKeysForEventDefs(n.eventStore),h=this.splitDateSelection(n.dateSelection),c=this.splitIndividualUi(n.eventUiBases,u),a=this.splitEventStore(n.eventStore,u),v=this.splitEventDrag(n.eventDrag),y=this.splitEventResize(n.eventResize),f={},t;for(t in this.eventUiBuilders=l(i,function(n,t){return s.eventUiBuilders[t]||r(oc)}),i){var e=i[t],o=a[t]||uu,p=this.eventUiBuilders[t];f[t]={businessHours:e.businessHours||n.businessHours,dateSelection:h[t]||null,eventStore:o,eventUiBases:p(n.eventUiBases[""],e.ui,c[t]),eventSelection:o.instances[n.eventSelection]?n.eventSelection:"",eventDrag:v[t]||null,eventResize:y[t]||null}}return f},n.prototype._splitDateSpan=function(n){var r={},t,i;if(n)for(t=0,i=this.getKeysForDateSpan(n);t<i.length;t++)r[i[t]]=n;return r},n.prototype._getKeysForEventDefs=function(n){var t=this;return l(n.defs,function(n){return t.getKeysForEventDef(n)})},n.prototype._splitEventStore=function(n,t){var h=n.defs,c=n.instances,i={},u,f,e,o,r;for(u in h)for(f=0,e=t[u];f<e.length;f++)i[r=e[f]]||(i[r]={defs:{},instances:{}}),i[r].defs[u]=h[u];for(o in c)for(var l=c[o],s=0,a=t[l.defId];s<a.length;s++)i[r=a[s]]&&(i[r].instances[o]=l);return i},n.prototype._splitIndividualUi=function(n,t){var r={},i,u,e,f;for(i in n)if(i)for(u=0,e=t[i];u<e.length;u++)f=e[u],r[f]||(r[f]={}),r[f][i]=n[i];return r},n.prototype._splitInteraction=function(n){var i={},t;if(n){var r=this._splitEventStore(n.affectedEvents,this._getKeysForEventDefs(n.affectedEvents)),e=this._getKeysForEventDefs(n.mutatedEvents),u=this._splitEventStore(n.mutatedEvents,e),f=function(t){i[t]||(i[t]={affectedEvents:r[t]||uu,mutatedEvents:u[t]||uu,isEvent:n.isEvent,origSeg:n.origSeg})};for(t in r)f(t);for(t in u)f(t)}return i},n}(),so=function(){function n(){}return n.mixInto=function(n){this.mixIntoObj(n.prototype)},n.mixIntoObj=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n[i]||(n[i]=t.prototype[i])})},n.mixOver=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]=t.prototype[i]})},n}(),rr=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return h(t,n),t.prototype.on=function(n,t){return ho(this._handlers||(this._handlers={}),n,t),this},t.prototype.one=function(n,t){return ho(this._oneHandlers||(this._oneHandlers={}),n,t),this},t.prototype.off=function(n,t){return this._handlers&&co(this._handlers,n,t),this._oneHandlers&&co(this._oneHandlers,n,t),this},t.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return this.triggerWith(n,this,i),this},t.prototype.triggerWith=function(n,t,i){return this._handlers&&pr(this._handlers[n],t,i),this._oneHandlers&&(pr(this._oneHandlers[n],t,i),delete this._oneHandlers[n]),this},t.prototype.hasHandlers=function(n){return this._handlers&&this._handlers[n]&&this._handlers[n].length||this._oneHandlers&&this._oneHandlers[n]&&this._oneHandlers[n].length},t}(so),sc=function(){function n(n,t,i,r){this.originEl=n,this.els=t,this.isHorizontal=i,this.isVertical=r}return n.prototype.build=function(){var t=this.originEl,n=this.originClientRect=t.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(n.left),this.isVertical&&this.buildElVerticals(n.top)},n.prototype.buildElHorizontals=function(n){for(var i,r=[],u=[],t=0,f=this.els;t<f.length;t++)i=f[t].getBoundingClientRect(),r.push(i.left-n),u.push(i.right-n);this.lefts=r,this.rights=u},n.prototype.buildElVerticals=function(n){for(var i,r=[],u=[],t=0,f=this.els;t<f.length;t++)i=f[t].getBoundingClientRect(),r.push(i.top-n),u.push(i.bottom-n);this.tops=r,this.bottoms=u},n.prototype.leftToIndex=function(n){for(var i=this.lefts,r=this.rights,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.topToIndex=function(n){for(var i=this.tops,r=this.bottoms,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getWidth=function(n){return this.rights[n]-this.lefts[n]},n.prototype.getHeight=function(n){return this.bottoms[n]-this.tops[n]},n}(),fu=function(){function n(){}return n.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},n.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},n.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},n.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},n.prototype.canScrollUp=function(){return this.getScrollTop()>0},n.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},n.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},n.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},n}(),lo=function(n){function t(t){var i=n.call(this)||this;return i.el=t,i}return h(t,n),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(n){this.el.scrollTop=n},t.prototype.setScrollLeft=function(n){this.el.scrollLeft=n},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(fu),hc=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return h(t,n),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(n){window.scroll(window.pageXOffset,n)},t.prototype.setScrollLeft=function(n){window.scroll(n,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(fu),cc=function(n){function t(t,i){var r=n.call(this,it("div",{className:"fc-scroller"}))||this;return r.overflowX=t,r.overflowY=i,r.applyOverflow(),r}return h(t,n),t.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},t.prototype.destroy=function(){p(this.el)},t.prototype.applyOverflow=function(){s(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},t.prototype.lockOverflow=function(n){var t=this.overflowX,i=this.overflowY;n=n||this.getScrollbarWidths(),"auto"===t&&(t=n.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===i&&(i=n.left||n.right||this.canScrollVertically()?"scroll":"hidden"),s(this.el,{overflowX:t,overflowY:i})},t.prototype.setHeight=function(n){or(this.el,"height",n)},t.prototype.getScrollbarWidths=function(){var n=hr(this.el);return{left:n.scrollbarLeft,right:n.scrollbarRight,bottom:n.scrollbarBottom}},t}(lo),at=function(){function n(n){this.calendarOptions=n,this.processIconOverride()}return n.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},n.prototype.setIconOverride=function(n){var i,r;if("object"==typeof n&&n){for(r in i=t({},this.iconClasses),n)i[r]=this.applyIconOverridePrefix(n[r]);this.iconClasses=i}else!1===n&&(this.iconClasses={})},n.prototype.applyIconOverridePrefix=function(n){var t=this.iconOverridePrefix;return t&&0!==n.indexOf(t)&&(n=t+n),n},n.prototype.getClass=function(n){return this.classes[n]||""},n.prototype.getIconClass=function(n){var t=this.iconClasses[n];return t?this.baseIconClass+" "+t:""},n.prototype.getCustomButtonIconClass=function(n){var t;return this.iconOverrideCustomButtonOption&&(t=n[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},n}(),ii,vo,ns,us,cu,ss,ls,au,as,pu,ri,vs,ws,bs;at.prototype.classes={},at.prototype.iconClasses={},at.prototype.baseIconClass="",at.prototype.iconOverridePrefix="";var lc=0,ao=function(){function n(n,t,r,u,f){this.calendar=n,this.theme=t,this.dateEnv=r,this.options=u,this.view=f,this.isRtl="rtl"===u.dir,this.eventOrderSpecs=vf(u.eventOrder),this.nextDayThreshold=i(u.nextDayThreshold)}return n.prototype.extend=function(t,i){return new n(this.calendar,this.theme,this.dateEnv,t||this.options,i||this.view)},n}(),vt=function(){function n(){this.everRendered=!1,this.uid=String(lc++)}return n.addEqualityFuncs=function(n){this.prototype.equalityFuncs=t({},this.prototype.equalityFuncs,n)},n.prototype.receiveProps=function(n,t){this.receiveContext(t);var i=function(n,t,i){var u={},f=!1,r;for(r in t)r in n&&(n[r]===t[r]||i[r]&&i[r](n[r],t[r]))?u[r]=n[r]:(u[r]=t[r],f=!0);for(r in n)if(!(r in t)){f=!0;break}return{anyChanges:f,comboProps:u}}(this.props||{},n,this.equalityFuncs),u=i.anyChanges,r=i.comboProps;this.props=r,u&&(this.everRendered&&this.beforeUpdate(),this.render(r,t),this.everRendered&&this.afterUpdate()),this.everRendered=!0},n.prototype.receiveContext=function(n){var t=this.context;this.context=n,t||this.firstContext(n)},n.prototype.render=function(){},n.prototype.firstContext=function(){},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.destroy=function(){},n}();vt.prototype.equalityFuncs={},ii=function(n){function t(t){var i=n.call(this)||this;return i.el=t,i}return h(t,n),t.prototype.destroy=function(){n.prototype.destroy.call(this),p(this.el)},t.prototype.buildPositionCaches=function(){},t.prototype.queryHit=function(){return null},t.prototype.isInteractionValid=function(n){var u=this.context.calendar,t=this.props.dateProfile,i=n.mutatedEvents.instances,r;if(t)for(r in i)if(!yi(t.validRange,i[r].range))return!1;return we(n,u)},t.prototype.isDateSelectionValid=function(n){var i=this.context.calendar,t=this.props.dateProfile;return!(t&&!yi(t.validRange,n.range))&&function(n,t){return be({dateSelection:n},t)}(n,i)},t.prototype.isValidSegDownEl=function(n){return!this.props.eventDrag&&!this.props.eventResize&&!w(n,".fc-mirror")&&(this.isPopover()||!this.isInPopover(n))},t.prototype.isValidDateDownEl=function(n){var t=w(n,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!w(n,".fc-more")&&!w(n,"a[data-goto]")&&!this.isInPopover(n)},t.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},t.prototype.isInPopover=function(n){return Boolean(w(n,".fc-popover"))},t}(vt),ii.prototype.fgSegSelector=".fc-event-container > *",ii.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)",vo=0;var ac=function(){function n(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}return n.prototype.add=function(n){var u,f,e,i,r;if(!this.addedHash[n.id]){for(this.addedHash[n.id]=!0,u=0,f=n.deps;u<f.length;u++)e=f[u],this.add(e);this.hooks=(i=this.hooks,r=n,{reducers:i.reducers.concat(r.reducers),eventDefParsers:i.eventDefParsers.concat(r.eventDefParsers),isDraggableTransformers:i.isDraggableTransformers.concat(r.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(r.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(r.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(r.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(r.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(r.dateSpanTransforms),views:t({},i.views,r.views),viewPropsTransformers:i.viewPropsTransformers.concat(r.viewPropsTransformers),isPropsValid:r.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(r.externalDefTransforms),eventResizeJoinTransforms:i.eventResizeJoinTransforms.concat(r.eventResizeJoinTransforms),viewContainerModifiers:i.viewContainerModifiers.concat(r.viewContainerModifiers),eventDropTransformers:i.eventDropTransformers.concat(r.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(r.calendarInteractions),componentInteractions:i.componentInteractions.concat(r.componentInteractions),themeClasses:t({},i.themeClasses,r.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(r.eventSourceDefs),cmdFormatter:r.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(r.recurringTypes),namedTimeZonedImpl:r.namedTimeZonedImpl||i.namedTimeZonedImpl,defaultView:i.defaultView||r.defaultView,elementDraggingImpl:i.elementDraggingImpl||r.elementDraggingImpl,optionChangeHandlers:t({},i.optionChangeHandlers,r.optionChangeHandlers)})}},n}(),vc=yt({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(n){return Array.isArray(n)?n:Array.isArray(n.events)?n.events:null},fetch:function(n,t){t({rawEvents:n.eventSource.meta})}}]}),yc=yt({eventSourceDefs:[{parseMeta:function(n){return"function"==typeof n?n:"function"==typeof n.events?n.events:null},fetch:function(n,t,i){var r=n.calendar.dateEnv;oo(n.eventSource.meta.bind(null,{start:r.toDate(n.range.start),end:r.toDate(n.range.end),startStr:r.formatIso(n.range.start),endStr:r.formatIso(n.range.end),timeZone:r.timeZone}),function(n){t({rawEvents:n})},i)}}]});var pc=yt({eventSourceDefs:[{parseMeta:function(n){if("string"==typeof n)n={url:n};else if(!n||"object"!=typeof n||!n.url)return null;return{url:n.url,method:(n.method||"GET").toUpperCase(),extraParams:n.extraParams,startParam:n.startParam,endParam:n.endParam,timeZoneParam:n.timeZoneParam}},fetch:function(n,i,r){var u=n.eventSource.meta,f=function(n,i,r){var e,o,s,h,f=r.dateEnv,u={};return null==(e=n.startParam)&&(e=r.opt("startParam")),null==(o=n.endParam)&&(o=r.opt("endParam")),null==(s=n.timeZoneParam)&&(s=r.opt("timeZoneParam")),h="function"==typeof n.extraParams?n.extraParams():n.extraParams||{},t(u,h),u[e]=f.formatIso(i.start),u[o]=f.formatIso(i.end),"local"!==f.timeZone&&(u[s]=f.timeZone),u}(u,n.range,n.calendar);yo(u.method,u.url,f,function(n,t){i({rawEvents:n,xhr:t})},function(n,t){r({message:n,xhr:t})})}}]}),wc=yt({recurringTypes:[{parse:function(n,t,r){var f,e,s=r.createMarker.bind(r),u=a(n,{daysOfWeek:null,startTime:i,endTime:i,startRecur:s,endRecur:s},{},t),h=!1,c,o;for(c in u)if(null!=u[c]){h=!0;break}return h?(o=null,"duration"in t&&(o=i(t.duration),delete t.duration),!o&&u.startTime&&u.endTime&&(f=u.endTime,e=u.startTime,o={years:f.years-e.years,months:f.months-e.months,days:f.days-e.days,milliseconds:f.milliseconds-e.milliseconds}),{allDayGuess:Boolean(!u.startTime&&!u.endTime),duration:o,typeData:u}):null},expand:function(n,t,i){var r=gt(t,{start:n.startRecur,end:n.endRecur});return r?function(n,t,i,r){for(var o=n?gf(n):null,f=u(i.start),h=i.end,s=[],e;f<h;)e=void 0,o&&!o[f.getUTCDay()]||(e=t?r.add(f,t):f,s.push(e)),f=c(f,1);return s}(n.daysOfWeek,n.startTime,r,i):[]}}]}),bc=yt({optionChangeHandlers:{events:function(n,t,i){wo([n],t,i)},eventSources:wo,plugins:function(n,t){t.addPluginInputs(n)}}});var tt={defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},kc={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},dc=["header","footer","buttonText","buttonIcons"],gc=[vc,yc,pc,wc,bc],eu={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"};var nl=function(){function n(n){this.overrides=t({},n),this.dynamicOverrides={},this.compute()}return n.prototype.mutate=function(n,i,r){var f,u,e;if(Object.keys(n).length||i.length){for(f=r?this.dynamicOverrides:this.overrides,t(f,n),u=0,e=i;u<e.length;u++)delete f[e[u]];this.compute()}},n.prototype.compute=function(){var r=wr(this.dynamicOverrides.locales,this.overrides.locales,tt.locales),u=wr(this.dynamicOverrides.locale,this.overrides.locale,tt.locale),t=ou(r),n=su(u||t.defaultCode,t.map).options,i="rtl"===wr(this.dynamicOverrides.dir,this.overrides.dir,n.dir)?kc:{};this.dirDefaults=i,this.localeDefaults=n,this.computed=kr([tt,i,n,this.overrides,this.dynamicOverrides],dc)},n}(),ko={},go,tl=function(){function n(){}return n.prototype.getMarkerYear=function(n){return n.getUTCFullYear()},n.prototype.getMarkerMonth=function(n){return n.getUTCMonth()},n.prototype.getMarkerDay=function(n){return n.getUTCDate()},n.prototype.arrayToMarker=function(n){return o(n)},n.prototype.markerToArray=function(n){return k(n)},n}();go=tl,ko.gregory=go,ns=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var hu=function(){function n(n){var t=this.timeZone=n.timeZone,i="local"!==t&&"UTC"!==t;n.namedTimeZoneImpl&&i&&(this.namedTimeZoneImpl=new n.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!i||this.namedTimeZoneImpl),this.calendarSystem=function(n){return new ko[n]}(n.calendarSystem),this.locale=n.locale,this.weekDow=n.locale.week.dow,this.weekDoy=n.locale.week.doy,"ISO"===n.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof n.firstDay&&(this.weekDow=n.firstDay),"function"==typeof n.weekNumberCalculation&&(this.weekNumberFunc=n.weekNumberCalculation),this.weekLabel=null!=n.weekLabel?n.weekLabel:n.locale.options.weekLabel,this.cmdFormatter=n.cmdFormatter}return n.prototype.createMarker=function(n){var t=this.createMarkerMeta(n);return null===t?null:t.marker},n.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):o(sf(new Date))},n.prototype.createMarkerMeta=function(n){if("string"==typeof n)return this.parse(n);var t=null;return"number"==typeof n?t=this.timestampToMarker(n):n instanceof Date?(n=n.valueOf(),isNaN(n)||(t=this.timestampToMarker(n))):Array.isArray(n)&&(t=o(n)),null!==t&&ar(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},n.prototype.parse=function(n){var t=ts(n),i,r;return null===t?null:(i=t.marker,r=null,null!==t.timeZoneOffset&&(this.canComputeOffset?i=this.timestampToMarker(i.valueOf()-6e4*t.timeZoneOffset):r=t.timeZoneOffset),{marker:i,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r})},n.prototype.getYear=function(n){return this.calendarSystem.getMarkerYear(n)},n.prototype.getMonth=function(n){return this.calendarSystem.getMarkerMonth(n)},n.prototype.add=function(n,t){var i=this.calendarSystem.markerToArray(n);return i[0]+=t.years,i[1]+=t.months,i[2]+=t.days,i[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(i)},n.prototype.subtract=function(n,t){var i=this.calendarSystem.markerToArray(n);return i[0]-=t.years,i[1]-=t.months,i[2]-=t.days,i[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(i)},n.prototype.addYears=function(n,t){var i=this.calendarSystem.markerToArray(n);return i[0]+=t,this.calendarSystem.arrayToMarker(i)},n.prototype.addMonths=function(n,t){var i=this.calendarSystem.markerToArray(n);return i[1]+=t,this.calendarSystem.arrayToMarker(i)},n.prototype.diffWholeYears=function(n,t){var i=this.calendarSystem;return d(n)===d(t)&&i.getMarkerDay(n)===i.getMarkerDay(t)&&i.getMarkerMonth(n)===i.getMarkerMonth(t)?i.getMarkerYear(t)-i.getMarkerYear(n):null},n.prototype.diffWholeMonths=function(n,t){var i=this.calendarSystem;return d(n)===d(t)&&i.getMarkerDay(n)===i.getMarkerDay(t)?i.getMarkerMonth(t)-i.getMarkerMonth(n)+12*(i.getMarkerYear(t)-i.getMarkerYear(n)):null},n.prototype.greatestWholeUnit=function(n,t){var i=this.diffWholeYears(n,t);return null!==i?{unit:"year",value:i}:null!==(i=this.diffWholeMonths(n,t))?{unit:"month",value:i}:null!==(i=of(n,t))?{unit:"week",value:i}:null!==(i=wt(n,t))?{unit:"day",value:i}:bt(i=function(n,t){return(t.valueOf()-n.valueOf())/36e5}(n,t))?{unit:"hour",value:i}:bt(i=function(n,t){return(t.valueOf()-n.valueOf())/6e4}(n,t))?{unit:"minute",value:i}:bt(i=function(n,t){return(t.valueOf()-n.valueOf())/1e3}(n,t))?{unit:"second",value:i}:{unit:"millisecond",value:t.valueOf()-n.valueOf()}},n.prototype.countDurationsBetween=function(n,t,i){var r;return i.years&&null!==(r=this.diffWholeYears(n,t))?r/(st(i)/365):i.months&&null!==(r=this.diffWholeMonths(n,t))?r/function(n){return st(n)/30}(i):i.days&&null!==(r=wt(n,t))?r/st(i):(t.valueOf()-n.valueOf())/g(i)},n.prototype.startOf=function(n,t){return"year"===t?this.startOfYear(n):"month"===t?this.startOfMonth(n):"week"===t?this.startOfWeek(n):"day"===t?u(n):"hour"===t?function(n){return o([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours()])}(n):"minute"===t?function(n){return o([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes()])}(n):"second"===t?function(n){return o([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()])}(n):void 0},n.prototype.startOfYear=function(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n)])},n.prototype.startOfMonth=function(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n),this.calendarSystem.getMarkerMonth(n)])},n.prototype.startOfWeek=function(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n),this.calendarSystem.getMarkerMonth(n),n.getUTCDate()-(n.getUTCDay()-this.weekDow+7)%7])},n.prototype.computeWeekNumber=function(n){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(n)):function(n,t,i){var r=n.getUTCFullYear(),u=lr(n,r,t,i),f;return u<1?lr(n,r-1,t,i):(f=lr(n,r+1,t,i),f>=1?Math.min(u,f):u)}(n,this.weekDow,this.weekDoy)},n.prototype.format=function(n,t,i){return void 0===i&&(i={}),t.format({marker:n,timeZoneOffset:null!=i.forcedTzo?i.forcedTzo:this.offsetForMarker(n)},this)},n.prototype.formatRange=function(n,t,i,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=ot(t,-1)),i.formatRange({marker:n,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(n)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},n.prototype.formatIso=function(n,t){void 0===t&&(t={});var i=null;return t.omitTimeZoneOffset||(i=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(n)),function(n,t,i){void 0===i&&(i=!1);var r=n.toISOString();return r=r.replace(".000",""),i&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",gr(t,!0)))),r}(n,i,t.omitTime)},n.prototype.timestampToMarker=function(n){return"local"===this.timeZone?o(sf(new Date(n))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?o(this.namedTimeZoneImpl.timestampToArray(n)):new Date(n)},n.prototype.offsetForMarker=function(n){return"local"===this.timeZone?-hf(k(n)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(k(n)):null},n.prototype.toDate=function(n,t){return"local"===this.timeZone?hf(k(n)):"UTC"===this.timeZone?new Date(n.valueOf()):this.namedTimeZoneImpl?new Date(n.valueOf()-6e4*this.namedTimeZoneImpl.offsetForArray(k(n))):new Date(n.valueOf()-(t||0))},n}(),il={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},rl=0;us=0,cu=function(){function n(n,t){this.viewSpec=n,this.options=n.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return n.prototype.buildPrev=function(n,t){var i=this.dateEnv,r=i.subtract(i.startOf(t,n.currentRangeUnit),n.dateIncrement);return this.build(r,-1)},n.prototype.buildNext=function(n,t){var i=this.dateEnv,r=i.add(i.startOf(t,n.currentRangeUnit),n.dateIncrement);return this.build(r,1)},n.prototype.build=function(n,t,r){var f,c,l,u,a,s,e,v,h,o;return void 0===r&&(r=!1),f=this.buildValidRange(),f=this.trimHiddenDays(f),r&&(h=n,n=null!=(o=f).start&&h<o.start?o.start:null!=o.end&&h>=o.end?new Date(o.end.valueOf()-1):h),u=this.buildCurrentRangeInfo(n,t),a=/^(year|month|week|day)$/.test(u.unit),s=this.buildRenderRange(this.trimHiddenDays(u.range),u.unit,a),e=s=this.trimHiddenDays(s),this.options.showNonCurrentDates||(e=gt(e,u.range)),c=i(this.options.minTime),l=i(this.options.maxTime),e=gt(e=this.adjustActiveRange(e,c,l),f),v=vi(u.range,f),{validRange:f,currentRange:u.range,currentRangeUnit:u.unit,isRangeAllDay:a,activeRange:e,renderRange:s,minTime:c,maxTime:l,isValid:v,dateIncrement:this.buildDateIncrement(u.duration)}},n.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},n.prototype.buildCurrentRangeInfo=function(n,t){var e,f=this.viewSpec,o=this.dateEnv,u=null,i=null,r=null;return f.duration?(u=f.duration,i=f.durationUnit,r=this.buildRangeFromDuration(n,t,u,i)):(e=this.options.dayCount)?(i="day",r=this.buildRangeFromDayCount(n,t,e)):(r=this.buildCustomVisibleRange(n))?i=o.greatestWholeUnit(r.start,r.end).unit:(i=si(u=this.getFallbackDuration()).unit,r=this.buildRangeFromDuration(n,t,u,i)),{duration:u,unit:i,range:r}},n.prototype.getFallbackDuration=function(){return i({day:1})},n.prototype.adjustActiveRange=function(n,t,i){var e=this.dateEnv,f=n.start,r=n.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(st(t)<0&&(f=u(f),f=e.add(f,t)),st(i)>1&&(r=c(r=u(r),-1),r=e.add(r,i))),{start:f,end:r}},n.prototype.buildRangeFromDuration=function(n,t,r,f){function v(){e=a.startOf(n,o),l=a.add(e,r),c={start:e,end:l}}var s,h,e,l,c,a=this.dateEnv,o=this.options.dateAlignment;return o||((s=this.options.dateIncrement)?(h=i(s),o=g(h)<g(r)?si(h,!vr(s)).unit:f):o=f),st(r)<=1&&this.isHiddenDay(e)&&(e=u(e=this.skipHiddenDays(e,t))),v(),this.trimHiddenDays(c)||(n=this.skipHiddenDays(n,t),v()),c},n.prototype.buildRangeFromDayCount=function(n,t,i){var f,s=this.dateEnv,e=this.options.dateAlignment,o=0,r=n;e&&(r=s.startOf(r,e)),r=u(r),f=r=this.skipHiddenDays(r,t);do f=c(f,1),this.isHiddenDay(f)||o++;while(o<i);return{start:r,end:f}},n.prototype.buildCustomVisibleRange=function(n){var i=this.dateEnv,t=this.getRangeOption("visibleRange",i.toDate(n));return!t||null!=t.start&&null!=t.end?t:null},n.prototype.buildRenderRange=function(n){return n},n.prototype.buildDateIncrement=function(n){var t,r=this.options.dateIncrement;return r?i(r):(t=this.options.dateAlignment)?i(1,t):n||i({days:1})},n.prototype.getRangeOption=function(n){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return t=this.options[n],"function"==typeof t&&(t=t.apply(null,r)),t&&(t=hh(t,this.dateEnv)),t&&(t=ci(t)),t},n.prototype.initHiddenDays=function(){var n,t=this.options.hiddenDays||[],i=[],r=0;for(!1===this.options.weekends&&t.push(0,6),n=0;n<7;n++)(i[n]=-1!==t.indexOf(n))||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=i},n.prototype.trimHiddenDays=function(n){var t=n.start,i=n.end;return t&&(t=this.skipHiddenDays(t)),i&&(i=this.skipHiddenDays(i,-1,!0)),null==t||null==i||t<i?{start:t,end:i}:null},n.prototype.isHiddenDay=function(n){return n instanceof Date&&(n=n.getUTCDay()),this.isHiddenDayHash[n]},n.prototype.skipHiddenDays=function(n,t,i){for(void 0===t&&(t=1),void 0===i&&(i=!1);this.isHiddenDayHash[(n.getUTCDay()+(i?t:0)+7)%7];)n=c(n,t);return n},n}(),ss={start:null,end:null,allDay:Boolean},ls={type:String,"class":null},au=function(n){function t(t){var i=n.call(this)||this;return i._renderLayout=f(i.renderLayout,i.unrenderLayout),i._updateTitle=f(i.updateTitle,null,[i._renderLayout]),i._updateActiveButton=f(i.updateActiveButton,null,[i._renderLayout]),i._updateToday=f(i.updateToday,null,[i._renderLayout]),i._updatePrev=f(i.updatePrev,null,[i._renderLayout]),i._updateNext=f(i.updateNext,null,[i._renderLayout]),i.el=it("div",{className:"fc-toolbar "+t}),i}return h(t,n),t.prototype.destroy=function(){n.prototype.destroy.call(this),this._renderLayout.unrender(),p(this.el)},t.prototype.render=function(n){this._renderLayout(n.layout),this._updateTitle(n.title),this._updateActiveButton(n.activeButton),this._updateToday(n.isTodayEnabled),this._updatePrev(n.isPrevEnabled),this._updateNext(n.isNextEnabled)},t.prototype.renderLayout=function(n){var t=this.el;this.viewsWithButtons=[],y(t,this.renderSection("left",n.left)),y(t,this.renderSection("center",n.center)),y(t,this.renderSection("right",n.right))},t.prototype.unrenderLayout=function(){this.el.innerHTML=""},t.prototype.renderSection=function(n,t){var o=this,e=this.context,i=e.theme,r=e.calendar,u=r.optionsManager,s=r.viewSpecs,f=it("div",{className:"fc-"+n}),h=u.computed.customButtons||{},c=u.overrides.buttonText||{},l=u.computed.buttonText||{};return t&&t.split(" ").forEach(function(n){var u,t=[],a=!0,e;(n.split(",").forEach(function(n){var e,y,v,f,u,p,k,w,b;"title"===n?(t.push(ui("<h2>&nbsp;<\/h2>")),a=!1):((e=h[n])?(v=function(n){e.click&&e.click.call(w,n)},(f=i.getCustomButtonIconClass(e))||(f=i.getIconClass(n))||(u=e.text)):(y=s[n])?(o.viewsWithButtons.push(n),v=function(){r.changeView(n)},(u=y.buttonTextOverride)||(f=i.getIconClass(n))||(u=y.buttonTextDefault)):r[n]&&(v=function(){r[n]()},(u=c[n])||(f=i.getIconClass(n))||(u=l[n])),v&&(k=["fc-"+n+"-button",i.getClass("button")],u?(p=ft(u),b=""):f&&(p="<span class='"+f+"'><\/span>",b=' aria-label="'+n+'"'),(w=ui('<button type="button" class="'+k.join(" ")+'"'+b+">"+p+"<\/button>")).addEventListener("click",v),t.push(w)))}),t.length>1)?(u=document.createElement("div"),e=i.getClass("buttonGroup"),a&&e&&u.classList.add(e),y(u,t),f.appendChild(u)):y(f,t)}),f},t.prototype.updateToday=function(n){this.toggleButtonEnabled("today",n)},t.prototype.updatePrev=function(n){this.toggleButtonEnabled("prev",n)},t.prototype.updateNext=function(n){this.toggleButtonEnabled("next",n)},t.prototype.updateTitle=function(n){ei(this.el,"h2").forEach(function(t){t.innerText=n})},t.prototype.updateActiveButton=function(n){var t=this.context.theme.getClass("buttonActive");ei(this.el,"button").forEach(function(i){n&&i.classList.contains("fc-"+n+"-button")?i.classList.add(t):i.classList.remove(t)})},t.prototype.toggleButtonEnabled=function(n,t){ei(this.el,".fc-"+n+"-button").forEach(function(n){n.disabled=!t})},t}(vt),as=function(n){function i(t){var i=n.call(this)||this;return i.elClassNames=[],i.renderSkeleton=f(i._renderSkeleton,i._unrenderSkeleton),i.renderToolbars=f(i._renderToolbars,i._unrenderToolbars,[i.renderSkeleton]),i.buildComponentContext=r(kl),i.buildViewPropTransformers=r(dl),i.el=t,i.computeTitle=r(bl),i.parseBusinessHours=r(function(n){return uo(n,i.context.calendar)}),i}return h(i,n),i.prototype.render=function(n,t){this.freezeHeight();var i=this.computeTitle(n.dateProfile,n.viewSpec.options);this.renderSkeleton(t),this.renderToolbars(n.viewSpec,n.dateProfile,n.currentDate,i),this.renderView(n,i),this.updateSize(),this.thawHeight()},i.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),n.prototype.destroy.call(this)},i.prototype._renderSkeleton=function(n){this.updateElClassNames(n),fr(this.el,this.contentEl=it("div",{className:"fc-view-container"}));for(var i=n.calendar,t=0,r=i.pluginSystem.hooks.viewContainerModifiers;t<r.length;t++)r[t](this.contentEl,i)},i.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),p(this.contentEl),this.removeElClassNames()},i.prototype.removeElClassNames=function(){for(var i,r=this.el.classList,n=0,t=this.elClassNames;n<t.length;n++)i=t[n],r.remove(i);this.elClassNames=[]},i.prototype.updateElClassNames=function(n){var i,r,f;this.removeElClassNames(),i=n.theme,r=n.options,this.elClassNames=["fc","fc-"+r.dir,i.getClass("widget")];for(var e=this.el.classList,t=0,u=this.elClassNames;t<u.length;t++)f=u[t],e.add(f)},i.prototype._renderToolbars=function(n,i,r,u){var o=this.context,f=this.header,e=this.footer,h=o.options,p=o.calendar,c=h.header,l=h.footer,s=this.props.dateProfileGenerator,a=p.getNow(),w=s.build(a),b=s.buildPrev(i,r),k=s.buildNext(i,r),v={title:u,activeButton:n.type,isTodayEnabled:w.isValid&&!ut(i.currentRange,a),isPrevEnabled:b.isValid,isNextEnabled:k.isValid};c?(f||(f=this.header=new au("fc-header-toolbar"),fr(this.el,f.el)),f.receiveProps(t({layout:c},v),o)):f&&(f.destroy(),f=this.header=null),l?(e||(e=this.footer=new au("fc-footer-toolbar"),y(this.el,e.el)),e.receiveProps(t({layout:l},v),o)):e&&(e.destroy(),e=this.footer=null)},i.prototype._unrenderToolbars=function(){this.header&&(this.header.destroy(),this.header=null),this.footer&&(this.footer.destroy(),this.footer=null)},i.prototype.renderView=function(n,i){var r=this.view,o=this.context,c=o.calendar,l=o.options,u=n.viewSpec,a=n.dateProfileGenerator,h;r&&r.viewSpec===u||(r&&r.destroy(),r=this.view=new u.class(u,this.contentEl),this.savedScroll&&(r.addScroll(this.savedScroll,!0),this.savedScroll=null)),r.title=i;for(var f={dateProfileGenerator:a,dateProfile:n.dateProfile,businessHours:this.parseBusinessHours(u.options.businessHours),eventStore:n.eventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize},e=0,s=this.buildViewPropTransformers(c.pluginSystem.hooks.viewPropsTransformers);e<s.length;e++)h=s[e],t(f,h.transform(f,u,n,l));r.receiveProps(f,this.buildComponentContext(this.context,u,r))},i.prototype.updateSize=function(n){void 0===n&&(n=!1);var t=this.view;t&&((n||null==this.isHeightAuto)&&this.computeHeightVars(),t.updateSize(n,this.viewHeight,this.isHeightAuto),t.updateNowIndicator(),t.popScroll(n))},i.prototype.computeHeightVars=function(){var i=this.context.calendar,n=i.opt("height"),t=i.opt("contentHeight"),r;(this.isHeightAuto="auto"===n||"auto"===t,"number"==typeof t)?this.viewHeight=t:"function"==typeof t?this.viewHeight=t():"number"==typeof n?this.viewHeight=n-this.queryToolbarsHeight():"function"==typeof n?this.viewHeight=n()-this.queryToolbarsHeight():"parent"===n?(r=this.el.parentNode,this.viewHeight=r.getBoundingClientRect().height-this.queryToolbarsHeight()):this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(i.opt("aspectRatio"),.5))},i.prototype.queryToolbarsHeight=function(){var n=0;return this.header&&(n+=cr(this.header.el)),this.footer&&(n+=cr(this.footer.el)),n},i.prototype.freezeHeight=function(){s(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},i.prototype.thawHeight=function(){s(this.el,{height:"",overflow:""})},i}(vt);var vu=function(){function n(n){this.component=n.component}return n.prototype.destroy=function(){},n}(),yu={},gl=function(n){function t(t){var i=n.call(this,t)||this,r;return i.handleSegClick=function(n,t){var r=i.component,s=r.context,h=s.calendar,c=s.view,u=di(t),f,o;u&&r.isValidSegDownEl(n.target)&&(f=w(n.target,".fc-has-url"),o=f?f.querySelector("a[href]").href:"",h.publiclyTrigger("eventClick",[{el:t,event:new e(r.context.calendar,u.eventRange.def,u.eventRange.instance),jsEvent:n,view:c}]),o&&!n.defaultPrevented&&(window.location.href=o))},r=t.component,i.destroy=oi(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,i.handleSegClick),i}return h(t,n),t}(vu),na=function(n){function t(t){var i=n.call(this,t)||this,f,e,o,s,u,r;return i.handleEventElRemove=function(n){n===i.currentSegEl&&i.handleSegLeave(null,i.currentSegEl)},i.handleSegEnter=function(n,t){di(t)&&(t.classList.add("fc-allow-mouse-resize"),i.currentSegEl=t,i.triggerEvent("eventMouseEnter",n,t))},i.handleSegLeave=function(n,t){i.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),i.currentSegEl=null,i.triggerEvent("eventMouseLeave",n,t))},r=t.component,i.removeHoverListeners=(f=r.el,e=r.fgSegSelector+","+r.bgSegSelector,o=i.handleSegEnter,s=i.handleSegLeave,oi(f,"mouseover",e,function(n,t){if(t!==u){u=t,o(n,t);var i=function(n){u=null,s(n,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}})),r.context.calendar.on("eventElRemove",i.handleEventElRemove),i}return h(t,n),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(n,t,i){var r=this.component,u=r.context,f=u.calendar,s=u.view,o=di(i);t&&!r.isValidSegDownEl(t.target)||f.publiclyTrigger(n,[{el:i,event:new e(f,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:s}])},t}(vu),et=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return h(t,n),t}(at);et.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},et.prototype.baseIconClass="fc-icon",et.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},et.prototype.iconOverrideOption="buttonIcons",et.prototype.iconOverrideCustomButtonOption="icon",et.prototype.iconOverridePrefix="fc-icon-",pu=function(){function n(n,t){var i=this;this.buildComponentContext=r(ta),this.parseRawLocales=r(ou),this.buildLocale=r(su),this.buildDateEnv=r(ia),this.buildTheme=r(ra),this.buildEventUiSingleBase=r(this._buildEventUiSingleBase),this.buildSelectionConfig=r(this._buildSelectionConfig),this.buildEventUiBySource=fe(fa,te),this.buildEventUiBases=r(ea),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=r(ua),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=n,this.optionsManager=new nl(t||{}),this.pluginSystem=new ac,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(n){return new n(i)})}return n.prototype.addPluginInputs=function(n){for(var r,u=function(n){for(var t,u,i=[],r=0,f=n;r<f.length;r++)t=f[r],"string"==typeof t?(u="FullCalendar"+hi(t),window[u]?i.push(window[u].default):console.warn("Plugin file not loaded for "+t)):i.push(t);return gc.concat(i)}(n),t=0,i=u;t<i.length;t++)r=i[t],this.pluginSystem.add(r)},Object.defineProperty(n.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),n.prototype.render=function(){this.component?this.requestRerender():(this.component=new as(this.el),this.renderableEventStore={defs:{},instances:{}},this.bindHandlers(),this.executeRender())},n.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(var n=0,t=this.calendarInteractions;n<t.length;n++)t[n].destroy();this.publiclyTrigger("_destroyed")}},n.prototype.bindHandlers=function(){var n=this;this.removeNavLinkListener=oi(this.el,"click","a[data-goto]",function(t,i){var r=i.getAttribute("data-goto");r=r?JSON.parse(r):{};var e=n.dateEnv,o=e.createMarker(r.date),f=r.type,u=n.viewOpt("navLink"+hi(f)+"Click");"function"==typeof u?u(e.toDate(o),t):("string"==typeof u&&(f=u),n.zoomTo(o,f))}),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=br(this.windowResize.bind(this),this.opt("windowResizeDelay")))},n.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},n.prototype.hydrate=function(){var n=this,t,i,r;this.state=this.buildInitialState();var u=this.opt("eventSources")||[],f=this.opt("events"),e=[];for(f&&u.unshift(f),t=0,i=u;t<i.length;t++)r=rs(i[t],this),r&&e.push(r);this.batchRendering(function(){n.dispatch({type:"INIT"}),n.dispatch({type:"ADD_EVENT_SOURCES",sources:e}),n.dispatch({type:"SET_VIEW_TYPE",viewType:n.opt("defaultView")||n.pluginSystem.hooks.defaultView})})},n.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},n.prototype.dispatch=function(n){var t,r,i;if(this.actionQueue.push(n),!this.isReducing){for(this.isReducing=!0,t=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);r=this.state,this.isReducing=!1,!t.loadingLevel&&r.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!r.loadingLevel&&this.publiclyTrigger("loading",[!1]),i=this.component&&this.component.view,t.eventStore!==r.eventStore&&t.eventStore&&(this.isEventsUpdated=!0),t.dateProfile!==r.dateProfile&&(t.dateProfile&&i&&this.publiclyTrigger("datesDestroy",[{view:i,el:i.el}]),this.isDatesUpdated=!0),t.viewType!==r.viewType&&(t.viewType&&i&&this.publiclyTrigger("viewSkeletonDestroy",[{view:i,el:i.el}]),this.isViewUpdated=!0),this.requestRerender()}},n.prototype.reduce=function(n,t,i){return ol(n,t,i)},n.prototype.requestRerender=function(){this.needsRerender=!0,this.delayedRerender()},n.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},n.prototype.batchRendering=function(n){this.renderingPauseDepth++,n(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},n.prototype.executeRender=function(){this.needsRerender=!1,this.isRendering=!0,this.renderComponent(),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},n.prototype.renderComponent=function(){var n=this.state,i=this.component,r=n.viewType,u=this.viewSpecs[r];if(!u)throw new Error('View type "'+r+'" is not valid');var f=this.renderableEventStore=n.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:n.eventStore,e=this.buildEventUiSingleBase(u.options),o=this.buildEventUiBySource(n.eventSources),s=this.eventUiBases=this.buildEventUiBases(f.defs,e,o);i.receiveProps(t({},n,{viewSpec:u,dateProfileGenerator:this.dateProfileGenerators[r],dateProfile:n.dateProfile,eventStore:f,eventUiBases:s,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed)),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:i.view,el:i.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:i.view,el:i.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},n.prototype.setOption=function(n,t){var i;this.mutateOptions(((i={})[n]=t,i),[],!0)},n.prototype.getOption=function(n){return this.optionsManager.computed[n]},n.prototype.opt=function(n){return this.optionsManager.computed[n]},n.prototype.viewOpt=function(n){return this.viewOpts()[n]},n.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},n.prototype.mutateOptions=function(n,t,i,r){var f=this,c=this.pluginSystem.hooks.optionChangeHandlers,o={},s={},v=this.dateEnv,l=!1,a=!1,h=Boolean(t.length),u,e;for(u in n)c[u]?s[u]=n[u]:o[u]=n[u];for(e in o)/^(height|contentHeight|aspectRatio)$/.test(e)?a=!0:/^(defaultDate|defaultView)$/.test(e)||(h=!0,"timeZone"===e&&(l=!0));this.optionsManager.mutate(o,t,i),h&&this.handleOptions(this.optionsManager.computed),this.batchRendering(function(){if(h?(l&&f.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:v}),f.dispatch({type:"SET_VIEW_TYPE",viewType:f.state.viewType})):a&&f.updateSize(),r)for(var n in s)c[n](s[n],f,r)})},n.prototype.handleOptions=function(n){var f=this,r=this.pluginSystem.hooks,t,u;this.defaultAllDayEventDuration=i(n.defaultAllDayEventDuration),this.defaultTimedEventDuration=i(n.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(n.rerenderDelay),this.theme=this.buildTheme(n),t=this.parseRawLocales(n.locales),this.availableRawLocales=t.map,u=this.buildLocale(n.locale||t.defaultCode,t.map),this.dateEnv=this.buildDateEnv(u,n.timeZone,r.namedTimeZonedImpl,n.firstDay,n.weekNumberCalculation,n.weekLabel,r.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(n),this.viewSpecs=wl(r.views,this.optionsManager),this.dateProfileGenerators=l(this.viewSpecs,function(n){return new n.class.prototype.dateProfileGeneratorClass(n,f)})},n.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},n.prototype._buildSelectionConfig=function(n){return iu("select",n,this)},n.prototype._buildEventUiSingleBase=function(n){return n.editable&&(n=t({},n,{eventEditable:!0})),iu("event",n,this)},n.prototype.hasPublicHandlers=function(n){return this.hasHandlers(n)||this.opt(n)},n.prototype.publiclyTrigger=function(n,t){var i=this.opt(n);if(this.triggerWith(n,this,t),i)return i.apply(this,t)},n.prototype.publiclyTriggerAfterSizing=function(n,t){var i=this.afterSizingTriggers;(i[n]||(i[n]=[])).push(t)},n.prototype.releaseAfterSizingTriggers=function(){var r=this.afterSizingTriggers,t,n,i,u;for(t in r)for(n=0,i=r[t];n<i.length;n++)u=i[n],this.publiclyTrigger(t,u);this.afterSizingTriggers={}},n.prototype.isValidViewType=function(n){return Boolean(this.viewSpecs[n])},n.prototype.changeView=function(n,t){var i=null;t&&(t.start&&t.end?(this.optionsManager.mutate({visibleRange:t},[]),this.handleOptions(this.optionsManager.computed)):i=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:n,dateMarker:i})},n.prototype.zoomTo=function(n,t){var i;t=t||"day",i=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),i?this.dispatch({type:"SET_VIEW_TYPE",viewType:i.type,dateMarker:n}):this.dispatch({type:"SET_DATE",dateMarker:n})},n.prototype.getUnitViewSpec=function(n){var i,u,r=this.component,t=[],f;for(f in r.header&&t.push.apply(t,r.header.viewsWithButtons),r.footer&&t.push.apply(t,r.footer.viewsWithButtons),this.viewSpecs)t.push(f);for(i=0;i<t.length;i++)if((u=this.viewSpecs[t[i]])&&u.singleUnit===n)return u},n.prototype.getInitialDate=function(){var n=this.opt("defaultDate");return null!=n?this.dateEnv.createMarker(n):this.getNow()},n.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},n.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},n.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},n.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},n.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},n.prototype.gotoDate=function(n){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(n)})},n.prototype.incrementDate=function(n){var t=i(n);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},n.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},n.prototype.formatDate=function(n,t){var i=this.dateEnv;return i.format(i.createMarker(n),v(t))},n.prototype.formatRange=function(n,t,i){var r=this.dateEnv;return r.formatRange(r.createMarker(n),r.createMarker(t),v(i,this.opt("defaultRangeSeparator")),i)},n.prototype.formatIso=function(n,t){var i=this.dateEnv;return i.formatIso(i.createMarker(n),{omitTime:t})},n.prototype.windowResize=function(n){!this.isHandlingWindowResize&&this.component&&n.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},n.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},n.prototype.registerInteractiveComponent=function(n,t){var i=function(n,t){return{component:n,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}(n,t),r=[gl,na].concat(this.pluginSystem.hooks.componentInteractions).map(function(n){return new n(i)});this.interactionsStore[n.uid]=r,yu[n.uid]=i},n.prototype.unregisterInteractiveComponent=function(n){for(var t=0,i=this.interactionsStore[n.uid];t<i.length;t++)i[t].destroy();delete this.interactionsStore[n.uid],delete yu[n.uid]},n.prototype.select=function(n,t){var r=vl(null==t?null!=n.start?n:{start:n,end:null}:{start:n,end:t},this.dateEnv,i({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),this.triggerDateSelect(r))},n.prototype.unselect=function(n){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(n))},n.prototype.triggerDateSelect=function(n,i){var r=t({},this.buildDateSpanApi(n),{jsEvent:i?i.origEvent:null,view:this.view});this.publiclyTrigger("select",[r])},n.prototype.triggerDateUnselect=function(n){this.publiclyTrigger("unselect",[{jsEvent:n?n.origEvent:null,view:this.view}])},n.prototype.triggerDateClick=function(n,i,r,u){var f=t({},this.buildDatePointApi(n),{dayEl:i,jsEvent:u,view:r});this.publiclyTrigger("dateClick",[f])},n.prototype.buildDatePointApi=function(n){for(var o,i,f,r={},u=0,e=this.pluginSystem.hooks.datePointTransforms;u<e.length;u++)o=e[u],t(r,o(n,this));return t(r,(i=n,{date:(f=this.dateEnv).toDate(i.range.start),dateStr:f.formatIso(i.range.start,{omitTime:i.allDay}),allDay:i.allDay})),r},n.prototype.buildDateSpanApi=function(n){for(var o,i,r,u={},f=0,e=this.pluginSystem.hooks.dateSpanTransforms;f<e.length;f++)o=e[f],t(u,o(n,this));return t(u,(i=n,{start:(r=this.dateEnv).toDate(i.range.start),end:r.toDate(i.range.end),startStr:r.formatIso(i.range.start,{omitTime:i.allDay}),endStr:r.formatIso(i.range.end,{omitTime:i.allDay}),allDay:i.allDay})),u},n.prototype.getNow=function(){var n=this.opt("now");return"function"==typeof n&&(n=n()),null==n?this.dateEnv.createNowMarker():this.dateEnv.createMarker(n)},n.prototype.getDefaultEventEnd=function(n,t){var i=t;return n?(i=u(i),i=this.dateEnv.add(i,this.defaultAllDayEventDuration)):i=this.dateEnv.add(i,this.defaultTimedEventDuration),i},n.prototype.addEvent=function(n,t){var r,o,u,f,i;if(n instanceof e)return r=n._def,o=n._instance,this.state.eventStore.defs[r.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:ai({def:r,instance:o})}),n;if(t instanceof lt)u=t.internalEventSource.sourceId;else if(null!=t){if(f=this.getEventSourceById(t),!f)return console.warn('Could not find an event source with ID "'+t+'"'),null;u=f.internalEventSource.sourceId}return i=ro(n,u,this),i?(this.dispatch({type:"ADD_EVENTS",eventStore:ai(i)}),new e(this,i.def,i.def.recurringDef?null:i.instance)):null},n.prototype.getEventById=function(n){var r=this.state.eventStore,u=r.defs,f=r.instances,o,t,s,i;for(o in n=String(n),u)if(t=u[o],t.publicId===n){if(t.recurringDef)return new e(this,t,null);for(s in f)if(i=f[s],i.defId===t.defId)return new e(this,t,i)}return null},n.prototype.getEvents=function(){var t=this.state.eventStore,o=t.defs,i=t.instances,r=[],u,n,f;for(u in i)n=i[u],f=o[n.defId],r.push(new e(this,f,n));return r},n.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},n.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},n.prototype.getEventSources=function(){var n=this.state.eventSources,t=[],i;for(i in n)t.push(new lt(this,n[i]));return t},n.prototype.getEventSourceById=function(n){var t=this.state.eventSources,i;for(i in n=String(n),t)if(t[i].publicId===n)return new lt(this,t[i]);return null},n.prototype.addEventSource=function(n){if(n instanceof lt)return this.state.eventSources[n.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n.internalEventSource]}),n;var t=rs(n,this);return t?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new lt(this,t)):null},n.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},n.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},n.prototype.scrollToTime=function(n){var t=i(n);t&&this.component.view.scrollToDuration(t)},n}(),rr.mixInto(pu),ri=function(n){function r(t,i){var r=n.call(this,it("div",{className:"fc-view fc-"+t.type+"-view"}))||this;return r.renderDatesMem=f(r.renderDatesWrap,r.unrenderDatesWrap),r.renderBusinessHoursMem=f(r.renderBusinessHours,r.unrenderBusinessHours,[r.renderDatesMem]),r.renderDateSelectionMem=f(r.renderDateSelectionWrap,r.unrenderDateSelectionWrap,[r.renderDatesMem]),r.renderEventsMem=f(r.renderEvents,r.unrenderEvents,[r.renderDatesMem]),r.renderEventSelectionMem=f(r.renderEventSelectionWrap,r.unrenderEventSelectionWrap,[r.renderEventsMem]),r.renderEventDragMem=f(r.renderEventDragWrap,r.unrenderEventDragWrap,[r.renderDatesMem]),r.renderEventResizeMem=f(r.renderEventResizeWrap,r.unrenderEventResizeWrap,[r.renderDatesMem]),r.viewSpec=t,r.type=t.type,i.appendChild(r.el),r.initialize(),r}return h(r,n),r.prototype.initialize=function(){},Object.defineProperty(r.prototype,"activeStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"activeEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),r.prototype.render=function(n){this.renderDatesMem(n.dateProfile),this.renderBusinessHoursMem(n.businessHours),this.renderDateSelectionMem(n.dateSelection),this.renderEventsMem(n.eventStore),this.renderEventSelectionMem(n.eventSelection),this.renderEventDragMem(n.eventDrag),this.renderEventResizeMem(n.eventResize)},r.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll())},r.prototype.destroy=function(){n.prototype.destroy.call(this),this.renderDatesMem.unrender()},r.prototype.updateSize=function(n,t,i){var r=this.context.calendar;n&&this.addScroll(this.queryScroll()),(n||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(n,t,i)},r.prototype.updateBaseSize=function(){},r.prototype.renderDatesWrap=function(n){this.renderDates(n),this.addScroll({duration:i(this.context.options.scrollTime)})},r.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},r.prototype.renderDates=function(){},r.prototype.unrenderDates=function(){},r.prototype.renderBusinessHours=function(){},r.prototype.unrenderBusinessHours=function(){},r.prototype.renderDateSelectionWrap=function(n){n&&this.renderDateSelection(n)},r.prototype.unrenderDateSelectionWrap=function(n){n&&this.unrenderDateSelection(n)},r.prototype.renderDateSelection=function(){},r.prototype.unrenderDateSelection=function(){},r.prototype.renderEvents=function(){},r.prototype.unrenderEvents=function(){},r.prototype.sliceEvents=function(n,t){var i=this.props;return ki(n,i.eventUiBases,i.dateProfile.activeRange,t?this.context.nextDayThreshold:null).fg},r.prototype.renderEventSelectionWrap=function(n){n&&this.renderEventSelection(n)},r.prototype.unrenderEventSelectionWrap=function(n){n&&this.unrenderEventSelection(n)},r.prototype.renderEventSelection=function(){},r.prototype.unrenderEventSelection=function(){},r.prototype.renderEventDragWrap=function(n){n&&this.renderEventDrag(n)},r.prototype.unrenderEventDragWrap=function(n){n&&this.unrenderEventDrag(n)},r.prototype.renderEventDrag=function(){},r.prototype.unrenderEventDrag=function(){},r.prototype.renderEventResizeWrap=function(n){n&&this.renderEventResize(n)},r.prototype.unrenderEventResizeWrap=function(n){n&&this.unrenderEventResize(n)},r.prototype.renderEventResize=function(){},r.prototype.unrenderEventResize=function(){},r.prototype.startNowIndicator=function(n,t){var r,f,u,o=this,e=this.context,h=e.calendar,s=e.dateEnv;e.options.nowIndicator&&!this.initialNowDate&&(r=this.getNowIndicatorUnit(n,t))&&(f=this.updateNowIndicator.bind(this),this.initialNowDate=h.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),u=s.add(s.startOf(this.initialNowDate,r),i(1,r)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){o.nowIndicatorTimeoutID=null,f(),u="second"===r?1e3:6e4,o.nowIndicatorIntervalID=setInterval(f,u)},u))},r.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(ot(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},r.prototype.stopNowIndicator=function(){this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},r.prototype.getNowIndicatorUnit=function(){},r.prototype.renderNowIndicator=function(){},r.prototype.unrenderNowIndicator=function(){},r.prototype.addScroll=function(n,i){i&&(n.isForced=i),t(this.queuedScroll||(this.queuedScroll={}),n)},r.prototype.popScroll=function(n){this.applyQueuedScroll(n),this.queuedScroll=null},r.prototype.applyQueuedScroll=function(n){this.queuedScroll&&this.applyScroll(this.queuedScroll,n)},r.prototype.queryScroll=function(){var n={};return this.props.dateProfile&&t(n,this.queryDateScroll()),n},r.prototype.applyScroll=function(n){var i=n.duration,r=n.isForced;null==i||r||(delete n.duration,this.props.dateProfile&&t(n,this.computeDateScroll(i))),this.props.dateProfile&&this.applyDateScroll(n)},r.prototype.computeDateScroll=function(){return{}},r.prototype.queryDateScroll=function(){return{}},r.prototype.applyDateScroll=function(){},r.prototype.scrollToDuration=function(n){this.applyScroll({duration:n},!1)},r}(ii),rr.mixInto(ri),ri.prototype.usesMinMaxTime=!1,ri.prototype.dateProfileGeneratorClass=cu,vs=function(){function n(){this.segs=[],this.isSizeDirty=!1}return n.prototype.renderSegs=function(n,t,i){this.context=n,this.rangeUpdated(),t=this.renderSegEls(t,i),this.segs=t,this.attachSegs(t,i),this.isSizeDirty=!0,le(this.context,this.segs,Boolean(i))},n.prototype.unrender=function(n,t,i){ae(this.context,this.segs,Boolean(i)),this.detachSegs(this.segs),this.segs=[]},n.prototype.rangeUpdated=function(){var t,i,n=this.context.options;this.eventTimeFormat=v(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),null==(t=n.displayEventTime)&&(t=this.computeDisplayEventTime()),null==(i=n.displayEventEnd)&&(i=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=i},n.prototype.renderSegEls=function(n,t){var i,r="";if(n.length){for(i=0;i<n.length;i++)r+=this.renderSegHtml(n[i],t);ur(r).forEach(function(t,i){var r=n[i];t&&(r.el=t)}),n=he(this.context,n,Boolean(t))}return n},n.prototype.getSegClasses=function(n,t,i,r){var u=["fc-event",n.isStart?"fc-start":"fc-not-start",n.isEnd?"fc-end":"fc-not-end"].concat(n.eventRange.ui.classNames);return t&&u.push("fc-draggable"),i&&u.push("fc-resizable"),r&&(u.push("fc-mirror"),r.isDragging&&u.push("fc-dragging"),r.isResizing&&u.push("fc-resizing")),u},n.prototype.getTimeText=function(n,t,i){var u=n.def,r=n.instance;return this._getTimeText(r.range.start,u.hasEnd?r.range.end:null,u.allDay,t,i,r.forcedStartTzo,r.forcedEndTzo)},n.prototype._getTimeText=function(n,t,i,r,u,f,e){var o=this.context.dateEnv;return null==r&&(r=this.eventTimeFormat),null==u&&(u=this.displayEventEnd),this.displayEventTime&&!i?u&&t?o.formatRange(n,t,r,{forcedStartTzo:f,forcedEndTzo:e}):o.format(n,r,{forcedTzo:f}):""},n.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},n.prototype.computeDisplayEventTime=function(){return!0},n.prototype.computeDisplayEventEnd=function(){return!0},n.prototype.getSkinCss=function(n){return{"background-color":n.backgroundColor,"border-color":n.borderColor,color:n.textColor}},n.prototype.sortEventSegs=function(n){var i=this.context.eventOrderSpecs,t=n.map(ys);return t.sort(function(n,t){return yf(n,t,i)}),t.map(function(n){return n._seg})},n.prototype.computeSizes=function(n){(n||this.isSizeDirty)&&this.computeSegSizes(this.segs)},n.prototype.assignSizes=function(n){(n||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},n.prototype.computeSegSizes=function(){},n.prototype.assignSegSizes=function(){},n.prototype.hideByHash=function(n){var t,i,r;if(n)for(t=0,i=this.segs;t<i.length;t++)r=i[t],n[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")},n.prototype.showByHash=function(n){var t,i,r;if(n)for(t=0,i=this.segs;t<i.length;t++)r=i[t],n[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")},n.prototype.selectByInstanceId=function(n){var t,r,i,u;if(n)for(t=0,r=this.segs;t<r.length;t++)i=r[t],u=i.eventRange.instance,u&&u.instanceId===n&&i.el&&i.el.classList.add("fc-selected")},n.prototype.unselectByInstanceId=function(n){var t,i,r;if(n)for(t=0,i=this.segs;t<i.length;t++)r=i[t],r.el&&r.el.classList.remove("fc-selected")},n}();var oa=function(){function n(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}return n.prototype.getSegsByType=function(n){return this.segsByType[n]||[]},n.prototype.renderSegs=function(n,t,i){var f,r,u;this.context=t,r=this.renderSegEls(n,i),u=this.attachSegs(n,r),u&&(f=this.containerElsByType[n]||(this.containerElsByType[n]=[])).push.apply(f,u),this.segsByType[n]=r,"bgEvent"===n&&le(t,r,!1),this.dirtySizeFlags[n]=!0},n.prototype.unrender=function(n,t){var i=this.segsByType[n];i&&("bgEvent"===n&&ae(t,i,!1),this.detachSegs(n,i))},n.prototype.renderSegEls=function(n,t){var i,u=this,r="";if(t.length){for(i=0;i<t.length;i++)r+=this.renderSegHtml(n,t[i]);ur(r).forEach(function(n,i){var r=t[i];n&&(r.el=n)}),"bgEvent"===n&&(t=he(this.context,t,!1)),t=t.filter(function(n){return fi(n.el,u.fillSegTag)})}return t},n.prototype.renderSegHtml=function(n,t){var r=null,i=[];return"highlight"!==n&&"businessHours"!==n&&(r={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==n&&(i=i.concat(t.eventRange.ui.classNames)),"businessHours"===n?i.push("fc-bgevent"):i.push("fc-"+n.toLowerCase()),"<"+this.fillSegTag+(i.length?' class="'+i.join(" ")+'"':"")+(r?' style="'+ge(r)+'"':"")+"><\/"+this.fillSegTag+">"},n.prototype.detachSegs=function(n){var t=this.containerElsByType[n];t&&(t.forEach(p),delete this.containerElsByType[n])},n.prototype.computeSizes=function(n){for(var t in this.segsByType)(n||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},n.prototype.assignSizes=function(n){for(var t in this.segsByType)(n||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},n.prototype.computeSegSizes=function(){},n.prototype.assignSegSizes=function(){},n}(),sa=function(n){this.timeZoneName=n},ha=function(){function n(){this.emitter=new rr}return n.prototype.destroy=function(){},n.prototype.setMirrorIsVisible=function(){},n.prototype.setMirrorNeedsRevert=function(){},n.prototype.setAutoScrollEnabled=function(){},n}();ws={startTime:i,duration:i,create:Boolean,sourceId:String},bs={create:!0};var ca=function(n){function t(t){var i=n.call(this)||this;return i.renderSkeleton=f(i._renderSkeleton,i._unrenderSkeleton),i.parentEl=t,i}return h(t,n),t.prototype.render=function(n,t){var r=n.dates,f=n.datesRepDistinctDays,i=[],o;this.renderSkeleton(t),n.renderIntroHtml&&i.push(n.renderIntroHtml());for(var s=v(t.options.columnHeaderFormat||ks(f,r.length)),u=0,e=r;u<e.length;u++)o=e[u],i.push(ds(o,n.dateProfile,f,r.length,s,t));t.isRtl&&i.reverse(),this.thead.innerHTML="<tr>"+i.join("")+"<\/tr>"},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(n){var t=n.theme,i=this.parentEl;i.innerHTML="",i.appendChild(this.el=ui('<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead><\/thead><\/table><\/div>')),this.thead=this.el.querySelector("thead")},t.prototype._unrenderSkeleton=function(){p(this.el)},t}(vt),la=function(){function n(n,t){for(var i=n.start,e=n.end,r=[],u=[],f=-1;i<e;)t.isHiddenDay(i)?r.push(f+.5):(f++,r.push(f),u.push(i)),i=c(i,1);this.dates=u,this.indices=r,this.cnt=u.length}return n.prototype.sliceRange=function(n){var r=this.getDateDayIndex(n.start),u=this.getDateDayIndex(c(n.end,-1)),t=Math.max(0,r),i=Math.min(this.cnt-1,u);return(t=Math.ceil(t))<=(i=Math.floor(i))?{firstIndex:t,lastIndex:i,isStart:r===t,isEnd:u===i}:null},n.prototype.getDateDayIndex=function(n){var t=this.indices,i=Math.floor(b(this.dates[0],n));return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},n}(),aa=function(){function n(n,t){var i,f,u,r=n.dates;if(t){for(f=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==f;i++);u=Math.ceil(r.length/i)}else u=1,i=r.length;this.rowCnt=u,this.colCnt=i,this.daySeries=n,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return n.prototype.buildCells=function(){for(var r,t,i=[],n=0;n<this.rowCnt;n++){for(r=[],t=0;t<this.colCnt;t++)r.push(this.buildCell(n,t));i.push(r)}return i},n.prototype.buildCell=function(n,t){return{date:this.daySeries.dates[n*this.colCnt+t]}},n.prototype.buildHeaderDates=function(){for(var t=[],n=0;n<this.colCnt;n++)t.push(this.cells[0][n].date);return t},n.prototype.sliceRange=function(n){var r=this.colCnt,t=this.daySeries.sliceRange(n),o=[],e,u;if(t)for(var s=t.firstIndex,f=t.lastIndex,i=s;i<=f;)e=Math.floor(i/r),u=Math.min((e+1)*r,f+1),o.push({row:e,firstCol:i%r,lastCol:(u-1)%r,isStart:t.isStart&&i===s,isEnd:t.isEnd&&u-1===f}),i=u;return o},n}(),va=function(){function n(){this.sliceBusinessHours=r(this._sliceBusinessHours),this.sliceDateSelection=r(this._sliceDateSpan),this.sliceEventStore=r(this._sliceEventStore),this.sliceEventDrag=r(this._sliceInteraction),this.sliceEventResize=r(this._sliceInteraction)}return n.prototype.sliceProps=function(n,t,i,r,u){for(var o,s,f=[],e=5;e<arguments.length;e++)f[e-5]=arguments[e];return o=n.eventUiBases,s=this.sliceEventStore.apply(this,[n.eventStore,o,t,i,u].concat(f)),{dateSelectionSegs:this.sliceDateSelection.apply(this,[n.dateSelection,o,u].concat(f)),businessHourSegs:this.sliceBusinessHours.apply(this,[n.businessHours,t,i,r,u].concat(f)),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag.apply(this,[n.eventDrag,o,t,i,u].concat(f)),eventResize:this.sliceEventResize.apply(this,[n.eventResize,o,t,i,u].concat(f)),eventSelection:n.eventSelection}},n.prototype.sliceNowDate=function(n,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this._sliceDateSpan.apply(this,[{range:{start:n,end:ot(n,1)},allDay:!1},{},t].concat(r))},n.prototype._sliceBusinessHours=function(n,t,i,r,u){for(var e=[],f=5;f<arguments.length;f++)e[f-5]=arguments[f];return n?this._sliceEventStore.apply(this,[ht(n,wu(t,Boolean(i)),r),{},t,i,u].concat(e)).bg:[]},n.prototype._sliceEventStore=function(n,t,i,r,u){for(var o,e=[],f=5;f<arguments.length;f++)e[f-5]=arguments[f];return n?(o=ki(n,t,wu(i,Boolean(r)),r),{bg:this.sliceEventRanges(o.bg,u,e),fg:this.sliceEventRanges(o.fg,u,e)}):{bg:[],fg:[]}},n.prototype._sliceInteraction=function(n,t,i,r,u){for(var o,e=[],f=5;f<arguments.length;f++)e[f-5]=arguments[f];return n?(o=ki(n.mutatedEvents,t,wu(i,Boolean(r)),r),{segs:this.sliceEventRanges(o.fg,u,e),affectedInstances:n.affectedEvents.instances,isEvent:n.isEvent,sourceSeg:n.origSeg}):null},n.prototype._sliceDateSpan=function(n,t,i){for(var e,u=[],r=3;r<arguments.length;r++)u[r-3]=arguments[r];if(!n)return[];for(var h=yl(n,t,i.context.calendar),o=this.sliceRange.apply(this,[n.range].concat(u)),f=0,s=o;f<s.length;f++)e=s[f],e.component=i,e.eventRange=h;return o},n.prototype.sliceEventRanges=function(n,t,i){for(var e,r=[],u=0,f=n;u<f.length;u++)e=f[u],r.push.apply(r,this.sliceEventRange(e,t,i));return r},n.prototype.sliceEventRange=function(n,t,i){for(var r,f=this.sliceRange.apply(this,[n.range].concat(i)),u=0,e=f;u<e.length;u++)r=e[u],r.component=t,r.eventRange=n,r.isStart=n.isStart&&r.isStart,r.isEnd=n.isEnd&&r.isEnd;return f},n}();n.Calendar=pu,n.Component=vt,n.ComponentContext=ao,n.DateComponent=ii,n.DateEnv=hu,n.DateProfileGenerator=cu,n.DayHeader=ca,n.DaySeries=la,n.DayTable=aa,n.ElementDragging=ha,n.ElementScrollController=lo,n.EmitterMixin=rr,n.EventApi=e,n.FgEventRenderer=vs,n.FillRenderer=oa,n.Interaction=vu,n.Mixin=so,n.NamedTimeZoneImpl=sa,n.PositionCache=sc,n.ScrollComponent=cc,n.ScrollController=fu,n.Slicer=va,n.Splitter=ec,n.Theme=at,n.View=ri,n.WindowScrollController=hc,n.addDays=c,n.addDurations=function(n,t){return{years:n.years+t.years,months:n.months+t.months,days:n.days+t.days,milliseconds:n.milliseconds+t.milliseconds}},n.addMs=ot,n.addWeeks=function(n,t){var i=k(n);return i[2]+=7*t,o(i)},n.allowContextMenu=function(n){n.removeEventListener("contextmenu",pt)},n.allowSelection=function(n){n.classList.remove("fc-unselectable"),n.removeEventListener("selectstart",pt)},n.appendToElement=y,n.applyAll=pr,n.applyMutationToEventStore=ve,n.applyStyle=s,n.applyStyleProp=or,n.asRoughMinutes=function(n){return g(n)/6e4},n.asRoughMs=g,n.asRoughSeconds=function(n){return g(n)/1e3},n.buildGotoAnchorHtml=fo,n.buildSegCompareObj=ys,n.capitaliseFirstLetter=hi,n.combineEventUis=ru,n.compareByFieldSpec=pf,n.compareByFieldSpecs=yf,n.compareNumbers=function(n,t){return n-t},n.compensateScroll=function(n,t){t.left&&s(n,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&s(n,{borderRightWidth:1,marginRight:t.right-1})},n.computeClippingRect=function(n){return rf(n).map(function(n){return gu(n)}).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce(function(n,t){return ku(n,t)||t})},n.computeEdges=hr,n.computeEventDraggable=function(n,t,i){for(var e=n.calendar,o=n.view,s=e.pluginSystem.hooks.isDraggableTransformers,r=i.startEditable,u=0,f=s;u<f.length;u++)r=f[u](r,t,i,o);return r},n.computeEventEndResizable=function(n,t,i){return i.durationEditable},n.computeEventStartResizable=function(n,t,i){return i.durationEditable&&n.options.eventResizableFromStart},n.computeFallbackHeaderFormat=ks,n.computeHeightAndMargins=cr,n.computeInnerRect=gu,n.computeRect=nf,n.computeVisibleDayRange=ci,n.config={},n.constrainPoint=function(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}},n.createDuration=i,n.createElement=it,n.createEmptyEventStore=sh,n.createEventInstance=ir,n.createFormatter=v,n.createPlugin=yt,n.cssToStr=ge,n.debounce=br,n.diffDates=kt,n.diffDayAndTime=ef,n.diffDays=b,n.diffPoints=function(n,t){return{left:n.left-t.left,top:n.top-t.top}},n.diffWeeks=function(n,t){return b(n,t)/7},n.diffWholeDays=wt,n.diffWholeWeeks=of,n.disableCursor=function(){document.body.classList.add("fc-not-allowed")},n.distributeHeight=function(n,t,i){var r=Math.floor(t/n.length),f=Math.floor(t-r*(n.length-1)),u=[],e=[],o=[],s=0;af(n),n.forEach(function(t,i){var l=i===n.length-1?f:r,c=t.getBoundingClientRect().height,h=c+tf(t);h<l?(u.push(t),e.push(h),o.push(c)):s+=h}),i&&(t-=s,r=Math.floor(t/u.length),f=Math.floor(t-r*(u.length-1))),u.forEach(function(n,t){var i=t===u.length-1?f:r,s=e[t],h=i-(s-o[t]);s<i&&(n.style.height=h+"px")})},n.elementClosest=w,n.elementMatches=fi,n.enableCursor=function(){document.body.classList.remove("fc-not-allowed")},n.eventTupleToStore=ai,n.filterEventStoreDefs=ct,n.filterHash=nt,n.findChildren=function(n,t){for(var u,i,f,e=n instanceof HTMLElement?[n]:n,o=[],r=0;r<e.length;r++)for(u=e[r].children,i=0;i<u.length;i++)f=u[i],t&&!fi(f,t)||o.push(f);return o},n.findElements=ei,n.flexibleCompare=wf,n.forceClassName=function(n,t,i){i?n.classList.add(t):n.classList.remove(t)},n.formatDate=function(n,t){void 0===t&&(t={});var r=ps(t),u=v(t),i=r.createMarkerMeta(n);return i?r.format(i.marker,u,{forcedTzo:i.forcedTzo}):""},n.formatIsoTimeString=function(n){return rt(n.getUTCHours(),2)+":"+rt(n.getUTCMinutes(),2)+":"+rt(n.getUTCSeconds(),2)},n.formatRange=function(n,t,i){var r=ps("object"==typeof i&&i?i:{}),e=v(i,tt.defaultRangeSeparator),u=r.createMarkerMeta(n),f=r.createMarkerMeta(t);return u&&f?r.formatRange(u.marker,f.marker,e,{forcedStartTzo:u.forcedTzo,forcedEndTzo:f.forcedTzo,isEndExclusive:i.isEndExclusive}):""},n.getAllDayHtml=function(n){return n.allDayHtml||ft(n.allDayText)},n.getClippingParents=rf,n.getDayClasses=eo,n.getElSeg=di,n.getRectCenter=function(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}},n.getRelevantEvents=ie,n.globalDefaults=tt,n.greatestDurationDenominator=si,n.hasBgRendering=function(n){return"background"===n.rendering||"inverse-background"===n.rendering},n.htmlEscape=ft,n.htmlToElement=ui,n.insertAfterElement=function(n,t){for(var r=er(t),u=n.nextSibling||null,i=0;i<r.length;i++)n.parentNode.insertBefore(r[i],u)},n.interactionSettingsStore=yu,n.interactionSettingsToStore=function(n){var t;return(t={})[n.component.uid]=n,t},n.intersectRanges=gt,n.intersectRects=ku,n.isArraysEqual=dr,n.isDateSpansEqual=function(n,t){return ni(n.range,t.range)&&n.allDay===t.allDay&&function(n,t){var i;for(i in t)if("range"!==i&&"allDay"!==i&&n[i]!==t[i])return!1;for(i in n)if(!(i in t))return!1;return!0}(n,t)},n.isInt=bt,n.isInteractionValid=we,n.isMultiDayRange=function(n){var t=ci(n);return b(t.start,t.end)>1},n.isPropsEqual=te,n.isPropsValid=ke,n.isSingleDay=function(n){return 0===n.years&&0===n.months&&1===n.days&&0===n.milliseconds},n.isValidDate=ar,n.listenBySelector=oi,n.mapHash=l,n.matchCellWidths=function(n){var t=0;return n.forEach(function(n){var r=n.firstChild,i;r instanceof HTMLElement&&(i=r.getBoundingClientRect().width,i>t&&(t=i))}),t++,n.forEach(function(n){n.style.width=t+"px"}),t},n.memoize=r,n.memoizeOutput=fe,n.memoizeRendering=f,n.mergeEventStores=dt,n.multiplyDuration=function(n,t){return{years:n.years*t,months:n.months*t,days:n.days*t,milliseconds:n.milliseconds*t}},n.padStart=rt,n.parseBusinessHours=uo,n.parseDragMeta=function(n){var t={},i=a(n,ws,bs,t);return i.leftoverProps=t,i},n.parseEventDef=tr,n.parseFieldSpecs=vf,n.parseMarker=ts,n.pointInsideRect=function(n,t){return n.left>=t.left&&n.left<t.right&&n.top>=t.top&&n.top<t.bottom},n.prependToElement=fr,n.preventContextMenu=function(n){n.addEventListener("contextmenu",pt)},n.preventDefault=pt,n.preventSelection=function(n){n.classList.add("fc-unselectable"),n.addEventListener("selectstart",pt)},n.processScopedUiProps=iu,n.rangeContainsMarker=ut,n.rangeContainsRange=yi,n.rangesEqual=ni,n.rangesIntersect=vi,n.refineProps=a,n.removeElement=p,n.removeExact=function(n,t){for(var r=0,i=0;i<n.length;)n[i]===t?(n.splice(i,1),r++):i++;return r},n.renderDateCell=ds,n.requestJson=yo,n.sliceEventStore=ki,n.startOfDay=u,n.subtractInnerElHeight=function(n,t){var r={position:"relative",left:-1},u,i;return s(n,r),s(t,r),u=n.getBoundingClientRect().height-t.getBoundingClientRect().height,i={position:"",left:""},s(n,i),s(t,i),u},n.translateRect=function(n,t,i){return{left:n.left+t,right:n.right+t,top:n.top+i,bottom:n.bottom+i}},n.uncompensateScroll=function(n){s(n,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})},n.undistributeHeight=af,n.unpromisify=oo,n.version="4.4.2",n.whenTransitionDone=function(n,t){var i=function(r){t(r),uf.forEach(function(t){n.removeEventListener(t,i)})};uf.forEach(function(t){n.addEventListener(t,i)})},n.wholeDivideDurations=function(n,t){for(var r,f,i=null,u=0;u<cf.length;u++)if(r=cf[u],t[r]){if(f=n[r]/t[r],!bt(f)||null!==i&&i!==f)return null;i=f}else if(n[r])return null;return i},Object.defineProperty(n,"__esModule",{value:!0})});
/*!
FullCalendar Day Grid Plugin v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((n=n||self).FullCalendarDayGrid={},n.FullCalendar)}(this,function(n,t){"use strict";function i(n,t){function i(){this.constructor=n}f(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function b(n,t){for(var r,i=0;i<t.length;i++)if((r=t[i]).firstCol<=n.lastCol&&r.lastCol>=n.firstCol)return!0;return!1}function k(n,t){return n.leftCol-t.leftCol}function it(n,i,r,u){var e=r.dateEnv,o=r.theme,s=t.rangeContainsMarker(i.activeRange,n),f=t.getDayClasses(n,i,r);return f.unshift("fc-day",o.getClass("widgetContent")),'<td class="'+f.join(" ")+'"'+(s?' data-date="'+e.formatIso(n,{omitTime:!0})+'"':"")+(u?" "+u:"")+"><\/td>"}function v(n,i){var r=new t.DaySeries(n.renderRange,i);return new t.DayTable(r,/year|month|week/.test(n.currentRangeUnit))}var f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},r=function(){return(r=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},p=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.buildRenderRange=function(i,r,u){var o,s=this.dateEnv,h=n.prototype.buildRenderRange.call(this,i,r,u),e=h.start,f=h.end,c;return(/^(year|month)$/.test(r)&&(e=s.startOfWeek(e),(o=s.startOfWeek(f)).valueOf()!==f.valueOf()&&(f=t.addWeeks(o,1))),this.options.monthMode&&this.options.fixedWeekCount)&&(c=Math.ceil(t.diffWeeks(e,f)),f=t.addWeeks(f,6-c)),{start:e,end:f}},r}(t.DateProfileGenerator),w=function(){function n(n){var t=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(n){t.el&&!t.el.contains(n.target)&&t.hide()},this.options=n}return n.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},n.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},n.prototype.render=function(){var r=this,n=this.options,i=this.el=t.createElement("div",{className:"fc-popover "+(n.className||""),style:{top:"0",left:"0"}});"function"==typeof n.content&&n.content(i),n.parentEl.appendChild(i),t.listenBySelector(i,"click",".fc-close",function(){r.hide()}),n.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},n.prototype.destroy=function(){this.hide(),this.el&&(t.removeElement(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},n.prototype.position=function(){var n,i,r=this.options,f=this.el,e=f.getBoundingClientRect(),o=t.computeRect(f.offsetParent),u=t.computeClippingRect(r.parentEl);n=r.top||0,i=void 0!==r.left?r.left:void 0!==r.right?r.right-e.width:0,n=Math.min(n,u.bottom-e.height-this.margin),n=Math.max(n,u.top+this.margin),i=Math.min(i,u.right-e.width-this.margin),i=Math.max(i,u.left+this.margin),t.applyStyle(f,{top:n-o.top,left:i-o.left})},n.prototype.trigger=function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1))},n}(),e=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.renderSegHtml=function(n,i){var h,e,u=this.context,o=n.eventRange,r=o.def,f=o.ui,c=r.allDay,p=t.computeEventDraggable(u,r,f),l=c&&n.isStart&&t.computeEventStartResizable(u,r,f),a=c&&n.isEnd&&t.computeEventEndResizable(u,r,f),v=this.getSegClasses(n,p,l||a,i),y=t.cssToStr(this.getSkinCss(f)),s="";return v.unshift("fc-day-grid-event","fc-h-event"),n.isStart&&(h=this.getTimeText(o))&&(s='<span class="fc-time">'+t.htmlEscape(h)+"<\/span>"),e='<span class="fc-title">'+(t.htmlEscape(r.title||"")||"&nbsp;")+"<\/span>",'<a class="'+v.join(" ")+'"'+(r.url?' href="'+t.htmlEscape(r.url)+'"':"")+(y?' style="'+y+'"':"")+'><div class="fc-content">'+("rtl"===u.options.dir?e+" "+s:s+" "+e)+"<\/div>"+(l?'<div class="fc-resizer fc-start-resizer"><\/div>':"")+(a?'<div class="fc-resizer fc-end-resizer"><\/div>':"")+"<\/a>"},r.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},r.prototype.computeDisplayEventEnd=function(){return!1},r}(t.FgEventRenderer),o=function(n){function r(t){var i=n.call(this)||this;return i.dayGrid=t,i}return i(r,n),r.prototype.attachSegs=function(n,t){var i=this.rowStructs=this.renderSegRows(n);this.dayGrid.rowEls.forEach(function(n,t){n.querySelector(".fc-content-skeleton > table").appendChild(i[t].tbodyEl)}),t||this.dayGrid.removeSegPopover()},r.prototype.detachSegs=function(){for(var n,i=this.rowStructs||[];n=i.pop();)t.removeElement(n.tbodyEl);this.rowStructs=null},r.prototype.renderSegRows=function(n){for(var r=[],i=this.groupSegRows(n),t=0;t<i.length;t++)r.push(this.renderSegRow(t,i[t]));return r},r.prototype.renderSegRow=function(n,i){function nt(n){for(;u<n;)(r=(l[f-1]||[])[u])?r.rowSpan=(r.rowSpan||1)+1:(r=document.createElement("td"),o.appendChild(r)),c[f][u]=r,l[f][u]=r,u++}for(var s,u,o,h,e,r,p=this.context.isRtl,d=this.dayGrid,w=d.colCnt,b=this.buildSegLevels(i),tt=Math.max(1,b.length),g=document.createElement("tbody"),k=[],c=[],l=[],a,v,y,f=0;f<tt;f++){if(s=b[f],u=0,o=document.createElement("tr"),k.push([]),c.push([]),l.push([]),s)for(h=0;h<s.length;h++){for(e=s[h],a=p?w-1-e.lastCol:e.firstCol,v=p?w-1-e.firstCol:e.lastCol,nt(a),r=t.createElement("td",{className:"fc-event-container"},e.el),a!==v?r.colSpan=v-a+1:l[f][u]=r;u<=v;)c[f][u]=r,k[f][u]=e,u++;o.appendChild(r)}nt(w),y=d.renderProps.renderIntroHtml(),y&&(p?t.appendToElement(o,y):t.prependToElement(o,y)),g.appendChild(o)}return{row:n,tbodyEl:g,cellMatrix:c,segMatrix:k,segLevels:b,segs:i}},r.prototype.buildSegLevels=function(n){var u,i,t,f=this.context.isRtl,e=this.dayGrid.colCnt,r=[];for(n=this.sortEventSegs(n),u=0;u<n.length;u++){for(i=n[u],t=0;t<r.length&&b(i,r[t]);t++);i.level=t,i.leftCol=f?e-1-i.lastCol:i.firstCol,i.rightCol=f?e-1-i.firstCol:i.lastCol,(r[t]||(r[t]=[])).push(i)}for(t=0;t<r.length;t++)r[t].sort(k);return r},r.prototype.groupSegRows=function(n){for(var i=[],t=0;t<this.dayGrid.rowCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].row].push(n[t]);return i},r.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},r}(e),d=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.attachSegs=function(n,i){var r=i.sourceSeg,u=this.rowStructs=this.renderSegRows(n);this.dayGrid.rowEls.forEach(function(n,i){var f,o,e=t.htmlToElement('<div class="fc-mirror-skeleton"><table><\/table><\/div>');r&&r.row===i?f=r.el:(f=n.querySelector(".fc-content-skeleton tbody"))||(f=n.querySelector(".fc-content-skeleton table")),o=f.getBoundingClientRect().top-n.getBoundingClientRect().top,e.style.top=o+"px",e.querySelector("table").appendChild(u[i].tbodyEl),n.appendChild(e)})},r}(o),g=function(n){function r(t){var i=n.call(this)||this;return i.fillSegTag="td",i.dayGrid=t,i}return i(r,n),r.prototype.renderSegs=function(t,i,r){"bgEvent"===t&&(r=r.filter(function(n){return n.eventRange.def.allDay})),n.prototype.renderSegs.call(this,t,i,r)},r.prototype.attachSegs=function(n,t){for(var r,u,f=[],i=0;i<t.length;i++)r=t[i],u=this.renderFillRow(n,r),this.dayGrid.rowEls[r.row].appendChild(u),f.push(u);return f},r.prototype.renderFillRow=function(n,i){var h,c,r,l=this.dayGrid,e=this.context.isRtl,u=l.colCnt,o=e?u-1-i.lastCol:i.firstCol,s=(e?u-1-i.firstCol:i.lastCol)+1,f;return h="businessHours"===n?"bgevent":n.toLowerCase(),r=(c=t.htmlToElement('<div class="fc-'+h+'-skeleton"><table><tr><\/tr><\/table><\/div>')).getElementsByTagName("tr")[0],o>0&&t.appendToElement(r,new Array(o+1).join('<td style="pointer-events:none"><\/td>')),i.el.colSpan=s-o,r.appendChild(i.el),s<u&&t.appendToElement(r,new Array(u-s+1).join('<td style="pointer-events:none"><\/td>')),f=l.renderProps.renderIntroHtml(),f&&(e?t.appendToElement(r,f):t.prependToElement(r,f)),c},r}(t.FillRenderer),nt=function(n){function r(i){var u=n.call(this,i)||this,r=u.eventRenderer=new tt(u),f=u.renderFrame=t.memoizeRendering(u._renderFrame);return u.renderFgEvents=t.memoizeRendering(r.renderSegs.bind(r),r.unrender.bind(r),[f]),u.renderEventSelection=t.memoizeRendering(r.selectByInstanceId.bind(r),r.unselectByInstanceId.bind(r),[u.renderFgEvents]),u.renderEventDrag=t.memoizeRendering(r.hideByHash.bind(r),r.showByHash.bind(r),[f]),u.renderEventResize=t.memoizeRendering(r.hideByHash.bind(r),r.showByHash.bind(r),[f]),u}return i(r,n),r.prototype.firstContext=function(n){n.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},r.prototype.render=function(n,t){this.renderFrame(n.date),this.renderFgEvents(t,n.fgSegs),this.renderEventSelection(n.eventSelection),this.renderEventDrag(n.eventDragInstances),this.renderEventResize(n.eventResizeInstances)},r.prototype.destroy=function(){n.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},r.prototype._renderFrame=function(n){var i=this.context,r=i.theme,u=i.dateEnv,f=i.options,e=u.format(n,t.createFormatter(f.dayPopoverFormat));this.el.innerHTML='<div class="fc-header '+r.getClass("popoverHeader")+'"><span class="fc-title">'+t.htmlEscape(e)+'<\/span><span class="fc-close '+r.getIconClass("close")+'"><\/span><\/div><div class="fc-body '+r.getClass("popoverContent")+'"><div class="fc-event-container"><\/div><\/div>',this.segContainerEl=this.el.querySelector(".fc-event-container")},r.prototype.queryHit=function(n,i,r,u){var f=this.props.date;if(n<r&&i<u)return{component:this,dateSpan:{allDay:!0,range:{start:f,end:t.addDays(f,1)}},dayEl:this.el,rect:{left:0,top:0,right:r,bottom:u},layer:1}},r}(t.DateComponent),tt=function(n){function r(t){var i=n.call(this)||this;return i.dayTile=t,i}return i(r,n),r.prototype.attachSegs=function(n){for(var r,t=0,i=n;t<i.length;t++)r=i[t],this.dayTile.segContainerEl.appendChild(r.el)},r.prototype.detachSegs=function(n){for(var u,i=0,r=n;i<r.length;i++)u=r[i],t.removeElement(u.el)},r}(e),s=function(){function n(n){this.context=n}return n.prototype.renderHtml=function(n){var t=[],i,r,u;for(n.renderIntroHtml&&t.push(n.renderIntroHtml()),i=0,r=n.cells;i<r.length;i++)u=r[i],t.push(it(u.date,n.dateProfile,this.context,u.htmlAttrs));return n.cells.length||t.push('<td class="fc-day '+this.context.theme.getClass("widgetContent")+'"><\/td>'),"rtl"===this.context.options.dir&&t.reverse(),"<tr>"+t.join("")+"<\/tr>"},n}(),rt=t.createFormatter({day:"numeric"}),ut=t.createFormatter({week:"numeric"}),h=function(n){function u(i,r){var u=n.call(this,i)||this,e,f,s;return u.bottomCoordPadding=0,u.isCellSizesDirty=!1,u.renderProps=r,e=u.eventRenderer=new o(u),f=u.fillRenderer=new g(u),u.mirrorRenderer=new d(u),s=u.renderCells=t.memoizeRendering(u._renderCells,u._unrenderCells),u.renderBusinessHours=t.memoizeRendering(f.renderSegs.bind(f,"businessHours"),f.unrender.bind(f,"businessHours"),[s]),u.renderDateSelection=t.memoizeRendering(f.renderSegs.bind(f,"highlight"),f.unrender.bind(f,"highlight"),[s]),u.renderBgEvents=t.memoizeRendering(f.renderSegs.bind(f,"bgEvent"),f.unrender.bind(f,"bgEvent"),[s]),u.renderFgEvents=t.memoizeRendering(e.renderSegs.bind(e),e.unrender.bind(e),[s]),u.renderEventSelection=t.memoizeRendering(e.selectByInstanceId.bind(e),e.unselectByInstanceId.bind(e),[u.renderFgEvents]),u.renderEventDrag=t.memoizeRendering(u._renderEventDrag,u._unrenderEventDrag,[s]),u.renderEventResize=t.memoizeRendering(u._renderEventResize,u._unrenderEventResize,[s]),u}return i(u,n),u.prototype.render=function(n,t){var i=n.cells;this.rowCnt=i.length,this.colCnt=i[0].length,this.renderCells(i,n.isRigid),this.renderBusinessHours(t,n.businessHourSegs),this.renderDateSelection(t,n.dateSelectionSegs),this.renderBgEvents(t,n.bgEventSegs),this.renderFgEvents(t,n.fgEventSegs),this.renderEventSelection(n.eventSelection),this.renderEventDrag(n.eventDrag),this.renderEventResize(n.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},u.prototype.destroy=function(){n.prototype.destroy.call(this),this.renderCells.unrender()},u.prototype.getCellRange=function(n,i){var r=this.props.cells[n][i].date;return{start:r,end:t.addDays(r,1)}},u.prototype.updateSegPopoverTile=function(n,t){var i=this.props;this.segPopoverTile.receiveProps({date:n||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:i.eventSelection,eventDragInstances:i.eventDrag?i.eventDrag.affectedInstances:null,eventResizeInstances:i.eventResize?i.eventResize.affectedInstances:null},this.context)},u.prototype._renderCells=function(n,i){for(var u,f=this.context,h=f.calendar,c=f.view,l=f.isRtl,a=f.dateEnv,e=this.rowCnt,o=this.colCnt,s="",r=0;r<e;r++)s+=this.renderDayRowHtml(r,i);for(this.el.innerHTML=s,this.rowEls=t.findElements(this.el,".fc-row"),this.cellEls=t.findElements(this.el,".fc-day, .fc-disabled-day"),l&&this.cellEls.reverse(),this.rowPositions=new t.PositionCache(this.el,this.rowEls,!1,!0),this.colPositions=new t.PositionCache(this.el,this.cellEls.slice(0,o),!0,!1),r=0;r<e;r++)for(u=0;u<o;u++)h.publiclyTrigger("dayRender",[{date:a.toDate(n[r][u].date),el:this.getCellEl(r,u),view:c}]);this.isCellSizesDirty=!0},u.prototype._unrenderCells=function(){this.removeSegPopover()},u.prototype.renderDayRowHtml=function(n,t){var i=this.context.theme,r=["fc-row","fc-week",i.getClass("dayRow")],u;return t&&r.push("fc-rigid"),u=new s(this.context),'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+i.getClass("tableGrid")+'">'+u.renderHtml({cells:this.props.cells[n],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'<\/table><\/div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(n)+"<\/thead>":"")+"<\/table><\/div><\/div>"},u.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},u.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},u.prototype.renderNumberTrHtml=function(n){var t=this.context.isRtl,i=this.renderProps.renderNumberIntroHtml(n,this);return"<tr>"+(t?"":i)+this.renderNumberCellsHtml(n)+(t?i:"")+"<\/tr>"},u.prototype.renderNumberCellsHtml=function(n){for(var r,i=[],t=0;t<this.colCnt;t++)r=this.props.cells[n][t].date,i.push(this.renderNumberCellHtml(r));return this.context.isRtl&&i.reverse(),i.join("")},u.prototype.renderNumberCellHtml=function(n){var u,f,e=this.context,i=e.dateEnv,o=e.options,r="",s=t.rangeContainsMarker(this.props.dateProfile.activeRange,n),h=this.getIsDayNumbersVisible()&&s;return h||this.renderProps.cellWeekNumbersVisible?((u=t.getDayClasses(n,this.props.dateProfile,this.context)).unshift("fc-day-top"),this.renderProps.cellWeekNumbersVisible&&(f=i.weekDow),r+='<td class="'+u.join(" ")+'"'+(s?' data-date="'+i.formatIso(n,{omitTime:!0})+'"':"")+">",this.renderProps.cellWeekNumbersVisible&&n.getUTCDay()===f&&(r+=t.buildGotoAnchorHtml(o,i,{date:n,type:"week"},{"class":"fc-week-number"},i.format(n,ut))),h&&(r+=t.buildGotoAnchorHtml(o,i,n,{"class":"fc-day-number"},i.format(n,rt))),r+="<\/td>"):"<td><\/td>"},u.prototype.updateSize=function(n){var u=this.context.calendar,t=this.fillRenderer,i=this.eventRenderer,r=this.mirrorRenderer;(n||this.isCellSizesDirty||u.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),t.computeSizes(n),i.computeSizes(n),r.computeSizes(n),t.assignSizes(n),i.assignSizes(n),r.assignSizes(n)},u.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},u.prototype.buildColPositions=function(){this.colPositions.build()},u.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},u.prototype.positionToHit=function(n,t){var u=this.colPositions,f=this.rowPositions,i=u.leftToIndex(n),r=f.topToIndex(t);if(null!=r&&null!=i)return{row:r,col:i,dateSpan:{range:this.getCellRange(r,i),allDay:!0},dayEl:this.getCellEl(r,i),relativeRect:{left:u.lefts[i],right:u.rights[i],top:f.tops[r],bottom:f.bottoms[r]}}},u.prototype.getCellEl=function(n,t){return this.cellEls[n*this.colCnt+t]},u.prototype._renderEventDrag=function(n){n&&(this.eventRenderer.hideByHash(n.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,n.segs))},u.prototype._unrenderEventDrag=function(n){n&&(this.eventRenderer.showByHash(n.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},u.prototype._renderEventResize=function(n){n&&(this.eventRenderer.hideByHash(n.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,n.segs),this.mirrorRenderer.renderSegs(this.context,n.segs,{isResizing:!0,sourceSeg:n.sourceSeg}))},u.prototype._unrenderEventResize=function(n){n&&(this.eventRenderer.showByHash(n.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,n.segs,{isResizing:!0,sourceSeg:n.sourceSeg}))},u.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},u.prototype.limitRows=function(n){for(var i,r=this.eventRenderer.rowStructs||[],t=0;t<r.length;t++)this.unlimitRow(t),!1!==(i=!!n&&("number"==typeof n?n:this.computeRowLevelLimit(t)))&&this.limitRow(t,i)},u.prototype.computeRowLevelLimit=function(n){for(var r,f=this.rowEls[n].getBoundingClientRect().bottom,u=t.findChildren(this.eventRenderer.rowStructs[n].tbodyEl),i=0;i<u.length;i++)if((r=u[i]).classList.remove("fc-limited"),r.getBoundingClientRect().bottom>f)return i;return!1},u.prototype.limitRow=function(n,i){var p,w,b,c,f,u,k,l,e,nt,d,s,a,h,v,tt=this,it=this.colCnt,rt=this.context.isRtl,o=this.eventRenderer.rowStructs[n],g=[],r=0,ut=function(f){for(;r<f;)(u=tt.getCellSegs(n,r,i)).length&&(e=w[i-1][r],v=tt.renderMoreLink(n,r,u),h=t.createElement("div",null,v),e.appendChild(h),g.push(h)),r++},y,ft;if(i&&i<o.segLevels.length){for(p=o.segLevels[i-1],w=o.cellMatrix,(b=t.findChildren(o.tbodyEl).slice(i)).forEach(function(n){n.classList.add("fc-limited")}),c=0;c<p.length;c++){for(f=p[c],y=rt?it-1-f.lastCol:f.firstCol,ft=rt?it-1-f.firstCol:f.lastCol,ut(y),l=[],k=0;r<=ft;)u=this.getCellSegs(n,r,i),l.push(u),k+=u.length,r++;if(k){for(nt=(e=w[i-1][y]).rowSpan||1,d=[],s=0;s<l.length;s++)a=t.createElement("td",{className:"fc-more-cell",rowSpan:nt}),u=l[s],v=this.renderMoreLink(n,y+s,[f].concat(u)),h=t.createElement("div",null,v),a.appendChild(h),d.push(a),g.push(a);e.classList.add("fc-limited"),t.insertAfterElement(e,d),b.push(e)}}ut(this.colCnt),o.moreEls=g,o.limitedEls=b}},u.prototype.unlimitRow=function(n){var i=this.eventRenderer.rowStructs[n];i.moreEls&&(i.moreEls.forEach(t.removeElement),i.moreEls=null),i.limitedEls&&(i.limitedEls.forEach(function(n){n.classList.remove("fc-limited")}),i.limitedEls=null)},u.prototype.renderMoreLink=function(n,i,r){var u=this,f=this.context,o=f.calendar,s=f.view,h=f.dateEnv,c=f.options,l=f.isRtl,e=t.createElement("a",{className:"fc-more"});return e.innerText=this.getMoreLinkText(r.length),e.addEventListener("click",function(t){var f=c.eventLimitClick,y=l?u.colCnt-i-1:i,e=u.props.cells[n][y].date,a=t.currentTarget,p=u.getCellEl(n,i),w=u.getCellSegs(n,i),v=u.resliceDaySegs(w,e),b=u.resliceDaySegs(r,e);"function"==typeof f&&(f=o.publiclyTrigger("eventLimitClick",[{date:h.toDate(e),allDay:!0,dayEl:p,moreEl:a,segs:v,hiddenSegs:b,jsEvent:t,view:s}])),"popover"===f?u.showSegPopover(n,i,a,v):"string"==typeof f&&o.zoomTo(e,f)}),e},u.prototype.showSegPopover=function(n,i,r,u){var s,e,f=this,o=this.context,a=o.calendar,h=o.view,v=o.theme,c=o.isRtl,y=c?this.colCnt-i-1:i,l=r.parentNode;s=1===this.rowCnt?h.el:this.rowEls[n],e={className:"fc-more-popover "+v.getClass("popover"),parentEl:h.el,top:t.computeRect(s).top,autoHide:!0,content:function(t){f.segPopoverTile=new nt(t),f.updateSegPopoverTile(f.props.cells[n][y].date,u)},hide:function(){f.segPopoverTile.destroy(),f.segPopoverTile=null,f.segPopover.destroy(),f.segPopover=null}},c?e.right=t.computeRect(l).right+1:e.left=t.computeRect(l).left-1,this.segPopover=new w(e),this.segPopover.show(),a.releaseAfterSizingTriggers()},u.prototype.resliceDaySegs=function(n,i){for(var h=i,a={start:h,end:t.addDays(h,1)},c=[],o=0,l=n;o<l.length;o++){var u=l[o],f=u.eventRange,s=f.range,e=t.intersectRanges(s,a);e&&c.push(r({},u,{eventRange:{def:f.def,ui:r({},f.ui,{durationEditable:!1}),instance:f.instance,range:e},isStart:u.isStart&&e.start.valueOf()===s.start.valueOf(),isEnd:u.isEnd&&e.end.valueOf()===s.end.valueOf()}))}return c},u.prototype.getMoreLinkText=function(n){var t=this.context.options.eventLimitText;return"function"==typeof t?t(n):"+"+n+" "+t},u.prototype.getCellSegs=function(n,t,i){for(var u,f=this.eventRenderer.rowStructs[n].segMatrix,r=i||0,e=[];r<f.length;)(u=f[r][t])&&e.push(u),r++;return e},u}(t.DateComponent),ft=t.createFormatter({week:"numeric"}),u=function(n){function r(){var i=null!==n&&n.apply(this,arguments)||this;return i.processOptions=t.memoize(i._processOptions),i.renderSkeleton=t.memoizeRendering(i._renderSkeleton,i._unrenderSkeleton),i.renderHeadIntroHtml=function(){var n=i.context,r=n.theme,u=n.options;return i.colWeekNumbersVisible?'<th class="fc-week-number '+r.getClass("widgetHeader")+'" '+i.weekNumberStyleAttr()+"><span>"+t.htmlEscape(u.weekLabel)+"<\/span><\/th>":""},i.renderDayGridNumberIntroHtml=function(n,r){var u=i.context,o=u.options,f=u.dateEnv,e=r.props.cells[n][0].date;return i.colWeekNumbersVisible?'<td class="fc-week-number" '+i.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml(o,f,{date:e,type:"week",forceOff:1===r.colCnt},f.format(e,ft))+"<\/td>":""},i.renderDayGridBgIntroHtml=function(){var n=i.context.theme;return i.colWeekNumbersVisible?'<td class="fc-week-number '+n.getClass("widgetContent")+'" '+i.weekNumberStyleAttr()+"><\/td>":""},i.renderDayGridIntroHtml=function(){return i.colWeekNumbersVisible?'<td class="fc-week-number" '+i.weekNumberStyleAttr()+"><\/td>":""},i}return i(r,n),r.prototype._processOptions=function(n){n.weekNumbers?n.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},r.prototype.render=function(t,i){n.prototype.render.call(this,t,i),this.processOptions(i.options),this.renderSkeleton(i)},r.prototype.destroy=function(){n.prototype.destroy.call(this),this.renderSkeleton.unrender()},r.prototype._renderSkeleton=function(){var n,i;this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new t.ScrollComponent("hidden","auto"),n=this.scroller.el,this.el.querySelector(".fc-body > tr > td").appendChild(n),n.classList.add("fc-day-grid-container"),i=t.createElement("div",{className:"fc-day-grid"}),n.appendChild(i),this.dayGrid=new h(i,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},r.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},r.prototype.renderSkeletonHtml=function(){var t=this.context,n=t.theme,i=t.options;return'<table class="'+n.getClass("tableGrid")+'">'+(i.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'">&nbsp;<\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'"><\/td><\/tr><\/tbody><\/table>'},r.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},r.prototype.hasRigidRows=function(){var n=this.context.options.eventLimit;return n&&"number"!=typeof n},r.prototype.updateSize=function(t,i,r){n.prototype.updateSize.call(this,t,i,r),this.dayGrid.updateSize(t)},r.prototype.updateBaseSize=function(n,i,r){var u,e,o=this.dayGrid,f=this.context.options.eventLimit,s=this.header?this.header.el:null;o.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=t.matchCellWidths(t.findElements(this.el,".fc-week-number"))),this.scroller.clear(),s&&t.uncompensateScroll(s),o.removeSegPopover(),f&&"number"==typeof f&&o.limitRows(f),u=this.computeScrollerHeight(i),this.setGridHeight(u,r),f&&"number"!=typeof f&&o.limitRows(f),r||(this.scroller.setHeight(u),((e=this.scroller.getScrollbarWidths()).left||e.right)&&(s&&t.compensateScroll(s,e),u=this.computeScrollerHeight(i),this.scroller.setHeight(u)),this.scroller.lockOverflow(e))):r||(u=this.computeScrollerHeight(i),this.scroller.setHeight(u))},r.prototype.computeScrollerHeight=function(n){return n-t.subtractInnerElHeight(this.el,this.scroller.el)},r.prototype.setGridHeight=function(n,i){this.context.options.monthMode?(i&&(n*=this.dayGrid.rowCnt/6),t.distributeHeight(this.dayGrid.rowEls,n,!i)):i?t.undistributeHeight(this.dayGrid.rowEls):t.distributeHeight(this.dayGrid.rowEls,n,!0)},r.prototype.computeDateScroll=function(){return{top:0}},r.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},r.prototype.applyDateScroll=function(n){void 0!==n.top&&this.scroller.setScrollTop(n.top)},r}(t.View),y;u.prototype.dateProfileGeneratorClass=p;var c=function(n){function t(t){var i=n.call(this,t.el)||this;return i.slicer=new l,i.dayGrid=t,i}return i(t,n),t.prototype.firstContext=function(n){n.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype.render=function(n,t){var i=this.dayGrid,u=n.dateProfile,f=n.dayTable;i.receiveContext(t),i.receiveProps(r({},this.slicer.sliceProps(n,u,n.nextDayThreshold,t.calendar,i,f),{dateProfile:u,cells:f.cells,isRigid:n.isRigid}),t)},t.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},t.prototype.queryHit=function(n,t){var i=this.dayGrid.positionToHit(n,t);if(i)return{component:this.dayGrid,dateSpan:i.dateSpan,dayEl:i.dayEl,rect:{left:i.relativeRect.left,right:i.relativeRect.right,top:i.relativeRect.top,bottom:i.relativeRect.bottom},layer:0}},t}(t.DateComponent),l=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.sliceRange=function(n,t){return t.sliceRange(n)},t}(t.Slicer),a=function(n){function r(){var i=null!==n&&n.apply(this,arguments)||this;return i.buildDayTable=t.memoize(v),i}return i(r,n),r.prototype.render=function(t,i){n.prototype.render.call(this,t,i);var r=this.props.dateProfile,u=this.dayTable=this.buildDayTable(r,t.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:r,dates:u.headerDates,datesRepDistinctDays:1===u.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},i),this.simpleDayGrid.receiveProps({dateProfile:r,dayTable:u,businessHours:t.businessHours,dateSelection:t.dateSelection,eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},i)},r.prototype._renderSkeleton=function(i){n.prototype._renderSkeleton.call(this,i),i.options.columnHeader&&(this.header=new t.DayHeader(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new c(this.dayGrid)},r.prototype._unrenderSkeleton=function(){n.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},r}(u);y=t.createPlugin({defaultView:"dayGridMonth",views:{dayGrid:a,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),n.AbstractDayGridView=u,n.DayBgRow=s,n.DayGrid=h,n.DayGridSlicer=l,n.DayGridView=a,n.SimpleDayGrid=c,n.buildBasicDayTable=v,n.default=y,Object.defineProperty(n,"__esModule",{value:!0})}),typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),function(n,t,i){var r={init:function(t,i){var r=this;r.$elem=n(i),r.options=n.extend({},n.fn.owlCarousel.options,r.$elem.data(),t),r.userOptions=t,r.loadContent()},loadContent:function(){function r(n){var i,r="";if(typeof t.options.jsonSuccess=="function")t.options.jsonSuccess.apply(this,[n]);else{for(i in n.owl)n.owl.hasOwnProperty(i)&&(r+=n.owl[i].item);t.$elem.html(r)}t.logIn()}var t=this,i;typeof t.options.beforeInit=="function"&&t.options.beforeInit.apply(this,[t.$elem]),typeof t.options.jsonPath=="string"?(i=t.options.jsonPath,n.getJSON(i,r)):t.logIn()},logIn:function(){var n=this;n.$elem.data("owl-originalStyles",n.$elem.attr("style")),n.$elem.data("owl-originalClasses",n.$elem.attr("class")),n.$elem.css({opacity:0}),n.orignalItems=n.options.items,n.checkBrowser(),n.wrapperWidth=0,n.checkVisible=null,n.setVars()},setVars:function(){var n=this;if(n.$elem.children().length===0)return!1;n.baseClass(),n.eventTypes(),n.$userItems=n.$elem.children(),n.itemsAmount=n.$userItems.length,n.wrapItems(),n.$owlItems=n.$elem.find(".owl-item"),n.$owlWrapper=n.$elem.find(".owl-wrapper"),n.playDirection="next",n.prevItem=0,n.prevArr=[0],n.currentItem=0,n.customEvents(),n.onStartup()},onStartup:function(){var n=this;n.updateItems(),n.calculateAll(),n.buildControls(),n.updateControls(),n.response(),n.moveEvents(),n.stopOnHover(),n.owlStatus(),n.options.transitionStyle!==!1&&n.transitionTypes(n.options.transitionStyle),n.options.autoPlay===!0&&(n.options.autoPlay=5e3),n.play(),n.$elem.find(".owl-wrapper").css("display","block"),n.$elem.is(":visible")?n.$elem.css("opacity",1):n.watchVisibility(),n.onstartup=!1,n.eachMoveUpdate(),typeof n.options.afterInit=="function"&&n.options.afterInit.apply(this,[n.$elem])},eachMoveUpdate:function(){var n=this;n.options.lazyLoad===!0&&n.lazyLoad(),n.options.autoHeight===!0&&n.autoHeight(),n.onVisibleItems(),typeof n.options.afterAction=="function"&&n.options.afterAction.apply(this,[n.$elem])},updateVars:function(){var n=this;typeof n.options.beforeUpdate=="function"&&n.options.beforeUpdate.apply(this,[n.$elem]),n.watchVisibility(),n.updateItems(),n.calculateAll(),n.updatePosition(),n.updateControls(),n.eachMoveUpdate(),typeof n.options.afterUpdate=="function"&&n.options.afterUpdate.apply(this,[n.$elem])},reload:function(){var n=this;t.setTimeout(function(){n.updateVars()},0)},watchVisibility:function(){var n=this;if(n.$elem.is(":visible")===!1)n.$elem.css({opacity:0}),t.clearInterval(n.autoPlayInterval),t.clearInterval(n.checkVisible);else return!1;n.checkVisible=t.setInterval(function(){n.$elem.is(":visible")&&(n.reload(),n.$elem.animate({opacity:1},200),t.clearInterval(n.checkVisible))},500)},wrapItems:function(){var n=this;n.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"><\/div>'),n.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),n.wrapperOuter=n.$elem.find(".owl-wrapper-outer"),n.$elem.css("display","block")},baseClass:function(){var n=this,t=n.$elem.hasClass(n.options.baseClass),i=n.$elem.hasClass(n.options.theme);t||n.$elem.addClass(n.options.baseClass),i||n.$elem.addClass(n.options.theme)},updateItems:function(){var t=this,i,r;if(t.options.responsive===!1)return!1;if(t.options.singleItem===!0)return t.options.items=t.orignalItems=1,t.options.itemsCustom=!1,t.options.itemsDesktop=!1,t.options.itemsDesktopSmall=!1,t.options.itemsTablet=!1,t.options.itemsTabletSmall=!1,t.options.itemsMobile=!1,!1;if(i=n(t.options.responsiveBaseWidth).width(),i>(t.options.itemsDesktop[0]||t.orignalItems)&&(t.options.items=t.orignalItems),t.options.itemsCustom!==!1)for(t.options.itemsCustom.sort(function(n,t){return n[0]-t[0]}),r=0;r<t.options.itemsCustom.length;r+=1)t.options.itemsCustom[r][0]<=i&&(t.options.items=t.options.itemsCustom[r][1]);else i<=t.options.itemsDesktop[0]&&t.options.itemsDesktop!==!1&&(t.options.items=t.options.itemsDesktop[1]),i<=t.options.itemsDesktopSmall[0]&&t.options.itemsDesktopSmall!==!1&&(t.options.items=t.options.itemsDesktopSmall[1]),i<=t.options.itemsTablet[0]&&t.options.itemsTablet!==!1&&(t.options.items=t.options.itemsTablet[1]),i<=t.options.itemsTabletSmall[0]&&t.options.itemsTabletSmall!==!1&&(t.options.items=t.options.itemsTabletSmall[1]),i<=t.options.itemsMobile[0]&&t.options.itemsMobile!==!1&&(t.options.items=t.options.itemsMobile[1]);t.options.items>t.itemsAmount&&t.options.itemsScaleUp===!0&&(t.options.items=t.itemsAmount)},response:function(){var i=this,u,r;if(i.options.responsive!==!0)return!1;r=n(t).width(),i.resizer=function(){n(t).width()!==r&&(i.options.autoPlay!==!1&&t.clearInterval(i.autoPlayInterval),t.clearTimeout(u),u=t.setTimeout(function(){r=n(t).width(),i.updateVars()},i.options.responsiveRefreshRate))},n(t).resize(i.resizer)},updatePosition:function(){var n=this;n.jumpTo(n.currentItem),n.options.autoPlay!==!1&&n.checkAp()},appendItemsSizes:function(){var t=this,i=0,r=t.itemsAmount-t.options.items;t.$owlItems.each(function(u){var f=n(this);f.css({width:t.itemWidth}).data("owl-item",Number(u)),(u%t.options.items==0||u===r)&&(u>r||(i+=1)),f.data("owl-roundPages",i)})},appendWrapperSizes:function(){var n=this,t=n.$owlItems.length*n.itemWidth;n.$owlWrapper.css({width:t*2,left:0}),n.appendItemsSizes()},calculateAll:function(){var n=this;n.calculateWidth(),n.appendWrapperSizes(),n.loops(),n.max()},calculateWidth:function(){var n=this;n.itemWidth=Math.round(n.$elem.width()/n.options.items)},max:function(){var n=this,t=(n.itemsAmount*n.itemWidth-n.options.items*n.itemWidth)*-1;return n.options.items>n.itemsAmount?(n.maximumItem=0,t=0,n.maximumPixels=0):(n.maximumItem=n.itemsAmount-n.options.items,n.maximumPixels=t),t},min:function(){return 0},loops:function(){var t=this,r=0,f=0,i,e,u;for(t.positionsInArray=[0],t.pagesInArray=[],i=0;i<t.itemsAmount;i+=1)f+=t.itemWidth,t.positionsInArray.push(-f),t.options.scrollPerPage===!0&&(e=n(t.$owlItems[i]),u=e.data("owl-roundPages"),u!==r&&(t.pagesInArray[r]=t.positionsInArray[i],r=u))},buildControls:function(){var t=this;(t.options.navigation===!0||t.options.pagination===!0)&&(t.owlControls=n('<div class="owl-controls"/>').toggleClass("clickable",!t.browser.isTouch).appendTo(t.$elem)),t.options.pagination===!0&&t.buildPagination(),t.options.navigation===!0&&t.buildButtons()},buildButtons:function(){var t=this,i=n('<div class="owl-buttons"/>');t.owlControls.append(i),t.buttonPrev=n("<div/>",{"class":"owl-prev",html:t.options.navigationText[0]||""}),t.buttonNext=n("<div/>",{"class":"owl-next",html:t.options.navigationText[1]||""}),i.append(t.buttonPrev).append(t.buttonNext);i.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(n){n.preventDefault()});i.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(i){i.preventDefault(),n(this).hasClass("owl-next")?t.next():t.prev()})},buildPagination:function(){var t=this;t.paginationWrapper=n('<div class="owl-pagination"/>'),t.owlControls.append(t.paginationWrapper);t.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(i){i.preventDefault(),Number(n(this).data("owl-page"))!==t.currentItem&&t.goTo(Number(n(this).data("owl-page")),!0)})},updatePagination:function(){var t=this,u,f,e,i,r,o;if(t.options.pagination===!1)return!1;for(t.paginationWrapper.html(""),u=0,f=t.itemsAmount-t.itemsAmount%t.options.items,i=0;i<t.itemsAmount;i+=1)i%t.options.items==0&&(u+=1,f===i&&(e=t.itemsAmount-t.options.items),r=n("<div/>",{"class":"owl-page"}),o=n("<span><\/span>",{text:t.options.paginationNumbers===!0?u:"","class":t.options.paginationNumbers===!0?"owl-numbers":""}),r.append(o),r.data("owl-page",f===i?e:i),r.data("owl-roundPages",u),t.paginationWrapper.append(r));t.checkPagination()},checkPagination:function(){var t=this;if(t.options.pagination===!1)return!1;t.paginationWrapper.find(".owl-page").each(function(){n(this).data("owl-roundPages")===n(t.$owlItems[t.currentItem]).data("owl-roundPages")&&(t.paginationWrapper.find(".owl-page").removeClass("active"),n(this).addClass("active"))})},checkNavigation:function(){var n=this;if(n.options.navigation===!1)return!1;n.options.rewindNav===!1&&(n.currentItem===0&&n.maximumItem===0?(n.buttonPrev.addClass("disabled"),n.buttonNext.addClass("disabled")):n.currentItem===0&&n.maximumItem!==0?(n.buttonPrev.addClass("disabled"),n.buttonNext.removeClass("disabled")):n.currentItem===n.maximumItem?(n.buttonPrev.removeClass("disabled"),n.buttonNext.addClass("disabled")):n.currentItem!==0&&n.currentItem!==n.maximumItem&&(n.buttonPrev.removeClass("disabled"),n.buttonNext.removeClass("disabled")))},updateControls:function(){var n=this;n.updatePagination(),n.checkNavigation(),n.owlControls&&(n.options.items>=n.itemsAmount?n.owlControls.hide():n.owlControls.show())},destroyControls:function(){var n=this;n.owlControls&&n.owlControls.remove()},next:function(n){var t=this;if(t.isTransition)return!1;if(t.currentItem+=t.options.scrollPerPage===!0?t.options.items:1,t.currentItem>t.maximumItem+(t.options.scrollPerPage===!0?t.options.items-1:0))if(t.options.rewindNav===!0)t.currentItem=0,n="rewind";else return t.currentItem=t.maximumItem,!1;t.goTo(t.currentItem,n)},prev:function(n){var t=this;if(t.isTransition)return!1;if(t.options.scrollPerPage===!0&&t.currentItem>0&&t.currentItem<t.options.items?t.currentItem=0:t.currentItem-=t.options.scrollPerPage===!0?t.options.items:1,t.currentItem<0)if(t.options.rewindNav===!0)t.currentItem=t.maximumItem,n="rewind";else return t.currentItem=0,!1;t.goTo(t.currentItem,n)},goTo:function(n,i,r){var u=this,f;if(u.isTransition)return!1;if(typeof u.options.beforeMove=="function"&&u.options.beforeMove.apply(this,[u.$elem]),n>=u.maximumItem?n=u.maximumItem:n<=0&&(n=0),u.currentItem=u.owl.currentItem=n,u.options.transitionStyle!==!1&&r!=="drag"&&u.options.items===1&&u.browser.support3d===!0)return u.swapSpeed(0),u.browser.support3d===!0?u.transition3d(u.positionsInArray[n]):u.css2slide(u.positionsInArray[n],1),u.afterGo(),u.singleItemTransition(),!1;f=u.positionsInArray[n],u.browser.support3d===!0?(u.isCss3Finish=!1,i===!0?(u.swapSpeed("paginationSpeed"),t.setTimeout(function(){u.isCss3Finish=!0},u.options.paginationSpeed)):i==="rewind"?(u.swapSpeed(u.options.rewindSpeed),t.setTimeout(function(){u.isCss3Finish=!0},u.options.rewindSpeed)):(u.swapSpeed("slideSpeed"),t.setTimeout(function(){u.isCss3Finish=!0},u.options.slideSpeed)),u.transition3d(f)):i===!0?u.css2slide(f,u.options.paginationSpeed):i==="rewind"?u.css2slide(f,u.options.rewindSpeed):u.css2slide(f,u.options.slideSpeed),u.afterGo()},jumpTo:function(n){var t=this;typeof t.options.beforeMove=="function"&&t.options.beforeMove.apply(this,[t.$elem]),n>=t.maximumItem||n===-1?n=t.maximumItem:n<=0&&(n=0),t.swapSpeed(0),t.browser.support3d===!0?t.transition3d(t.positionsInArray[n]):t.css2slide(t.positionsInArray[n],1),t.currentItem=t.owl.currentItem=n,t.afterGo()},afterGo:function(){var n=this;n.prevArr.push(n.currentItem),n.prevItem=n.owl.prevItem=n.prevArr[n.prevArr.length-2],n.prevArr.shift(0),n.prevItem!==n.currentItem&&(n.checkPagination(),n.checkNavigation(),n.eachMoveUpdate(),n.options.autoPlay!==!1&&n.checkAp()),typeof n.options.afterMove=="function"&&n.prevItem!==n.currentItem&&n.options.afterMove.apply(this,[n.$elem])},stop:function(){var n=this;n.apStatus="stop",t.clearInterval(n.autoPlayInterval)},checkAp:function(){var n=this;n.apStatus!=="stop"&&n.play()},play:function(){var n=this;if(n.apStatus="play",n.options.autoPlay===!1)return!1;t.clearInterval(n.autoPlayInterval),n.autoPlayInterval=t.setInterval(function(){n.next(!0)},n.options.autoPlay)},swapSpeed:function(n){var t=this;n==="slideSpeed"?t.$owlWrapper.css(t.addCssSpeed(t.options.slideSpeed)):n==="paginationSpeed"?t.$owlWrapper.css(t.addCssSpeed(t.options.paginationSpeed)):typeof n!="string"&&t.$owlWrapper.css(t.addCssSpeed(n))},addCssSpeed:function(n){return{"-webkit-transition":"all "+n+"ms ease","-moz-transition":"all "+n+"ms ease","-o-transition":"all "+n+"ms ease",transition:"all "+n+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(n){return{"-webkit-transform":"translate3d("+n+"px, 0px, 0px)","-moz-transform":"translate3d("+n+"px, 0px, 0px)","-o-transform":"translate3d("+n+"px, 0px, 0px)","-ms-transform":"translate3d("+n+"px, 0px, 0px)",transform:"translate3d("+n+"px, 0px,0px)"}},transition3d:function(n){var t=this;t.$owlWrapper.css(t.doTranslate(n))},css2move:function(n){var t=this;t.$owlWrapper.css({left:n})},css2slide:function(n,t){var i=this;i.isCssFinish=!1,i.$owlWrapper.stop(!0,!0).animate({left:n},{duration:t||i.options.slideSpeed,complete:function(){i.isCssFinish=!0}})},checkBrowser:function(){var s=this,n="translate3d(0px, 0px, 0px)",u=i.createElement("div"),f,r,e,o;u.style.cssText="  -moz-transform:"+n+"; -ms-transform:"+n+"; -o-transform:"+n+"; -webkit-transform:"+n+"; transform:"+n,f=/translate3d\(0px, 0px, 0px\)/g,r=u.style.cssText.match(f),e=r!==null&&r.length===1,o="ontouchstart"in t||t.navigator.msMaxTouchPoints,s.browser={support3d:e,isTouch:o}},moveEvents:function(){var n=this;(n.options.mouseDrag!==!1||n.options.touchDrag!==!1)&&(n.gestures(),n.disabledEvents())},eventTypes:function(){var n=this,t=["s","e","x"];n.ev_types={},n.options.mouseDrag===!0&&n.options.touchDrag===!0?t=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:n.options.mouseDrag===!1&&n.options.touchDrag===!0?t=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:n.options.mouseDrag===!0&&n.options.touchDrag===!1&&(t=["mousedown.owl","mousemove.owl","mouseup.owl"]),n.ev_types.start=t[0],n.ev_types.move=t[1],n.ev_types.end=t[2]},disabledEvents:function(){var t=this;t.$elem.on("dragstart.owl",function(n){n.preventDefault()});t.$elem.on("mousedown.disableTextSelect",function(t){return n(t.target).is("input, textarea, select, option")})},gestures:function(){function f(n){if(n.touches!==undefined)return{x:n.touches[0].pageX,y:n.touches[0].pageY};if(n.touches===undefined){if(n.pageX!==undefined)return{x:n.pageX,y:n.pageY};if(n.pageX===undefined)return{x:n.clientX,y:n.clientY}}}function e(t){if(t==="on"){n(i).on(r.ev_types.move,s);n(i).on(r.ev_types.end,h)}else t==="off"&&(n(i).off(r.ev_types.move),n(i).off(r.ev_types.end))}function o(i){var o=i.originalEvent||i||t.event,s;if(o.which===3)return!1;if(!(r.itemsAmount<=r.options.items)){if(r.isCssFinish===!1&&!r.options.dragBeforeAnimFinish||r.isCss3Finish===!1&&!r.options.dragBeforeAnimFinish)return!1;r.options.autoPlay!==!1&&t.clearInterval(r.autoPlayInterval),r.browser.isTouch===!0||r.$owlWrapper.hasClass("grabbing")||r.$owlWrapper.addClass("grabbing"),r.newPosX=0,r.newRelativeX=0,n(this).css(r.removeTransition()),s=n(this).position(),u.relativePos=s.left,u.offsetX=f(o).x-s.left,u.offsetY=f(o).y-s.top,e("on"),u.sliding=!1,u.targetElement=o.target||o.srcElement}}function s(e){var o=e.originalEvent||e||t.event,s,h;r.newPosX=f(o).x-u.offsetX,r.newPosY=f(o).y-u.offsetY,r.newRelativeX=r.newPosX-u.relativePos,typeof r.options.startDragging=="function"&&u.dragging!==!0&&r.newRelativeX!==0&&(u.dragging=!0,r.options.startDragging.apply(r,[r.$elem])),(r.newRelativeX>8||r.newRelativeX<-8)&&r.browser.isTouch===!0&&(o.preventDefault!==undefined?o.preventDefault():o.returnValue=!1,u.sliding=!0),(r.newPosY>10||r.newPosY<-10)&&u.sliding===!1&&n(i).off("touchmove.owl"),s=function(){return r.newRelativeX/5},h=function(){return r.maximumPixels+r.newRelativeX/5},r.newPosX=Math.max(Math.min(r.newPosX,s()),h()),r.browser.support3d===!0?r.transition3d(r.newPosX):r.css2move(r.newPosX)}function h(i){var f=i.originalEvent||i||t.event,s,o,h;if(f.target=f.target||f.srcElement,u.dragging=!1,r.browser.isTouch!==!0&&r.$owlWrapper.removeClass("grabbing"),r.dragDirection=r.newRelativeX<0?r.owl.dragDirection="left":r.owl.dragDirection="right",r.newRelativeX!==0&&(s=r.getNewPosition(),r.goTo(s,!1,"drag"),u.targetElement===f.target&&r.browser.isTouch!==!0)){n(f.target).on("click.disable",function(t){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),n(t.target).off("click.disable")});o=n._data(f.target,"events").click,h=o.pop(),o.splice(0,0,h)}e("off")}var r=this,u={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};r.isCssFinish=!0;r.$elem.on(r.ev_types.start,".owl-wrapper",o)},getNewPosition:function(){var n=this,t=n.closestItem();return t>n.maximumItem?(n.currentItem=n.maximumItem,t=n.maximumItem):n.newPosX>=0&&(t=0,n.currentItem=0),t},closestItem:function(){var t=this,i=t.options.scrollPerPage===!0?t.pagesInArray:t.positionsInArray,u=t.newPosX,r=null;return n.each(i,function(f,e){u-t.itemWidth/20>i[f+1]&&u-t.itemWidth/20<e&&t.moveDirection()==="left"?(r=e,t.currentItem=t.options.scrollPerPage===!0?n.inArray(r,t.positionsInArray):f):u+t.itemWidth/20<e&&u+t.itemWidth/20>(i[f+1]||i[f]-t.itemWidth)&&t.moveDirection()==="right"&&(t.options.scrollPerPage===!0?(r=i[f+1]||i[i.length-1],t.currentItem=n.inArray(r,t.positionsInArray)):(r=i[f+1],t.currentItem=f+1))}),t.currentItem},moveDirection:function(){var n=this,t;return n.newRelativeX<0?(t="right",n.playDirection="next"):(t="left",n.playDirection="prev"),t},customEvents:function(){var n=this;n.$elem.on("owl.next",function(){n.next()});n.$elem.on("owl.prev",function(){n.prev()});n.$elem.on("owl.play",function(t,i){n.options.autoPlay=i,n.play(),n.hoverStatus="play"});n.$elem.on("owl.stop",function(){n.stop(),n.hoverStatus="stop"});n.$elem.on("owl.goTo",function(t,i){n.goTo(i)});n.$elem.on("owl.jumpTo",function(t,i){n.jumpTo(i)})},stopOnHover:function(){var n=this;if(n.options.stopOnHover===!0&&n.browser.isTouch!==!0&&n.options.autoPlay!==!1){n.$elem.on("mouseover",function(){n.stop()});n.$elem.on("mouseout",function(){n.hoverStatus!=="stop"&&n.play()})}},lazyLoad:function(){var t=this,u,i,f,r,e;if(t.options.lazyLoad===!1)return!1;for(u=0;u<t.itemsAmount;u+=1)if(i=n(t.$owlItems[u]),i.data("owl-loaded")!=="loaded"){if(f=i.data("owl-item"),r=i.find(".lazyOwl"),typeof r.data("src")!="string"){i.data("owl-loaded","loaded");continue}i.data("owl-loaded")===undefined&&(r.hide(),i.addClass("loading").data("owl-loaded","checked")),e=t.options.lazyFollow===!0?f>=t.currentItem:!0,e&&f<t.currentItem+t.options.items&&r.length&&t.lazyPreload(i,r)}},lazyPreload:function(n,i){function e(){n.data("owl-loaded","loaded").removeClass("loading"),i.removeAttr("data-src"),r.options.lazyEffect==="fade"?i.fadeIn(400):i.show(),typeof r.options.afterLazyLoad=="function"&&r.options.afterLazyLoad.apply(this,[r.$elem])}function o(){u+=1,r.completeImg(i.get(0))||f===!0?e():u<=100?t.setTimeout(o,100):e()}var r=this,u=0,f;i.prop("tagName")==="DIV"?(i.css("background-image","url("+i.data("src")+")"),f=!0):i[0].src=i.data("src"),o()},autoHeight:function(){function f(){var r=n(i.$owlItems[i.currentItem]).height();i.wrapperOuter.css("height",r+"px"),i.wrapperOuter.hasClass("autoHeight")||t.setTimeout(function(){i.wrapperOuter.addClass("autoHeight")},0)}function e(){r+=1,i.completeImg(u.get(0))?f():r<=100?t.setTimeout(e,100):i.wrapperOuter.css("height","")}var i=this,u=n(i.$owlItems[i.currentItem]).find("img"),r;u.get(0)!==undefined?(r=0,e()):f()},completeImg:function(n){var t;return n.complete?(t=typeof n.naturalWidth,t!=="undefined"&&n.naturalWidth===0)?!1:!0:!1},onVisibleItems:function(){var t=this,i;for(t.options.addClassActive===!0&&t.$owlItems.removeClass("active"),t.visibleItems=[],i=t.currentItem;i<t.currentItem+t.options.items;i+=1)t.visibleItems.push(i),t.options.addClassActive===!0&&n(t.$owlItems[i]).addClass("active");t.owl.visibleItems=t.visibleItems},transitionTypes:function(n){var t=this;t.outClass="owl-"+n+"-out",t.inClass="owl-"+n+"-in"},singleItemTransition:function(){function s(n){return{position:"relative",left:n+"px"}}var n=this,f=n.outClass,e=n.inClass,i=n.$owlItems.eq(n.currentItem),r=n.$owlItems.eq(n.prevItem),o=Math.abs(n.positionsInArray[n.currentItem])+n.positionsInArray[n.prevItem],u=Math.abs(n.positionsInArray[n.currentItem])+n.itemWidth/2,t="webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";n.isTransition=!0,n.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":u+"px","-moz-perspective-origin":u+"px","perspective-origin":u+"px"});r.css(s(o,10)).addClass(f).on(t,function(){n.endPrev=!0,r.off(t),n.clearTransStyle(r,f)});i.addClass(e).on(t,function(){n.endCurrent=!0,i.off(t),n.clearTransStyle(i,e)})},clearTransStyle:function(n,t){var i=this;n.css({position:"",left:""}).removeClass(t),i.endPrev&&i.endCurrent&&(i.$owlWrapper.removeClass("owl-origin"),i.endPrev=!1,i.endCurrent=!1,i.isTransition=!1)},owlStatus:function(){var n=this;n.owl={userOptions:n.userOptions,baseElement:n.$elem,userItems:n.$userItems,owlItems:n.$owlItems,currentItem:n.currentItem,prevItem:n.prevItem,visibleItems:n.visibleItems,isTouch:n.browser.isTouch,browser:n.browser,dragDirection:n.dragDirection}},clearEvents:function(){var r=this;r.$elem.off(".owl owl mousedown.disableTextSelect"),n(i).off(".owl owl"),n(t).off("resize",r.resizer)},unWrap:function(){var n=this;n.$elem.children().length!==0&&(n.$owlWrapper.unwrap(),n.$userItems.unwrap().unwrap(),n.owlControls&&n.owlControls.remove()),n.clearEvents(),n.$elem.attr("style",n.$elem.data("owl-originalStyles")||"").attr("class",n.$elem.data("owl-originalClasses"))},destroy:function(){var n=this;n.stop(),t.clearInterval(n.checkVisible),n.unWrap(),n.$elem.removeData()},reinit:function(t){var i=this,r=n.extend({},i.userOptions,t);i.unWrap(),i.init(r,i.$elem)},addItem:function(n,t){var i=this,r;if(!n)return!1;if(i.$elem.children().length===0)return i.$elem.append(n),i.setVars(),!1;i.unWrap(),r=t===undefined||t===-1?-1:t,r>=i.$userItems.length||r===-1?i.$userItems.eq(-1).after(n):i.$userItems.eq(r).before(n),i.setVars()},removeItem:function(n){var t=this,i;if(t.$elem.children().length===0)return!1;i=n===undefined||n===-1?-1:n,t.unWrap(),t.$userItems.eq(i).remove(),t.setVars()}};n.fn.owlCarousel=function(t){return this.each(function(){if(n(this).data("owl-init")===!0)return!1;n(this).data("owl-init",!0);var i=Object.create(r);i.init(t,this),n.data(this,"owlCarousel",i)})},n.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:t,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document),!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).Swiper=t()}(this,function(){"use strict";function t(n,t){var s=[],r=0,h,c,e,o;if(n&&!t&&n instanceof f)return n;if(n)if("string"==typeof n)if(e=n.trim(),0<=e.indexOf("<")&&0<=e.indexOf(">"))for(o="div",0===e.indexOf("<li")&&(o="ul"),0===e.indexOf("<tr")&&(o="tbody"),0!==e.indexOf("<td")&&0!==e.indexOf("<th")||(o="tr"),0===e.indexOf("<tbody")&&(o="table"),0===e.indexOf("<option")&&(o="select"),(c=u.createElement(o)).innerHTML=e,r=0;r<c.childNodes.length;r+=1)s.push(c.childNodes[r]);else for(h=t||"#"!==n[0]||n.match(/[ .<>:~]/)?(t||u).querySelectorAll(n.trim()):[u.getElementById(n.trim().split("#")[1])],r=0;r<h.length;r+=1)h[r]&&s.push(h[r]);else if(n.nodeType||n===i||n===u)s.push(n);else if(0<n.length&&n[0].nodeType)for(r=0;r<n.length;r+=1)s.push(n[r]);return new f(s)}function rt(n){for(var i=[],t=0;t<n.length;t+=1)-1===i.indexOf(n[t])&&i.push(n[t]);return i}function at(){var n=this,t=n.params,i=n.el,r;if(!i||0!==i.offsetWidth){t.breakpoints&&n.setBreakpoint();var u=n.allowSlideNext,f=n.allowSlidePrev,e=n.snapGrid;(n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),t.freeMode)?(r=Math.min(Math.max(n.translate,n.maxTranslate()),n.minTranslate()),n.setTranslate(r),n.updateActiveIndex(),n.updateSlidesClasses(),t.autoHeight&&n.updateAutoHeight()):(n.updateSlidesClasses(),("auto"===t.slidesPerView||1<t.slidesPerView)&&n.isEnd&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0)),n.allowSlidePrev=f,n.allowSlideNext=u,n.params.watchOverflow&&e!==n.snapGrid&&n.checkOverflow()}}var u="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,i="undefined"==typeof window?{document:u,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,f=function(n){for(var t=0;t<n.length;t+=1)this[t]=n[t];return this.length=n.length,this},ut;t.fn=f.prototype,t.Class=f,t.Dom7=f,ut={addClass:function(n){var r,i,t;if(void 0===n)return this;for(r=n.split(" "),i=0;i<r.length;i+=1)for(t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.add(r[i]);return this},removeClass:function(n){for(var t,r=n.split(" "),i=0;i<r.length;i+=1)for(t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.remove(r[i]);return this},hasClass:function(n){return!!this[0]&&this[0].classList.contains(n)},toggleClass:function(n){for(var t,r=n.split(" "),i=0;i<r.length;i+=1)for(t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.toggle(r[i]);return this},attr:function(n,t){var u=arguments,i,r;if(1===arguments.length&&"string"==typeof n)return this[0]?this[0].getAttribute(n):void 0;for(i=0;i<this.length;i+=1)if(2===u.length)this[i].setAttribute(n,t);else for(r in n)this[i][r]=n[r],this[i].setAttribute(r,n[r]);return this},removeAttr:function(n){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(n);return this},data:function(n,t){var i,r,u;if(void 0!==t){for(r=0;r<this.length;r+=1)(i=this[r]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[n]=t;return this}if(i=this[0])return i.dom7ElementDataStorage&&n in i.dom7ElementDataStorage?i.dom7ElementDataStorage[n]:(u=i.getAttribute("data-"+n),u||void 0)},transform:function(n){for(var i,t=0;t<this.length;t+=1)i=this[t].style,i.webkitTransform=n,i.transform=n;return this},transition:function(n){var t,i;for("string"!=typeof n&&(n+="ms"),t=0;t<this.length;t+=1)i=this[t].style,i.webkitTransitionDuration=n,i.transitionDuration=n;return this},on:function(){function y(n){var f=n.target,i,e,r;if(f)if(i=n.target.dom7EventData||[],i.indexOf(n)<0&&i.unshift(n),t(f).is(c))u.apply(f,i);else for(e=t(f).parents(),r=0;r<e.length;r+=1)t(e[r]).is(c)&&u.apply(e[r],i)}function p(n){var t=n&&n.target&&n.target.dom7EventData||[];t.indexOf(n)<0&&t.unshift(n),u.apply(this,t)}for(var a,r,e,l,n,o,s,i=[],h=arguments.length;h--;)i[h]=arguments[h];var v=i[0],c=i[1],u=i[2],f=i[3];for("function"==typeof i[1]&&(v=(a=i)[0],u=a[1],f=a[2],c=void 0),f||(f=!1),e=v.split(" "),l=0;l<this.length;l+=1)if(n=this[l],c)for(r=0;r<e.length;r+=1)o=e[r],n.dom7LiveListeners||(n.dom7LiveListeners={}),n.dom7LiveListeners[o]||(n.dom7LiveListeners[o]=[]),n.dom7LiveListeners[o].push({listener:u,proxyListener:y}),n.addEventListener(o,y,f);else for(r=0;r<e.length;r+=1)s=e[r],n.dom7Listeners||(n.dom7Listeners={}),n.dom7Listeners[s]||(n.dom7Listeners[s]=[]),n.dom7Listeners[s].push({listener:u,proxyListener:p}),n.addEventListener(s,p,f);return this},off:function(){for(var l,v,h,o,c,i,n,u,r,t=[],s=arguments.length;s--;)t[s]=arguments[s];var y=t[0],a=t[1],f=t[2],e=t[3];for("function"==typeof t[1]&&(y=(l=t)[0],f=l[1],e=l[2],a=void 0),e||(e=!1),v=y.split(" "),h=0;h<v.length;h+=1)for(o=v[h],c=0;c<this.length;c+=1)if(i=this[c],n=void 0,!a&&i.dom7Listeners?n=i.dom7Listeners[o]:a&&i.dom7LiveListeners&&(n=i.dom7LiveListeners[o]),n&&n.length)for(u=n.length-1;0<=u;u-=1)r=n[u],f&&r.listener===f?(i.removeEventListener(o,r.proxyListener,e),n.splice(u,1)):f&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===f?(i.removeEventListener(o,r.proxyListener,e),n.splice(u,1)):f||(i.removeEventListener(o,r.proxyListener,e),n.splice(u,1));return this},trigger:function(){for(var s,e,t,r,n=[],f=arguments.length;f--;)n[f]=arguments[f];for(var h=n[0].split(" "),c=n[1],o=0;o<h.length;o+=1)for(s=h[o],e=0;e<this.length;e+=1){t=this[e],r=void 0;try{r=new i.CustomEvent(s,{detail:c,bubbles:!0,cancelable:!0})}catch(n){(r=u.createEvent("Event")).initEvent(s,!0,!0),r.detail=c}t.dom7EventData=n.filter(function(n,t){return 0<t}),t.dispatchEvent(r),t.dom7EventData=[],delete t.dom7EventData}return this},transitionEnd:function(n){function u(f){if(f.target===this)for(n.call(this,f),t=0;t<i.length;t+=1)r.off(i[t],u)}var t,i=["webkitTransitionEnd","transitionend"],r=this;if(n)for(t=0;t<i.length;t+=1)r.on(i[t],u);return this},outerWidth:function(n){if(0<this.length){if(n){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(n){if(0<this.length){if(n){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(0<this.length){var n=this[0],t=n.getBoundingClientRect(),r=u.body,f=n.clientTop||r.clientTop||0,e=n.clientLeft||r.clientLeft||0,o=n===i?i.scrollY:n.scrollTop,s=n===i?i.scrollX:n.scrollLeft;return{top:t.top+o-f,left:t.left+s-e}}return null},css:function(n,t){var r,u;if(1===arguments.length){if("string"!=typeof n){for(r=0;r<this.length;r+=1)for(u in n)this[r].style[u]=n[u];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(n)}if(2===arguments.length&&"string"==typeof n){for(r=0;r<this.length;r+=1)this[r].style[n]=t;return this}return this},each:function(n){if(!n)return this;for(var t=0;t<this.length;t+=1)if(!1===n.call(this[t],t,this[t]))return this;return this},html:function(n){if(void 0===n)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=n;return this},text:function(n){if(void 0===n)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=n;return this},is:function(n){var o,e,r=this[0];if(!r||void 0===n)return!1;if("string"==typeof n){if(r.matches)return r.matches(n);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(n);if(r.msMatchesSelector)return r.msMatchesSelector(n);for(o=t(n),e=0;e<o.length;e+=1)if(o[e]===r)return!0;return!1}if(n===u)return r===u;if(n===i)return r===i;if(n.nodeType||n instanceof f){for(o=n.nodeType?[n]:n,e=0;e<o.length;e+=1)if(o[e]===r)return!0;return!1}return!1},index:function(){var t,n=this[0];if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}},eq:function(n){if(void 0===n)return this;var t,i=this.length;return new f(i-1<n?[]:n<0?(t=i+n)<0?[]:[this[t]]:[this[n]])},append:function(){for(var n,e,t,o,s,i=[],r=arguments.length;r--;)i[r]=arguments[r];for(e=0;e<i.length;e+=1)for(n=i[e],t=0;t<this.length;t+=1)if("string"==typeof n)for(o=u.createElement("div"),o.innerHTML=n;o.firstChild;)this[t].appendChild(o.firstChild);else if(n instanceof f)for(s=0;s<n.length;s+=1)this[t].appendChild(n[s]);else this[t].appendChild(n);return this},prepend:function(n){for(var i,r,t=0;t<this.length;t+=1)if("string"==typeof n)for(r=u.createElement("div"),r.innerHTML=n,i=r.childNodes.length-1;0<=i;i-=1)this[t].insertBefore(r.childNodes[i],this[t].childNodes[0]);else if(n instanceof f)for(i=0;i<n.length;i+=1)this[t].insertBefore(n[i],this[t].childNodes[0]);else this[t].insertBefore(n,this[t].childNodes[0]);return this},next:function(n){return 0<this.length?n?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(n)?new f([this[0].nextElementSibling]):new f([]):this[0].nextElementSibling?new f([this[0].nextElementSibling]):new f([]):new f([])},nextAll:function(n){var u=[],r=this[0],i;if(!r)return new f([]);for(;r.nextElementSibling;)i=r.nextElementSibling,n?t(i).is(n)&&u.push(i):u.push(i),r=i;return new f(u)},prev:function(n){if(0<this.length){var i=this[0];return n?i.previousElementSibling&&t(i.previousElementSibling).is(n)?new f([i.previousElementSibling]):new f([]):i.previousElementSibling?new f([i.previousElementSibling]):new f([])}return new f([])},prevAll:function(n){var u=[],r=this[0],i;if(!r)return new f([]);for(;r.previousElementSibling;)i=r.previousElementSibling,n?t(i).is(n)&&u.push(i):u.push(i),r=i;return new f(u)},parent:function(n){for(var r=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(n?t(this[i].parentNode).is(n)&&r.push(this[i].parentNode):r.push(this[i].parentNode));return t(rt(r))},parents:function(n){for(var i,r=[],u=0;u<this.length;u+=1)for(i=this[u].parentNode;i;)n?t(i).is(n)&&r.push(i):r.push(i),i=i.parentNode;return t(rt(r))},closest:function(n){var t=this;return void 0===n?new f([]):(t.is(n)||(t=t.parents(n).eq(0)),t)},find:function(n){for(var u,i,r=[],t=0;t<this.length;t+=1)for(u=this[t].querySelectorAll(n),i=0;i<u.length;i+=1)r.push(u[i]);return new f(r)},children:function(n){for(var r,i,u=[],e=0;e<this.length;e+=1)for(r=this[e].childNodes,i=0;i<r.length;i+=1)n?1===r[i].nodeType&&t(r[i]).is(n)&&u.push(r[i]):1===r[i].nodeType&&u.push(r[i]);return new f(rt(u))},remove:function(){for(var n=0;n<this.length;n+=1)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this},add:function(){for(var r,u,f,n=[],i=arguments.length;i--;)n[i]=arguments[i];for(r=0;r<n.length;r+=1)for(f=t(n[r]),u=0;u<f.length;u+=1)this[this.length]=f[u],this.length+=1;return this},styles:function(){return this[0]?i.getComputedStyle(this[0],null):{}}},Object.keys(ut).forEach(function(n){t.fn[n]=ut[n]});var v,b,k,d,n={deleteProps:function(n){var t=n;Object.keys(t).forEach(function(n){try{t[n]=null}catch(n){}try{delete t[n]}catch(n){}})},nextTick:function(n,t){return void 0===t&&(t=0),setTimeout(n,t)},now:function(){return Date.now()},getTranslate:function(n,t){var f,u,e,r;return void 0===t&&(t="x"),r=i.getComputedStyle(n,null),i.WebKitCSSMatrix?(6<(u=r.transform||r.webkitTransform).split(",").length&&(u=u.split(", ").map(function(n){return n.replace(",",".")}).join(", ")),e=new i.WebKitCSSMatrix("none"===u?"":u)):f=(e=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(u=i.WebKitCSSMatrix?e.m41:16===f.length?parseFloat(f[12]):parseFloat(f[4])),"y"===t&&(u=i.WebKitCSSMatrix?e.m42:16===f.length?parseFloat(f[13]):parseFloat(f[5])),u||0},parseUrlQuery:function(n){var r,f,u,e,o={},t=n||i.location.href;if("string"==typeof t&&t.length)for(e=(f=(t=-1<t.indexOf("?")?t.replace(/\S*\?/,""):"").split("&").filter(function(n){return""!==n})).length,r=0;r<e;r+=1)u=f[r].replace(/#\S+/g,"").split("="),o[decodeURIComponent(u[0])]=void 0===u[1]?void 0:decodeURIComponent(u[1])||"";return o},isObject:function(n){return"object"==typeof n&&null!==n&&n.constructor&&n.constructor===Object},extend:function(){for(var r,e,i,t,s,u=[],f=arguments.length;f--;)u[f]=arguments[f];for(r=Object(u[0]),e=1;e<u.length;e+=1)if(i=u[e],null!=i)for(var h=Object.keys(Object(i)),o=0,c=h.length;o<c;o+=1)t=h[o],s=Object.getOwnPropertyDescriptor(i,t),void 0!==s&&s.enumerable&&(n.isObject(r[t])&&n.isObject(i[t])?n.extend(r[t],i[t]):!n.isObject(r[t])&&n.isObject(i[t])?(r[t]={},n.extend(r[t],i[t])):r[t]=i[t]);return r}},r=(k=u.createElement("div"),{touch:i.Modernizr&&!0===i.Modernizr.touch||!!(0<i.navigator.maxTouchPoints||"ontouchstart"in i||i.DocumentTouch&&u instanceof i.DocumentTouch),pointerEvents:!!(i.navigator.pointerEnabled||i.PointerEvent||"maxTouchPoints"in i.navigator&&0<i.navigator.maxTouchPoints),prefixedPointerEvents:!!i.navigator.msPointerEnabled,transition:(b=k.style,"transition"in b||"webkitTransition"in b||"MozTransition"in b),transforms3d:i.Modernizr&&!0===i.Modernizr.csstransforms3d||(v=k.style,"webkitPerspective"in v||"MozPerspective"in v||"OPerspective"in v||"MsPerspective"in v||"perspective"in v),flexbox:function(){for(var i=k.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n+=1)if(t[n]in i)return!0;return!1}(),observer:"MutationObserver"in i||"WebkitMutationObserver"in i,passiveListener:function(){var n=!1,t;try{t=Object.defineProperty({},"passive",{get:function(){n=!0}}),i.addEventListener("testPassiveListener",null,t)}catch(n){}return n}(),gestures:"ongesturestart"in i}),h={isIE:!!i.navigator.userAgent.match(/Trident/g)||!!i.navigator.userAgent.match(/MSIE/g),isEdge:!!i.navigator.userAgent.match(/Edge/g),isSafari:(d=i.navigator.userAgent.toLowerCase(),0<=d.indexOf("safari")&&d.indexOf("chrome")<0&&d.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)},c=function(n){void 0===n&&(n={});var t=this;t.params=n,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(n){t.on(n,t.params.on[n])})},lt={components:{configurable:!0}};c.prototype.on=function(n,t,i){var r=this,u;return"function"!=typeof t?r:(u=i?"unshift":"push",n.split(" ").forEach(function(n){r.eventsListeners[n]||(r.eventsListeners[n]=[]),r.eventsListeners[n][u](t)}),r)},c.prototype.once=function(n,t,i){function r(){for(var f=[],i=arguments.length;i--;)f[i]=arguments[i];t.apply(u,f),u.off(n,r),r.f7proxy&&delete r.f7proxy}var u=this;return"function"!=typeof t?u:(r.f7proxy=t,u.on(n,r,i))},c.prototype.off=function(n,t){var i=this;return i.eventsListeners&&n.split(" ").forEach(function(n){void 0===t?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].length&&i.eventsListeners[n].forEach(function(r,u){(r===t||r.f7proxy&&r.f7proxy===t)&&i.eventsListeners[n].splice(u,1)})}),i},c.prototype.emit=function(){for(var i,u,f,t,n=[],r=arguments.length;r--;)n[r]=arguments[r];return t=this,t.eventsListeners&&("string"==typeof n[0]||Array.isArray(n[0])?(i=n[0],u=n.slice(1,n.length),f=t):(i=n[0].events,u=n[0].data,f=n[0].context||t),(Array.isArray(i)?i:i.split(" ")).forEach(function(n){if(t.eventsListeners&&t.eventsListeners[n]){var i=[];t.eventsListeners[n].forEach(function(n){i.push(n)}),i.forEach(function(n){n.apply(f,u)})}})),t},c.prototype.useModulesParams=function(t){var i=this;i.modules&&Object.keys(i.modules).forEach(function(r){var u=i.modules[r];u.params&&n.extend(t,u.params)})},c.prototype.useModules=function(n){void 0===n&&(n={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var r=t.modules[i],u=n[i]||{};r.instance&&Object.keys(r.instance).forEach(function(n){var i=r.instance[n];t[n]="function"==typeof i?i.bind(t):i}),r.on&&t.on&&Object.keys(r.on).forEach(function(n){t.on(n,r.on[n])}),r.create&&r.create.bind(t)(u)})},lt.components.set=function(n){this.use&&this.use(n)},c.installModule=function(t){for(var i,f,u=[],r=arguments.length-1;0<r--;)u[r]=arguments[r+1];return i=this,i.prototype.modules||(i.prototype.modules={}),f=t.name||Object.keys(i.prototype.modules).length+"_"+n.now(),(i.prototype.modules[f]=t).proto&&Object.keys(t.proto).forEach(function(n){i.prototype[n]=t.proto[n]}),t.static&&Object.keys(t.static).forEach(function(n){i[n]=t.static[n]}),t.install&&t.install.apply(i,u),i},c.use=function(n){for(var t,r=[],i=arguments.length-1;0<i--;)r[i]=arguments[i+1];return t=this,Array.isArray(n)?(n.forEach(function(n){return t.installModule(n)}),t):t.installModule.apply(t,[n].concat(r))},Object.defineProperties(c,lt);var gt={updateSize:function(){var i,r,t=this,u=t.$el;i=void 0!==t.params.width?t.params.width:u[0].clientWidth,r=void 0!==t.params.height?t.params.height:u[0].clientHeight,0===i&&t.isHorizontal()||0===r&&t.isVertical()||(i=i-parseInt(u.css("padding-left"),10)-parseInt(u.css("padding-right"),10),r=r-parseInt(u.css("padding-top"),10)-parseInt(u.css("padding-bottom"),10),n.extend(t,{width:i,height:r,size:t.isHorizontal()?i:r}))},updateSlides:function(){var u=this,t=u.params,b=u.$wrapperEl,v=u.size,st=u.rtlTranslate,ei=u.wrongRTL,wt=u.virtual&&t.virtual.enabled,oi=wt?u.virtual.slides.length:u.slides.length,c=b.children("."+u.params.slideClass),p=wt?u.virtual.slides.length:c.length,f=[],k=[],ht=[],ct=t.slidesOffsetBefore,ut,d,o,l,it,ft,rt,et,ot,pt;"function"==typeof ct&&(ct=t.slidesOffsetBefore.call(u)),ut=t.slidesOffsetAfter,"function"==typeof ut&&(ut=t.slidesOffsetAfter.call(u));var si=u.snapGrid.length,hi=u.snapGrid.length,s=t.spaceBetween,e=-ct,lt=0,at=0;if(void 0!==v){"string"==typeof s&&0<=s.indexOf("%")&&(s=parseFloat(s.replace("%",""))/100*v),u.virtualSize=-s,st?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""}),1<t.slidesPerColumn&&(d=Math.floor(p/t.slidesPerColumn)===p/u.params.slidesPerColumn?p:Math.ceil(p/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(d=Math.max(d,t.slidesPerView*t.slidesPerColumn)));for(var g,nt=t.slidesPerColumn,bt=d/nt,kt=Math.floor(p/t.slidesPerColumn),h=0;h<p;h+=1){if(o=0,l=c.eq(h),1<t.slidesPerColumn){var tt=void 0,w=void 0,y=void 0;"column"===t.slidesPerColumnFill?(y=h-(w=Math.floor(h/nt))*nt,(kt<w||w===kt&&y===nt-1)&&nt<=(y+=1)&&(y=0,w+=1),tt=w+y*d/nt,l.css({"-webkit-box-ordinal-group":tt,"-moz-box-ordinal-group":tt,"-ms-flex-order":tt,"-webkit-order":tt,order:tt})):w=h-(y=Math.floor(h/bt))*bt,l.css("margin-"+(u.isHorizontal()?"top":"left"),0!==y&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",w).attr("data-swiper-row",y)}if("none"!==l.css("display")){if("auto"===t.slidesPerView){var a=i.getComputedStyle(l[0],null),vt=l[0].style.transform,yt=l[0].style.webkitTransform;if(vt&&(l[0].style.transform="none"),yt&&(l[0].style.webkitTransform="none"),t.roundLengths)o=u.isHorizontal()?l.outerWidth(!0):l.outerHeight(!0);else if(u.isHorizontal()){var dt=parseFloat(a.getPropertyValue("width")),ci=parseFloat(a.getPropertyValue("padding-left")),li=parseFloat(a.getPropertyValue("padding-right")),gt=parseFloat(a.getPropertyValue("margin-left")),ni=parseFloat(a.getPropertyValue("margin-right")),ti=a.getPropertyValue("box-sizing");o=ti&&"border-box"===ti?dt+gt+ni:dt+ci+li+gt+ni}else{var ii=parseFloat(a.getPropertyValue("height")),ai=parseFloat(a.getPropertyValue("padding-top")),vi=parseFloat(a.getPropertyValue("padding-bottom")),ri=parseFloat(a.getPropertyValue("margin-top")),ui=parseFloat(a.getPropertyValue("margin-bottom")),fi=a.getPropertyValue("box-sizing");o=fi&&"border-box"===fi?ii+ri+ui:ii+ai+vi+ri+ui}vt&&(l[0].style.transform=vt),yt&&(l[0].style.webkitTransform=yt),t.roundLengths&&(o=Math.floor(o))}else o=(v-(t.slidesPerView-1)*s)/t.slidesPerView,t.roundLengths&&(o=Math.floor(o)),c[h]&&(u.isHorizontal()?c[h].style.width=o+"px":c[h].style.height=o+"px");c[h]&&(c[h].swiperSlideSize=o),ht.push(o),t.centeredSlides?(e=e+o/2+lt/2+s,0===lt&&0!==h&&(e=e-v/2-s),0===h&&(e=e-v/2-s),Math.abs(e)<.001&&(e=0),t.roundLengths&&(e=Math.floor(e)),at%t.slidesPerGroup==0&&f.push(e),k.push(e)):(t.roundLengths&&(e=Math.floor(e)),at%t.slidesPerGroup==0&&f.push(e),k.push(e),e=e+o+s),u.virtualSize+=o+s,lt=o,at+=1}}if(u.virtualSize=Math.max(u.virtualSize,v)+ut,st&&ei&&("slide"===t.effect||"coverflow"===t.effect)&&b.css({width:u.virtualSize+t.spaceBetween+"px"}),r.flexbox&&!t.setWrapperSize||(u.isHorizontal()?b.css({width:u.virtualSize+t.spaceBetween+"px"}):b.css({height:u.virtualSize+t.spaceBetween+"px"})),1<t.slidesPerColumn&&(u.virtualSize=(o+t.spaceBetween)*d,u.virtualSize=Math.ceil(u.virtualSize/t.slidesPerColumn)-t.spaceBetween,u.isHorizontal()?b.css({width:u.virtualSize+t.spaceBetween+"px"}):b.css({height:u.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){for(g=[],it=0;it<f.length;it+=1)ft=f[it],t.roundLengths&&(ft=Math.floor(ft)),f[it]<u.virtualSize+f[0]&&g.push(ft);f=g}if(!t.centeredSlides){for(g=[],rt=0;rt<f.length;rt+=1)et=f[rt],t.roundLengths&&(et=Math.floor(et)),f[rt]<=u.virtualSize-v&&g.push(et);f=g,1<Math.floor(u.virtualSize-v)-Math.floor(f[f.length-1])&&f.push(u.virtualSize-v)}(0===f.length&&(f=[0]),0!==t.spaceBetween&&(u.isHorizontal()?st?c.css({marginLeft:s+"px"}):c.css({marginRight:s+"px"}):c.css({marginBottom:s+"px"})),t.centerInsufficientSlides)&&(ot=0,(ht.forEach(function(n){ot+=n+(t.spaceBetween?t.spaceBetween:0)}),(ot-=t.spaceBetween)<v)&&(pt=(v-ot)/2,f.forEach(function(n,t){f[t]=n-pt}),k.forEach(function(n,t){k[t]=n+pt}))),n.extend(u,{slides:c,snapGrid:f,slidesGrid:k,slidesSizesGrid:ht}),p!==oi&&u.emit("slidesLengthChange"),f.length!==si&&(u.params.watchOverflow&&u.checkOverflow(),u.emit("snapGridLengthChange")),k.length!==hi&&u.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&u.updateSlidesOffset()}},updateAutoHeight:function(n){var i,t=this,r=[],u=0,f,e;if("number"==typeof n?t.setTransition(n):!0===n&&t.setTransition(t.params.speed),"auto"!==t.params.slidesPerView&&1<t.params.slidesPerView)for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){if(f=t.activeIndex+i,f>t.slides.length)break;r.push(t.slides.eq(f)[0])}else r.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i<r.length;i+=1)void 0!==r[i]&&(e=r[i].offsetHeight,u=u<e?e:u);u&&t.$wrapperEl.css("height",u+"px")},updateSlidesOffset:function(){for(var t=this.slides,n=0;n<t.length;n+=1)t[n].swiperSlideOffset=this.isHorizontal()?t[n].offsetLeft:t[n].offsetTop},updateSlidesProgress:function(n){var s,r,f,c,o,h;void 0===n&&(n=this&&this.translate||0);var i=this,e=i.params,u=i.slides,l=i.rtlTranslate;if(0!==u.length){for(void 0===u[0].swiperSlideOffset&&i.updateSlidesOffset(),s=-n,l&&(s=n),u.removeClass(e.slideVisibleClass),i.visibleSlidesIndexes=[],i.visibleSlides=[],r=0;r<u.length;r+=1)f=u[r],c=(s+(e.centeredSlides?i.minTranslate():0)-f.swiperSlideOffset)/(f.swiperSlideSize+e.spaceBetween),e.watchSlidesVisibility&&(o=-(s-f.swiperSlideOffset),h=o+i.slidesSizesGrid[r],(0<=o&&o<i.size||0<h&&h<=i.size||o<=0&&h>=i.size)&&(i.visibleSlides.push(f),i.visibleSlidesIndexes.push(r),u.eq(r).addClass(e.slideVisibleClass))),f.progress=l?-c:c;i.visibleSlides=t(i.visibleSlides)}},updateProgress:function(t){void 0===t&&(t=this&&this.translate||0);var i=this,e=i.params,o=i.maxTranslate()-i.minTranslate(),f=i.progress,r=i.isBeginning,u=i.isEnd,s=r,h=u;0===o?u=r=!(f=0):(r=(f=(t-i.minTranslate())/o)<=0,u=1<=f),n.extend(i,{progress:f,isBeginning:r,isEnd:u}),(e.watchSlidesProgress||e.watchSlidesVisibility)&&i.updateSlidesProgress(t),r&&!s&&i.emit("reachBeginning toEdge"),u&&!h&&i.emit("reachEnd toEdge"),(s&&!r||h&&!u)&&i.emit("fromEdge"),i.emit("progress",f)},updateSlidesClasses:function(){var f,t=this,e=t.slides,n=t.params,i=t.$wrapperEl,o=t.activeIndex,s=t.realIndex,h=t.virtual&&n.virtual.enabled,r,u;e.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass),(f=h?t.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+o+'"]'):e.eq(o)).addClass(n.slideActiveClass),n.loop&&(f.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(n.slideDuplicateActiveClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(n.slideDuplicateActiveClass)),r=f.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass),n.loop&&0===r.length&&(r=e.eq(0)).addClass(n.slideNextClass),u=f.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass),n.loop&&0===u.length&&(u=e.eq(-1)).addClass(n.slidePrevClass),n.loop&&(r.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),u.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(t){var o,i=this,e=i.rtlTranslate?i.translate:-i.translate,f=i.slidesGrid,s=i.snapGrid,c=i.params,l=i.activeIndex,a=i.realIndex,v=i.snapIndex,u=t,r,h;if(void 0===u){for(r=0;r<f.length;r+=1)void 0!==f[r+1]?e>=f[r]&&e<f[r+1]-(f[r+1]-f[r])/2?u=r:e>=f[r]&&e<f[r+1]&&(u=r+1):e>=f[r]&&(u=r);c.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}((o=0<=s.indexOf(e)?s.indexOf(e):Math.floor(u/c.slidesPerGroup))>=s.length&&(o=s.length-1),u!==l)?(h=parseInt(i.slides.eq(u).attr("data-swiper-slide-index")||u,10),n.extend(i,{snapIndex:o,realIndex:h,previousIndex:l,activeIndex:u}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),a!==h&&i.emit("realIndexChange"),i.emit("slideChange")):o!==v&&(i.snapIndex=o,i.emit("snapIndexChange"))},updateClickedSlide:function(n){var i=this,f=i.params,r=t(n.target).closest("."+f.slideClass)[0],e=!1,u;if(r)for(u=0;u<i.slides.length;u+=1)i.slides[u]===r&&(e=!0);if(!r||!e)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=r,i.clickedIndex=i.virtual&&i.params.virtual.enabled?parseInt(t(r).attr("data-swiper-slide-index"),10):t(r).index(),f.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},ni={getTranslate:function(t){var i;void 0===t&&(t=this.isHorizontal()?"x":"y");var f=this.params,r=this.rtlTranslate,u=this.translate,e=this.$wrapperEl;return f.virtualTranslate?r?-u:u:(i=n.getTranslate(e[0],t),r&&(i=-i),i||0)},setTranslate:function(n,t){var i=this,h=i.rtlTranslate,o=i.params,s=i.$wrapperEl,c=i.progress,u=0,f=0,e;i.isHorizontal()?u=h?-n:n:f=n,o.roundLengths&&(u=Math.floor(u),f=Math.floor(f)),o.virtualTranslate||(r.transforms3d?s.transform("translate3d("+u+"px, "+f+"px, 0px)"):s.transform("translate("+u+"px, "+f+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?u:f,e=i.maxTranslate()-i.minTranslate(),(0===e?0:(n-i.minTranslate())/e)!==c&&i.updateProgress(n),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}},ti={setTransition:function(n,t){this.$wrapperEl.transition(n),this.emit("setTransition",n,t)},transitionStart:function(n,t){var r;void 0===n&&(n=!0);var i=this,u=i.activeIndex,e=i.params,f=i.previousIndex;if(e.autoHeight&&i.updateAutoHeight(),r=t,r||(r=f<u?"next":u<f?"prev":"reset"),i.emit("transitionStart"),n&&u!==f){if("reset"===r)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===r?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}},transitionEnd:function(n,t){var r;void 0===n&&(n=!0);var i=this,u=i.activeIndex,f=i.previousIndex;if(i.animating=!1,i.setTransition(0),r=t,r||(r=f<u?"next":u<f?"prev":"reset"),i.emit("transitionEnd"),n&&u!==f){if("reset"===r)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===r?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}},ii={slideTo:function(n,t,i,u){var f,e,a,s,o,l;void 0===n&&(n=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),f=this,e=n,e<0&&(e=0);var h=f.params,v=f.snapGrid,y=f.slidesGrid,w=f.previousIndex,c=f.activeIndex,p=f.rtlTranslate;if(f.animating&&h.preventInteractionOnTransition)return!1;if(a=Math.floor(e/h.slidesPerGroup),a>=v.length&&(a=v.length-1),(c||h.initialSlide||0)===(w||0)&&i&&f.emit("beforeSlideChangeStart"),o=-v[a],f.updateProgress(o),h.normalizeSlideIndex)for(l=0;l<y.length;l+=1)-Math.floor(100*o)>=Math.floor(100*y[l])&&(e=l);return f.initialized&&e!==c&&(!f.allowSlideNext&&o<f.translate&&o<f.minTranslate()||!f.allowSlidePrev&&o>f.translate&&o>f.maxTranslate()&&(c||0)!==e)?!1:(s=c<e?"next":e<c?"prev":"reset",p&&-o===f.translate||!p&&o===f.translate?(f.updateActiveIndex(e),h.autoHeight&&f.updateAutoHeight(),f.updateSlidesClasses(),"slide"!==h.effect&&f.setTranslate(o),"reset"!==s&&(f.transitionStart(i,s),f.transitionEnd(i,s)),!1):(0!==t&&r.transition?(f.setTransition(t),f.setTranslate(o),f.updateActiveIndex(e),f.updateSlidesClasses(),f.emit("beforeTransitionStart",t,u),f.transitionStart(i,s),f.animating||(f.animating=!0,f.onSlideToWrapperTransitionEnd||(f.onSlideToWrapperTransitionEnd=function(n){f&&!f.destroyed&&n.target===this&&(f.$wrapperEl[0].removeEventListener("transitionend",f.onSlideToWrapperTransitionEnd),f.$wrapperEl[0].removeEventListener("webkitTransitionEnd",f.onSlideToWrapperTransitionEnd),f.onSlideToWrapperTransitionEnd=null,delete f.onSlideToWrapperTransitionEnd,f.transitionEnd(i,s))}),f.$wrapperEl[0].addEventListener("transitionend",f.onSlideToWrapperTransitionEnd),f.$wrapperEl[0].addEventListener("webkitTransitionEnd",f.onSlideToWrapperTransitionEnd))):(f.setTransition(0),f.setTranslate(o),f.updateActiveIndex(e),f.updateSlidesClasses(),f.emit("beforeTransitionStart",t,u),f.transitionStart(i,s),f.transitionEnd(i,s)),!0))},slideToLoop:function(n,t,i,r){void 0===n&&(n=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var u=n;return this.params.loop&&(u+=this.loopedSlides),this.slideTo(u,t,i,r)},slideNext:function(n,t,i){void 0===n&&(n=this.params.speed),void 0===t&&(t=!0);var r=this,u=r.params,f=r.animating;return u.loop?!f&&(r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft,r.slideTo(r.activeIndex+u.slidesPerGroup,n,t,i)):r.slideTo(r.activeIndex+u.slidesPerGroup,n,t,i)},slidePrev:function(n,t,i){function f(n){return n<0?-Math.floor(Math.abs(n)):Math.floor(n)}void 0===n&&(n=this.params.speed),void 0===t&&(t=!0);var r=this,l=r.params,a=r.animating,u=r.snapGrid,o=r.slidesGrid,v=r.rtlTranslate;if(l.loop){if(a)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var e,s=f(v?r.translate:-r.translate),h=u.map(function(n){return f(n)}),c=(o.map(function(n){return f(n)}),u[h.indexOf(s)],u[h.indexOf(s)-1]);return void 0!==c&&(e=o.indexOf(c))<0&&(e=r.activeIndex-1),r.slideTo(e,n,t,i)},slideReset:function(n,t,i){return void 0===n&&(n=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,n,t,i)},slideToClosest:function(n,t,i){var o,e;void 0===n&&(n=this.params.speed),void 0===t&&(t=!0);var r=this,u=r.activeIndex,f=Math.floor(u/r.params.slidesPerGroup);return f<r.snapGrid.length-1&&(o=r.rtlTranslate?r.translate:-r.translate,e=r.snapGrid[f],(r.snapGrid[f+1]-e)/2<o-e&&(u=r.params.slidesPerGroup)),r.slideTo(u,n,t,i)},slideToClickedSlide:function(){var f,i=this,u=i.params,o=i.$wrapperEl,e="auto"===u.slidesPerView?i.slidesPerViewDynamic():u.slidesPerView,r=i.clickedIndex;if(u.loop){if(i.animating)return;f=parseInt(t(i.clickedSlide).attr("data-swiper-slide-index"),10),u.centeredSlides?r<i.loopedSlides-e/2||r>i.slides.length-i.loopedSlides+e/2?(i.loopFix(),r=o.children("."+u.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.'+u.slideDuplicateClass+")").eq(0).index(),n.nextTick(function(){i.slideTo(r)})):i.slideTo(r):r>i.slides.length-e?(i.loopFix(),r=o.children("."+u.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.'+u.slideDuplicateClass+")").eq(0).index(),n.nextTick(function(){i.slideTo(r)})):i.slideTo(r)}else i.slideTo(r)}},ri={loopCreate:function(){var r=this,n=r.params,f=r.$wrapperEl,i,c,l,a,e,o,s,h;if(f.children("."+n.slideClass+"."+n.slideDuplicateClass).remove(),i=f.children("."+n.slideClass),n.loopFillGroupWithBlank&&(c=n.slidesPerGroup-i.length%n.slidesPerGroup,c!==n.slidesPerGroup)){for(l=0;l<c;l+=1)a=t(u.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass),f.append(a);i=f.children("."+n.slideClass)}for("auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=i.length),r.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),r.loopedSlides+=n.loopAdditionalSlides,r.loopedSlides>i.length&&(r.loopedSlides=i.length),e=[],o=[],i.each(function(n,u){var f=t(u);n<r.loopedSlides&&o.push(u),n<i.length&&n>=i.length-r.loopedSlides&&e.push(u),f.attr("data-swiper-slide-index",n)}),s=0;s<o.length;s+=1)f.append(t(o[s].cloneNode(!0)).addClass(n.slideDuplicateClass));for(h=e.length-1;0<=h;h-=1)f.prepend(t(e[h].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var i,n=this,o=n.params,r=n.activeIndex,f=n.slides,t=n.loopedSlides,s=n.allowSlidePrev,h=n.allowSlideNext,c=n.snapGrid,e=n.rtlTranslate,u;n.allowSlidePrev=!0,n.allowSlideNext=!0,u=-c[r]-n.getTranslate(),r<t?(i=f.length-3*t+r,i+=t,n.slideTo(i,0,!1,!0)&&0!==u&&n.setTranslate((e?-n.translate:n.translate)-u)):("auto"===o.slidesPerView&&2*t<=r||r>=f.length-t)&&(i=-f.length+r+t,i+=t,n.slideTo(i,0,!1,!0)&&0!==u&&n.setTranslate((e?-n.translate:n.translate)-u)),n.allowSlidePrev=s,n.allowSlideNext=h},loopDestroy:function(){var t=this.$wrapperEl,n=this.params,i=this.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}},ui={setGrabCursor:function(n){if(!(r.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move",t.style.cursor=n?"-webkit-grabbing":"-webkit-grab",t.style.cursor=n?"-moz-grabbin":"-moz-grab",t.style.cursor=n?"grabbing":"grab"}},unsetGrabCursor:function(){r.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}},fi={appendSlide:function(n){var t=this,f=t.$wrapperEl,u=t.params,i;if(u.loop&&t.loopDestroy(),"object"==typeof n&&"length"in n)for(i=0;i<n.length;i+=1)n[i]&&f.append(n[i]);else f.append(n);u.loop&&t.loopCreate(),u.observer&&r.observer||t.update()},prependSlide:function(n){var t=this,u=t.params,e=t.$wrapperEl,o=t.activeIndex,f,i;if(u.loop&&t.loopDestroy(),f=o+1,"object"==typeof n&&"length"in n){for(i=0;i<n.length;i+=1)n[i]&&e.prepend(n[i]);f=o+n.length}else e.prepend(n);u.loop&&t.loopCreate(),u.observer&&r.observer||t.update(),t.slideTo(f,0,!1)},addSlide:function(n,t){var i=this,o=i.$wrapperEl,f=i.params,u=i.activeIndex,h,v,e,s;if(f.loop&&(u-=i.loopedSlides,i.loopDestroy(),i.slides=o.children("."+f.slideClass)),h=i.slides.length,n<=0)i.prependSlide(t);else if(h<=n)i.appendSlide(t);else{for(var c=n<u?u+1:u,l=[],a=h-1;n<=a;a-=1)v=i.slides.eq(a),v.remove(),l.unshift(v);if("object"==typeof t&&"length"in t){for(e=0;e<t.length;e+=1)t[e]&&o.append(t[e]);c=n<u?u+t.length:u}else o.append(t);for(s=0;s<l.length;s+=1)o.append(l[s]);f.loop&&i.loopCreate(),f.observer&&r.observer||i.update(),f.loop?i.slideTo(c+i.loopedSlides,0,!1):i.slideTo(c,0,!1)}},removeSlide:function(n){var t=this,f=t.params,s=t.$wrapperEl,o=t.activeIndex,u,i,e;if(f.loop&&(o-=t.loopedSlides,t.loopDestroy(),t.slides=s.children("."+f.slideClass)),i=o,"object"==typeof n&&"length"in n){for(e=0;e<n.length;e+=1)u=n[e],t.slides[u]&&t.slides.eq(u).remove(),u<i&&(i-=1);i=Math.max(i,0)}else u=n,t.slides[u]&&t.slides.eq(u).remove(),u<i&&(i-=1),i=Math.max(i,0);f.loop&&t.loopCreate(),f.observer&&r.observer||t.update(),f.loop?t.slideTo(i+t.loopedSlides,0,!1):t.slideTo(i,0,!1)},removeAllSlides:function(){for(var t=[],n=0;n<this.slides.length;n+=1)t.push(n);this.removeSlide(t)}},e=function(){var t=i.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:i.cordova||i.phonegap,phonegap:i.cordova||i.phonegap},s=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),c=t.match(/(Android);?[\s\/]+([\d.]+)?/),f=t.match(/(iPad).*OS\s([\d_]+)/),r=t.match(/(iPod)(.*OS\s([\d_]+))?/),e=!f&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),o,h;return(s&&(n.os="windows",n.osVersion=s[2],n.windows=!0),c&&!s&&(n.os="android",n.osVersion=c[2],n.android=!0,n.androidChrome=0<=t.toLowerCase().indexOf("chrome")),(f||e||r)&&(n.os="ios",n.ios=!0),e&&!r&&(n.osVersion=e[2].replace(/_/g,"."),n.iphone=!0),f&&(n.osVersion=f[2].replace(/_/g,"."),n.ipad=!0),r&&(n.osVersion=r[3]?r[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&0<=t.indexOf("Version/")&&"10"===n.osVersion.split(".")[0]&&(n.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(e||f||r)&&t.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&"ios"===n.os)&&(o=n.osVersion.split("."),h=u.querySelector('meta[name="viewport"]'),n.minimalUi=!n.webView&&(r||e)&&(1*o[0]==7?1<=1*o[1]:7<1*o[0])&&h&&0<=h.getAttribute("content").indexOf("minimal-ui")),n.pixelRatio=i.devicePixelRatio||1,n}();var vt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},ft={update:gt,translate:ni,transition:ti,slide:ii,loop:ri,grabCursor:ui,manipulation:fi,events:{attachEvents:function(){var f=this,o=f.params,s=f.touchEvents,a=f.el,v=f.wrapperEl,h,c,l;f.onTouchStart=function(r){var o=this,s=o.touchEventsData,e=o.params,h=o.touches,f,l,v;if((!o.animating||!e.preventInteractionOnTransition)&&(f=r,f.originalEvent&&(f=f.originalEvent),s.isTouchEvent="touchstart"===f.type,(s.isTouchEvent||!("which"in f)||3!==f.which)&&!(!s.isTouchEvent&&"button"in f&&0<f.button||s.isTouched&&s.isMoved)))if(e.noSwiping&&t(f.target).closest(e.noSwipingSelector?e.noSwipingSelector:"."+e.noSwipingClass)[0])o.allowClick=!0;else if(!e.swipeHandler||t(f).closest(e.swipeHandler)[0]){h.currentX="touchstart"===f.type?f.targetTouches[0].pageX:f.pageX,h.currentY="touchstart"===f.type?f.targetTouches[0].pageY:f.pageY;var c=h.currentX,y=h.currentY,p=e.edgeSwipeDetection||e.iOSEdgeSwipeDetection,a=e.edgeSwipeThreshold||e.iOSEdgeSwipeThreshold;p&&(c<=a||c>=i.screen.width-a)||((n.extend(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),h.startX=c,h.startY=y,s.touchStartTime=n.now(),o.allowClick=!0,o.updateSize(),o.swipeDirection=void 0,0<e.threshold&&(s.allowThresholdMove=!1),"touchstart"!==f.type)&&(l=!0,t(f.target).is(s.formElements)&&(l=!1),u.activeElement&&t(u.activeElement).is(s.formElements)&&u.activeElement!==f.target&&u.activeElement.blur(),v=l&&o.allowTouchMove&&e.touchStartPreventDefault,(e.touchStartForcePreventDefault||v)&&f.preventDefault()),o.emit("touchStart",f))}}.bind(f),f.onTouchMove=function(i){var f=this,r=f.touchEventsData,s=f.params,e=f.touches,b=f.rtlTranslate,o=i,c,l,w,a,v,h,y,p;if(o.originalEvent&&(o=o.originalEvent),r.isTouched){if(!r.isTouchEvent||"mousemove"!==o.type){if(c="touchmove"===o.type?o.targetTouches[0].pageX:o.pageX,l="touchmove"===o.type?o.targetTouches[0].pageY:o.pageY,o.preventedByNestedSwiper)return e.startX=c,void(e.startY=l);if(!f.allowTouchMove)return f.allowClick=!1,void(r.isTouched&&(n.extend(e,{startX:c,startY:l,currentX:c,currentY:l}),r.touchStartTime=n.now()));if(r.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(f.isVertical()){if(l<e.startY&&f.translate<=f.maxTranslate()||l>e.startY&&f.translate>=f.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(c<e.startX&&f.translate<=f.maxTranslate()||c>e.startX&&f.translate>=f.minTranslate())return;if(r.isTouchEvent&&u.activeElement&&o.target===u.activeElement&&t(o.target).is(r.formElements))return r.isMoved=!0,void(f.allowClick=!1);if((r.allowTouchCallbacks&&f.emit("touchMove",o),!(o.targetTouches&&1<o.targetTouches.length))&&(e.currentX=c,e.currentY=l,a=e.currentX-e.startX,v=e.currentY-e.startY,!(f.params.threshold&&Math.sqrt(Math.pow(a,2)+Math.pow(v,2))<f.params.threshold)))if(void 0===r.isScrolling&&(f.isHorizontal()&&e.currentY===e.startY||f.isVertical()&&e.currentX===e.startX?r.isScrolling=!1:25<=a*a+v*v&&(w=180*Math.atan2(Math.abs(v),Math.abs(a))/Math.PI,r.isScrolling=f.isHorizontal()?w>s.touchAngle:90-w>s.touchAngle)),r.isScrolling&&f.emit("touchMoveOpposite",o),void 0===r.startMoving&&(e.currentX===e.startX&&e.currentY===e.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){if(f.allowClick=!1,o.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&o.stopPropagation(),r.isMoved||(s.loop&&f.loopFix(),r.startTranslate=f.getTranslate(),f.setTransition(0),f.animating&&f.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!s.grabCursor||!0!==f.allowSlideNext&&!0!==f.allowSlidePrev||f.setGrabCursor(!0),f.emit("sliderFirstMove",o)),f.emit("sliderMove",o),r.isMoved=!0,h=f.isHorizontal()?a:v,e.diff=h,h*=s.touchRatio,b&&(h=-h),f.swipeDirection=0<h?"prev":"next",r.currentTranslate=h+r.startTranslate,y=!0,p=s.resistanceRatio,s.touchReleaseOnEdges&&(p=0),0<h&&r.currentTranslate>f.minTranslate()?(y=!1,s.resistance&&(r.currentTranslate=f.minTranslate()-1+Math.pow(-f.minTranslate()+r.startTranslate+h,p))):h<0&&r.currentTranslate<f.maxTranslate()&&(y=!1,s.resistance&&(r.currentTranslate=f.maxTranslate()+1-Math.pow(f.maxTranslate()-r.startTranslate-h,p))),y&&(o.preventedByNestedSwiper=!0),!f.allowSlideNext&&"next"===f.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!f.allowSlidePrev&&"prev"===f.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),0<s.threshold){if(!(Math.abs(h)>s.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,e.startX=e.currentX,e.startY=e.currentY,r.currentTranslate=r.startTranslate,void(e.diff=f.isHorizontal()?e.currentX-e.startX:e.currentY-e.startY)}s.followFinger&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(f.updateActiveIndex(),f.updateSlidesClasses()),s.freeMode&&(0===r.velocities.length&&r.velocities.push({position:e[f.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:e[f.isHorizontal()?"currentX":"currentY"],time:n.now()})),f.updateProgress(r.currentTranslate),f.setTranslate(r.currentTranslate))}}}else r.startMoving&&r.isScrolling&&f.emit("touchMoveOpposite",o)}.bind(f),f.onTouchEnd=function(t){var i=this,r=i.touchEventsData,u=i.params,ot=i.touches,g=i.rtlTranslate,nt=i.$wrapperEl,e=i.slidesGrid,h=i.snapGrid,c=t,l,w,a,k,it,d,v,y,p,ut;if(c.originalEvent&&(c=c.originalEvent),r.allowTouchCallbacks&&i.emit("touchEnd",c),r.allowTouchCallbacks=!1,!r.isTouched)return r.isMoved&&u.grabCursor&&i.setGrabCursor(!1),r.isMoved=!1,void(r.startMoving=!1);if(u.grabCursor&&r.isMoved&&r.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1),w=n.now(),a=w-r.touchStartTime,i.allowClick&&(i.updateClickedSlide(c),i.emit("tap",c),a<300&&300<w-r.lastClickTime&&(r.clickTimeout&&clearTimeout(r.clickTimeout),r.clickTimeout=n.nextTick(function(){i&&!i.destroyed&&i.emit("click",c)},300)),a<300&&w-r.lastClickTime<300&&(r.clickTimeout&&clearTimeout(r.clickTimeout),i.emit("doubleTap",c))),r.lastClickTime=n.now(),n.nextTick(function(){i.destroyed||(i.allowClick=!0)}),!r.isTouched||!r.isMoved||!i.swipeDirection||0===ot.diff||r.currentTranslate===r.startTranslate)return r.isTouched=!1,r.isMoved=!1,void(r.startMoving=!1);if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,l=u.followFinger?g?i.translate:-i.translate:-r.currentTranslate,u.freeMode){if(l<-i.minTranslate())return void i.slideTo(i.activeIndex);if(l>-i.maxTranslate())return void(i.slides.length<h.length?i.slideTo(h.length-1):i.slideTo(i.slides.length-1));if(u.freeModeMomentum){if(1<r.velocities.length){var tt=r.velocities.pop(),ft=r.velocities.pop(),st=tt.position-ft.position,et=tt.time-ft.time;i.velocity=st/et,i.velocity/=2,Math.abs(i.velocity)<u.freeModeMinimumVelocity&&(i.velocity=0),(150<et||300<n.now()-tt.time)&&(i.velocity=0)}else i.velocity=0;i.velocity*=u.freeModeMomentumVelocityRatio,r.velocities.length=0;var b=1e3*u.freeModeMomentumRatio,ht=i.velocity*b,f=i.translate+ht;if(g&&(f=-f),d=!1,v=20*Math.abs(i.velocity)*u.freeModeMomentumBounceRatio,f<i.maxTranslate())u.freeModeMomentumBounce?(f+i.maxTranslate()<-v&&(f=i.maxTranslate()-v),k=i.maxTranslate(),d=!0,r.allowMomentumBounce=!0):f=i.maxTranslate(),u.loop&&u.centeredSlides&&(it=!0);else if(f>i.minTranslate())u.freeModeMomentumBounce?(f-i.minTranslate()>v&&(f=i.minTranslate()+v),k=i.minTranslate(),d=!0,r.allowMomentumBounce=!0):f=i.minTranslate(),u.loop&&u.centeredSlides&&(it=!0);else if(u.freeModeSticky){for(p=0;p<h.length;p+=1)if(h[p]>-f){y=p;break}f=-(f=Math.abs(h[y]-f)<Math.abs(h[y-1]-f)||"next"===i.swipeDirection?h[y]:h[y-1])}if(it&&i.once("transitionEnd",function(){i.loopFix()}),0!==i.velocity)b=g?Math.abs((-f-i.translate)/i.velocity):Math.abs((f-i.translate)/i.velocity);else if(u.freeModeSticky)return void i.slideToClosest();u.freeModeMomentumBounce&&d?(i.updateProgress(k),i.setTransition(b),i.setTranslate(f),i.transitionStart(!0,i.swipeDirection),i.animating=!0,nt.transitionEnd(function(){i&&!i.destroyed&&r.allowMomentumBounce&&(i.emit("momentumBounce"),i.setTransition(u.speed),i.setTranslate(k),nt.transitionEnd(function(){i&&!i.destroyed&&i.transitionEnd()}))})):i.velocity?(i.updateProgress(f),i.setTransition(b),i.setTranslate(f),i.transitionStart(!0,i.swipeDirection),i.animating||(i.animating=!0,nt.transitionEnd(function(){i&&!i.destroyed&&i.transitionEnd()}))):i.updateProgress(f),i.updateActiveIndex(),i.updateSlidesClasses()}else if(u.freeModeSticky)return void i.slideToClosest();(!u.freeModeMomentum||a>=u.longSwipesMs)&&(i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses())}else{for(var o=0,rt=i.slidesSizesGrid[0],s=0;s<e.length;s+=u.slidesPerGroup)void 0!==e[s+u.slidesPerGroup]?l>=e[s]&&l<e[s+u.slidesPerGroup]&&(rt=e[(o=s)+u.slidesPerGroup]-e[s]):l>=e[s]&&(o=s,rt=e[e.length-1]-e[e.length-2]);if(ut=(l-e[o])/rt,a>u.longSwipesMs){if(!u.longSwipes)return void i.slideTo(i.activeIndex);"next"===i.swipeDirection&&(ut>=u.longSwipesRatio?i.slideTo(o+u.slidesPerGroup):i.slideTo(o)),"prev"===i.swipeDirection&&(ut>1-u.longSwipesRatio?i.slideTo(o+u.slidesPerGroup):i.slideTo(o))}else{if(!u.shortSwipes)return void i.slideTo(i.activeIndex);"next"===i.swipeDirection&&i.slideTo(o+u.slidesPerGroup),"prev"===i.swipeDirection&&i.slideTo(o)}}}.bind(f),f.onClick=function(n){this.allowClick||(this.params.preventClicks&&n.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))}.bind(f),h="container"===o.touchEventsTarget?a:v,c=!!o.nested,!r.touch&&(r.pointerEvents||r.prefixedPointerEvents)?(h.addEventListener(s.start,f.onTouchStart,!1),u.addEventListener(s.move,f.onTouchMove,c),u.addEventListener(s.end,f.onTouchEnd,!1)):(r.touch&&(l=!("touchstart"!==s.start||!r.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1},h.addEventListener(s.start,f.onTouchStart,l),h.addEventListener(s.move,f.onTouchMove,r.passiveListener?{passive:!1,capture:c}:c),h.addEventListener(s.end,f.onTouchEnd,l)),(o.simulateTouch&&!e.ios&&!e.android||o.simulateTouch&&!r.touch&&e.ios)&&(h.addEventListener("mousedown",f.onTouchStart,!1),u.addEventListener("mousemove",f.onTouchMove,c),u.addEventListener("mouseup",f.onTouchEnd,!1))),(o.preventClicks||o.preventClicksPropagation)&&h.addEventListener("click",f.onClick,!0),f.on(e.ios||e.android?"resize orientationchange observerUpdate":"resize observerUpdate",at,!0)},detachEvents:function(){var n=this,t=n.params,i=n.touchEvents,h=n.el,c=n.wrapperEl,f="container"===t.touchEventsTarget?h:c,o=!!t.nested,s;!r.touch&&(r.pointerEvents||r.prefixedPointerEvents)?(f.removeEventListener(i.start,n.onTouchStart,!1),u.removeEventListener(i.move,n.onTouchMove,o),u.removeEventListener(i.end,n.onTouchEnd,!1)):(r.touch&&(s=!("onTouchStart"!==i.start||!r.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1},f.removeEventListener(i.start,n.onTouchStart,s),f.removeEventListener(i.move,n.onTouchMove,o),f.removeEventListener(i.end,n.onTouchEnd,s)),(t.simulateTouch&&!e.ios&&!e.android||t.simulateTouch&&!r.touch&&e.ios)&&(f.removeEventListener("mousedown",n.onTouchStart,!1),u.removeEventListener("mousemove",n.onTouchMove,o),u.removeEventListener("mouseup",n.onTouchEnd,!1))),(t.preventClicks||t.preventClicksPropagation)&&f.removeEventListener("click",n.onClick,!0),n.off(e.ios||e.android?"resize orientationchange observerUpdate":"resize observerUpdate",at)}},breakpoints:{setBreakpoint:function(){var t=this,c=t.activeIndex,s=t.initialized,o=t.loopedSlides,u,i,r,f;if(void 0===o&&(o=0),u=t.params,i=u.breakpoints,i&&(!i||0!==Object.keys(i).length)&&(r=t.getBreakpoint(i),r&&t.currentBreakpoint!==r)){f=r in i?i[r]:void 0,f&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(n){var t=f[n];void 0!==t&&(f[n]="slidesPerView"!==n||"AUTO"!==t&&"auto"!==t?"slidesPerView"===n?parseFloat(t):parseInt(t,10):"auto")});var e=f||t.originalParams,h=e.direction&&e.direction!==u.direction,l=u.loop&&(e.slidesPerView!==u.slidesPerView||h);h&&s&&t.changeDirection(),n.extend(t.params,e),n.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=r,l&&s&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(c-o+t.loopedSlides,0,!1)),t.emit("breakpoint",e)}},getBreakpoint:function(n){var t,r,f,u;if(n){for(t=!1,r=[],Object.keys(n).forEach(function(n){r.push(n)}),r.sort(function(n,t){return parseInt(n,10)-parseInt(t,10)}),f=0;f<r.length;f+=1)u=r[f],this.params.breakpointsInverse?u<=i.innerWidth&&(t=u):u>=i.innerWidth&&!t&&(t=u);return t||"max"}}},checkOverflow:{checkOverflow:function(){var n=this,t=n.isLocked;n.isLocked=1===n.snapGrid.length,n.allowSlideNext=!n.isLocked,n.allowSlidePrev=!n.isLocked,t!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock"),t&&t!==n.isLocked&&(n.isEnd=!1,n.navigation.update())}},classes:{addClasses:function(){var i=this.classNames,t=this.params,u=this.rtl,f=this.$el,n=[];n.push("initialized"),n.push(t.direction),t.freeMode&&n.push("free-mode"),r.flexbox||n.push("no-flexbox"),t.autoHeight&&n.push("autoheight"),u&&n.push("rtl"),1<t.slidesPerColumn&&n.push("multirow"),e.android&&n.push("android"),e.ios&&n.push("ios"),(h.isIE||h.isEdge)&&(r.pointerEvents||r.prefixedPointerEvents)&&n.push("wp8-"+t.direction),n.forEach(function(n){i.push(t.containerModifierClass+n)}),f.addClass(i.join(" "))},removeClasses:function(){var n=this.$el,t=this.classNames;n.removeClass(t.join(" "))}},images:{loadImage:function(n,t,r,u,f,e){function s(){e&&e()}var o;n.complete&&f?s():t?((o=new i.Image).onload=s,o.onerror=s,u&&(o.sizes=u),r&&(o.srcset=r),t&&(o.src=t)):s()},preloadImages:function(){function r(){null!=n&&n&&!n.destroyed&&(void 0!==n.imagesLoaded&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}var n=this,i,t;for(n.imagesToLoad=n.$el.find("img"),i=0;i<n.imagesToLoad.length;i+=1)t=n.imagesToLoad[i],n.loadImage(t,t.currentSrc||t.getAttribute("src"),t.srcset||t.getAttribute("srcset"),t.sizes||t.getAttribute("sizes"),!0,r)}}},et={},o=function(i){function u(){for(var w,s,e,f,y,o,p,a,c,v,h=[],l=arguments.length;l--;)h[l]=arguments[l];return 1===h.length&&h[0].constructor&&h[0].constructor===Object?e=h[0]:(s=(w=h)[0],e=w[1]),e||(e={}),e=n.extend({},e),s&&!e.el&&(e.el=s),i.call(this,e),Object.keys(ft).forEach(function(n){Object.keys(ft[n]).forEach(function(t){u.prototype[t]||(u.prototype[t]=ft[n][t])})}),f=this,void 0===f.modules&&(f.modules={}),Object.keys(f.modules).forEach(function(n){var r=f.modules[n],t,i;if(r.params){if(t=Object.keys(r.params)[0],i=r.params[t],"object"!=typeof i||null===i)return;if(!(t in e&&"enabled"in i))return;!0===e[t]&&(e[t]={enabled:!0}),"object"!=typeof e[t]||"enabled"in e[t]||(e[t].enabled=!0),e[t]||(e[t]={enabled:!1})}}),y=n.extend({},vt),f.useModulesParams(y),f.params=n.extend({},y,et,e),f.originalParams=n.extend({},f.params),f.passedParams=n.extend({},e),o=(f.$=t)(f.params.el),(s=o[0])?1<o.length?(p=[],o.each(function(t,i){var r=n.extend({},e,{el:i});p.push(new u(r))}),p):(s.swiper=f,o.data("swiper",f),v=o.children("."+f.params.wrapperClass),n.extend(f,{$el:o,el:s,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:t(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===f.params.direction},isVertical:function(){return"vertical"===f.params.direction},rtl:"rtl"===s.dir.toLowerCase()||"rtl"===o.css("direction"),rtlTranslate:"horizontal"===f.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===o.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:f.params.allowSlideNext,allowSlidePrev:f.params.allowSlidePrev,touchEvents:(a=["touchstart","touchmove","touchend"],c=["mousedown","mousemove","mouseup"],r.pointerEvents?c=["pointerdown","pointermove","pointerup"]:r.prefixedPointerEvents&&(c=["MSPointerDown","MSPointerMove","MSPointerUp"]),f.touchEventsTouch={start:a[0],move:a[1],end:a[2]},f.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},r.touch||!f.params.simulateTouch?f.touchEventsTouch:f.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:n.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:f.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),f.useModules(),f.params.init&&f.init(),f):void 0}i&&(u.__proto__=i);var f={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return((u.prototype=Object.create(i&&i.prototype)).constructor=u).prototype.slidesPerViewDynamic=function(){var t=this,l=t.params,n=t.slides,c=t.slidesGrid,s=t.size,i=t.activeIndex,f=1,e,h,r,u,o;if(l.centeredSlides){for(h=n[i].swiperSlideSize,r=i+1;r<n.length;r+=1)n[r]&&!e&&(f+=1,s<(h+=n[r].swiperSlideSize)&&(e=!0));for(u=i-1;0<=u;u-=1)n[u]&&!e&&(f+=1,s<(h+=n[u].swiperSlideSize)&&(e=!0))}else for(o=i+1;o<n.length;o+=1)c[o]-c[i]<s&&(f+=1);return f},u.prototype.update=function(){function r(){var t=n.rtlTranslate?-1*n.translate:n.translate,i=Math.min(Math.max(t,n.maxTranslate()),n.minTranslate());n.setTranslate(i),n.updateActiveIndex(),n.updateSlidesClasses()}var n=this,i,t;n&&!n.destroyed&&(i=n.snapGrid,t=n.params,t.breakpoints&&n.setBreakpoint(),n.updateSize(),n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.params.freeMode?(r(),n.params.autoHeight&&n.updateAutoHeight()):(("auto"===n.params.slidesPerView||1<n.params.slidesPerView)&&n.isEnd&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0))||r(),t.watchOverflow&&i!==n.snapGrid&&n.checkOverflow(),n.emit("update"))},u.prototype.changeDirection=function(n,t){void 0===t&&(t=!0);var i=this,u=i.params.direction;return n||(n="horizontal"===u?"vertical":"horizontal"),n===u||"horizontal"!==n&&"vertical"!==n||("vertical"===u&&(i.$el.removeClass(i.params.containerModifierClass+"vertical wp8-vertical").addClass(""+i.params.containerModifierClass+n),(h.isIE||h.isEdge)&&(r.pointerEvents||r.prefixedPointerEvents)&&i.$el.addClass(i.params.containerModifierClass+"wp8-"+n)),"horizontal"===u&&(i.$el.removeClass(i.params.containerModifierClass+"horizontal wp8-horizontal").addClass(""+i.params.containerModifierClass+n),(h.isIE||h.isEdge)&&(r.pointerEvents||r.prefixedPointerEvents)&&i.$el.addClass(i.params.containerModifierClass+"wp8-"+n)),i.params.direction=n,i.slides.each(function(t,i){"vertical"===n?i.style.width="":i.style.height=""}),i.emit("changeDirection"),t&&i.update()),i},u.prototype.init=function(){var n=this;n.initialized||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.params.loop&&n.loopCreate(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.setGrabCursor(),n.params.preloadImages&&n.preloadImages(),n.params.loop?n.slideTo(n.params.initialSlide+n.loopedSlides,0,n.params.runCallbacksOnInit):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit),n.attachEvents(),n.initialized=!0,n.emit("init"))},u.prototype.destroy=function(t,i){void 0===t&&(t=!0),void 0===i&&(i=!0);var r=this,u=r.params,e=r.$el,o=r.$wrapperEl,f=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),u.loop&&r.loopDestroy(),i&&(r.removeClasses(),e.removeAttr("style"),o.removeAttr("style"),f&&f.length&&f.removeClass([u.slideVisibleClass,u.slideActiveClass,u.slideNextClass,u.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(function(n){r.off(n)}),!1!==t&&(r.$el[0].swiper=null,r.$el.data("swiper",null),n.deleteProps(r)),r.destroyed=!0),null},u.extendDefaults=function(t){n.extend(et,t)},f.extendedDefaults.get=function(){return et},f.defaults.get=function(){return vt},f.Class.get=function(){return i},f.$.get=function(){return t},Object.defineProperties(u,f),u}(c),ei={name:"device",proto:{device:e},"static":{device:e}},oi={name:"support",proto:{support:r},"static":{support:r}},si={name:"browser",proto:{browser:h},"static":{browser:h}},hi={name:"resize",create:function(){var t=this;n.extend(t,{resize:{resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){i.addEventListener("resize",this.resize.resizeHandler),i.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){i.removeEventListener("resize",this.resize.resizeHandler),i.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},g={func:i.MutationObserver||i.WebkitMutationObserver,attach:function(n,t){void 0===t&&(t={});var r=this,u=new g.func(function(n){if(1!==n.length){var t=function(){r.emit("observerUpdate",n[0])};i.requestAnimationFrame?i.requestAnimationFrame(t):i.setTimeout(t,0)}else r.emit("observerUpdate",n[0])});u.observe(n,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),r.observer.observers.push(u)},init:function(){var n=this,i,t;if(r.observer&&n.params.observer){if(n.params.observeParents)for(i=n.$el.parents(),t=0;t<i.length;t+=1)n.observer.attach(i[t]);n.observer.attach(n.$el[0],{childList:n.params.observeSlideChildren}),n.observer.attach(n.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(n){n.disconnect()}),this.observer.observers=[]}},ci={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){n.extend(this,{observer:{init:g.init.bind(this),attach:g.attach.bind(this),destroy:g.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},y={update:function(t){function ut(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load()}var i=this,v=i.params,y=v.slidesPerView,c=v.slidesPerGroup,ft=v.centeredSlides,nt=i.params.virtual,tt=nt.addSlidesBefore,it=nt.addSlidesAfter,f=i.virtual,p=f.from,l=f.to,s=f.slides,et=f.slidesGrid,rt=f.renderSlide,ot=f.offset,w,b,k,d,g,a,o,r;i.updateActiveIndex(),d=i.activeIndex||0,w=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",ft?(b=Math.floor(y/2)+c+tt,k=Math.floor(y/2)+c+it):(b=y+(c-1)+tt,k=c+it);var u=Math.max((d||0)-k,0),e=Math.min((d||0)+b,s.length-1),h=(i.slidesGrid[u]||0)-(i.slidesGrid[0]||0);if(n.extend(i.virtual,{from:u,to:e,offset:h,slidesGrid:i.slidesGrid}),p===u&&l===e&&!t)return i.slidesGrid!==et&&h!==ot&&i.slides.css(w,h+"px"),void i.updateProgress();if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:h,from:u,to:e,slides:function(){for(var t=[],n=u;n<=e;n+=1)t.push(s[n]);return t}()}),void ut();if(g=[],a=[],t)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(o=p;o<=l;o+=1)(o<u||e<o)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+o+'"]').remove();for(r=0;r<s.length;r+=1)u<=r&&r<=e&&(void 0===l||t?a.push(r):(l<r&&a.push(r),r<p&&g.push(r)));a.forEach(function(n){i.$wrapperEl.append(rt(s[n],n))}),g.sort(function(n,t){return t-n}).forEach(function(n){i.$wrapperEl.prepend(rt(s[n],n))}),i.$wrapperEl.children(".swiper-slide").css(w,h+"px"),ut()},renderSlide:function(n,i){var r=this,f=r.params.virtual,u;return f.cache&&r.virtual.cache[i]?r.virtual.cache[i]:(u=f.renderSlide?t(f.renderSlide.call(r,n,i)):t('<div class="'+r.params.slideClass+'" data-swiper-slide-index="'+i+'">'+n+"<\/div>"),u.attr("data-swiper-slide-index")||u.attr("data-swiper-slide-index",i),f.cache&&(r.virtual.cache[i]=u),u)},appendSlide:function(n){if("object"==typeof n&&"length"in n)for(var t=0;t<n.length;t+=1)n[t]&&this.virtual.slides.push(n[t]);else this.virtual.slides.push(n);this.virtual.update(!0)},prependSlide:function(n){var t=this,f=t.activeIndex,e=f+1,o=1,i,r,u;if(Array.isArray(n)){for(i=0;i<n.length;i+=1)n[i]&&t.virtual.slides.unshift(n[i]);e=f+n.length,o=n.length}else t.virtual.slides.unshift(n);t.params.virtual.cache&&(r=t.virtual.cache,u={},Object.keys(r).forEach(function(n){u[parseInt(n,10)+o]=r[n]}),t.virtual.cache=u),t.virtual.update(!0),t.slideTo(e,0)},removeSlide:function(n){var i=this,t,r;if(null!=n){if(t=i.activeIndex,Array.isArray(n))for(r=n.length-1;0<=r;r-=1)i.virtual.slides.splice(n[r],1),i.params.virtual.cache&&delete i.virtual.cache[n[r]],n[r]<t&&(t-=1),t=Math.max(t,0);else i.virtual.slides.splice(n,1),i.params.virtual.cache&&delete i.virtual.cache[n],n<t&&(t-=1),t=Math.max(t,0);i.virtual.update(!0),i.slideTo(t,0)}},removeAllSlides:function(){var n=this;n.virtual.slides=[],n.params.virtual.cache&&(n.virtual.cache={}),n.virtual.update(!0),n.slideTo(0,0)}},li={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var t=this;n.extend(t,{virtual:{update:y.update.bind(t),appendSlide:y.appendSlide.bind(t),prependSlide:y.prependSlide.bind(t),removeSlide:y.removeSlide.bind(t),removeAllSlides:y.removeAllSlides.bind(t),renderSlide:y.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var t=this,i;t.params.virtual.enabled&&(t.classNames.push(t.params.containerModifierClass+"virtual"),i={watchSlidesProgress:!0},n.extend(t.params,i),n.extend(t.originalParams,i),t.params.initialSlide||t.virtual.update())},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},ot={handle:function(n){var t=this,o=t.rtlTranslate,f=n,r,c,l,h,s;if((f.originalEvent&&(f=f.originalEvent),r=f.keyCode||f.charCode,!t.allowSlideNext&&(t.isHorizontal()&&39===r||t.isVertical()&&40===r))||!t.allowSlidePrev&&(t.isHorizontal()&&37===r||t.isVertical()&&38===r))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey||u.activeElement&&u.activeElement.nodeName&&("input"===u.activeElement.nodeName.toLowerCase()||"textarea"===u.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(37===r||39===r||38===r||40===r)){if(c=!1,0<t.$el.parents("."+t.params.slideClass).length&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var a=i.innerWidth,v=i.innerHeight,e=t.$el.offset();for(o&&(e.left-=t.$el[0].scrollLeft),l=[[e.left,e.top],[e.left+t.width,e.top],[e.left,e.top+t.height],[e.left+t.width,e.top+t.height]],h=0;h<l.length;h+=1)s=l[h],0<=s[0]&&s[0]<=a&&0<=s[1]&&s[1]<=v&&(c=!0);if(!c)return}t.isHorizontal()?(37!==r&&39!==r||(f.preventDefault?f.preventDefault():f.returnValue=!1),(39===r&&!o||37===r&&o)&&t.slideNext(),(37===r&&!o||39===r&&o)&&t.slidePrev()):(38!==r&&40!==r||(f.preventDefault?f.preventDefault():f.returnValue=!1),40===r&&t.slideNext(),38===r&&t.slidePrev()),t.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(t(u).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(t(u).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},ai={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){n.extend(this,{keyboard:{enabled:!1,enable:ot.enable.bind(this),disable:ot.disable.bind(this),handle:ot.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},l={lastScrollTime:n.now(),event:-1<i.navigator.userAgent.indexOf("firefox")?"DOMMouseScroll":function(){var t="onwheel",n=t in u,i;return n||(i=u.createElement("div"),i.setAttribute(t,"return;"),n="function"==typeof i[t]),!n&&u.implementation&&u.implementation.hasFeature&&!0!==u.implementation.hasFeature("","")&&(n=u.implementation.hasFeature("Events.wheel","3.0")),n}()?"wheel":"mousewheel",normalize:function(n){var u=0,t=0,i=0,r=0;return"detail"in n&&(t=n.detail),"wheelDelta"in n&&(t=-n.wheelDelta/120),"wheelDeltaY"in n&&(t=-n.wheelDeltaY/120),"wheelDeltaX"in n&&(u=-n.wheelDeltaX/120),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(u=t,t=0),i=10*u,r=10*t,"deltaY"in n&&(r=n.deltaY),"deltaX"in n&&(i=n.deltaX),(i||r)&&n.deltaMode&&(1===n.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!u&&(u=i<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:u,spinY:t,pixelX:i,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var u=t,r=this,s=r.params.mousewheel;if(!r.mouseEntered&&!s.releaseOnEdges)return!0;u.originalEvent&&(u=u.originalEvent);var e=0,h=r.rtlTranslate?-1:1,f=l.normalize(u);if(s.forceToAxis)if(r.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;e=f.pixelX*h}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;e=f.pixelY}else e=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*h:-f.pixelY;if(0===e)return!0;if(s.invert&&(e=-e),r.params.freeMode){r.params.loop&&r.loopFix();var o=r.getTranslate()+e*s.sensitivity,c=r.isBeginning,a=r.isEnd;if(o>=r.minTranslate()&&(o=r.minTranslate()),o<=r.maxTranslate()&&(o=r.maxTranslate()),r.setTransition(0),r.setTranslate(o),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!c&&r.isBeginning||!a&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky&&(clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=n.nextTick(function(){r.slideToClosest()},300)),r.emit("scroll",u),r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.autoplay.stop(),o===r.minTranslate()||o===r.maxTranslate())return!0}else{if(60<n.now()-r.mousewheel.lastScrollTime)if(e<0)if(r.isEnd&&!r.params.loop||r.animating){if(s.releaseOnEdges)return!0}else r.slideNext(),r.emit("scroll",u);else if(r.isBeginning&&!r.params.loop||r.animating){if(s.releaseOnEdges)return!0}else r.slidePrev(),r.emit("scroll",u);r.mousewheel.lastScrollTime=(new i.Date).getTime()}return u.preventDefault?u.preventDefault():u.returnValue=!1,!1},enable:function(){var n=this,i;return l.event?n.mousewheel.enabled?!1:(i=n.$el,"container"!==n.params.mousewheel.eventsTarged&&(i=t(n.params.mousewheel.eventsTarged)),i.on("mouseenter",n.mousewheel.handleMouseEnter),i.on("mouseleave",n.mousewheel.handleMouseLeave),i.on(l.event,n.mousewheel.handle),n.mousewheel.enabled=!0):!1},disable:function(){var n=this,i;return l.event?n.mousewheel.enabled?(i=n.$el,"container"!==n.params.mousewheel.eventsTarged&&(i=t(n.params.mousewheel.eventsTarged)),i.off(l.event,n.mousewheel.handle),!(n.mousewheel.enabled=!1)):!1:!1}},p={update:function(){var n=this,t=n.params.navigation;if(!n.params.loop){var u=n.navigation,i=u.$nextEl,r=u.$prevEl;r&&0<r.length&&(n.isBeginning?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[n.params.watchOverflow&&n.isLocked?"addClass":"removeClass"](t.lockClass)),i&&0<i.length&&(n.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[n.params.watchOverflow&&n.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(n){n.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(n){n.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var u,f,r=this,i=r.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(u=t(i.nextEl),r.params.uniqueNavElements&&"string"==typeof i.nextEl&&1<u.length&&1===r.$el.find(i.nextEl).length&&(u=r.$el.find(i.nextEl))),i.prevEl&&(f=t(i.prevEl),r.params.uniqueNavElements&&"string"==typeof i.prevEl&&1<f.length&&1===r.$el.find(i.prevEl).length&&(f=r.$el.find(i.prevEl))),u&&0<u.length&&u.on("click",r.navigation.onNextClick),f&&0<f.length&&f.on("click",r.navigation.onPrevClick),n.extend(r.navigation,{$nextEl:u,nextEl:u&&u[0],$prevEl:f,prevEl:f&&f[0]}))},destroy:function(){var n=this,r=n.navigation,t=r.$nextEl,i=r.$prevEl;t&&t.length&&(t.off("click",n.navigation.onNextClick),t.removeClass(n.params.navigation.disabledClass)),i&&i.length&&(i.off("click",n.navigation.onPrevClick),i.removeClass(n.params.navigation.disabledClass))}},nt={update:function(){var n=this,w=n.rtl,i=n.params.pagination,e,s,l,u,a;if(i.el&&n.pagination.el&&n.pagination.$el&&0!==n.pagination.$el.length){var r,h=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,f=n.pagination.$el,o=n.params.loop?Math.ceil((h-2*n.loopedSlides)/n.params.slidesPerGroup):n.snapGrid.length;if(n.params.loop?((r=Math.ceil((n.activeIndex-n.loopedSlides)/n.params.slidesPerGroup))>h-1-2*n.loopedSlides&&(r-=h-2*n.loopedSlides),o-1<r&&(r-=o),r<0&&"bullets"!==n.params.paginationType&&(r=o+r)):r=void 0!==n.snapIndex?n.snapIndex:n.activeIndex||0,"bullets"===i.type&&n.pagination.bullets&&0<n.pagination.bullets.length){if(u=n.pagination.bullets,i.dynamicBullets&&(n.pagination.bulletSize=u.eq(0)[n.isHorizontal()?"outerWidth":"outerHeight"](!0),f.css(n.isHorizontal()?"width":"height",n.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),1<i.dynamicMainBullets&&void 0!==n.previousIndex&&(n.pagination.dynamicBulletIndex+=r-n.previousIndex,n.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?n.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:n.pagination.dynamicBulletIndex<0&&(n.pagination.dynamicBulletIndex=0)),e=r-n.pagination.dynamicBulletIndex,l=((s=e+(Math.min(u.length,i.dynamicMainBullets)-1))+e)/2),u.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),1<f.length)u.each(function(n,u){var f=t(u),o=f.index();o===r&&f.addClass(i.bulletActiveClass),i.dynamicBullets&&(e<=o&&o<=s&&f.addClass(i.bulletActiveClass+"-main"),o===e&&f.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),o===s&&f.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))});else if(u.eq(r).addClass(i.bulletActiveClass),i.dynamicBullets){for(var b=u.eq(e),k=u.eq(s),c=e;c<=s;c+=1)u.eq(c).addClass(i.bulletActiveClass+"-main");b.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),k.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}if(i.dynamicBullets){var d=Math.min(u.length,i.dynamicMainBullets+4),g=(n.pagination.bulletSize*d-n.pagination.bulletSize)/2-l*n.pagination.bulletSize,nt=w?"right":"left";u.css(n.isHorizontal()?nt:"top",g+"px")}}if("fraction"===i.type&&(f.find("."+i.currentClass).text(i.formatFractionCurrent(r+1)),f.find("."+i.totalClass).text(i.formatFractionTotal(o))),"progressbar"===i.type){a=i.progressbarOpposite?n.isHorizontal()?"vertical":"horizontal":n.isHorizontal()?"horizontal":"vertical";var v=(r+1)/o,y=1,p=1;"horizontal"===a?y=v:p=v,f.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+y+") scaleY("+p+")").transition(n.params.speed)}"custom"===i.type&&i.renderCustom?(f.html(i.renderCustom(n,r+1,o)),n.emit("paginationRender",n,f[0])):n.emit("paginationUpdate",n,f[0]),f[n.params.watchOverflow&&n.isLocked?"addClass":"removeClass"](i.lockClass)}},render:function(){var t=this,n=t.params.pagination,f,u;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var e=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el,i="";if("bullets"===n.type){for(f=t.params.loop?Math.ceil((e-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length,u=0;u<f;u+=1)i+=n.renderBullet?n.renderBullet.call(t,u,n.bulletClass):"<"+n.bulletElement+' class="'+n.bulletClass+'"><\/'+n.bulletElement+">";r.html(i),t.pagination.bullets=r.find("."+n.bulletClass)}"fraction"===n.type&&(i=n.renderFraction?n.renderFraction.call(t,n.currentClass,n.totalClass):'<span class="'+n.currentClass+'"><\/span> / <span class="'+n.totalClass+'"><\/span>',r.html(i)),"progressbar"===n.type&&(i=n.renderProgressbar?n.renderProgressbar.call(t,n.progressbarFillClass):'<span class="'+n.progressbarFillClass+'"><\/span>',r.html(i)),"custom"!==n.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var u=this,i=u.params.pagination,r;i.el&&(r=t(i.el),0!==r.length&&(u.params.uniqueNavElements&&"string"==typeof i.el&&1<r.length&&1===u.$el.find(i.el).length&&(r=u.$el.find(i.el)),"bullets"===i.type&&i.clickable&&r.addClass(i.clickableClass),r.addClass(i.modifierClass+i.type),"bullets"===i.type&&i.dynamicBullets&&(r.addClass(""+i.modifierClass+i.type+"-dynamic"),u.pagination.dynamicBulletIndex=0,i.dynamicMainBullets<1&&(i.dynamicMainBullets=1)),"progressbar"===i.type&&i.progressbarOpposite&&r.addClass(i.progressbarOppositeClass),i.clickable&&r.on("click","."+i.bulletClass,function(n){n.preventDefault();var i=t(this).index()*u.params.slidesPerGroup;u.params.loop&&(i+=u.loopedSlides),u.slideTo(i)}),n.extend(u.pagination,{$el:r,el:r[0]})))},destroy:function(){var n=this,t=n.params.pagination,i;t.el&&n.pagination.el&&n.pagination.$el&&0!==n.pagination.$el.length&&(i=n.pagination.$el,i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),n.pagination.bullets&&n.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click","."+t.bulletClass))}},s={setTranslate:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var o=t.scrollbar,h=t.rtlTranslate,c=t.progress,i=o.dragSize,e=o.trackSize,u=o.$dragEl,s=o.$el,l=t.params.scrollbar,f=i,n=(e-i)*c;h?0<(n=-n)?(f=i-n,n=0):e<-n+i&&(f=e+n):n<0?(f=i+n,n=0):e<n+i&&(f=e-n),t.isHorizontal()?(r.transforms3d?u.transform("translate3d("+n+"px, 0, 0)"):u.transform("translateX("+n+"px)"),u[0].style.width=f+"px"):(r.transforms3d?u.transform("translate3d(0px, "+n+"px, 0)"):u.transform("translateY("+n+"px)"),u[0].style.height=f+"px"),l.hide&&(clearTimeout(t.scrollbar.timeout),s[0].style.opacity=1,t.scrollbar.timeout=setTimeout(function(){s[0].style.opacity=0,s.transition(400)},1e3))}},setTransition:function(n){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(n)},updateSize:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var i=t.scrollbar,r=i.$dragEl,u=i.$el;r[0].style.width="",r[0].style.height="";var f,o=t.isHorizontal()?u[0].offsetWidth:u[0].offsetHeight,e=t.size/t.virtualSize,s=e*(o/t.size);f="auto"===t.params.scrollbar.dragSize?o*e:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?r[0].style.width=f+"px":r[0].style.height=f+"px",u[0].style.display=1<=e?"none":"",t.params.scrollbar.hide&&(u[0].style.opacity=0),n.extend(i,{trackSize:o,divider:e,moveDivider:s,dragSize:f}),i.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}},setDragPosition:function(n){var i,t=this,r=t.scrollbar,e=t.rtlTranslate,o=r.$el,f=r.dragSize,s=r.trackSize,u;i=((t.isHorizontal()?"touchstart"===n.type||"touchmove"===n.type?n.targetTouches[0].pageX:n.pageX||n.clientX:"touchstart"===n.type||"touchmove"===n.type?n.targetTouches[0].pageY:n.pageY||n.clientY)-o.offset()[t.isHorizontal()?"left":"top"]-f/2)/(s-f),i=Math.max(Math.min(i,1),0),e&&(i=1-i),u=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*i,t.updateProgress(u),t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart:function(n){var t=this,u=t.params.scrollbar,i=t.scrollbar,f=t.$wrapperEl,r=i.$el,e=i.$dragEl;t.scrollbar.isTouched=!0,n.preventDefault(),n.stopPropagation(),f.transition(100),e.transition(100),i.setDragPosition(n),clearTimeout(t.scrollbar.dragTimeout),r.transition(0),u.hide&&r.css("opacity",1),t.emit("scrollbarDragStart",n)},onDragMove:function(n){var t=this.scrollbar,i=this.$wrapperEl,r=t.$el,u=t.$dragEl;this.scrollbar.isTouched&&(n.preventDefault?n.preventDefault():n.returnValue=!1,t.setDragPosition(n),i.transition(0),r.transition(0),u.transition(0),this.emit("scrollbarDragMove",n))},onDragEnd:function(t){var i=this,r=i.params.scrollbar,u=i.scrollbar.$el;i.scrollbar.isTouched&&(i.scrollbar.isTouched=!1,r.hide&&(clearTimeout(i.scrollbar.dragTimeout),i.scrollbar.dragTimeout=n.nextTick(function(){u.css("opacity",0),u.transition(400)},1e3)),i.emit("scrollbarDragEnd",t),r.snapOnRelease&&i.slideToClosest())},enableDraggable:function(){var n=this;if(n.params.scrollbar.el){var h=n.scrollbar,f=n.touchEventsTouch,e=n.touchEventsDesktop,o=n.params,t=h.$el[0],i=!(!r.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},s=!(!r.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};r.touch?(t.addEventListener(f.start,n.scrollbar.onDragStart,i),t.addEventListener(f.move,n.scrollbar.onDragMove,i),t.addEventListener(f.end,n.scrollbar.onDragEnd,s)):(t.addEventListener(e.start,n.scrollbar.onDragStart,i),u.addEventListener(e.move,n.scrollbar.onDragMove,i),u.addEventListener(e.end,n.scrollbar.onDragEnd,s))}},disableDraggable:function(){var n=this;if(n.params.scrollbar.el){var h=n.scrollbar,f=n.touchEventsTouch,e=n.touchEventsDesktop,o=n.params,t=h.$el[0],i=!(!r.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},s=!(!r.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};r.touch?(t.removeEventListener(f.start,n.scrollbar.onDragStart,i),t.removeEventListener(f.move,n.scrollbar.onDragMove,i),t.removeEventListener(f.end,n.scrollbar.onDragEnd,s)):(t.removeEventListener(e.start,n.scrollbar.onDragStart,i),u.removeEventListener(e.move,n.scrollbar.onDragMove,i),u.removeEventListener(e.end,n.scrollbar.onDragEnd,s))}},init:function(){var i=this,u;if(i.params.scrollbar.el){var e=i.scrollbar,o=i.$el,f=i.params.scrollbar,r=t(f.el);i.params.uniqueNavElements&&"string"==typeof f.el&&1<r.length&&1===o.find(f.el).length&&(r=o.find(f.el)),u=r.find("."+i.params.scrollbar.dragClass),0===u.length&&(u=t('<div class="'+i.params.scrollbar.dragClass+'"><\/div>'),r.append(u)),n.extend(e,{$el:r,el:r[0],$dragEl:u,dragEl:u[0]}),f.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},st={setTransform:function(n,i){var a=this.rtl,f=t(n),s=a?-1:1,h=f.attr("data-swiper-parallax")||"0",r=f.attr("data-swiper-parallax-x"),u=f.attr("data-swiper-parallax-y"),e=f.attr("data-swiper-parallax-scale"),o=f.attr("data-swiper-parallax-opacity"),c,l;(r||u?(r=r||"0",u=u||"0"):this.isHorizontal()?(r=h,u="0"):(u=h,r="0"),r=0<=r.indexOf("%")?parseInt(r,10)*i*s+"%":r*i*s+"px",u=0<=u.indexOf("%")?parseInt(u,10)*i+"%":u*i+"px",null!=o)&&(c=o-(o-1)*(1-Math.abs(i)),f[0].style.opacity=c),null==e?f.transform("translate3d("+r+", "+u+", 0px)"):(l=e-(e-1)*(1-Math.abs(i)),f.transform("translate3d("+r+", "+u+", 0px) scale("+l+")"))},setTranslate:function(){var n=this,r=n.$el,u=n.slides,i=n.progress,f=n.snapGrid;r.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,r){n.parallax.setTransform(r,i)}),u.each(function(r,u){var e=u.progress;1<n.params.slidesPerGroup&&"auto"!==n.params.slidesPerView&&(e+=Math.ceil(r/2)-i*(f.length-1)),e=Math.min(Math.max(e,-1),1),t(u).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){n.parallax.setTransform(i,e)})})},setTransition:function(n){void 0===n&&(n=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(i,r){var u=t(r),f=parseInt(u.attr("data-swiper-parallax-duration"),10)||n;0===n&&(f=0),u.transition(f)})}},ht={getDistanceBetweenTouches:function(n){if(n.targetTouches.length<2)return 1;var t=n.targetTouches[0].pageX,i=n.targetTouches[0].pageY,r=n.targetTouches[1].pageX,u=n.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-t,2)+Math.pow(u-i,2))},onGestureStart:function(n){var u=this,e=u.params.zoom,f=u.zoom,i=f.gesture;if(f.fakeGestureTouched=!1,f.fakeGestureMoved=!1,!r.gestures){if("touchstart"!==n.type||"touchstart"===n.type&&n.targetTouches.length<2)return;f.fakeGestureTouched=!0,i.scaleStart=ht.getDistanceBetweenTouches(n)}i.$slideEl&&i.$slideEl.length||(i.$slideEl=t(n.target).closest(".swiper-slide"),0===i.$slideEl.length&&(i.$slideEl=u.slides.eq(u.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+e.containerClass),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,0!==i.$imageWrapEl.length)?(i.$imageEl.transition(0),u.zoom.isScaling=!0):i.$imageEl=void 0},onGestureChange:function(n){var u=this.params.zoom,t=this.zoom,i=t.gesture;if(!r.gestures){if("touchmove"!==n.type||"touchmove"===n.type&&n.targetTouches.length<2)return;t.fakeGestureMoved=!0,i.scaleMove=ht.getDistanceBetweenTouches(n)}i.$imageEl&&0!==i.$imageEl.length&&(t.scale=r.gestures?n.scale*t.currentScale:i.scaleMove/i.scaleStart*t.currentScale,t.scale>i.maxRatio&&(t.scale=i.maxRatio-1+Math.pow(t.scale-i.maxRatio+1,.5)),t.scale<u.minRatio&&(t.scale=u.minRatio+1-Math.pow(u.minRatio-t.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale("+t.scale+")"))},onGestureEnd:function(n){var u=this.params.zoom,t=this.zoom,i=t.gesture;if(!r.gestures){if(!t.fakeGestureTouched||!t.fakeGestureMoved)return;if("touchend"!==n.type||"touchend"===n.type&&n.changedTouches.length<2&&!e.android)return;t.fakeGestureTouched=!1,t.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(t.scale=Math.max(Math.min(t.scale,i.maxRatio),u.minRatio),i.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+t.scale+")"),t.currentScale=t.scale,t.isScaling=!1,1===t.scale&&(i.$slideEl=void 0))},onTouchStart:function(n){var i=this.zoom,r=i.gesture,t=i.image;r.$imageEl&&0!==r.$imageEl.length&&(t.isTouched||(e.android&&n.preventDefault(),t.isTouched=!0,t.touchesStart.x="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,t.touchesStart.y="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY))},onTouchMove:function(t){var e=this,f=e.zoom,u=f.gesture,i=f.image,r=f.velocity,o,s;if(u.$imageEl&&0!==u.$imageEl.length&&(e.allowClick=!1,i.isTouched&&u.$slideEl)&&(i.isMoved||(i.width=u.$imageEl[0].offsetWidth,i.height=u.$imageEl[0].offsetHeight,i.startX=n.getTranslate(u.$imageWrapEl[0],"x")||0,i.startY=n.getTranslate(u.$imageWrapEl[0],"y")||0,u.slideWidth=u.$slideEl[0].offsetWidth,u.slideHeight=u.$slideEl[0].offsetHeight,u.$imageWrapEl.transition(0),e.rtl&&(i.startX=-i.startX,i.startY=-i.startY)),o=i.width*f.scale,s=i.height*f.scale,!(o<u.slideWidth&&s<u.slideHeight))){if((i.minX=Math.min(u.slideWidth/2-o/2,0),i.maxX=-i.minX,i.minY=Math.min(u.slideHeight/2-s/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!i.isMoved&&!f.isScaling)&&(e.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x)||!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y)))return void(i.isTouched=!1);t.preventDefault(),t.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),u.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTouchEnd:function(){var i=this.zoom,r=i.gesture,n=i.image,t=i.velocity,s,h,c;if(r.$imageEl&&0!==r.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var u=300,f=300,l=t.x*u,e=n.currentX+l,a=t.y*f,o=n.currentY+a;0!==t.x&&(u=Math.abs((e-n.currentX)/t.x)),0!==t.y&&(f=Math.abs((o-n.currentY)/t.y)),s=Math.max(u,f),n.currentX=e,n.currentY=o,h=n.width*i.scale,c=n.height*i.scale,n.minX=Math.min(r.slideWidth/2-h/2,0),n.maxX=-n.minX,n.minY=Math.min(r.slideHeight/2-c/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),r.$imageWrapEl.transition(s).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var t=this.zoom,n=t.gesture;n.$slideEl&&this.previousIndex!==this.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(n){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(n)},"in":function(n){var s,h,b,k,u,f,d,g,nt,tt,c,l,a,v,y,p,e=this,r=e.zoom,o=e.params.zoom,i=r.gesture,w=r.image;(i.$slideEl||(i.$slideEl=e.clickedSlide?t(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+o.containerClass)),i.$imageEl&&0!==i.$imageEl.length)&&(i.$slideEl.addClass(""+o.zoomedSlideClass),void 0===w.touchesStart.x&&n?(s="touchend"===n.type?n.changedTouches[0].pageX:n.pageX,h="touchend"===n.type?n.changedTouches[0].pageY:n.pageY):(s=w.touchesStart.x,h=w.touchesStart.y),r.scale=i.$imageWrapEl.attr("data-swiper-zoom")||o.maxRatio,r.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||o.maxRatio,n?(y=i.$slideEl[0].offsetWidth,p=i.$slideEl[0].offsetHeight,b=i.$slideEl.offset().left+y/2-s,k=i.$slideEl.offset().top+p/2-h,d=i.$imageEl[0].offsetWidth,g=i.$imageEl[0].offsetHeight,nt=d*r.scale,tt=g*r.scale,a=-(c=Math.min(y/2-nt/2,0)),v=-(l=Math.min(p/2-tt/2,0)),(u=b*r.scale)<c&&(u=c),a<u&&(u=a),(f=k*r.scale)<l&&(f=l),v<f&&(f=v)):f=u=0,i.$imageWrapEl.transition(300).transform("translate3d("+u+"px, "+f+"px,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+r.scale+")"))},out:function(){var i=this,r=i.zoom,u=i.params.zoom,n=r.gesture;n.$slideEl||(n.$slideEl=i.clickedSlide?t(i.clickedSlide):i.slides.eq(i.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+u.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(r.scale=1,r.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+u.zoomedSlideClass),n.$slideEl=void 0)},enable:function(){var n=this,t=n.zoom,i;t.enabled||(t.enabled=!0,i=!("touchstart"!==n.touchEvents.start||!r.passiveListener||!n.params.passiveListeners)&&{passive:!0,capture:!1},r.gestures?(n.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i),n.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i),n.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===n.touchEvents.start&&(n.$wrapperEl.on(n.touchEvents.start,".swiper-slide",t.onGestureStart,i),n.$wrapperEl.on(n.touchEvents.move,".swiper-slide",t.onGestureChange,i),n.$wrapperEl.on(n.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),n.$wrapperEl.on(n.touchEvents.move,"."+n.params.zoom.containerClass,t.onTouchMove))},disable:function(){var n=this,t=n.zoom,i;t.enabled&&(n.zoom.enabled=!1,i=!("touchstart"!==n.touchEvents.start||!r.passiveListener||!n.params.passiveListeners)&&{passive:!0,capture:!1},r.gestures?(n.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),n.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),n.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===n.touchEvents.start&&(n.$wrapperEl.off(n.touchEvents.start,".swiper-slide",t.onGestureStart,i),n.$wrapperEl.off(n.touchEvents.move,".swiper-slide",t.onGestureChange,i),n.$wrapperEl.off(n.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),n.$wrapperEl.off(n.touchEvents.move,"."+n.params.zoom.containerClass,t.onTouchMove))}},yt={loadInSlide:function(n,i){var r,u,f,e;void 0===i&&(i=!0),r=this,u=r.params.lazy,void 0!==n&&0!==r.slides.length&&(f=r.virtual&&r.params.virtual.enabled?r.$wrapperEl.children("."+r.params.slideClass+'[data-swiper-slide-index="'+n+'"]'):r.slides.eq(n),e=f.find("."+u.elementClass+":not(."+u.loadedClass+"):not(."+u.loadingClass+")"),!f.hasClass(u.elementClass)||f.hasClass(u.loadedClass)||f.hasClass(u.loadingClass)||(e=e.add(f[0])),0!==e.length&&e.each(function(n,e){var o=t(e);o.addClass(u.loadingClass);var s=o.attr("data-background"),h=o.attr("data-src"),c=o.attr("data-srcset"),l=o.attr("data-sizes");r.loadImage(o[0],h||s,c,l,!1,function(){var n,t,e;null!=r&&r&&(!r||r.params)&&!r.destroyed&&((s?(o.css("background-image",'url("'+s+'")'),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),l&&(o.attr("sizes",l),o.removeAttr("data-sizes")),h&&(o.attr("src",h),o.removeAttr("data-src"))),o.addClass(u.loadedClass).removeClass(u.loadingClass),f.find("."+u.preloaderClass).remove(),r.params.loop&&i)&&(n=f.attr("data-swiper-slide-index"),f.hasClass(r.params.slideDuplicateClass)?(t=r.$wrapperEl.children('[data-swiper-slide-index="'+n+'"]:not(.'+r.params.slideDuplicateClass+")"),r.lazy.loadInSlide(t.index(),!1)):(e=r.$wrapperEl.children("."+r.params.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]'),r.lazy.loadInSlide(e.index(),!1))),r.emit("lazyImageReady",f[0],o[0]))}),r.emit("lazyImageLoad",f[0],o[0])}))},load:function(){function l(n){if(c){if(o.children("."+i.slideClass+'[data-swiper-slide-index="'+n+'"]').length)return!0}else if(p[n])return!0;return!1}function w(n){return c?t(n).attr("data-swiper-slide-index"):t(n).index()}var n=this,o=n.$wrapperEl,i=n.params,p=n.slides,r=n.activeIndex,c=n.virtual&&i.virtual.enabled,s=i.lazy,u=i.slidesPerView,f,e,v,y;if("auto"===u&&(u=0),n.lazy.initialImageLoaded||(n.lazy.initialImageLoaded=!0),n.params.watchSlidesVisibility)o.children("."+i.slideVisibleClass).each(function(i,r){var u=c?t(r).attr("data-swiper-slide-index"):t(r).index();n.lazy.loadInSlide(u)});else if(1<u)for(f=r;f<r+u;f+=1)l(f)&&n.lazy.loadInSlide(f);else n.lazy.loadInSlide(r);if(s.loadPrevNext)if(1<u||s.loadPrevNextAmount&&1<s.loadPrevNextAmount){for(var b=s.loadPrevNextAmount,a=u,k=Math.min(r+a+Math.max(b,a),p.length),d=Math.max(r-Math.max(a,b),0),h=r+u;h<k;h+=1)l(h)&&n.lazy.loadInSlide(h);for(e=d;e<r;e+=1)l(e)&&n.lazy.loadInSlide(e)}else v=o.children("."+i.slideNextClass),0<v.length&&n.lazy.loadInSlide(w(v)),y=o.children("."+i.slidePrevClass),0<y.length&&n.lazy.loadInSlide(w(y))}},w={LinearSpline:function(n,t){var i,u,e,r,f,o=function(n,t){for(u=-1,i=n.length;1<i-u;)n[e=i+u>>1]<=t?u=e:i=e;return i};return this.x=n,this.y=t,this.lastIndex=n.length-1,this.interpolate=function(n){return n?(f=o(this.x,n),r=f-1,(n-this.x[r])*(this.y[f]-this.y[r])/(this.x[f]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(n){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new w.LinearSpline(t.slidesGrid,n.slidesGrid):new w.LinearSpline(t.snapGrid,n.snapGrid))},setTranslate:function(n,t){function s(n){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(n),u=-i.controller.spline.interpolate(-t)),u&&"container"!==i.params.controller.by||(e=(n.maxTranslate()-n.minTranslate())/(i.maxTranslate()-i.minTranslate()),u=(t-i.minTranslate())*e+n.minTranslate()),i.params.controller.inverse&&(u=n.maxTranslate()-u),n.updateProgress(u),n.setTranslate(u,i),n.updateActiveIndex(),n.updateSlidesClasses()}var e,u,i=this,r=i.controller.control,f;if(Array.isArray(r))for(f=0;f<r.length;f+=1)r[f]!==t&&r[f]instanceof o&&s(r[f]);else r instanceof o&&t!==r&&s(r)},setTransition:function(t,i){function e(i){i.setTransition(t,f),0!==t&&(i.transitionStart(),i.params.autoHeight&&n.nextTick(function(){i.updateAutoHeight()}),i.$wrapperEl.transitionEnd(function(){r&&(i.params.loop&&"slide"===f.params.controller.by&&i.loopFix(),i.transitionEnd())}))}var u,f=this,r=f.controller.control;if(Array.isArray(r))for(u=0;u<r.length;u+=1)r[u]!==i&&r[u]instanceof o&&e(r[u]);else r instanceof o&&i!==r&&e(r)}},pt={makeElFocusable:function(n){return n.attr("tabIndex","0"),n},addElRole:function(n,t){return n.attr("role",t),n},addElLabel:function(n,t){return n.attr("aria-label",t),n},disableEl:function(n){return n.attr("aria-disabled",!0),n},enableEl:function(n){return n.attr("aria-disabled",!1),n},onEnterKey:function(n){var i=this,u=i.params.a11y,r;13===n.keyCode&&(r=t(n.target),i.navigation&&i.navigation.$nextEl&&r.is(i.navigation.$nextEl)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?i.a11y.notify(u.lastSlideMessage):i.a11y.notify(u.nextSlideMessage)),i.navigation&&i.navigation.$prevEl&&r.is(i.navigation.$prevEl)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?i.a11y.notify(u.firstSlideMessage):i.a11y.notify(u.prevSlideMessage)),i.pagination&&r.is("."+i.params.pagination.bulletClass)&&r[0].click())},notify:function(n){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(n))},updateNavigation:function(){var n=this;if(!n.params.loop){var r=n.navigation,t=r.$nextEl,i=r.$prevEl;i&&0<i.length&&(n.isBeginning?n.a11y.disableEl(i):n.a11y.enableEl(i)),t&&0<t.length&&(n.isEnd?n.a11y.disableEl(t):n.a11y.enableEl(t))}},updatePagination:function(){var n=this,i=n.params.a11y;n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.bullets.each(function(r,u){var f=t(u);n.a11y.makeElFocusable(f),n.a11y.addElRole(f,"button"),n.a11y.addElLabel(f,i.paginationBulletMessage.replace(/{{index}}/,f.index()+1))})},init:function(){var n=this,t,i,r;n.$el.append(n.a11y.liveRegion),r=n.params.a11y,n.navigation&&n.navigation.$nextEl&&(t=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(i=n.navigation.$prevEl),t&&(n.a11y.makeElFocusable(t),n.a11y.addElRole(t,"button"),n.a11y.addElLabel(t,r.nextSlideMessage),t.on("keydown",n.a11y.onEnterKey)),i&&(n.a11y.makeElFocusable(i),n.a11y.addElRole(i,"button"),n.a11y.addElLabel(i,r.prevSlideMessage),i.on("keydown",n.a11y.onEnterKey)),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.on("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)},destroy:function(){var t,i,n=this;n.a11y.liveRegion&&0<n.a11y.liveRegion.length&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(t=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(i=n.navigation.$prevEl),t&&t.off("keydown",n.a11y.onEnterKey),i&&i.off("keydown",n.a11y.onEnterKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)}},a={init:function(){var n=this,t;if(n.params.history){if(!i.history||!i.history.pushState)return n.params.history.enabled=!1,void(n.params.hashNavigation.enabled=!0);t=n.history,t.initialized=!0,t.paths=a.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,n.params.runCallbacksOnInit),n.params.history.replaceState||i.addEventListener("popstate",n.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||i.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=a.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var n=i.location.pathname.slice(1).split("/").filter(function(n){return""!==n}),t=n.length;return{key:n[t-2],value:n[t-1]}},setHistory:function(n,t){var f,r,u;this.history.initialized&&this.params.history.enabled&&(f=this.slides.eq(t),r=a.slugify(f.attr("data-history")),i.location.pathname.includes(n)||(r=n+"/"+r),u=i.history.state,u&&u.value===r||(this.params.history.replaceState?i.history.replaceState({value:r},null,r):i.history.pushState({value:r},null,r)))},slugify:function(n){return n.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(n,t,i){var r=this,u,e,f,o;if(t)for(u=0,e=r.slides.length;u<e;u+=1)f=r.slides.eq(u),a.slugify(f.attr("data-history"))!==t||f.hasClass(r.params.slideDuplicateClass)||(o=f.index(),r.slideTo(o,n,i));else r.slideTo(0,n,i)}},tt={onHashCange:function(){var n=this,i=u.location.hash.replace("#",""),t;if(i!==n.slides.eq(n.activeIndex).attr("data-hash")){if(t=n.$wrapperEl.children("."+n.params.slideClass+'[data-hash="'+i+'"]').index(),void 0===t)return;n.slideTo(t)}},setHash:function(){var n=this,t,r;n.hashNavigation.initialized&&n.params.hashNavigation.enabled&&(n.params.hashNavigation.replaceState&&i.history&&i.history.replaceState?i.history.replaceState(null,null,"#"+n.slides.eq(n.activeIndex).attr("data-hash")||""):(t=n.slides.eq(n.activeIndex),r=t.attr("data-hash")||t.attr("data-history"),u.location.hash=r||""))},init:function(){var n=this,e,f,o,r,s;if(!(!n.params.hashNavigation.enabled||n.params.history&&n.params.history.enabled)){if(n.hashNavigation.initialized=!0,e=u.location.hash.replace("#",""),e)for(f=0,o=n.slides.length;f<o;f+=1)r=n.slides.eq(f),(r.attr("data-hash")||r.attr("data-history"))!==e||r.hasClass(n.params.slideDuplicateClass)||(s=r.index(),n.slideTo(s,0,n.params.runCallbacksOnInit,!0));n.params.hashNavigation.watchState&&t(i).on("hashchange",n.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&t(i).off("hashchange",this.hashNavigation.onHashCange)}},it={run:function(){var t=this,i=t.slides.eq(t.activeIndex),r=t.params.autoplay.delay;i.attr("data-swiper-autoplay")&&(r=i.attr("data-swiper-autoplay")||t.params.autoplay.delay),t.autoplay.timeout=n.nextTick(function(){t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))},r)},start:function(){var n=this;return void 0===n.autoplay.timeout&&!n.autoplay.running&&(n.autoplay.running=!0,n.emit("autoplayStart"),n.autoplay.run(),!0)},stop:function(){var n=this;return!!n.autoplay.running&&void 0!==n.autoplay.timeout&&(n.autoplay.timeout&&(clearTimeout(n.autoplay.timeout),n.autoplay.timeout=void 0),n.autoplay.running=!1,n.emit("autoplayStop"),!0)},pause:function(n){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==n&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},wt={setTranslate:function(){for(var t,i,u,f,n=this,e=n.slides,r=0;r<e.length;r+=1)t=n.slides.eq(r),i=-t[0].swiperSlideOffset,n.params.virtualTranslate||(i-=n.translate),u=0,n.isHorizontal()||(u=i,i=0),f=n.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0),t.css({opacity:f}).transform("translate3d("+i+"px, "+u+"px, 0px)")},setTransition:function(n){var t=this,r=t.slides,u=t.$wrapperEl,i;(r.transition(n),t.params.virtualTranslate&&0!==n)&&(i=!1,r.transitionEnd(function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var r=["webkitTransitionEnd","transitionend"],n=0;n<r.length;n+=1)u.trigger(r[n])}}))}},bt={setTranslate:function(){var u,n=this,nt=n.$el,k=n.$wrapperEl,tt=n.slides,d=n.width,it=n.height,g=n.rtlTranslate,i=n.size,s=n.params.cubeEffect,f=n.isHorizontal(),st=n.virtual&&n.params.virtual.enabled,l=0,w,r,e,c,a,ut,y,p,ot;for(s.shadow&&(f?(0===(u=k.find(".swiper-cube-shadow")).length&&(u=t('<div class="swiper-cube-shadow"><\/div>'),k.append(u)),u.css({height:d+"px"})):0===(u=nt.find(".swiper-cube-shadow")).length&&(u=t('<div class="swiper-cube-shadow"><\/div>'),nt.append(u))),w=0;w<tt.length;w+=1){r=tt.eq(w),e=w,st&&(e=parseInt(r.attr("data-swiper-slide-index"),10)),c=90*e,a=Math.floor(c/360),g&&(c=-c,a=Math.floor(-c/360));var v=Math.max(Math.min(r[0].progress,1),-1),o=0,rt=0,b=0;e%4==0?(o=4*-a*i,b=0):(e-1)%4==0?(o=0,b=4*-a*i):(e-2)%4==0?(o=i+4*a*i,b=i):(e-3)%4==0&&(o=-i,b=3*i+4*i*a),g&&(o=-o),f||(rt=o,o=0),ut="rotateX("+(f?0:-c)+"deg) rotateY("+(f?c:0)+"deg) translate3d("+o+"px, "+rt+"px, "+b+"px)",(v<=1&&-1<v&&(l=90*e+90*v,g&&(l=90*-e-90*v)),r.transform(ut),s.slideShadows)&&(y=f?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),p=f?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom"),0===y.length&&(y=t('<div class="swiper-slide-shadow-'+(f?"left":"top")+'"><\/div>'),r.append(y)),0===p.length&&(p=t('<div class="swiper-slide-shadow-'+(f?"right":"bottom")+'"><\/div>'),r.append(p)),y.length&&(y[0].style.opacity=Math.max(-v,0)),p.length&&(p[0].style.opacity=Math.max(v,0)))}if(k.css({"-webkit-transform-origin":"50% 50% -"+i/2+"px","-moz-transform-origin":"50% 50% -"+i/2+"px","-ms-transform-origin":"50% 50% -"+i/2+"px","transform-origin":"50% 50% -"+i/2+"px"}),s.shadow)if(f)u.transform("translate3d(0px, "+(d/2+s.shadowOffset)+"px, "+-d/2+"px) rotateX(90deg) rotateZ(0deg) scale("+s.shadowScale+")");else{var ft=Math.abs(l)-90*Math.floor(Math.abs(l)/90),ht=1.5-(Math.sin(2*ft*Math.PI/360)/2+Math.cos(2*ft*Math.PI/360)/2),ct=s.shadowScale,et=s.shadowScale/ht,lt=s.shadowOffset;u.transform("scale3d("+ct+", 1, "+et+") translate3d(0px, "+(it/2+lt)+"px, "+-it/2/et+"px) rotateX(-90deg)")}ot=h.isSafari||h.isUiWebView?-i/2:0,k.transform("translate3d(0px,0,"+ot+"px) rotateX("+(n.isHorizontal()?0:l)+"deg) rotateY("+(n.isHorizontal()?-l:0)+"deg)")},setTransition:function(n){var t=this.$el;this.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(n)}},kt={setTranslate:function(){for(var n,r,u,f,i=this,o=i.slides,a=i.rtlTranslate,s=0;s<o.length;s+=1){n=o.eq(s),r=n[0].progress,i.params.flipEffect.limitRotation&&(r=Math.max(Math.min(n[0].progress,1),-1));var e=-180*r,c=0,h=-n[0].swiperSlideOffset,l=0;(i.isHorizontal()?a&&(e=-e):(l=h,c=-e,e=h=0),n[0].style.zIndex=-Math.abs(Math.round(r))+o.length,i.params.flipEffect.slideShadows)&&(u=i.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),f=i.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom"),0===u.length&&(u=t('<div class="swiper-slide-shadow-'+(i.isHorizontal()?"left":"top")+'"><\/div>'),n.append(u)),0===f.length&&(f=t('<div class="swiper-slide-shadow-'+(i.isHorizontal()?"right":"bottom")+'"><\/div>'),n.append(f)),u.length&&(u[0].style.opacity=Math.max(-r,0)),f.length&&(f[0].style.opacity=Math.max(r,0))),n.transform("translate3d("+h+"px, "+l+"px, 0px) rotateX("+c+"deg) rotateY("+e+"deg)")}},setTransition:function(n){var t=this,r=t.slides,u=t.activeIndex,f=t.$wrapperEl,i;(r.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n),t.params.virtualTranslate&&0!==n)&&(i=!1,r.eq(u).transitionEnd(function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var r=["webkitTransitionEnd","transitionend"],n=0;n<r.length;n+=1)f.trigger(r[n])}}))}},dt={setTranslate:function(){for(var g,o,s,f=this,nt=f.width,tt=f.height,p=f.slides,it=f.$wrapperEl,rt=f.slidesSizesGrid,e=f.params.coverflowEffect,n=f.isHorizontal(),w=f.translate,b=n?nt/2-w:tt/2-w,k=n?e.rotate:-e.rotate,ut=e.depth,h=0,ft=p.length;h<ft;h+=1){var u=p.eq(h),d=rt[h],i=(b-u[0].swiperSlideOffset-d/2)/d*e.modifier,c=n?k*i:0,l=n?0:k*i,a=-ut*Math.abs(i),v=n?0:e.stretch*i,y=n?e.stretch*i:0;Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(a)<.001&&(a=0),Math.abs(c)<.001&&(c=0),Math.abs(l)<.001&&(l=0),g="translate3d("+y+"px,"+v+"px,"+a+"px)  rotateX("+l+"deg) rotateY("+c+"deg)",(u.transform(g),u[0].style.zIndex=1-Math.abs(Math.round(i)),e.slideShadows)&&(o=n?u.find(".swiper-slide-shadow-left"):u.find(".swiper-slide-shadow-top"),s=n?u.find(".swiper-slide-shadow-right"):u.find(".swiper-slide-shadow-bottom"),0===o.length&&(o=t('<div class="swiper-slide-shadow-'+(n?"left":"top")+'"><\/div>'),u.append(o)),0===s.length&&(s=t('<div class="swiper-slide-shadow-'+(n?"right":"bottom")+'"><\/div>'),u.append(s)),o.length&&(o[0].style.opacity=0<i?i:0),s.length&&(s[0].style.opacity=0<-i?-i:0))}(r.pointerEvents||r.prefixedPointerEvents)&&(it[0].style.perspectiveOrigin=b+"px 50%")},setTransition:function(n){this.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n)}},ct={init:function(){var t=this,i=t.params.thumbs,r=t.constructor;i.swiper instanceof r?(t.thumbs.swiper=i.swiper,n.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),n.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):n.isObject(i.swiper)&&(t.thumbs.swiper=new r(n.extend({},i.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick:function(){var n=this,r=n.thumbs.swiper,o,s,u,i,f,e;r&&(o=r.clickedIndex,s=r.clickedSlide,s&&t(s).hasClass(n.params.thumbs.slideThumbActiveClass)||null==o||((u=r.params.loop?parseInt(t(r.clickedSlide).attr("data-swiper-slide-index"),10):o,n.params.loop)&&(i=n.activeIndex,n.slides.eq(i).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,i=n.activeIndex),f=n.slides.eq(i).prevAll('[data-swiper-slide-index="'+u+'"]').eq(0).index(),e=n.slides.eq(i).nextAll('[data-swiper-slide-index="'+u+'"]').eq(0).index(),u=void 0===f?e:void 0===e?f:e-i<i-f?e:f),n.slideTo(u)))},update:function(n){var r=this,t=r.thumbs.swiper,o,u,i,f,e,s,h,c,l;if(t)if(o="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView,r.realIndex!==t.realIndex&&(i=t.activeIndex,t.params.loop?(t.slides.eq(i).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,i=t.activeIndex),f=t.slides.eq(i).prevAll('[data-swiper-slide-index="'+r.realIndex+'"]').eq(0).index(),e=t.slides.eq(i).nextAll('[data-swiper-slide-index="'+r.realIndex+'"]').eq(0).index(),u=void 0===f?e:void 0===e?f:e-i==i-f?i:e-i<i-f?e:f):u=r.realIndex,t.visibleSlidesIndexes.indexOf(u)<0&&(t.params.centeredSlides?u=i<u?u-Math.floor(o/2)+1:u+Math.floor(o/2)-1:i<u&&(u=u-o+1),t.slideTo(u,n?0:void 0))),s=1,h=r.params.thumbs.slideThumbActiveClass,1<r.params.slidesPerView&&!r.params.centeredSlides&&(s=r.params.slidesPerView),t.slides.removeClass(h),t.params.loop)for(c=0;c<s;c+=1)t.$wrapperEl.children('[data-swiper-slide-index="'+(r.realIndex+c)+'"]').addClass(h);else for(l=0;l<s;l+=1)t.slides.eq(r.realIndex+l).addClass(h)}},vi=[ei,oi,si,hi,ci,li,ai,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var t=this;n.extend(t,{mousewheel:{enabled:!1,enable:l.enable.bind(t),disable:l.disable.bind(t),handle:l.handle.bind(t),handleMouseEnter:l.handleMouseEnter.bind(t),handleMouseLeave:l.handleMouseLeave.bind(t),lastScrollTime:n.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var t=this;n.extend(t,{navigation:{init:p.init.bind(t),update:p.update.bind(t),destroy:p.destroy.bind(t),onNextClick:p.onNextClick.bind(t),onPrevClick:p.onPrevClick.bind(t)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(n){var f,i=this,e=i.navigation,r=e.$nextEl,u=e.$prevEl;!i.params.navigation.hideOnClick||t(n.target).is(u)||t(n.target).is(r)||(r?f=r.hasClass(i.params.navigation.hiddenClass):u&&(f=u.hasClass(i.params.navigation.hiddenClass)),!0===f?i.emit("navigationShow",i):i.emit("navigationHide",i),r&&r.toggleClass(i.params.navigation.hiddenClass),u&&u.toggleClass(i.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(n){return n},formatFractionTotal:function(n){return n},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var t=this;n.extend(t,{pagination:{init:nt.init.bind(t),render:nt.render.bind(t),update:nt.update.bind(t),destroy:nt.destroy.bind(t),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(n){var i=this;i.params.pagination.el&&i.params.pagination.hideOnClick&&0<i.pagination.$el.length&&!t(n.target).hasClass(i.params.pagination.bulletClass)&&(!0===i.pagination.$el.hasClass(i.params.pagination.hiddenClass)?i.emit("paginationShow",i):i.emit("paginationHide",i),i.pagination.$el.toggleClass(i.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var t=this;n.extend(t,{scrollbar:{init:s.init.bind(t),destroy:s.destroy.bind(t),updateSize:s.updateSize.bind(t),setTranslate:s.setTranslate.bind(t),setTransition:s.setTransition.bind(t),enableDraggable:s.enableDraggable.bind(t),disableDraggable:s.disableDraggable.bind(t),setDragPosition:s.setDragPosition.bind(t),onDragStart:s.onDragStart.bind(t),onDragMove:s.onDragMove.bind(t),onDragEnd:s.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(n){this.scrollbar.setTransition(n)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){n.extend(this,{parallax:{setTransform:st.setTransform.bind(this),setTranslate:st.setTranslate.bind(this),setTransition:st.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(n){this.params.parallax.enabled&&this.parallax.setTransition(n)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,r={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},i;"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(n){r[n]=ht[n].bind(t)}),n.extend(t,{zoom:r}),i=1,Object.defineProperty(t.zoom,"scale",{get:function(){return i},set:function(n){if(i!==n){var r=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,u=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",n,r,u)}i=n}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(n){this.zoom.enabled&&this.zoom.onTouchStart(n)},touchEnd:function(n){this.zoom.enabled&&this.zoom.onTouchEnd(n)},doubleTap:function(n){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(n)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){n.extend(this,{lazy:{initialImageLoaded:!1,load:yt.load.bind(this),loadInSlide:yt.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var n=this;n.params.lazy.enabled&&(n.params.lazy.loadOnTransitionStart||!n.params.lazy.loadOnTransitionStart&&!n.lazy.initialImageLoaded)&&n.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var t=this;n.extend(t,{controller:{control:t.params.controller.control,getInterpolateFunction:w.getInterpolateFunction.bind(t),setTranslate:w.setTranslate.bind(t),setTransition:w.setTransition.bind(t)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(n,t){this.controller.control&&this.controller.setTranslate(n,t)},setTransition:function(n,t){this.controller.control&&this.controller.setTransition(n,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var i=this;n.extend(i,{a11y:{liveRegion:t('<span class="'+i.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"><\/span>')}}),Object.keys(pt).forEach(function(n){i.a11y[n]=pt[n].bind(i)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var t=this;n.extend(t,{history:{init:a.init.bind(t),setHistory:a.setHistory.bind(t),setHistoryPopState:a.setHistoryPopState.bind(t),scrollToSlide:a.scrollToSlide.bind(t),destroy:a.destroy.bind(t)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var t=this;n.extend(t,{hashNavigation:{initialized:!1,init:tt.init.bind(t),destroy:tt.destroy.bind(t),setHash:tt.setHash.bind(t),onHashCange:tt.onHashCange.bind(t)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;n.extend(t,{autoplay:{running:!1,paused:!1,run:it.run.bind(t),start:it.start.bind(t),stop:it.stop.bind(t),pause:it.pause.bind(t),onTransitionEnd:function(n){t&&!t.destroyed&&t.$wrapperEl&&n.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(n,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(n):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){n.extend(this,{fadeEffect:{setTranslate:wt.setTranslate.bind(this),setTransition:wt.setTransition.bind(this)}})},on:{beforeInit:function(){var t=this,i;"fade"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"fade"),i={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0},n.extend(t.params,i),n.extend(t.originalParams,i))},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(n){"fade"===this.params.effect&&this.fadeEffect.setTransition(n)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){n.extend(this,{cubeEffect:{setTranslate:bt.setTranslate.bind(this),setTransition:bt.setTransition.bind(this)}})},on:{beforeInit:function(){var t=this,i;"cube"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d"),i={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0},n.extend(t.params,i),n.extend(t.originalParams,i))},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(n){"cube"===this.params.effect&&this.cubeEffect.setTransition(n)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){n.extend(this,{flipEffect:{setTranslate:kt.setTranslate.bind(this),setTransition:kt.setTransition.bind(this)}})},on:{beforeInit:function(){var t=this,i;"flip"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d"),i={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0},n.extend(t.params,i),n.extend(t.originalParams,i))},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(n){"flip"===this.params.effect&&this.flipEffect.setTransition(n)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){n.extend(this,{coverflowEffect:{setTranslate:dt.setTranslate.bind(this),setTransition:dt.setTransition.bind(this)}})},on:{beforeInit:function(){var n=this;"coverflow"===n.params.effect&&(n.classNames.push(n.params.containerModifierClass+"coverflow"),n.classNames.push(n.params.containerModifierClass+"3d"),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(n){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(n)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){n.extend(this,{thumbs:{swiper:null,init:ct.init.bind(this),update:ct.update.bind(this),onThumbClick:ct.onThumbClick.bind(this)}})},on:{beforeInit:function(){var n=this.params.thumbs;n&&n.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(n){var t=this.thumbs.swiper;t&&t.setTransition(n)},beforeDestroy:function(){var n=this.thumbs.swiper;n&&this.thumbs.swiperCreated&&n&&n.destroy()}}}];return void 0===o.use&&(o.use=o.Class.use,o.installModule=o.Class.installModule),o.use(vi),o});
/*! ScrollMagic v2.0.6 | (c) 2018 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
!function(n,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():n.ScrollMagic=t()}(this,function(){"use strict";var t=function(){},r,u,i,n;return t.version="2.0.6",window.addEventListener("mousewheel",function(){}),r="data-scrollmagic-pin-spacer",t.Controller=function(i){var k,d,et="ScrollMagic.Controller",ot="FORWARD",g="REVERSE",nt="PAUSED",w=u.defaults,e=this,f=n.extend({},w,i),o=[],s=!1,l=0,a=nt,h=!0,v=0,y=!0,st=function(){var t,i;for(t in f)w.hasOwnProperty(t)||delete f[t];if(f.container=n.get.elements(f.container)[0],!f.container)throw et+" init failed.";h=f.container===window||f.container===document.body||!document.body.contains(f.container),h&&(f.container=window),v=b(),f.container.addEventListener("resize",c),f.container.addEventListener("scroll",c),i=parseInt(f.refreshInterval,10),f.refreshInterval=n.type.Number(i)?i:w.refreshInterval,tt()},tt=function(){f.refreshInterval>0&&(d=window.setTimeout(ht,f.refreshInterval))},it=function(){return f.vertical?n.get.scrollTop(f.container):n.get.scrollLeft(f.container)},b=function(){return f.vertical?n.get.height(f.container):n.get.width(f.container)},rt=this._setScrollPos=function(t){f.vertical?h?window.scrollTo(n.get.scrollLeft(),t):f.container.scrollTop=t:h?window.scrollTo(t,n.get.scrollTop()):f.container.scrollLeft=t},ut=function(){var t,r,i;y&&s&&(t=n.type.Array(s)?s:o.slice(0),s=!1,r=l,l=e.scrollPos(),i=l-r,0!==i&&(a=i>0?ot:g),a===g&&t.reverse(),t.forEach(function(n){n.update(!0)}))},ft=function(){k=n.rAF(ut)},c=function(n){"resize"==n.type&&(v=b(),a=nt),s!==!0&&(s=!0,ft())},ht=function(){if(!h&&v!=b()){var n;try{n=new Event("resize",{bubbles:!1,cancelable:!1})}catch(t){n=document.createEvent("Event"),n.initEvent("resize",!1,!1)}f.container.dispatchEvent(n)}o.forEach(function(n){n.refresh()}),tt()},p;return this._options=f,p=function(n){if(n.length<=1)return n;var t=n.slice(0);return t.sort(function(n,t){return n.scrollOffset()>t.scrollOffset()?1:-1}),t},this.addScene=function(i){if(n.type.Array(i))i.forEach(function(n){e.addScene(n)});else if(i instanceof t.Scene)if(i.controller()!==e)i.addTo(e);else if(o.indexOf(i)<0){o.push(i),o=p(o),i.on("shift.controller_sort",function(){o=p(o)});for(var r in f.globalSceneOptions)i[r]&&i[r].call(i,f.globalSceneOptions[r])}return e},this.removeScene=function(t){if(n.type.Array(t))t.forEach(function(n){e.removeScene(n)});else{var i=o.indexOf(t);i>-1&&(t.off("shift.controller_sort"),o.splice(i,1),t.remove())}return e},this.updateScene=function(i,r){return n.type.Array(i)?i.forEach(function(n){e.updateScene(n,r)}):r?i.update(!0):s!==!0&&i instanceof t.Scene&&(s=s||[],-1==s.indexOf(i)&&s.push(i),s=p(s),ft()),e},this.update=function(n){return c({type:"resize"}),n&&ut(),e},this.scrollTo=function(i,u){var o;if(n.type.Number(i))rt.call(f.container,i,u);else if(i instanceof t.Scene)i.controller()===e&&e.scrollTo(i.scrollOffset(),u);else if(n.type.Function(i))rt=i;else if(o=n.get.elements(i)[0],o){for(;o.parentNode.hasAttribute(r);)o=o.parentNode;var s=f.vertical?"top":"left",c=n.get.offset(f.container),l=n.get.offset(o);h||(c[s]-=e.scrollPos()),e.scrollTo(l[s]-c[s],u)}return e},this.scrollPos=function(t){return arguments.length?(n.type.Function(t)&&(it=t),e):it.call(e)},this.info=function(n){var t={size:v,vertical:f.vertical,scrollPos:l,scrollDirection:a,container:f.container,isDocument:h};return arguments.length?void 0!==t[n]?t[n]:void 0:t},this.loglevel=function(){return e},this.enabled=function(n){return arguments.length?(y!=n&&(y=!!n,e.updateScene(o,!0)),e):y},this.destroy=function(t){window.clearTimeout(d);for(var i=o.length;i--;)o[i].destroy(t);return f.container.removeEventListener("resize",c),f.container.removeEventListener("scroll",c),n.cAF(k),null},st(),e},u={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}},t.Controller.addOption=function(n,t){u.defaults[n]=t},t.Controller.extend=function(i){var r=this;t.Controller=function(){return r.apply(this,arguments),this.$super=n.extend({},this),i.apply(this,arguments)||this},n.extend(t.Controller,r),t.Controller.prototype=r.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(u){var y,o,p="BEFORE",l="DURING",nt="AFTER",tt=i.defaults,f=this,h=n.extend({},tt,u),c=p,a=0,v={start:0,end:0},d=0,it=!0,yt=function(){var n,t;for(n in h)tt.hasOwnProperty(n)||delete h[n];for(t in tt)pt(t);st()},w={},e,s,ft,k;this.on=function(t,i){return n.type.Function(i)&&(t=t.trim().split(" "),t.forEach(function(n){var r=n.split("."),t=r[0],u=r[1];"*"!=t&&(w[t]||(w[t]=[]),w[t].push({namespace:u||"",callback:i}))})),f},this.off=function(n,t){return n?(n=n.trim().split(" "),n.forEach(function(n){var i=n.split("."),r=i[0],u=i[1]||"",f="*"===r?Object.keys(w):[r];f.forEach(function(n){for(var f,i=w[n]||[],r=i.length;r--;)f=i[r],!f||u!==f.namespace&&"*"!==u||t&&t!=f.callback||i.splice(r,1);i.length||delete w[n]})}),f):f},this.trigger=function(n,i){if(n){var r=n.trim().split("."),u=r[0],e=r[1],o=w[u];o&&o.forEach(function(n){e&&e!==n.namespace||n.callback.call(f,new t.Event(u,n.namespace,f,i))})}return f},f.on("change.internal",function(n){"loglevel"!==n.what&&"tweenChanges"!==n.what&&("triggerElement"===n.what?et():"reverse"===n.what&&f.update())}).on("shift.internal",function(){ht(),f.update()}),this.addTo=function(n){return n instanceof t.Controller&&o!=n&&(o&&o.removeScene(f),o=n,st(),ct(!0),et(!0),ht(),o.info("container").addEventListener("resize",lt),n.addScene(f),f.trigger("add",{controller:o}),f.update()),f},this.enabled=function(n){return arguments.length?(it!=n&&(it=!!n,f.update(!0)),f):it},this.remove=function(){if(o){o.info("container").removeEventListener("resize",lt);var n=o;o=void 0,n.removeScene(f),f.trigger("remove")}return f},this.destroy=function(n){return f.trigger("destroy",{reset:n}),f.remove(),f.off("*.*"),null},this.update=function(n){if(o)if(n)if(o.enabled()&&it){var i,t=o.info("scrollPos");i=h.duration>0?(t-v.start)/(v.end-v.start):t>=v.start?1:0,f.trigger("update",{startPos:v.start,endPos:v.end,scrollPos:t}),f.progress(i)}else e&&c===l&&b(!0);else o.updateScene(f,!1);return f},this.refresh=function(){return ct(),et(),f},this.progress=function(n){if(arguments.length){var t=!1,u=c,s=o?o.info("scrollDirection"):"PAUSED",r=h.reverse||n>=a;if(0===h.duration?(t=a!=n,a=1>n&&r?0:1,c=0===a?p:l):0>n&&c!==p&&r?(a=0,c=p,t=!0):n>=0&&1>n&&r?(a=n,c=l,t=!0):n>=1&&c!==nt?(a=1,c=nt,t=!0):c!==l||r||b(),t){var v={progress:a,state:c,scrollDirection:s},e=c!=u,i=function(n){f.trigger(n,v)};e&&u!==l&&(i("enter"),i(u===p?"start":"end")),i("progress"),e&&c!==l&&(i(c===p?"start":"end"),i("leave"))}return f}return a};var ht=function(){v={start:d+h.offset},o&&h.triggerElement&&(v.start-=o.info("size")*h.triggerHook),v.end=v.start+h.duration},ct=function(n){if(y){var t="duration";at(t,y.call(f))&&!n&&(f.trigger("change",{what:t,newval:h[t]}),f.trigger("shift",{reason:t}))}},et=function(t){var u=0,i=h.triggerElement,l,a;if(o&&(i||d>0)){if(i)if(i.parentNode){for(var e=o.info(),c=n.get.offset(e.container),s=e.vertical?"top":"left";i.parentNode.hasAttribute(r);)i=i.parentNode;l=n.get.offset(i),e.isDocument||(c[s]-=o.scrollPos()),u=l[s]-c[s]}else f.triggerElement(void 0);a=u!=d,d=u,a&&!t&&f.trigger("shift",{reason:"triggerElementPosition"})}},lt=function(){h.triggerHook>0&&f.trigger("shift",{reason:"containerResize"})},ot=n.extend(i.validate,{duration:function(t){if(n.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var i=parseFloat(t)/100;t=function(){return o?o.info("size")*i:0}}if(n.type.Function(t)){y=t;try{t=parseFloat(y())}catch(r){t=-1}}if(t=parseFloat(t),!n.type.Number(t)||0>t)throw y?(y=void 0,0):0;return t}}),st=function(n){n=arguments.length?[n]:Object.keys(ot),n.forEach(function(n){var t;if(ot[n])try{t=ot[n](h[n])}catch(i){t=tt[n]}finally{h[n]=t}})},at=function(n,t){var i=!1,r=h[n];return h[n]!=t&&(h[n]=t,st(n),i=r!=h[n]),i},pt=function(n){f[n]||(f[n]=function(t){return arguments.length?("duration"===n&&(y=void 0),at(n,t)&&(f.trigger("change",{what:n,newval:h[n]}),i.shifts.indexOf(n)>-1&&f.trigger("shift",{reason:n})),f):h[n]})};this.controller=function(){return o},this.state=function(){return c},this.scrollOffset=function(){return v.start},this.triggerPosition=function(){var n=h.offset;return o&&(n+=h.triggerElement?d:o.info("size")*f.triggerHook()),n};f.on("shift.internal",function(n){var t="duration"===n.reason;(c===nt&&t||c===l&&0===h.duration)&&b(),t&&g()}).on("progress.internal",function(){b()}).on("add.internal",function(){g()}).on("destroy.internal",function(n){f.removePin(n.reset)});var b=function(t){var r,i,u,f,y,w;e&&o&&(r=o.info(),i=s.spacer.firstChild,t||c!==l?(u={position:s.inFlow?"relative":"absolute",top:0,left:0},f=n.css(i,"position")!=u.position,s.pushFollowers?h.duration>0&&(c===nt&&0===parseFloat(n.css(s.spacer,"padding-top"))?f=!0:c===p&&0===parseFloat(n.css(s.spacer,"padding-bottom"))&&(f=!0)):u[r.vertical?"top":"left"]=h.duration*a,n.css(i,u),f&&g()):("fixed"!=n.css(i,"position")&&(n.css(i,{position:"fixed"}),g()),y=n.get.offset(s.spacer,!0),w=h.reverse||0===h.duration?r.scrollPos-v.start:Math.round(a*h.duration*10)/10,y[r.vertical?"top":"left"]+=w,n.css(s.spacer.firstChild,{top:y.top,left:y.left})))},g=function(){if(e&&o&&s.inFlow){var i=c===l,r=o.info("vertical"),u=s.spacer.firstChild,f=n.isMarginCollapseType(n.css(s.spacer,"display")),t={};s.relSize.width||s.relSize.autoFullWidth?i?n.css(e,{width:n.get.width(s.spacer)}):n.css(e,{width:"100%"}):(t["min-width"]=n.get.width(r?e:u,!0,!0),t.width=i?t["min-width"]:"auto"),s.relSize.height?i?n.css(e,{height:n.get.height(s.spacer)-(s.pushFollowers?h.duration:0)}):n.css(e,{height:"100%"}):(t["min-height"]=n.get.height(r?u:e,!0,!f),t.height=i?t["min-height"]:"auto"),s.pushFollowers&&(t["padding"+(r?"Top":"Left")]=h.duration*a,t["padding"+(r?"Bottom":"Right")]=h.duration*(1-a)),n.css(s.spacer,t)}},rt=function(){o&&e&&c===l&&!o.info("isDocument")&&b()},vt=function(){o&&e&&c===l&&((s.relSize.width||s.relSize.autoFullWidth)&&n.get.width(window)!=n.get.width(s.spacer.parentNode)||s.relSize.height&&n.get.height(window)!=n.get.height(s.spacer.parentNode))&&g()},ut=function(n){o&&e&&c===l&&!o.info("isDocument")&&(n.preventDefault(),o._setScrollPos(o.info("scrollPos")-((n.wheelDelta||n[o.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-n.detail)))};return this.setPin=function(t,i){var a,c,u,l,y,p;if((i=n.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},i),t=n.get.elements(t)[0],!t)||"fixed"===n.css(t,"position"))return f;if(e){if(e===t)return f;f.removePin()}e=t,a=e.parentNode.style.display,c=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"],e.parentNode.style.display="none";var o="absolute"!=n.css(e,"position"),v=n.css(e,c.concat(["display"])),h=n.css(e,["width","height"]);return e.parentNode.style.display=a,!o&&i.pushFollowers&&(i.pushFollowers=!1),u=e.parentNode.insertBefore(document.createElement("div"),e),l=n.extend(v,{position:o?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),(o||n.extend(l,n.css(e,["width","height"])),n.css(u,l),u.setAttribute(r,""),n.addClass(u,i.spacerClass),s={spacer:u,relSize:{width:"%"===h.width.slice(-1),height:"%"===h.height.slice(-1),autoFullWidth:"auto"===h.width&&o&&n.isMarginCollapseType(v.display)},pushFollowers:i.pushFollowers,inFlow:o},e.___origStyle)||(e.___origStyle={},y=e.style,p=c.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]),p.forEach(function(n){e.___origStyle[n]=y[n]||""})),s.relSize.width&&n.css(u,{width:h.width}),s.relSize.height&&n.css(u,{height:h.height}),u.appendChild(e),n.css(e,{position:o?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(s.relSize.width||s.relSize.autoFullWidth)&&n.css(e,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",rt),window.addEventListener("resize",rt),window.addEventListener("resize",vt),e.addEventListener("mousewheel",ut),e.addEventListener("DOMMouseScroll",ut),b(),f},this.removePin=function(t){var i;if(e){if(c===l&&b(!0),t||!o){if(i=s.spacer.firstChild,i.hasAttribute(r)){var h=s.spacer.style,u={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach(function(n){u[n]=h[n]||""}),n.css(i,u)}s.spacer.parentNode.insertBefore(i,s.spacer),s.spacer.parentNode.removeChild(s.spacer),e.parentNode.hasAttribute(r)||(n.css(e,e.___origStyle),delete e.___origStyle)}window.removeEventListener("scroll",rt),window.removeEventListener("resize",rt),window.removeEventListener("resize",vt),e.removeEventListener("mousewheel",ut),e.removeEventListener("DOMMouseScroll",ut),e=void 0}return f},k=[],f.on("destroy.internal",function(n){f.removeClassToggle(n.reset)}),this.setClassToggle=function(t,i){var r=n.get.elements(t);return 0!==r.length&&n.type.String(i)?(k.length>0&&f.removeClassToggle(),ft=i,k=r,f.on("enter.internal_class leave.internal_class",function(t){var i="enter"===t.type?n.addClass:n.removeClass;k.forEach(function(n){i(n,ft)})}),f):f},this.removeClassToggle=function(t){return t&&k.forEach(function(t){n.removeClass(t,ft)}),f.off("start.internal_class end.internal_class"),ft=void 0,k=[],f},yt(),f},i={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!n.type.Number(t))throw 0;return t},triggerElement:function(t){if(t=t||void 0){var i=n.get.elements(t)[0];if(!i||!i.parentNode)throw 0;t=i}return t},triggerHook:function(t){var i={onCenter:.5,onEnter:1,onLeave:0};if(n.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in i))throw 0;t=i[t]}return t},reverse:function(n){return!!n}},shifts:["duration","offset","triggerHook"]},t.Scene.addOption=function(n,t,r,u){n in i.defaults||(i.defaults[n]=t,i.validate[n]=r,u&&i.shifts.push(n))},t.Scene.extend=function(i){var r=this;t.Scene=function(){return r.apply(this,arguments),this.$super=n.extend({},this),i.apply(this,arguments)||this},n.extend(t.Scene,r),t.Scene.prototype=r.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(n,t,i,r){r=r||{};for(var u in r)this[u]=r[u];return this.type=n,this.target=this.currentTarget=i,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this},n=t._util=function(n){var i,r={},e=function(n){return parseFloat(n)||0},h=function(t){return t.currentStyle?t.currentStyle:n.getComputedStyle(t)},l=function(i,r,u,f){var s,o;if(r=r===document?n:r,r===n)f=!1;else if(!t.DomElement(r))return 0;return i=i.charAt(0).toUpperCase()+i.substr(1).toLowerCase(),s=(u?r["offset"+i]||r["outer"+i]:r["client"+i]||r["inner"+i])||0,u&&f&&(o=h(r),s+="Height"===i?e(o.marginTop)+e(o.marginBottom):e(o.marginLeft)+e(o.marginRight)),s},c=function(n){return n.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(n){return n[1].toUpperCase()})},t,u;r.extend=function(n){for(n=n||{},i=1;i<arguments.length;i++)if(arguments[i])for(var t in arguments[i])arguments[i].hasOwnProperty(t)&&(n[t]=arguments[i][t]);return n},r.isMarginCollapseType=function(n){return["block","flex","list-item","table","-webkit-box"].indexOf(n)>-1};var a=0,o=["ms","moz","webkit","o"],f=n.requestAnimationFrame,s=n.cancelAnimationFrame;for(i=0;!f&&i<o.length;++i)f=n[o[i]+"RequestAnimationFrame"],s=n[o[i]+"CancelAnimationFrame"]||n[o[i]+"CancelRequestAnimationFrame"];return f||(f=function(t){var i=(new Date).getTime(),r=Math.max(0,16-(i-a)),u=n.setTimeout(function(){t(i+r)},r);return a=i+r,u}),s||(s=function(t){n.clearTimeout(t)}),r.rAF=f.bind(n),r.cAF=s.bind(n),t=r.type=function(n){return Object.prototype.toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},t.String=function(n){return"string"===t(n)},t.Function=function(n){return"function"===t(n)},t.Array=function(n){return Array.isArray(n)},t.Number=function(n){return!t.Array(n)&&n-parseFloat(n)+1>=0},t.DomElement=function(n){return"object"==typeof HTMLElement?n instanceof HTMLElement:n&&"object"==typeof n&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName},u=r.get={},u.elements=function(i){var r=[],f,o,e;if(t.String(i))try{i=document.querySelectorAll(i)}catch(s){return r}if("nodelist"===t(i)||t.Array(i))for(f=0,o=r.length=i.length;o>f;f++)e=i[f],r[f]=t.DomElement(e)?e:u.elements(e);else(t.DomElement(i)||i===document||i===n)&&(r=[i]);return r},u.scrollTop=function(t){return t&&"number"==typeof t.scrollTop?t.scrollTop:n.pageYOffset||0},u.scrollLeft=function(t){return t&&"number"==typeof t.scrollLeft?t.scrollLeft:n.pageXOffset||0},u.width=function(n,t,i){return l("width",n,t,i)},u.height=function(n,t,i){return l("height",n,t,i)},u.offset=function(n,t){var i={top:0,left:0},r;return n&&n.getBoundingClientRect&&(r=n.getBoundingClientRect(),i.top=r.top,i.left=r.left,t||(i.top+=u.scrollTop(),i.left+=u.scrollLeft())),i},r.addClass=function(n,t){t&&(n.classList?n.classList.add(t):n.className+=" "+t)},r.removeClass=function(n,t){t&&(n.classList?n.classList.remove(t):n.className=n.className.replace(RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},r.css=function(n,i){var u,e,f,r;if(t.String(i))return h(n)[c(i)];if(t.Array(i))return u={},e=h(n),i.forEach(function(n){u[n]=e[c(n)]}),u;for(f in i)r=i[f],r==parseFloat(r)&&(r+="px"),n.style[c(f)]=r},r}(window||{}),t}),$(document).ready(function(){var n=$("#main-carousel-owl"),t,i;if(n.length){var r=n.data("rotation"),u=r?parseInt(r):0,f=u!==0?u*1e3:!1;n.owlCarousel({items:1,navigation:!0,singleItem:!0,navigationText:["",""],slideSpeed:400,paginationSpeed:400,autoPlay:f})}$("#products-carousel-owl").length&&$("#products-carousel-owl").owlCarousel({itemsCustom:!1,singleItem:!0,itemsDesktop:[1024,2],slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#productDetailsTestimonialCarousel").length&&$("#productDetailsTestimonialCarousel").owlCarousel({items:3,itemsCustom:!1,singleItem:!1,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],addClassActive:!1}),$("#side-carousel-owl").length&&$("#side-carousel-owl").owlCarousel({singleItem:!0,navigation:!1,stopOnHover:!0}),$("#owl-what-people-are-saying").length&&$("#owl-what-people-are-saying").owlCarousel({itemsCustom:!1,singleItem:!0,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["<",">"],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#owl-slider").length&&$("#owl-slider").owlCarousel({itemsCustom:!1,singleItem:!0,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["<",">"],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#owl-related-products").length&&$("#owl-related-products").owlCarousel({items:2,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],pagination:!0,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1,itemsTablet:[1100,2],itemsMobile:[500,1]}),$("#owl-slider").length&&$("#owl-slider").owlCarousel({itemsCustom:!1,singleItem:!0,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["<",">"],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#owl-slider-product-detail").length&&$("#owl-slider-product-detail").owlCarousel({items:3,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["◀","▶"],rewindNav:!0,responsive:!1,pagination:!1,autoHeight:!0,scrollPerPage:!0,paginationNumbers:!1,baseClass:"owl-carousel",addClassActive:!1}),$("#product-details-testimonial-carousel").length&&$("#product-details-testimonial-carousel").owlCarousel({items:3,itemsCustom:!1,singleItem:!1,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:[,],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],addClassActive:!1}),$("#mustReadArticlesCarousel").length&&$("#mustReadArticlesCarousel").owlCarousel({items:2,itemsCustom:!1,singleItem:!1,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["<",">"],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],addClassActive:!1}),$("#conferences-what-people-saying").length&&$("#conferences-what-people-saying").owlCarousel({items:3,itemsCustom:!1,singleItem:!1,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["<",">"],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],addClassActive:!1}),$("#related-products").length&&$("#related-products").owlCarousel({items:2,itemsCustom:!1,itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#related-courses").length&&$("#related-courses").owlCarousel({items:2,itemsCustom:!1,itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#related-articles").length&&$("#related-articles").owlCarousel({items:2,itemsCustom:!1,itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#related-awards").length&&$("#related-awards").owlCarousel({items:2,itemsCustom:!1,itemsDesktop:[1024,1],slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#clinicTestimonials").length&&$("#clinicTestimonials").owlCarousel({items:3,itemsCustom:!1,singleItem:!1,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],addClassActive:!1}),$("#owl-what-people-are-saying").length&&$("#owl-what-people-are-saying").owlCarousel({itemsCustom:!1,singleItem:!0,slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["<",">"],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),$("#st-carousel-2").length&&$("#st-carousel-2").owlCarousel({items:2,itemsCustom:!1,itemsDesktop:[1199,2],itemsDesktopSmall:[979,2],itemsTablet:[838,1],itemsMobile:[479,1],slideSpeed:400,paginationSpeed:400,rewindSpeed:400,navigation:!0,navigationText:["",""],rewindNav:!0,scrollPerPage:!0,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",addClassActive:!1}),t=$(".speaker-slider-carousel"),t.length&&t.owlCarousel({items:2,slideSpeed:400,navigation:!0,navigationText:[,],pagination:!0,itemsTablet:[838,1],itemsMobile:[479,1],itemsDesktopSmall:[1020,1],itemsDesktop:[1199,2]}),i=$("#services-carousel"),i.length&&i.owlCarousel({items:1,navigation:!0,singleItem:!0,navigationText:["",""],slideSpeed:400,paginationSpeed:400})}),$(function(){var u=function(t){controller.ajaxCallMethod("/custom/SFMCSearch/GetSfmcResultByCustomerEmail",{requestType:"POST",parameters:{customerEmail:t}},{onDone:function(t){t&&(n.css("display","none"),r(t))},onFail:function(n){console.log(n)}})},f=function(t){controller.ajaxCallMethod("/custom/SFMCSearch/GetSfmcResultByOrderId",{requestType:"POST",parameters:{orderId:t}},{onDone:function(t){t&&(n.css("display","none"),r(t))},onFail:function(n){console.log(n)}})},e=function(t){controller.ajaxCallMethod("/custom/SFMCSearch/GetSfmcResultByCustomerNumber",{requestType:"POST",parameters:{customerNumber:t}},{onDone:function(t){t&&(n.css("display","none"),r(t))},onFail:function(t){n.css("display","none"),console.log(t)}})},t=$(".sfmc-table"),o=$(".sfmc-table").find("tbody"),n=$(".sfmc-loading"),i=$(".sfmc-error"),r=function(n){if(typeof n=="object"){var r=_.template($("#sfmcTableHeader").html()),u=_.template($("#sfmcTableRow").html());t.append(r()),$.each(n,function(n,i){t.append(u(i))})}else i.text("No results")};$(".sfmc-search").on("click",function(){var r=$(".sfmc-input").val(),s=$(".sfmc-select").val();if(r.length!=0){if(o.empty(),s==="orderID")f(r);else if(s==="customerEmail")if(validateEmail(r))u(r);else{i.text("Please enter a valid Email address.");return}else s==="customerID"&&e(r);t.empty(),i.html(""),n.css("display","block")}})});
/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
/*!
 * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=37240a8297c18242e28ec9665958eba2)
 * Config saved to config.json and https://gist.github.com/37240a8297c18242e28ec9665958eba2
 */
if(typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e)),typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i,this.$body=n(document.body),this.$element=n(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.7",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)},t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),f&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus(),u=n.Event("shown.bs.modal",{relatedTarget:i}),f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}},t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){document===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var n=this;this.$element.hide(),this.backdrop(function(){n.$body.removeClass("modal-open"),n.resetAdjustments(),n.resetScrollbar(),n.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f,this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop(),i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<n,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t},r=n.fn.modal,n.fn.stModal=i,n.fn.modal.Constructor=t,n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery),+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this},n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery)